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_AUTH
transaction 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 boolean
canHandle(@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:VerifoneRequestResponseTransformer
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
-
createVerifoneRequest
public Map<String,Object> createVerifoneRequest(@NonNull @NonNull VerifonePaymentRequest verifonePaymentRequest)
Description copied from interface:VerifoneRequestResponseTransformer
Creates the Verifone request body based onVerifonePaymentRequest
.- Specified by:
createVerifoneRequest
in interfaceVerifoneRequestResponseTransformer
- Overrides:
createVerifoneRequest
in classAbstractVerifoneRequestResponseTransformer
- Parameters:
verifonePaymentRequest
- the verifone payment request- Returns:
- the Verifone request body
-
-