Class SingleCodeCouponModel

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FlashBuyCouponModel

public class SingleCodeCouponModel extends AbstractCouponModel
Generated model class for type SingleCodeCoupon first defined at extension couponservices.

A SingleCodeCoupon uses one coupon code (i.e. the inherited couponId attribute) for coupon redemption. The additional attributes allow to restrict the number of times the coupon can be redeemed.

See Also:
  • Field Details

    • _TYPECODE

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

      public static final String MAXREDEMPTIONSPERCUSTOMER
      Generated constant - Attribute key of SingleCodeCoupon.maxRedemptionsPerCustomer attribute defined at extension couponservices.
      See Also:
    • MAXTOTALREDEMPTIONS

      public static final String MAXTOTALREDEMPTIONS
      Generated constant - Attribute key of SingleCodeCoupon.maxTotalRedemptions attribute defined at extension couponservices.
      See Also:
  • Constructor Details

    • SingleCodeCouponModel

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

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

      @Deprecated(since="4.1.1", forRemoval=true) public SingleCodeCouponModel(String _couponId)
      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:
      _couponId - initial attribute declared by type AbstractCoupon at extension couponservices
    • SingleCodeCouponModel

      @Deprecated(since="4.1.1", forRemoval=true) public SingleCodeCouponModel(String _couponId, 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:
      _couponId - initial attribute declared by type AbstractCoupon at extension couponservices
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getMaxRedemptionsPerCustomer

      @Accessor(qualifier="maxRedemptionsPerCustomer", type=GETTER) public Integer getMaxRedemptionsPerCustomer()
      Generated method - Getter of the SingleCodeCoupon.maxRedemptionsPerCustomer attribute defined at extension couponservices.
      Returns:
      the maxRedemptionsPerCustomer
    • getMaxTotalRedemptions

      @Accessor(qualifier="maxTotalRedemptions", type=GETTER) public Integer getMaxTotalRedemptions()
      Generated method - Getter of the SingleCodeCoupon.maxTotalRedemptions attribute defined at extension couponservices.
      Returns:
      the maxTotalRedemptions
    • setMaxRedemptionsPerCustomer

      @Accessor(qualifier="maxRedemptionsPerCustomer", type=SETTER) public void setMaxRedemptionsPerCustomer(Integer value)
      Generated method - Setter of SingleCodeCoupon.maxRedemptionsPerCustomer attribute defined at extension couponservices.
      Parameters:
      value - the maxRedemptionsPerCustomer
    • setMaxTotalRedemptions

      @Accessor(qualifier="maxTotalRedemptions", type=SETTER) public void setMaxTotalRedemptions(Integer value)
      Generated method - Setter of SingleCodeCoupon.maxTotalRedemptions attribute defined at extension couponservices.
      Parameters:
      value - the maxTotalRedemptions