Interface CurrentCustomerPaymentRequestService
-
public interface CurrentCustomerPaymentRequestService
Simple interface for returning aPaymentRequest
based on the current customer in the system (like something on threadlocal).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addCustomerAttributeToCurrentCustomer(String customerAttributeKey, String customerAttributeValue)
adds a concept of an "customer attribute" to the current customer in the systemvoid
addCustomerAttributeToCustomer(Long customerId, String customerAttributeKey, String customerAttributeValue)
adds a concept of a "customer attribute" to a customer in the system based on ID.PaymentRequest
getPaymentRequestFromCurrentCustomer()
Returns aPaymentRequest
based on all the information from the current customer in the system, like one on threadlocalString
retrieveCustomerAttributeFromCurrentCustomer(String customerAttributeKey)
retrieve a "customer attribute" value on the current customer in the systemString
retrieveCustomerAttributeFromCustomer(Long customerId, String customerAttributeKey)
retrieve a "customer attribute" value based on the customer id in the system
-
-
-
Method Detail
-
getPaymentRequestFromCurrentCustomer
PaymentRequest getPaymentRequestFromCurrentCustomer()
Returns aPaymentRequest
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:
-
-