Class SalesOrderPaymentPreferenceLogic
java.lang.Object
com.echothree.util.server.control.BaseLogic
com.echothree.model.control.order.server.logic.OrderLogic
com.echothree.model.control.sales.server.logic.SalesOrderPaymentPreferenceLogic
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkCustomerTypePaymentMethod
(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.model.control.order.server.logic.OrderLogic
checkItemAgainstOrderPaymentPreferences, checkItemAgainstShippingMethod, createOrder, createOrderPaymentPreference, createOrderShipmentGroup, getDefaultOrderShipmentGroup, getItemsFromOrder, getOrderAliasTypeByName, getOrderByName, getOrderByNameForUpdate, getOrderCurrency, getOrderName, getOrderPaymentPreferenceByName, getOrderPaymentPreferenceByNameForUpdate, getOrderPriorityByName, getOrderPriorityByNameForUpdate, getOrderRoleTypeByName, getOrderSequence, getOrderSequenceType, getOrderTypeByName
Methods inherited from class com.echothree.util.server.control.BaseLogic
addExecutionError, addSecurityMessage, getEntityInstanceByBaseEntity, getEntityInstanceByBasePK, getSession, handleExecutionError, handleSecurityMessage, hasExecutionErrors
-
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.
-