Class LoyaltyUtils

java.lang.Object
com.skava.orchestration.utils.LoyaltyUtils

public final class LoyaltyUtils extends Object

The Class LoyaltyUtils

This util class is used for loyalty calculations.
Author:
Infosys Equinox
  • 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 percentage
      redeemloyaltyproperty - Indicates the store property redeem loyalty property.
      type - Indicates the reward type.
      userMath - contains the user's rewards.
    • getLoyaltyUserMath

      public static LoyaltyUserMath getLoyaltyUserMath(SFCart sfCart, String key)
      Parameters:
      sfCart - Indicates a SFCart, contains the cart data.
      key - Indicates the reward type.
      Returns: