java.lang.Object
com.tectonica.jonix.onix3.DiscountAmount
- All Implemented Interfaces:
OnixElement<Double>
,OnixTag
,Serializable
Discount amount
A discount expressed as an absolute amount per copy. Optional and non-repeating; but either <DiscountPercent> or <DiscountAmount> or both must be present in each occurrence of the <Discount> composite. Note that when both are present, they represent two different expressions of the same discount – the discounts are not cumulative.
Format | Positive real number, with explicit decimal point when required, or zero, suggested maximum length 12 characters |
Reference name | <DiscountAmount> |
Short tag | <x469> |
Cardinality | 0…1 |
Example | <DiscountAmount>4.59</DiscountAmount> |
- <
Discount
>
Product
⯈ProductSupply
⯈SupplyDetail
⯈Price
⯈Discount
⯈DiscountAmount
- See Also:
-
Field Summary
Modifier and TypeFieldDescription(type: dt.DateOrDateTime)static final DiscountAmount
static final String
static final String
(type: dt.NonEmptyString)This is the raw content of DiscountAmount. -
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<DiscountAmount> 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 DiscountAmount. Could be null ifexists() == false
. UseOnixElement.value()
instead if you want to get this as anOptional
.Raw Format: Positive real number, with explicit decimal point when required, or zero, suggested maximum length 12 characters
(type: dt.PositiveDecimalOrZero)
-
EMPTY
-
-
Constructor Details
-
DiscountAmount
public DiscountAmount() -
DiscountAmount
-
-
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
-