Class PaymentRequestDTOServiceImpl
java.lang.Object
org.broadleafcommerce.core.payment.service.PaymentRequestDTOServiceImpl
- All Implemented Interfaces:
PaymentRequestDTOService
@Service("blPaymentRequestDTOService")
public class PaymentRequestDTOServiceImpl
extends Object
implements PaymentRequestDTOService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.common.payment.dto.PaymentRequestDTOpopulateCustomerInfo(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO, org.broadleafcommerce.profile.core.domain.Customer customer) Uses customer information to populate thePaymentRequestDTO.customer()objectorg.broadleafcommerce.common.payment.dto.PaymentRequestDTOpopulateCustomerInfo(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO, org.broadleafcommerce.profile.core.domain.Customer customer, String defaultEmailAddress) Uses customer information to populate thePaymentRequestDTO.customer()object
-
Constructor Details
-
PaymentRequestDTOServiceImpl
public PaymentRequestDTOServiceImpl()
-
-
Method Details
-
populateCustomerInfo
public org.broadleafcommerce.common.payment.dto.PaymentRequestDTO populateCustomerInfo(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO, org.broadleafcommerce.profile.core.domain.Customer customer) Description copied from interface:PaymentRequestDTOServiceUses customer information to populate thePaymentRequestDTO.customer()object- Specified by:
populateCustomerInfoin interfacePaymentRequestDTOService- Parameters:
requestDTO- thePaymentRequestDTOthat should be populatedcustomer- theCustomerto get data from
-
populateCustomerInfo
public org.broadleafcommerce.common.payment.dto.PaymentRequestDTO populateCustomerInfo(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO, org.broadleafcommerce.profile.core.domain.Customer customer, String defaultEmailAddress) Description copied from interface:PaymentRequestDTOServiceUses customer information to populate thePaymentRequestDTO.customer()object- Specified by:
populateCustomerInfoin interfacePaymentRequestDTOService- Parameters:
requestDTO- thePaymentRequestDTOthat should be populatedcustomer- theCustomerto get data fromdefaultEmailAddress- the default email address to use ifCustomer.getEmailAddress()returns `null`
-