Class VerifoneReverseAuthorizeRequestResponseTransformer
- java.lang.Object
-
- com.broadleafcommerce.payment.service.gateway.requestresponse.AbstractVerifoneRequestResponseTransformer
-
- com.broadleafcommerce.payment.service.gateway.requestresponse.VerifoneReverseAuthorizeRequestResponseTransformer
-
- All Implemented Interfaces:
VerifoneRequestResponseTransformer
public class VerifoneReverseAuthorizeRequestResponseTransformer extends AbstractVerifoneRequestResponseTransformer
The transformer forDefaultTransactionTypes.REVERSE_AUTHtransaction type.- Author:
- Dima Myroniuk (dmyroniuk)
-
-
Constructor Summary
Constructors Constructor Description VerifoneReverseAuthorizeRequestResponseTransformer(VerifoneConfigurationProperties configProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanHandle(@NonNull String transactionType)Checks if this transformer can handle the specified transaction type.Map<String,Object>createVerifoneRequest(@NonNull VerifonePaymentRequest verifonePaymentRequest)Creates the Verifone request body based onVerifonePaymentRequest.-
Methods inherited from class com.broadleafcommerce.payment.service.gateway.requestresponse.AbstractVerifoneRequestResponseTransformer
buildResponseMap, getAmountInMinorUnits, getConfigProperties, getObjectMapper, identifyDeclineType, identifyFailureType, isSuccess, populatePaymentResponse, putIfNotBlank
-
-
-
-
Constructor Detail
-
VerifoneReverseAuthorizeRequestResponseTransformer
public VerifoneReverseAuthorizeRequestResponseTransformer(VerifoneConfigurationProperties configProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
canHandle
public boolean canHandle(@NonNull @NonNull String transactionType)Description copied from interface:VerifoneRequestResponseTransformerChecks 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
-
createVerifoneRequest
public Map<String,Object> createVerifoneRequest(@NonNull @NonNull VerifonePaymentRequest verifonePaymentRequest)
Description copied from interface:VerifoneRequestResponseTransformerCreates the Verifone request body based onVerifonePaymentRequest.- Specified by:
createVerifoneRequestin interfaceVerifoneRequestResponseTransformer- Overrides:
createVerifoneRequestin classAbstractVerifoneRequestResponseTransformer- Parameters:
verifonePaymentRequest- the verifone payment request- Returns:
- the Verifone request body
-
-