Class AdyenCaptureRequestResponseTransformer
java.lang.Object
com.broadleafcommerce.adyen.service.requestresponse.AbstractRequestResponseTransformer
com.broadleafcommerce.adyen.service.requestresponse.AdyenCaptureRequestResponseTransformer
- All Implemented Interfaces:
 RequestResponseTransformer
The transformer for 
DefaultTransactionTypes.CAPTURE transaction type.- 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionAdyenCaptureRequestResponseTransformer(AdyenConfigurationProperties configProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory)  - 
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this transformer can handle the specified transaction type.createAdyenRequest(@NonNull AdyenPaymentRequest adyenPaymentRequest) Creates the Adyen request body based onAdyenPaymentRequest.com.broadleafcommerce.paymentgateway.domain.PaymentResponsepopulatePaymentResponse(@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
- 
AdyenCaptureRequestResponseTransformer
public AdyenCaptureRequestResponseTransformer(AdyenConfigurationProperties configProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory)  
 - 
 - 
Method Details
- 
canHandle
Description copied from interface:RequestResponseTransformerChecks 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:RequestResponseTransformerCreates 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:RequestResponseTransformerPopulates 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
 
 
 -