Interface CurrentCustomerPaymentRequestService
public interface CurrentCustomerPaymentRequestService
Simple interface for returning a
PaymentRequest based on the current customer in the
system (like something on threadlocal).-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomerAttributeToCurrentCustomer(String customerAttributeKey, String customerAttributeValue) adds a concept of an "customer attribute" to the current customer in the systemvoidaddCustomerAttributeToCustomer(Long customerId, String customerAttributeKey, String customerAttributeValue) adds a concept of a "customer attribute" to a customer in the system based on ID.Returns aPaymentRequestbased on all the information from the current customer in the system, like one on threadlocalretrieveCustomerAttributeFromCurrentCustomer(String customerAttributeKey) retrieve a "customer attribute" value on the current customer in the systemretrieveCustomerAttributeFromCustomer(Long customerId, String customerAttributeKey) retrieve a "customer attribute" value based on the customer id in the system
-
Method Details
-
getPaymentRequestFromCurrentCustomer
PaymentRequest getPaymentRequestFromCurrentCustomer()Returns aPaymentRequestbased 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
retrieve a "customer attribute" value on the current customer in the system- Parameters:
customerAttributeKey-- Returns:
-
retrieveCustomerAttributeFromCustomer
retrieve a "customer attribute" value based on the customer id in the system- Parameters:
customerId-customerAttributeKey-- Returns:
-