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 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:
      getPaymentRequestFromCurrentCustomer in interface org.broadleafcommerce.common.payment.service.CurrentCustomerPaymentRequestService
    • addCustomerAttributeToCurrentCustomer

      public void addCustomerAttributeToCurrentCustomer(String customerAttributeKey, String customerAttributeValue) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Specified by:
      addCustomerAttributeToCurrentCustomer in interface org.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:
      addCustomerAttributeToCustomer in interface org.broadleafcommerce.common.payment.service.CurrentCustomerPaymentRequestService
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException
    • retrieveCustomerAttributeFromCurrentCustomer

      public String retrieveCustomerAttributeFromCurrentCustomer(String customerAttributeKey)
      Specified by:
      retrieveCustomerAttributeFromCurrentCustomer in interface org.broadleafcommerce.common.payment.service.CurrentCustomerPaymentRequestService
    • retrieveCustomerAttributeFromCustomer

      public String retrieveCustomerAttributeFromCustomer(Long customerId, String customerAttributeKey)
      Specified by:
      retrieveCustomerAttributeFromCustomer in interface org.broadleafcommerce.common.payment.service.CurrentCustomerPaymentRequestService
    • logWarningIfCustomerMismatch

      protected void logWarningIfCustomerMismatch(Long currentCustomerId, Long customerId)