@Service(value="blDefaultCurrentCustomerPaymentRequestService") public class DefaultCurrentCustomerPaymentRequestService extends Object implements org.broadleafcommerce.common.payment.service.CurrentCustomerPaymentRequestService
| Modifier and Type | Field and Description |
|---|---|
protected 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) |
org.broadleafcommerce.common.payment.dto.PaymentRequestDTO |
getPaymentRequestFromCurrentCustomer() |
protected void |
logWarningIfCustomerMismatch(Long currentCustomerId,
Long customerId) |
String |
retrieveCustomerAttributeFromCurrentCustomer(String customerAttributeKey) |
String |
retrieveCustomerAttributeFromCustomer(Long customerId,
String customerAttributeKey) |
protected PaymentRequestDTOService paymentRequestDTOService
protected CustomerService customerService
public DefaultCurrentCustomerPaymentRequestService()
public org.broadleafcommerce.common.payment.dto.PaymentRequestDTO getPaymentRequestFromCurrentCustomer()
getPaymentRequestFromCurrentCustomer in interface org.broadleafcommerce.common.payment.service.CurrentCustomerPaymentRequestServicepublic void addCustomerAttributeToCurrentCustomer(String customerAttributeKey, String customerAttributeValue) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
addCustomerAttributeToCurrentCustomer in interface org.broadleafcommerce.common.payment.service.CurrentCustomerPaymentRequestServiceorg.broadleafcommerce.common.vendor.service.exception.PaymentExceptionpublic void addCustomerAttributeToCustomer(Long customerId, String customerAttributeKey, String customerAttributeValue) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
addCustomerAttributeToCustomer in interface org.broadleafcommerce.common.payment.service.CurrentCustomerPaymentRequestServiceorg.broadleafcommerce.common.vendor.service.exception.PaymentExceptionpublic String retrieveCustomerAttributeFromCurrentCustomer(String customerAttributeKey)
retrieveCustomerAttributeFromCurrentCustomer in interface org.broadleafcommerce.common.payment.service.CurrentCustomerPaymentRequestServicepublic String retrieveCustomerAttributeFromCustomer(Long customerId, String customerAttributeKey)
retrieveCustomerAttributeFromCustomer in interface org.broadleafcommerce.common.payment.service.CurrentCustomerPaymentRequestServiceCopyright © 2019. All rights reserved.