Class ProductQuantityRestrictionModel

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

public class ProductQuantityRestrictionModel extends ProductRestrictionModel
Generated model class for type ProductQuantityRestriction first defined at extension voucher.
See Also:
  • Field Details

    • _TYPECODE

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

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

      public static final String UNIT
      Generated constant - Attribute key of ProductQuantityRestriction.unit attribute defined at extension voucher.
      See Also:
  • Constructor Details

    • ProductQuantityRestrictionModel

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

      public ProductQuantityRestrictionModel(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
    • ProductQuantityRestrictionModel

      @Deprecated(since="4.1.1", forRemoval=true) public ProductQuantityRestrictionModel(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, 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 Details

    • getQuantity

      @Accessor(qualifier="quantity", type=GETTER) public 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(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.