Class SalesOrderPaymentPreferenceLogic

java.lang.Object
com.echothree.util.server.control.BaseLogic
com.echothree.model.control.sales.server.logic.SalesOrderPaymentPreferenceLogic

@ApplicationScoped public class SalesOrderPaymentPreferenceLogic extends BaseLogic
  • Constructor Details

  • Method Details

    • 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.