Class PromotionVoucherModel

java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
All Implemented Interfaces:
Serializable

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

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • VOUCHERCODE

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

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

      public static final String REDEMPTIONQUANTITYLIMITPERUSER
      Generated constant - Attribute key of PromotionVoucher.redemptionQuantityLimitPerUser attribute defined at extension voucher.
      See Also:
  • Constructor Details

    • PromotionVoucherModel

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

      public PromotionVoucherModel(de.hybris.platform.servicelayer.model.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(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(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 Details

    • getRedemptionQuantityLimit

      @Accessor(qualifier="redemptionQuantityLimit", type=GETTER) public 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 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 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(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(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(String value)
      Generated method - Setter of PromotionVoucher.voucherCode attribute defined at extension voucher.
      Parameters:
      value - the voucherCode - the voucher code.