Class PaymentValidatePayment

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

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

The Class PaymentValidatePayment

This processor class is used to validate the payment
Author:
Infosys Equinox
  • Constructor Details

    • PaymentValidatePayment

      public PaymentValidatePayment()
  • Method Details

    • process

      public void process(org.apache.camel.Exchange exchange)
      This process method is used to validate the payment
      Specified by:
      process in interface org.apache.camel.Processor
      Parameters:
      exchange - Indicates a Exchange instance, which holds the information during the entire routing of a Message received by a Consumer.
    • loyaltyPointsValidate

      public void loyaltyPointsValidate(org.apache.camel.Exchange exchange, List<PaymentOrchestration> payments, SFCart sfcart)
      This process method is used to set the property based on type Loyalty
      Parameters:
      exchange - Indicates the exchange
      payments - Indicates the list of payments
      sfcart - Indicates the sfcart
    • setPropertyForLoyalty

      public static void setPropertyForLoyalty(org.apache.camel.Exchange exchange, PaymentOrchestration paymentRequest, SFCart sfcart, BigDecimal openToRedeemPoints)
      This method sets property for loyalty
      Parameters:
      exchange - indicates exchange
      paymentRequest - paymentRequest
      sfcart - sfcart
      openToRedeemPoints - indicates BigDecimal number