Class ProductQuantityRestrictionModel

  • All Implemented Interfaces:
    java.io.Serializable

    public class ProductQuantityRestrictionModel
    extends ProductRestrictionModel
    Generated model class for type ProductQuantityRestriction 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
      • QUANTITY

        public static final java.lang.String QUANTITY
        Generated constant - Attribute key of ProductQuantityRestriction.quantity attribute defined at extension voucher.
        See Also:
        Constant Field Values
      • UNIT

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

      • ProductQuantityRestrictionModel

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

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

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public ProductQuantityRestrictionModel​(java.lang.Long _quantity,
                                               UnitModel _unit,
                                               VoucherModel _voucher)
        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:
        _quantity - initial attribute declared by type ProductQuantityRestriction at extension voucher
        _unit - initial attribute declared by type ProductQuantityRestriction at extension voucher
        _voucher - initial attribute declared by type Restriction at extension voucher
      • ProductQuantityRestrictionModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public ProductQuantityRestrictionModel​(ItemModel _owner,
                                               java.lang.Long _quantity,
                                               UnitModel _unit,
                                               VoucherModel _voucher)
        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:
        _owner - initial attribute declared by type Item at extension core
        _quantity - initial attribute declared by type ProductQuantityRestriction at extension voucher
        _unit - initial attribute declared by type ProductQuantityRestriction at extension voucher
        _voucher - initial attribute declared by type Restriction at extension voucher
    • Method Detail

      • getQuantity

        @Accessor(qualifier="quantity",
                  type=GETTER)
        public java.lang.Long getQuantity()
        Generated method - Getter of the ProductQuantityRestriction.quantity attribute defined at extension voucher.
        Returns:
        the quantity - the quantity of products the given voucher is valid for.
      • getUnit

        @Accessor(qualifier="unit",
                  type=GETTER)
        public UnitModel getUnit()
        Generated method - Getter of the ProductQuantityRestriction.unit attribute defined at extension voucher.
        Returns:
        the unit - the unit for the quantity of products the given voucher is valid for.
      • setQuantity

        @Accessor(qualifier="quantity",
                  type=SETTER)
        public void setQuantity​(java.lang.Long value)
        Generated method - Setter of ProductQuantityRestriction.quantity attribute defined at extension voucher.
        Parameters:
        value - the quantity - the quantity of products the given voucher is valid for.
      • setUnit

        @Accessor(qualifier="unit",
                  type=SETTER)
        public void setUnit​(UnitModel value)
        Generated method - Setter of ProductQuantityRestriction.unit attribute defined at extension voucher.
        Parameters:
        value - the unit - the unit for the quantity of products the given voucher is valid for.