Class SingleCodeCouponModel

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Field Detail

      • _TYPECODE

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

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

        public static final java.lang.String MAXTOTALREDEMPTIONS
        Generated constant - Attribute key of SingleCodeCoupon.maxTotalRedemptions attribute defined at extension couponservices.
        See Also:
        Constant Field Values
    • Constructor Detail

      • 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​(java.lang.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​(java.lang.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 Detail

      • getMaxRedemptionsPerCustomer

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

        @Accessor(qualifier="maxTotalRedemptions",
                  type=GETTER)
        public java.lang.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​(java.lang.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​(java.lang.Integer value)
        Generated method - Setter of SingleCodeCoupon.maxTotalRedemptions attribute defined at extension couponservices.
        Parameters:
        value - the maxTotalRedemptions