Class DefaultCustomerPaymentGatewayService
java.lang.Object
org.broadleafcommerce.core.payment.service.DefaultCustomerPaymentGatewayService
- All Implemented Interfaces:
org.broadleafcommerce.common.payment.service.CustomerPaymentGatewayService
@Service("blCustomerPaymentGatewayService")
public class DefaultCustomerPaymentGatewayService
extends Object
implements org.broadleafcommerce.common.payment.service.CustomerPaymentGatewayService
Core framework implementation of the
CustomerPaymentGatewayService.- Author:
- Elbert Bautista (elbertbautista)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.broadleafcommerce.profile.core.service.AddressServiceprotected org.broadleafcommerce.profile.core.service.CustomerPaymentServiceprotected org.broadleafcommerce.profile.core.service.CustomerServiceprotected PaymentResponseDTOToEntityService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCustomerPaymentFromResponseDTO(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration config) voiddeleteCustomerPaymentFromResponseDTO(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration config) protected booleanisNewDefaultPaymentMethod(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO) protected voidpopulateCustomerPayment(org.broadleafcommerce.profile.core.domain.CustomerPayment customerPayment, org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration config) updateCustomerPaymentFromResponseDTO(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration config) protected voidvalidateResponseAndConfig(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration config)
-
Field Details
-
addressService
protected org.broadleafcommerce.profile.core.service.AddressService addressService -
customerPaymentService
protected org.broadleafcommerce.profile.core.service.CustomerPaymentService customerPaymentService -
customerService
protected org.broadleafcommerce.profile.core.service.CustomerService customerService -
dtoToEntityService
-
-
Constructor Details
-
DefaultCustomerPaymentGatewayService
public DefaultCustomerPaymentGatewayService()
-
-
Method Details
-
createCustomerPaymentFromResponseDTO
public Long createCustomerPaymentFromResponseDTO(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration config) throws IllegalArgumentException - Specified by:
createCustomerPaymentFromResponseDTOin interfaceorg.broadleafcommerce.common.payment.service.CustomerPaymentGatewayService- Throws:
IllegalArgumentException
-
isNewDefaultPaymentMethod
protected boolean isNewDefaultPaymentMethod(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO) -
updateCustomerPaymentFromResponseDTO
public Long updateCustomerPaymentFromResponseDTO(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration config) throws IllegalArgumentException - Specified by:
updateCustomerPaymentFromResponseDTOin interfaceorg.broadleafcommerce.common.payment.service.CustomerPaymentGatewayService- Throws:
IllegalArgumentException
-
deleteCustomerPaymentFromResponseDTO
public void deleteCustomerPaymentFromResponseDTO(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration config) throws IllegalArgumentException - Specified by:
deleteCustomerPaymentFromResponseDTOin interfaceorg.broadleafcommerce.common.payment.service.CustomerPaymentGatewayService- Throws:
IllegalArgumentException
-
validateResponseAndConfig
protected void validateResponseAndConfig(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration config) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
populateCustomerPayment
protected void populateCustomerPayment(org.broadleafcommerce.profile.core.domain.CustomerPayment customerPayment, org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration config)
-