Class DefaultCurrentCustomerPaymentRequestService
java.lang.Object
org.broadleafcommerce.core.web.payment.service.DefaultCurrentCustomerPaymentRequestService
- All Implemented Interfaces:
CurrentCustomerPaymentRequestService
@Service("blDefaultCurrentCustomerPaymentRequestService")
public class DefaultCurrentCustomerPaymentRequestService
extends Object
implements CurrentCustomerPaymentRequestService
- Author:
- Elbert Bautista (elbertbautista)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomerAttributeToCurrentCustomer(String customerAttributeKey, String customerAttributeValue) voidaddCustomerAttributeToCustomer(Long customerId, String customerAttributeKey, String customerAttributeValue) protected voidlogWarningIfCustomerMismatch(Long currentCustomerId, Long customerId) retrieveCustomerAttributeFromCurrentCustomer(String customerAttributeKey) retrieveCustomerAttributeFromCustomer(Long customerId, String customerAttributeKey)
-
Field Details
-
paymentRequestDTOService
-
customerService
-
-
Constructor Details
-
DefaultCurrentCustomerPaymentRequestService
public DefaultCurrentCustomerPaymentRequestService()
-
-
Method Details
-
getPaymentRequestFromCurrentCustomer
- Specified by:
getPaymentRequestFromCurrentCustomerin interfaceCurrentCustomerPaymentRequestService
-
addCustomerAttributeToCurrentCustomer
public void addCustomerAttributeToCurrentCustomer(String customerAttributeKey, String customerAttributeValue) throws PaymentException - Specified by:
addCustomerAttributeToCurrentCustomerin interfaceCurrentCustomerPaymentRequestService- Throws:
PaymentException
-
addCustomerAttributeToCustomer
public void addCustomerAttributeToCustomer(Long customerId, String customerAttributeKey, String customerAttributeValue) throws PaymentException - Specified by:
addCustomerAttributeToCustomerin interfaceCurrentCustomerPaymentRequestService- Throws:
PaymentException
-
retrieveCustomerAttributeFromCurrentCustomer
- Specified by:
retrieveCustomerAttributeFromCurrentCustomerin interfaceCurrentCustomerPaymentRequestService
-
retrieveCustomerAttributeFromCustomer
- Specified by:
retrieveCustomerAttributeFromCustomerin interfaceCurrentCustomerPaymentRequestService
-
logWarningIfCustomerMismatch
-