Class DefaultTransactionResponseService
java.lang.Object
com.broadleafcommerce.paymenttransaction.service.DefaultTransactionResponseService
- All Implemented Interfaces:
TransactionResponseService
-
Constructor Summary
ConstructorDescriptionDefaultTransactionResponseService
(com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.common.extension.TypeFactory
protected void
populateBillTo
(@NonNull com.broadleafcommerce.paymentgateway.domain.GatewayTransactionResponse transactionResponse, Address billingAddress) protected void
populateShipTo
(@NonNull com.broadleafcommerce.paymentgateway.domain.GatewayTransactionResponse transactionResponse, Address shipToAddress) com.broadleafcommerce.paymentgateway.domain.GatewayTransactionResponse
populateTransactionResponse
(@NonNull Payment payment, @NonNull com.broadleafcommerce.paymentgateway.domain.enums.TransactionType transactionType, @NonNull Map<String, Object> transactionResults, @NonNull String applicationId, @NonNull String tenantId) Creates and populates aGatewayTransactionResponse
,Payment
,TransactionType
, & transaction results.
-
Constructor Details
-
DefaultTransactionResponseService
public DefaultTransactionResponseService(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
populateTransactionResponse
public com.broadleafcommerce.paymentgateway.domain.GatewayTransactionResponse populateTransactionResponse(@NonNull @NonNull Payment payment, @NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.enums.TransactionType transactionType, @NonNull @NonNull Map<String, Object> transactionResults, @NonNull @NonNull String applicationId, @NonNull @NonNull String tenantId) Description copied from interface:TransactionResponseService
Creates and populates aGatewayTransactionResponse
,Payment
,TransactionType
, & transaction results.- Specified by:
populateTransactionResponse
in interfaceTransactionResponseService
- Parameters:
payment
- the cart's payment that we are currently processingtransactionType
- the type of transaction that we are performing on the paymenttransactionResults
- the transaction results from the gatewayapplicationId
- the application ID for the payment contexttenantId
- the tenant ID for the payment context- Returns:
- the created GatewayTransactionResponse
-
populateShipTo
protected void populateShipTo(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.GatewayTransactionResponse transactionResponse, @Nullable Address shipToAddress) -
populateBillTo
protected void populateBillTo(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.GatewayTransactionResponse transactionResponse, @Nullable Address billingAddress) -
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-