Package com.skava.orchestration.utils
Class LoyaltyUtils
java.lang.Object
com.skava.orchestration.utils.LoyaltyUtils
The Class LoyaltyUtils
This util class is used for loyalty calculations.- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcalculateRedeemData(org.apache.camel.Exchange exchange, BigDecimal pointValueInPriceUnitVal, BigDecimal eligiblePriceToPayByPointsVal, String redeemloyaltyproperty, String type, LoyaltyUserMath userMath) This method is used to calculate the totalPointstoPay for a reward.static LoyaltyUserMathgetLoyaltyUserMath(SFCart sfCart, String key)
-
Method Details
-
calculateRedeemData
public static void calculateRedeemData(org.apache.camel.Exchange exchange, BigDecimal pointValueInPriceUnitVal, BigDecimal eligiblePriceToPayByPointsVal, String redeemloyaltyproperty, String type, LoyaltyUserMath userMath) This method is used to calculate the totalPointstoPay for a reward.- Parameters:
exchange-pointValueInPriceUnitVal- Indicates the store property point value in price unit.eligiblePriceToPayByPointsVal- Indicates the store property percentageredeemloyaltyproperty- Indicates the store property redeem loyalty property.type- Indicates the reward type.userMath- contains the user's rewards.
-
getLoyaltyUserMath
- Parameters:
sfCart- Indicates aSFCart, contains the cart data.key- Indicates the reward type.- Returns:
-