Class RegularCustomerOrderTotalRestrictionModel

  • All Implemented Interfaces:
    java.io.Serializable

    public class RegularCustomerOrderTotalRestrictionModel
    extends RestrictionModel
    Generated model class for type RegularCustomerOrderTotalRestriction 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
      • ALLORDERSTOTAL

        public static final java.lang.String ALLORDERSTOTAL
        Generated constant - Attribute key of RegularCustomerOrderTotalRestriction.allOrdersTotal attribute defined at extension voucher.
        See Also:
        Constant Field Values
      • CURRENCY

        public static final java.lang.String CURRENCY
        Generated constant - Attribute key of RegularCustomerOrderTotalRestriction.currency attribute defined at extension voucher.
        See Also:
        Constant Field Values
      • NET

        public static final java.lang.String NET
        Generated constant - Attribute key of RegularCustomerOrderTotalRestriction.net attribute defined at extension voucher.
        See Also:
        Constant Field Values
      • VALUEOFGOODSONLY

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

      • RegularCustomerOrderTotalRestrictionModel

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

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

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public RegularCustomerOrderTotalRestrictionModel​(java.lang.Double _allOrdersTotal,
                                                         CurrencyModel _currency,
                                                         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:
        _allOrdersTotal - initial attribute declared by type RegularCustomerOrderTotalRestriction at extension voucher
        _currency - initial attribute declared by type RegularCustomerOrderTotalRestriction at extension voucher
        _voucher - initial attribute declared by type Restriction at extension voucher
      • RegularCustomerOrderTotalRestrictionModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public RegularCustomerOrderTotalRestrictionModel​(java.lang.Double _allOrdersTotal,
                                                         CurrencyModel _currency,
                                                         ItemModel _owner,
                                                         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:
        _allOrdersTotal - initial attribute declared by type RegularCustomerOrderTotalRestriction at extension voucher
        _currency - initial attribute declared by type RegularCustomerOrderTotalRestriction at extension voucher
        _owner - initial attribute declared by type Item at extension core
        _voucher - initial attribute declared by type Restriction at extension voucher
    • Method Detail

      • getAllOrdersTotal

        @Accessor(qualifier="allOrdersTotal",
                  type=GETTER)
        public java.lang.Double getAllOrdersTotal()
        Generated method - Getter of the RegularCustomerOrderTotalRestriction.allOrdersTotal attribute defined at extension voucher.
        Returns:
        the allOrdersTotal - restrict to customers who ordered a total of x or greater in their lifetime.
      • getCurrency

        @Accessor(qualifier="currency",
                  type=GETTER)
        public CurrencyModel getCurrency()
        Generated method - Getter of the RegularCustomerOrderTotalRestriction.currency attribute defined at extension voucher.
        Returns:
        the currency - the currency associated with the orderTotalSum.
      • getNet

        @Accessor(qualifier="net",
                  type=GETTER)
        public java.lang.Boolean getNet()
        Generated method - Getter of the RegularCustomerOrderTotalRestriction.net attribute defined at extension voucher.
        Returns:
        the net - Specifies if total sum of all existing orders is consulted inclusive or exclusive VAT. Default is true (exclusive VAT).
      • getValueofgoodsonly

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

        @Accessor(qualifier="allOrdersTotal",
                  type=SETTER)
        public void setAllOrdersTotal​(java.lang.Double value)
        Generated method - Setter of RegularCustomerOrderTotalRestriction.allOrdersTotal attribute defined at extension voucher.
        Parameters:
        value - the allOrdersTotal - restrict to customers who ordered a total of x or greater in their lifetime.
      • setCurrency

        @Accessor(qualifier="currency",
                  type=SETTER)
        public void setCurrency​(CurrencyModel value)
        Generated method - Setter of RegularCustomerOrderTotalRestriction.currency attribute defined at extension voucher.
        Parameters:
        value - the currency - the currency associated with the orderTotalSum.
      • setNet

        @Accessor(qualifier="net",
                  type=SETTER)
        public void setNet​(java.lang.Boolean value)
        Generated method - Setter of RegularCustomerOrderTotalRestriction.net attribute defined at extension voucher.
        Parameters:
        value - the net - Specifies if total sum of all existing orders is consulted inclusive or exclusive VAT. Default is true (exclusive VAT).
      • setValueofgoodsonly

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