Class SalesOrderPaymentPreferenceLogic
java.lang.Object
com.echothree.util.server.control.BaseLogic
com.echothree.model.control.sales.server.logic.SalesOrderPaymentPreferenceLogic
-
Field Summary
Fields inherited from class com.echothree.util.server.control.BaseLogic
coreControl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckCustomerTypePaymentMethod(ExecutionErrorAccumulator eea, CustomerType customerType, PaymentMethod paymentMethod) Verify that the CustomerType is authorized to use the PaymentMethod.createSalesOrderPaymentPreference(Session session, ExecutionErrorAccumulator eea, Order order, Integer orderPaymentPreferenceSequence, PaymentMethod paymentMethod, PartyPaymentMethod partyPaymentMethod, Boolean wasPresent, Long maximumAmount, Integer sortOrder, PartyPK createdBy) Create an Order Payment Preference for a given Order.Methods inherited from class com.echothree.util.server.control.BaseLogic
addExecutionError, addSecurityMessage, getEntityInstanceByBaseEntity, getEntityInstanceByBasePK, getSession, handleExecutionError, handleSecurityMessage, hasExecutionErrors
-
Constructor Details
-
SalesOrderPaymentPreferenceLogic
protected SalesOrderPaymentPreferenceLogic()
-
-
Method Details
-
getInstance
-
checkCustomerTypePaymentMethod
public void checkCustomerTypePaymentMethod(ExecutionErrorAccumulator eea, CustomerType customerType, PaymentMethod paymentMethod) Verify that the CustomerType is authorized to use the PaymentMethod. If there are no CustomerTypePaymentMethods for any PaymentMethod, then it is assumed they're authorized.- Parameters:
eea- Required.customerType- Required.paymentMethod- Required.
-
createSalesOrderPaymentPreference
public OrderPaymentPreference createSalesOrderPaymentPreference(Session session, ExecutionErrorAccumulator eea, Order order, Integer orderPaymentPreferenceSequence, PaymentMethod paymentMethod, PartyPaymentMethod partyPaymentMethod, Boolean wasPresent, Long maximumAmount, Integer sortOrder, PartyPK createdBy) Create an Order Payment Preference for a given Order.- Parameters:
eea- Required.order- Required.orderPaymentPreferenceSequence- Optional.paymentMethod- Required for all types except CREDIT_CARDs, GIFT_CARDs, GIFT_CERTIFICATEs.partyPaymentMethod- Required for CREDIT_CARDs, GIFT_CARDs, GIFT_CERTIFICATEs, otherwise null.wasPresent- Required for CREDIT_CARD, otherwise null.maximumAmount- Optional.sortOrder- Required.createdBy- Required.- Returns:
- The newly created OrderPaymentPreference, or null if there was an error.
-