Class RedemptionLevelAmount


  • public class RedemptionLevelAmount
    extends LoyaltyRedemptionLevel
    Represents a redemption level where the reward is a specific monetary amount. This class extends LoyaltyRedemptionLevel and includes additional properties for the redemption amount and currency.

    The amount and currency fields define the value of the reward that can be redeemed at the specified point threshold.

    Author:
    nikritikos
    • Constructor Detail

      • RedemptionLevelAmount

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

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

      • getAmount

        public Double getAmount()
        Gets the monetary amount for this redemption level.
        Returns:
        the redemption amount
      • setAmount

        public void setAmount​(Double amount)
        Sets the monetary amount for this redemption level.
        Parameters:
        amount - the amount to set
      • getCurrency

        public String getCurrency()
        Gets the currency code associated with the redemption amount.
        Returns:
        the currency code (e.g., "USD")
      • setCurrency

        public void setCurrency​(String currency)
        Sets the currency code associated with the redemption amount.
        Parameters:
        currency - the currency code to set (e.g., "USD")