java.lang.Object
com.tectonica.jonix.onix3.ToQuantity
- All Implemented Interfaces:
OnixElement<Double>
,OnixTag
,Serializable
To Quantity
A maximum order quantity eligible for a specified discount, used only in the case of ‘progressive’ discounts. Optional, but where used, must be preceded by a minimum qualifying order quantity (even if that minimum is 1). For the special case where there is no maximum (ie in the repeat of the <Discount> composite that specifies the highest progressive discount), use zero.
Format | Positive number, here necessarily an integer, or zero. Suggested maximum length 7 digits |
Reference name | <ToQuantity> |
Short tag | <x514> |
Cardinality | 0…1 |
Example | <ToQuantity>25</ToQuantity> |
- <
Discount
>
Product
⯈ProductSupply
⯈SupplyDetail
⯈Price
⯈Discount
⯈ToQuantity
- Since:
- Onix-3.02
- See Also:
-
Field Summary
Modifier and TypeFieldDescription(type: dt.DateOrDateTime)static final ToQuantity
static final String
static final String
(type: dt.NonEmptyString)This is the raw content of ToQuantity. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription__v()
Internal API, use theOnixElement.value()
method or theOnixElement.value()
field insteadboolean
exists()
indicates whether this tag exists in the ONIX recordvoid
ifExists
(Consumer<ToQuantity> action) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tectonica.jonix.common.OnixElement
equal, is, isNull, value
-
Field Details
-
refname
- See Also:
-
shortname
- See Also:
-
datestamp
(type: dt.DateOrDateTime) -
sourcename
(type: dt.NonEmptyString) -
sourcetype
-
value
This is the raw content of ToQuantity. Could be null ifexists() == false
. UseOnixElement.value()
instead if you want to get this as anOptional
.Raw Format: Positive number, here necessarily an integer, or zero. Suggested maximum length 7 digits
(type: dt.PositiveDecimalOrZero)
-
EMPTY
-
-
Constructor Details
-
ToQuantity
public ToQuantity() -
ToQuantity
-
-
Method Details
-
__v
Internal API, use theOnixElement.value()
method or theOnixElement.value()
field instead- Specified by:
__v
in interfaceOnixElement<Double>
-
exists
public boolean exists()Description copied from interface:OnixTag
indicates whether this tag exists in the ONIX record -
ifExists
-