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