java.lang.Object
com.tectonica.jonix.onix3.BatchBonus
- All Implemented Interfaces:
OnixComposite
,OnixComposite.OnixDataComposite<JonixBatchBonus>
,OnixTag
,Serializable
public class BatchBonus
extends Object
implements OnixComposite.OnixDataComposite<JonixBatchBonus>, Serializable
Batch bonus composite
A repeatable group of data elements which together specify a batch bonus, ie a quantity of free copies which are supplied (typically to a reseller) with a certain order quantity. The <BatchBonus> composite is optional.
Reference name | <BatchBonus> |
Short tag | <batchbonus> |
Cardinality | 0…n |
- <
Price
>
Product
⯈ProductSupply
⯈SupplyDetail
⯈Price
⯈BatchBonus
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tectonica.jonix.common.OnixComposite
OnixComposite.OnixDataComposite<V extends JonixStruct>, OnixComposite.OnixDataCompositeUncommon, OnixComposite.OnixDataCompositeWithKey<V extends JonixKeyedStruct<K>,
K extends Enum<K> & OnixCodelist>, OnixComposite.OnixSuperComposite -
Field Summary
Modifier and TypeFieldDescription(type: dt.DateOrDateTime)static final BatchBonus
static final String
static final String
(type: dt.NonEmptyString) -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This is an internal API.asStruct()
The number of copies which must be ordered to obtain the free copies specified in <FreeQuantity>.boolean
exists()
indicates whether this tag exists in the ONIX recordThe number of free copies which will be supplied with an order for the batch quantity specified in the <BatchQuantity> field.For advanced use-cases only.void
ifExists
(Consumer<BatchBonus> action)
-
Field Details
-
refname
- See Also:
-
shortname
- See Also:
-
datestamp
(type: dt.DateOrDateTime) -
sourcename
(type: dt.NonEmptyString) -
sourcetype
-
EMPTY
-
-
Constructor Details
-
BatchBonus
public BatchBonus() -
BatchBonus
-
-
Method Details
-
_initialize
public void _initialize()Description copied from interface:OnixComposite
This is an internal API. Since Jonix 8.0, composite objects are being populated lazily. This method initiates the population process, and is invoked internally by the accessor APIs of the composites- Specified by:
_initialize
in interfaceOnixComposite
-
exists
public boolean exists()Description copied from interface:OnixTag
indicates whether this tag exists in the ONIX record -
ifExists
-
getXmlElement
Description copied from interface:OnixComposite
For advanced use-cases only.- Specified by:
getXmlElement
in interfaceOnixComposite
- Returns:
- native representation of the XML element underlying to this tag
-
batchQuantity
The number of copies which must be ordered to obtain the free copies specified in <FreeQuantity>. Mandatory in each occurrence of the <BatchBonus> composite, and non-repeating.
Jonix-Comment: this field is required -
freeQuantity
The number of free copies which will be supplied with an order for the batch quantity specified in the <BatchQuantity> field. Mandatory in each occurrence of the <BatchBonus> composite, and non-repeating.
Jonix-Comment: this field is required -
asStruct
- Specified by:
asStruct
in interfaceOnixComposite.OnixDataComposite<JonixBatchBonus>
-