Class PromotionVoucherModel

  • All Implemented Interfaces:
    java.io.Serializable

    public class PromotionVoucherModel
    extends VoucherModel
    Generated model class for type PromotionVoucher first defined at extension voucher.
    See Also:
    Serialized Form
    • Field Detail

      • _TYPECODE

        public static final java.lang.String _TYPECODE
        Generated model type code constant.
        See Also:
        Constant Field Values
      • VOUCHERCODE

        public static final java.lang.String VOUCHERCODE
        Generated constant - Attribute key of PromotionVoucher.voucherCode attribute defined at extension voucher.
        See Also:
        Constant Field Values
      • REDEMPTIONQUANTITYLIMIT

        public static final java.lang.String REDEMPTIONQUANTITYLIMIT
        Generated constant - Attribute key of PromotionVoucher.redemptionQuantityLimit attribute defined at extension voucher.
        See Also:
        Constant Field Values
      • REDEMPTIONQUANTITYLIMITPERUSER

        public static final java.lang.String REDEMPTIONQUANTITYLIMITPERUSER
        Generated constant - Attribute key of PromotionVoucher.redemptionQuantityLimitPerUser attribute defined at extension voucher.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PromotionVoucherModel

        public PromotionVoucherModel()
        Generated constructor - Default constructor for generic creation.
      • PromotionVoucherModel

        public PromotionVoucherModel​(ItemModelContext ctx)
        Generated constructor - Default constructor for creation with existing context
        Parameters:
        ctx - the model context to be injected, must not be null
      • PromotionVoucherModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public PromotionVoucherModel​(java.lang.String _code)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 4.1.1 Please use the default constructor without parameters
        Generated constructor - Constructor with all mandatory attributes.
        Parameters:
        _code - initial attribute declared by type Voucher at extension voucher
      • PromotionVoucherModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public PromotionVoucherModel​(java.lang.String _code,
                                     ItemModel _owner)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 4.1.1 Please use the default constructor without parameters
        Generated constructor - for all mandatory and initial attributes.
        Parameters:
        _code - initial attribute declared by type Voucher at extension voucher
        _owner - initial attribute declared by type Item at extension core
    • Method Detail

      • getRedemptionQuantityLimit

        @Accessor(qualifier="redemptionQuantityLimit",
                  type=GETTER)
        public java.lang.Integer getRedemptionQuantityLimit()
        Generated method - Getter of the PromotionVoucher.redemptionQuantityLimit attribute defined at extension voucher.
        Returns:
        the redemptionQuantityLimit - the upper limit of uses possible for this voucher.
      • getRedemptionQuantityLimitPerUser

        @Accessor(qualifier="redemptionQuantityLimitPerUser",
                  type=GETTER)
        public java.lang.Integer getRedemptionQuantityLimitPerUser()
        Generated method - Getter of the PromotionVoucher.redemptionQuantityLimitPerUser attribute defined at extension voucher.
        Returns:
        the redemptionQuantityLimitPerUser - the upper limit of voucher uses possible per user. Default is one.
      • getVoucherCode

        @Accessor(qualifier="voucherCode",
                  type=GETTER)
        public java.lang.String getVoucherCode()
        Generated method - Getter of the PromotionVoucher.voucherCode attribute defined at extension voucher.
        Returns:
        the voucherCode - the voucher code.
      • setRedemptionQuantityLimit

        @Accessor(qualifier="redemptionQuantityLimit",
                  type=SETTER)
        public void setRedemptionQuantityLimit​(java.lang.Integer value)
        Generated method - Setter of PromotionVoucher.redemptionQuantityLimit attribute defined at extension voucher.
        Parameters:
        value - the redemptionQuantityLimit - the upper limit of uses possible for this voucher.
      • setRedemptionQuantityLimitPerUser

        @Accessor(qualifier="redemptionQuantityLimitPerUser",
                  type=SETTER)
        public void setRedemptionQuantityLimitPerUser​(java.lang.Integer value)
        Generated method - Setter of PromotionVoucher.redemptionQuantityLimitPerUser attribute defined at extension voucher.
        Parameters:
        value - the redemptionQuantityLimitPerUser - the upper limit of voucher uses possible per user. Default is one.
      • setVoucherCode

        @Accessor(qualifier="voucherCode",
                  type=SETTER)
        public void setVoucherCode​(java.lang.String value)
        Generated method - Setter of PromotionVoucher.voucherCode attribute defined at extension voucher.
        Parameters:
        value - the voucherCode - the voucher code.