Class CheckoutComRequestResponseTransformer
java.lang.Object
com.broadleafcommerce.payment.service.gateway.requestresponse.CheckoutComRequestResponseTransformer
-
Constructor Summary
ConstructorDescriptionCheckoutComRequestResponseTransformer
(com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil paymentResponseUtil) -
Method Summary
Modifier and TypeMethodDescriptioncom.checkout.payments.CaptureRequest
buildCaptureRequest
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) com.broadleafcommerce.paymentgateway.domain.PaymentResponse
buildCaptureResponse
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, com.checkout.payments.CaptureResponse captureResponse) protected com.broadleafcommerce.paymentgateway.domain.NextAction
buildNextAction
(com.checkout.payments.response.PaymentResponse checkoutPaymentResponse) com.checkout.payments.request.PaymentRequest
buildPaymentRequest
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, boolean isCapture) com.checkout.payments.request.PaymentRequest
buildPaymentRequestForKNET
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) com.broadleafcommerce.paymentgateway.domain.PaymentResponse
buildPaymentResponse
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, com.checkout.payments.response.PaymentResponse checkoutPaymentResponse, boolean isCapture) com.broadleafcommerce.paymentgateway.domain.PaymentResponse
buildPaymentResponseForKNET
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, com.checkout.payments.response.PaymentResponse checkoutPaymentResponse) protected String
buildRawResponse
(@NonNull com.checkout.common.Resource resource) com.checkout.payments.RefundRequest
buildRefundRequest
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) com.broadleafcommerce.paymentgateway.domain.PaymentResponse
buildRefundResponse
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, com.checkout.payments.RefundResponse refundResponse) protected com.checkout.payments.request.source.AbstractRequestSource
buildRequestSource
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) protected com.checkout.payments.ThreeDSRequest
buildThreeDSecureRequest
(com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) com.checkout.payments.VoidRequest
buildVoidRequest
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) com.broadleafcommerce.paymentgateway.domain.PaymentResponse
buildVoidResponse
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, com.checkout.payments.VoidResponse voidResponse) protected String
getAdditionalField
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, @NonNull String fieldName) protected Long
getAmountInMinorUnits
(@NonNull javax.money.MonetaryAmount amount) Return the Amount in Minor Units.protected String
getLanguage
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) getMetadata
(com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) protected com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil
protected String
getRedirectUrl
(com.checkout.payments.response.PaymentResponse checkoutPaymentResponse) getSavedPaymentMethodProperties
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, com.checkout.payments.response.PaymentResponse checkoutPaymentResponse) protected com.broadleafcommerce.paymentgateway.domain.enums.TransactionType
getTransactionType
(boolean isCapture) protected com.broadleafcommerce.common.extension.TypeFactory
void
setTypeFactory
(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
Constructor Details
-
CheckoutComRequestResponseTransformer
public CheckoutComRequestResponseTransformer(com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil paymentResponseUtil)
-
-
Method Details
-
buildPaymentRequest
public com.checkout.payments.request.PaymentRequest buildPaymentRequest(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, boolean isCapture) -
buildPaymentRequestForKNET
public com.checkout.payments.request.PaymentRequest buildPaymentRequestForKNET(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) -
getLanguage
protected String getLanguage(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) -
getAdditionalField
-
buildPaymentResponse
public com.broadleafcommerce.paymentgateway.domain.PaymentResponse buildPaymentResponse(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, @NonNull com.checkout.payments.response.PaymentResponse checkoutPaymentResponse, boolean isCapture) -
buildPaymentResponseForKNET
public com.broadleafcommerce.paymentgateway.domain.PaymentResponse buildPaymentResponseForKNET(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, @NonNull com.checkout.payments.response.PaymentResponse checkoutPaymentResponse) -
buildNextAction
@Nullable protected com.broadleafcommerce.paymentgateway.domain.NextAction buildNextAction(@NonNull com.checkout.payments.response.PaymentResponse checkoutPaymentResponse) -
buildRawResponse
-
getSavedPaymentMethodProperties
-
buildCaptureRequest
public com.checkout.payments.CaptureRequest buildCaptureRequest(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) -
buildCaptureResponse
public com.broadleafcommerce.paymentgateway.domain.PaymentResponse buildCaptureResponse(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, @NonNull com.checkout.payments.CaptureResponse captureResponse) -
buildVoidRequest
public com.checkout.payments.VoidRequest buildVoidRequest(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) -
buildVoidResponse
public com.broadleafcommerce.paymentgateway.domain.PaymentResponse buildVoidResponse(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, @NonNull com.checkout.payments.VoidResponse voidResponse) -
buildRefundRequest
public com.checkout.payments.RefundRequest buildRefundRequest(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) -
buildRefundResponse
public com.broadleafcommerce.paymentgateway.domain.PaymentResponse buildRefundResponse(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, @NonNull com.checkout.payments.RefundResponse refundResponse) -
buildRequestSource
protected com.checkout.payments.request.source.AbstractRequestSource buildRequestSource(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) -
buildThreeDSecureRequest
protected com.checkout.payments.ThreeDSRequest buildThreeDSecureRequest(com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) -
getMetadata
-
getAmountInMinorUnits
Return the Amount in Minor Units.- Parameters:
amount
- Object of MonetaryAmount which contains amount and currency to be used in the Checkout-com transactions.- Returns:
- Amount in the minor unit of currency
-
getTransactionType
protected com.broadleafcommerce.paymentgateway.domain.enums.TransactionType getTransactionType(boolean isCapture) -
getRedirectUrl
@Nullable protected String getRedirectUrl(com.checkout.payments.response.PaymentResponse checkoutPaymentResponse) -
getPaymentResponseUtil
protected com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil getPaymentResponseUtil() -
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory() -
setTypeFactory
@Autowired public void setTypeFactory(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-