public interface CurrentCustomerPaymentRequestService
PaymentRequest based on the current customer in the
system (like something on threadlocal).| Modifier and Type | Method and Description |
|---|---|
void |
addCustomerAttributeToCurrentCustomer(String customerAttributeKey,
String customerAttributeValue)
adds a concept of an "customer attribute" to the current customer in the system
|
void |
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 a
PaymentRequest based on all the information from the current customer in
the system, like one on threadlocal |
String |
retrieveCustomerAttributeFromCurrentCustomer(String customerAttributeKey)
retrieve a "customer attribute" value on the current customer in the system
|
String |
retrieveCustomerAttributeFromCustomer(Long customerId,
String customerAttributeKey)
retrieve a "customer attribute" value based on the customer id in the system
|
PaymentRequest getPaymentRequestFromCurrentCustomer()
PaymentRequest based on all the information from the current customer in
the system, like one on threadlocalvoid addCustomerAttributeToCurrentCustomer(String customerAttributeKey, String customerAttributeValue) throws PaymentException
customerAttributeKey - customerAttributeValue - PaymentExceptionvoid addCustomerAttributeToCustomer(Long customerId, String customerAttributeKey, String customerAttributeValue) throws PaymentException
customerId - customerAttributeKey - customerAttributeValue - PaymentExceptionString retrieveCustomerAttributeFromCurrentCustomer(String customerAttributeKey)
customerAttributeKey - Copyright © 2021. All rights reserved.