Class CheckoutComRequestResponseTransformer

java.lang.Object
com.broadleafcommerce.payment.service.gateway.requestresponse.CheckoutComRequestResponseTransformer

public class CheckoutComRequestResponseTransformer extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    CheckoutComRequestResponseTransformer(com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil paymentResponseUtil)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.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)
     
    protected Map<String,Object>
    getMetadata(com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
     
    protected com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil
     
    protected String
    getRedirectUrl(com.checkout.payments.response.PaymentResponse checkoutPaymentResponse)
     
    protected Map<String,String>
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      @Nullable protected String getAdditionalField(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, @NonNull @NonNull String fieldName)
    • 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

      protected String buildRawResponse(@NonNull @NonNull com.checkout.common.Resource resource)
    • getSavedPaymentMethodProperties

      protected Map<String,String> getSavedPaymentMethodProperties(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, @NonNull com.checkout.payments.response.PaymentResponse checkoutPaymentResponse)
    • 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

      @Nullable protected Map<String,Object> getMetadata(com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
    • getAmountInMinorUnits

      protected Long getAmountInMinorUnits(@NonNull @NonNull javax.money.MonetaryAmount amount)
      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)