Class OrderRestrictionModel

All Implemented Interfaces:
Serializable

public class OrderRestrictionModel extends RestrictionModel
Generated model class for type OrderRestriction first defined at extension voucher.
See Also:
  • Field Details

    • _TYPECODE

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

      public static final String TOTAL
      Generated constant - Attribute key of OrderRestriction.total attribute defined at extension voucher.
      See Also:
    • CURRENCY

      public static final String CURRENCY
      Generated constant - Attribute key of OrderRestriction.currency attribute defined at extension voucher.
      See Also:
    • NET

      public static final String NET
      Generated constant - Attribute key of OrderRestriction.net attribute defined at extension voucher.
      See Also:
    • VALUEOFGOODSONLY

      public static final String VALUEOFGOODSONLY
      Generated constant - Attribute key of OrderRestriction.valueofgoodsonly attribute defined at extension voucher.
      See Also:
  • Constructor Details

    • OrderRestrictionModel

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

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

      @Deprecated(since="4.1.1", forRemoval=true) public OrderRestrictionModel(CurrencyModel _currency, Double _total, 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:
      _currency - initial attribute declared by type OrderRestriction at extension voucher
      _total - initial attribute declared by type OrderRestriction at extension voucher
      _voucher - initial attribute declared by type Restriction at extension voucher
    • OrderRestrictionModel

      @Deprecated(since="4.1.1", forRemoval=true) public OrderRestrictionModel(CurrencyModel _currency, ItemModel _owner, Double _total, 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:
      _currency - initial attribute declared by type OrderRestriction at extension voucher
      _owner - initial attribute declared by type Item at extension core
      _total - initial attribute declared by type OrderRestriction at extension voucher
      _voucher - initial attribute declared by type Restriction at extension voucher
  • Method Details

    • getCurrency

      @Accessor(qualifier="currency", type=GETTER) public CurrencyModel getCurrency()
      Generated method - Getter of the OrderRestriction.currency attribute defined at extension voucher.
      Returns:
      the currency - the currency of the total sum of an order for which the given voucher is valid.
    • getNet

      @Accessor(qualifier="net", type=GETTER) public Boolean getNet()
      Generated method - Getter of the OrderRestriction.net attribute defined at extension voucher.
      Returns:
      the net - Specifies if total sum of an order is consulted inclusive or exclusive VAT. Default is true (exclusive VAT).
    • getTotal

      @Accessor(qualifier="total", type=GETTER) public Double getTotal()
      Generated method - Getter of the OrderRestriction.total attribute defined at extension voucher.
      Returns:
      the total - the total sum of an order for which the given voucher is valid.
    • getValueofgoodsonly

      @Accessor(qualifier="valueofgoodsonly", type=GETTER) public Boolean getValueofgoodsonly()
      Generated method - Getter of the OrderRestriction.valueofgoodsonly attribute defined at extension voucher.
      Returns:
      the valueofgoodsonly - Specifies if total sum of an order is consulted inclusive or exclusive shipping and payment costs. Default is true (exclusive shipping costs).
    • setCurrency

      @Accessor(qualifier="currency", type=SETTER) public void setCurrency(CurrencyModel value)
      Generated method - Setter of OrderRestriction.currency attribute defined at extension voucher.
      Parameters:
      value - the currency - the currency of the total sum of an order for which the given voucher is valid.
    • setNet

      @Accessor(qualifier="net", type=SETTER) public void setNet(Boolean value)
      Generated method - Setter of OrderRestriction.net attribute defined at extension voucher.
      Parameters:
      value - the net - Specifies if total sum of an order is consulted inclusive or exclusive VAT. Default is true (exclusive VAT).
    • setTotal

      @Accessor(qualifier="total", type=SETTER) public void setTotal(Double value)
      Generated method - Setter of OrderRestriction.total attribute defined at extension voucher.
      Parameters:
      value - the total - the total sum of an order for which the given voucher is valid.
    • setValueofgoodsonly

      @Accessor(qualifier="valueofgoodsonly", type=SETTER) public void setValueofgoodsonly(Boolean value)
      Generated method - Setter of OrderRestriction.valueofgoodsonly attribute defined at extension voucher.
      Parameters:
      value - the valueofgoodsonly - Specifies if total sum of an order is consulted inclusive or exclusive shipping and payment costs. Default is true (exclusive shipping costs).