@Service(value="blDefaultCurrentCustomerPaymentRequestService") public class DefaultCurrentCustomerPaymentRequestService extends Object implements CurrentCustomerPaymentRequestService
| Modifier and Type | Field and Description |
|---|---|
protected org.broadleafcommerce.profile.core.service.CustomerService |
customerService |
protected PaymentRequestDTOService |
paymentRequestDTOService |
| Constructor and Description |
|---|
DefaultCurrentCustomerPaymentRequestService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomerAttributeToCurrentCustomer(String customerAttributeKey,
String customerAttributeValue) |
void |
addCustomerAttributeToCustomer(Long customerId,
String customerAttributeKey,
String customerAttributeValue) |
PaymentRequestDTO |
getPaymentRequestFromCurrentCustomer() |
protected void |
logWarningIfCustomerMismatch(Long currentCustomerId,
Long customerId) |
String |
retrieveCustomerAttributeFromCurrentCustomer(String customerAttributeKey) |
String |
retrieveCustomerAttributeFromCustomer(Long customerId,
String customerAttributeKey) |
protected PaymentRequestDTOService paymentRequestDTOService
protected org.broadleafcommerce.profile.core.service.CustomerService customerService
public DefaultCurrentCustomerPaymentRequestService()
public PaymentRequestDTO getPaymentRequestFromCurrentCustomer()
getPaymentRequestFromCurrentCustomer in interface CurrentCustomerPaymentRequestServicepublic void addCustomerAttributeToCurrentCustomer(String customerAttributeKey, String customerAttributeValue) throws PaymentException
addCustomerAttributeToCurrentCustomer in interface CurrentCustomerPaymentRequestServicePaymentExceptionpublic void addCustomerAttributeToCustomer(Long customerId, String customerAttributeKey, String customerAttributeValue) throws PaymentException
addCustomerAttributeToCustomer in interface CurrentCustomerPaymentRequestServicePaymentExceptionpublic String retrieveCustomerAttributeFromCurrentCustomer(String customerAttributeKey)
retrieveCustomerAttributeFromCurrentCustomer in interface CurrentCustomerPaymentRequestServicepublic String retrieveCustomerAttributeFromCustomer(Long customerId, String customerAttributeKey)
retrieveCustomerAttributeFromCustomer in interface CurrentCustomerPaymentRequestServiceCopyright © 2022. All rights reserved.