Class GeneratedPromotionVoucher

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
PromotionVoucher

public abstract class GeneratedPromotionVoucher extends Voucher
Generated class for type PromotionVoucher.
See Also:
  • Field Details

    • VOUCHERCODE

      public static final String VOUCHERCODE
      Qualifier of the PromotionVoucher.voucherCode attribute
      See Also:
    • REDEMPTIONQUANTITYLIMIT

      public static final String REDEMPTIONQUANTITYLIMIT
      Qualifier of the PromotionVoucher.redemptionQuantityLimit attribute
      See Also:
    • REDEMPTIONQUANTITYLIMITPERUSER

      public static final String REDEMPTIONQUANTITYLIMITPERUSER
      Qualifier of the PromotionVoucher.redemptionQuantityLimitPerUser attribute
      See Also:
    • DEFAULT_INITIAL_ATTRIBUTES

      protected static final Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
  • Constructor Details

    • GeneratedPromotionVoucher

      public GeneratedPromotionVoucher()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class GeneratedVoucher
    • getRedemptionQuantityLimit

      public Integer getRedemptionQuantityLimit(SessionContext ctx)
      Generated method - Getter of the PromotionVoucher.redemptionQuantityLimit attribute.
      Returns:
      the redemptionQuantityLimit - the upper limit of uses possible for this voucher.
    • getRedemptionQuantityLimit

      public Integer getRedemptionQuantityLimit()
      Generated method - Getter of the PromotionVoucher.redemptionQuantityLimit attribute.
      Returns:
      the redemptionQuantityLimit - the upper limit of uses possible for this voucher.
    • getRedemptionQuantityLimitAsPrimitive

      public int getRedemptionQuantityLimitAsPrimitive(SessionContext ctx)
      Generated method - Getter of the PromotionVoucher.redemptionQuantityLimit attribute.
      Returns:
      the redemptionQuantityLimit - the upper limit of uses possible for this voucher.
    • getRedemptionQuantityLimitAsPrimitive

      public int getRedemptionQuantityLimitAsPrimitive()
      Generated method - Getter of the PromotionVoucher.redemptionQuantityLimit attribute.
      Returns:
      the redemptionQuantityLimit - the upper limit of uses possible for this voucher.
    • setRedemptionQuantityLimit

      public void setRedemptionQuantityLimit(SessionContext ctx, Integer value)
      Generated method - Setter of the PromotionVoucher.redemptionQuantityLimit attribute.
      Parameters:
      value - the redemptionQuantityLimit - the upper limit of uses possible for this voucher.
    • setRedemptionQuantityLimit

      public void setRedemptionQuantityLimit(Integer value)
      Generated method - Setter of the PromotionVoucher.redemptionQuantityLimit attribute.
      Parameters:
      value - the redemptionQuantityLimit - the upper limit of uses possible for this voucher.
    • setRedemptionQuantityLimit

      public void setRedemptionQuantityLimit(SessionContext ctx, int value)
      Generated method - Setter of the PromotionVoucher.redemptionQuantityLimit attribute.
      Parameters:
      value - the redemptionQuantityLimit - the upper limit of uses possible for this voucher.
    • setRedemptionQuantityLimit

      public void setRedemptionQuantityLimit(int value)
      Generated method - Setter of the PromotionVoucher.redemptionQuantityLimit attribute.
      Parameters:
      value - the redemptionQuantityLimit - the upper limit of uses possible for this voucher.
    • getRedemptionQuantityLimitPerUser

      public Integer getRedemptionQuantityLimitPerUser(SessionContext ctx)
      Generated method - Getter of the PromotionVoucher.redemptionQuantityLimitPerUser attribute.
      Returns:
      the redemptionQuantityLimitPerUser - the upper limit of voucher uses possible per user. Default is one.
    • getRedemptionQuantityLimitPerUser

      public Integer getRedemptionQuantityLimitPerUser()
      Generated method - Getter of the PromotionVoucher.redemptionQuantityLimitPerUser attribute.
      Returns:
      the redemptionQuantityLimitPerUser - the upper limit of voucher uses possible per user. Default is one.
    • getRedemptionQuantityLimitPerUserAsPrimitive

      public int getRedemptionQuantityLimitPerUserAsPrimitive(SessionContext ctx)
      Generated method - Getter of the PromotionVoucher.redemptionQuantityLimitPerUser attribute.
      Returns:
      the redemptionQuantityLimitPerUser - the upper limit of voucher uses possible per user. Default is one.
    • getRedemptionQuantityLimitPerUserAsPrimitive

      public int getRedemptionQuantityLimitPerUserAsPrimitive()
      Generated method - Getter of the PromotionVoucher.redemptionQuantityLimitPerUser attribute.
      Returns:
      the redemptionQuantityLimitPerUser - the upper limit of voucher uses possible per user. Default is one.
    • setRedemptionQuantityLimitPerUser

      public void setRedemptionQuantityLimitPerUser(SessionContext ctx, Integer value)
      Generated method - Setter of the PromotionVoucher.redemptionQuantityLimitPerUser attribute.
      Parameters:
      value - the redemptionQuantityLimitPerUser - the upper limit of voucher uses possible per user. Default is one.
    • setRedemptionQuantityLimitPerUser

      public void setRedemptionQuantityLimitPerUser(Integer value)
      Generated method - Setter of the PromotionVoucher.redemptionQuantityLimitPerUser attribute.
      Parameters:
      value - the redemptionQuantityLimitPerUser - the upper limit of voucher uses possible per user. Default is one.
    • setRedemptionQuantityLimitPerUser

      public void setRedemptionQuantityLimitPerUser(SessionContext ctx, int value)
      Generated method - Setter of the PromotionVoucher.redemptionQuantityLimitPerUser attribute.
      Parameters:
      value - the redemptionQuantityLimitPerUser - the upper limit of voucher uses possible per user. Default is one.
    • setRedemptionQuantityLimitPerUser

      public void setRedemptionQuantityLimitPerUser(int value)
      Generated method - Setter of the PromotionVoucher.redemptionQuantityLimitPerUser attribute.
      Parameters:
      value - the redemptionQuantityLimitPerUser - the upper limit of voucher uses possible per user. Default is one.
    • getVoucherCode

      public String getVoucherCode(SessionContext ctx)
      Generated method - Getter of the PromotionVoucher.voucherCode attribute.
      Returns:
      the voucherCode - the voucher code.
    • getVoucherCode

      public String getVoucherCode()
      Generated method - Getter of the PromotionVoucher.voucherCode attribute.
      Returns:
      the voucherCode - the voucher code.
    • setVoucherCode

      public void setVoucherCode(SessionContext ctx, String value)
      Generated method - Setter of the PromotionVoucher.voucherCode attribute.
      Parameters:
      value - the voucherCode - the voucher code.
    • setVoucherCode

      public void setVoucherCode(String value)
      Generated method - Setter of the PromotionVoucher.voucherCode attribute.
      Parameters:
      value - the voucherCode - the voucher code.