Interface CurrentCustomerPaymentRequestService

All Known Implementing Classes:
DefaultCurrentCustomerPaymentRequestService

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

    • getPaymentRequestFromCurrentCustomer

      PaymentRequestDTO getPaymentRequestFromCurrentCustomer()
      Returns a PaymentRequestDTO 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: