Class PaymentToPaymentDTOConversion

java.lang.Object
com.skava.cart.orchestration.processor.PaymentToPaymentDTOConversion
All Implemented Interfaces:
org.apache.camel.Processor

@Service public class PaymentToPaymentDTOConversion extends Object implements org.apache.camel.Processor

The Class PaymentToPaymentDTOConversion

This processor class is used to the cart payment / payment items from orchestration model object
Author:
Infosys Equinox
  • Field Details

  • Constructor Details

    • PaymentToPaymentDTOConversion

      public PaymentToPaymentDTOConversion()
  • Method Details

    • process

      public void process(org.apache.camel.Exchange exchange)
      This process method is used to the cart payment / payment items from orchestration model object
      Specified by:
      process in interface org.apache.camel.Processor
      Parameters:
      exchange - a Exchange instance, which holds the information during the entire routing of a Message received by a Consumer.
    • paymentItemDTOTransformation

      public PaymentItem paymentItemDTOTransformation(PaymentOrchestration payment, String defaultCurrency)
      This method is used to transform Payment item data transfer object
      Parameters:
      payment - Indicates a PaymentOrchestration, contains the payment details of the cart
      defaultCurrency - Indicates the default currency
      Returns:
      Returns a PaymentItem, define the request and response paymentItem object.