Class PaymentValidatePayment
java.lang.Object
com.skava.cart.orchestration.processor.PaymentValidatePayment
- All Implemented Interfaces:
org.apache.camel.Processor
The Class PaymentValidatePayment
This processor class is used to validate the payment- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidloyaltyPointsValidate(org.apache.camel.Exchange exchange, List<PaymentOrchestration> payments, SFCart sfcart) This process method is used to set the property based on type Loyaltyvoidprocess(org.apache.camel.Exchange exchange) This process method is used to validate the paymentstatic voidsetPropertyForLoyalty(org.apache.camel.Exchange exchange, PaymentOrchestration paymentRequest, SFCart sfcart, BigDecimal openToRedeemPoints) This method sets property for loyalty
-
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:
processin interfaceorg.apache.camel.Processor- Parameters:
exchange- Indicates aExchangeinstance, 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 exchangepayments- Indicates the list of paymentssfcart- 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 exchangepaymentRequest- paymentRequestsfcart- sfcartopenToRedeemPoints- indicates BigDecimal number
-