Class DefaultTransactionResponseService

java.lang.Object
com.broadleafcommerce.paymenttransaction.service.DefaultTransactionResponseService
All Implemented Interfaces:
TransactionResponseService

public class DefaultTransactionResponseService extends Object implements TransactionResponseService
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultTransactionResponseService(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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 a GatewayTransactionResponse, Payment, TransactionType, & transaction results.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 a GatewayTransactionResponse, Payment, TransactionType, & transaction results.
      Specified by:
      populateTransactionResponse in interface TransactionResponseService
      Parameters:
      payment - the cart's payment that we are currently processing
      transactionType - the type of transaction that we are performing on the payment
      transactionResults - the transaction results from the gateway
      applicationId - the application ID for the payment context
      tenantId - 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()