public interface CurrentCustomerPaymentRequestService
PaymentRequestDTO
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.
|
PaymentRequestDTO |
getPaymentRequestFromCurrentCustomer()
Returns a
PaymentRequestDTO 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
|
PaymentRequestDTO getPaymentRequestFromCurrentCustomer()
PaymentRequestDTO
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
- PaymentException
void addCustomerAttributeToCustomer(Long customerId, String customerAttributeKey, String customerAttributeValue) throws PaymentException
customerId
- customerAttributeKey
- customerAttributeValue
- PaymentException
String retrieveCustomerAttributeFromCurrentCustomer(String customerAttributeKey)
customerAttributeKey
- Copyright © 2022. All rights reserved.