Class RedemptionLevelDiscount


  • public class RedemptionLevelDiscount
    extends LoyaltyRedemptionLevel
    Represents a redemption level where the reward is a discount. This class extends LoyaltyRedemptionLevel and includes a property for the discount percentage or amount associated with the redemption level. The discount is applied based on the member's eligibility.
    Author:
    nikritikos
    • Constructor Detail

      • RedemptionLevelDiscount

        public RedemptionLevelDiscount()
        Default constructor required for JAX-RS (Java API for RESTful Web Services).
      • RedemptionLevelDiscount

        public RedemptionLevelDiscount​(Integer points,
                                       Double discount,
                                       String memberCategoryCode,
                                       String memberTagCode,
                                       String memberStatusCode)
        Constructs a RedemptionLevelDiscount object with specified values.
        Parameters:
        points - the number of points required for this redemption level
        discount - the discount associated with this redemption level
        memberCategoryCode - the member category code for eligibility
        memberTagCode - the member tag code for eligibility
        memberStatusCode - the member status code for eligibility
    • Method Detail

      • getDiscount

        public Double getDiscount()
        Gets the discount value for the redemption level.
        Returns:
        the discount value
      • setDiscount

        public void setDiscount​(Double discount)
        Sets the discount value for the redemption level.
        Parameters:
        discount - the discount value to set