Interface CurrentCustomerPaymentRequestService
-
public interface CurrentCustomerPaymentRequestServiceSimple interface for returning aPaymentRequestbased on the current customer in the system (like something on threadlocal).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddCustomerAttributeToCurrentCustomer(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.PaymentRequestgetPaymentRequestFromCurrentCustomer()Returns aPaymentRequestbased on all the information from the current customer in the system, like one on threadlocalStringretrieveCustomerAttributeFromCurrentCustomer(String customerAttributeKey)retrieve a "customer attribute" value on the current customer in the systemStringretrieveCustomerAttributeFromCustomer(Long customerId, String customerAttributeKey)retrieve a "customer attribute" value based on the customer id in the system
-
-
-
Method Detail
-
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
String retrieveCustomerAttributeFromCurrentCustomer(String customerAttributeKey)
retrieve a "customer attribute" value on the current customer in the system- Parameters:
customerAttributeKey-- Returns:
-
-