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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpaymentItemDTOTransformation(PaymentOrchestration payment, String defaultCurrency) This method is used to transform Payment item data transfer objectvoidprocess(org.apache.camel.Exchange exchange) This process method is used to the cart payment / payment items from orchestration model object
-
Field Details
-
CLIENTTOKENID
- See Also:
-
DEVICE_DATA
- See Also:
-
PAYMENT_OPTION_ID
- See Also:
-
SUBSCRIPTION_TYPE
- See Also:
-
ORDER_LINE
- See Also:
-
-
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:
processin interfaceorg.apache.camel.Processor- Parameters:
exchange- aExchangeinstance, 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 aPaymentOrchestration, contains the payment details of the cartdefaultCurrency- Indicates the default currency- Returns:
- Returns a
PaymentItem, define the request and response paymentItem object.
-