Interface CurrentCustomerPaymentRequestService


public interface CurrentCustomerPaymentRequestService
Simple interface for returning a PaymentRequest based on the current customer in the system (like something on threadlocal).
  • Method Details

    • getPaymentRequestFromCurrentCustomer

      PaymentRequest getPaymentRequestFromCurrentCustomer()
      Returns a PaymentRequest based on all the information from the current customer in the system, like one on threadlocal
    • addCustomerAttributeToCurrentCustomer

      void addCustomerAttributeToCurrentCustomer(String customerAttributeKey, String customerAttributeValue) throws PaymentException
      adds a concept of an "customer attribute" to the current customer in the system
      Parameters:
      customerAttributeKey -
      customerAttributeValue -
      Throws:
      PaymentException
    • addCustomerAttributeToCustomer

      void addCustomerAttributeToCustomer(Long customerId, String customerAttributeKey, String customerAttributeValue) throws PaymentException
      adds a concept of a "customer attribute" to a customer in the system based on ID.
      Parameters:
      customerId -
      customerAttributeKey -
      customerAttributeValue -
      Throws:
      PaymentException
    • retrieveCustomerAttributeFromCurrentCustomer

      String retrieveCustomerAttributeFromCurrentCustomer(String customerAttributeKey)
      retrieve a "customer attribute" value on the current customer in the system
      Parameters:
      customerAttributeKey -
      Returns:
    • retrieveCustomerAttributeFromCustomer

      String retrieveCustomerAttributeFromCustomer(Long customerId, String customerAttributeKey)
      retrieve a "customer attribute" value based on the customer id in the system
      Parameters:
      customerId -
      customerAttributeKey -
      Returns: