public class DefaultPaymentResponseUtil extends Object implements PaymentResponseUtil
| Constructor and Description |
|---|
DefaultPaymentResponseUtil(com.broadleafcommerce.common.extension.TypeFactory typeFactory) |
| Modifier and Type | Method and Description |
|---|---|
PaymentResponse |
buildPaymentResponse(@NonNull PaymentRequest paymentRequest,
@NonNull PaymentGatewayType gatewayType,
@NonNull TransactionType transactionType)
Builds and populates a
PaymentResponse based on the provided PaymentRequest |
protected com.broadleafcommerce.common.extension.TypeFactory |
getTypeFactory() |
protected PaymentResponse |
populateBillTo(@NonNull PaymentResponse paymentResponse,
@NonNull Address<PaymentRequest> requestBillTo) |
protected PaymentResponse |
populateCustomer(@NonNull PaymentResponse paymentResponse,
@NonNull GatewayCustomer<PaymentRequest> requestCustomer) |
protected PaymentResponse |
populateShipTo(@NonNull PaymentResponse paymentResponse,
@NonNull Address<PaymentRequest> requestShipTo) |
public DefaultPaymentResponseUtil(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
public PaymentResponse buildPaymentResponse(@NonNull @NonNull PaymentRequest paymentRequest, @NonNull @NonNull PaymentGatewayType gatewayType, @NonNull @NonNull TransactionType transactionType)
PaymentResponseUtilPaymentResponse based on the provided PaymentRequestbuildPaymentResponse in interface PaymentResponseUtilpaymentRequest - the PaymentRequest used to initiate the related transactiongatewayType - the type of gateway used to execute the transactiontransactionType - the type of transaction that was executedprotected PaymentResponse populateCustomer(@NonNull @NonNull PaymentResponse paymentResponse, @NonNull @NonNull GatewayCustomer<PaymentRequest> requestCustomer)
protected PaymentResponse populateBillTo(@NonNull @NonNull PaymentResponse paymentResponse, @NonNull @NonNull Address<PaymentRequest> requestBillTo)
protected PaymentResponse populateShipTo(@NonNull @NonNull PaymentResponse paymentResponse, @NonNull @NonNull Address<PaymentRequest> requestShipTo)
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
Copyright © 2021. All rights reserved.