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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAdyenReverseAuthorizeRequestResponseTransformer
(AdyenConfigurationProperties configProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if this transformer can handle the specified transaction type.createAdyenRequest
(@NonNull AdyenPaymentRequest adyenPaymentRequest) Creates the Adyen request body based onAdyenPaymentRequest
.com.broadleafcommerce.paymentgateway.domain.PaymentResponse
populatePaymentResponse
(@NonNull AdyenPaymentRequest adyenPaymentRequest, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull AdyenResponse adyenResponse) Populates the payment response based on the response from the Adyen API.Methods inherited from class com.broadleafcommerce.adyen.service.requestresponse.AbstractRequestResponseTransformer
addBroadleafMultiTenantMetadata, addThreeDSData, buildRawResponse, convertAmount, convertValue, getAdyenPaymentData, getAdyenPspReference, getAmountInMajorUnits, getAmountInMinorUnits, getBroadleafMultiTenantMetadata, getConfigProperties, getMerchantAccount, getObjectMapper, getPlatformStore, getRecurringProcessingModel, getTransactionTotal, getTypeFactory, identifyDeclineType, identifyFailureType, populateLineItemsIfNeeded, readValue
-
Field Details
-
RESPONSE_STATUS_RECEIVED
- See Also:
-
-
Constructor Details
-
AdyenReverseAuthorizeRequestResponseTransformer
public AdyenReverseAuthorizeRequestResponseTransformer(AdyenConfigurationProperties configProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
canHandle
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 onAdyenPaymentRequest
.- 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 requestpaymentResponse
- the payment response to populateadyenResponse
- the response from Adyen API- Returns:
- the populated payment response
-