Class AdyenReverseAuthorizeRequestResponseTransformer

java.lang.Object
com.broadleafcommerce.adyen.service.requestresponse.AbstractRequestResponseTransformer
com.broadleafcommerce.adyen.service.requestresponse.AdyenReverseAuthorizeRequestResponseTransformer
All Implemented Interfaces:
RequestResponseTransformer

public class AdyenReverseAuthorizeRequestResponseTransformer extends AbstractRequestResponseTransformer
The transformer for DefaultTransactionTypes.REVERSE_AUTH transaction type.
  • Field Details

  • Constructor Details

    • AdyenReverseAuthorizeRequestResponseTransformer

      public AdyenReverseAuthorizeRequestResponseTransformer(AdyenConfigurationProperties configProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
  • Method Details

    • canHandle

      public boolean canHandle(@NonNull @NonNull String transactionType)
      Description copied from interface: RequestResponseTransformer
      Checks if this transformer can handle the specified transaction type.
      Parameters:
      transactionType - the transaction type of the request
      Returns:
      true if this transformer can be used for the specified request
    • createAdyenRequest

      public Map<String,Object> createAdyenRequest(@NonNull @NonNull AdyenPaymentRequest adyenPaymentRequest)
      Description copied from interface: RequestResponseTransformer
      Creates the Adyen request body based on AdyenPaymentRequest.
      Parameters:
      adyenPaymentRequest - the adyen payment request
      Returns:
      the Adyen request body
    • populatePaymentResponse

      public com.broadleafcommerce.paymentgateway.domain.PaymentResponse populatePaymentResponse(@NonNull @NonNull AdyenPaymentRequest adyenPaymentRequest, @NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull @NonNull AdyenResponse adyenResponse)
      Description copied from interface: RequestResponseTransformer
      Populates the payment response based on the response from the Adyen API.
      Parameters:
      adyenPaymentRequest - the adyen payment request
      paymentResponse - the payment response to populate
      adyenResponse - the response from Adyen API
      Returns:
      the populated payment response