- All Implemented Interfaces:
OnixComposite
,OnixComposite.OnixDataComposite<JonixDiscountCoded>
,OnixComposite.OnixDataCompositeWithKey<JonixDiscountCoded,
,DiscountCodeTypes> OnixTag
,Serializable
Discount code composite
A repeatable group of data elements which together define a discount code from a specified scheme, and allowing different discount code schemes to be supported without defining additional data elements. Optional.
Reference name | <DiscountCoded> |
Short tag | <discountcoded> |
- <
Price
>
Product
⯈SupplyDetail
⯈Price
⯈DiscountCoded
Product
⯈SupplyDetail
⯈Reissue
⯈Price
⯈DiscountCoded
- Since:
- Onix-2.1
- 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: DateOrDateTime)static final DiscountCoded
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This is an internal API.asStruct()
A discount code from the scheme specified in the <DiscountCodeType> element.An ONIX code identifying the scheme from which the value in the <DiscountCode> element is taken.A name which identifies a proprietary discount code when the code in the <DiscountCodeType> element indicates a proprietary scheme, eg a wholesaler’s own code.boolean
exists()
indicates whether this tag exists in the ONIX recordFor advanced use-cases only.void
ifExists
(Consumer<DiscountCoded> action)
-
Field Details
-
refname
- See Also:
-
shortname
- See Also:
-
textformat
-
textcase
-
language
-
transliteration
-
datestamp
(type: DateOrDateTime) -
sourcetype
-
sourcename
-
EMPTY
-
-
Constructor Details
-
DiscountCoded
public DiscountCoded() -
DiscountCoded
-
-
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
-
discountCodeType
An ONIX code identifying the scheme from which the value in the <DiscountCode> element is taken. Mandatory in each occurrence of the <DiscountCoded> composite, and non-repeating.
Jonix-Comment: this field is required -
discountCode
A discount code from the scheme specified in the <DiscountCodeType> element. Mandatory in each occurrence of the <DiscountCoded> composite, and non-repeating.
Jonix-Comment: this field is required -
discountCodeTypeName
A name which identifies a proprietary discount code when the code in the <DiscountCodeType> element indicates a proprietary scheme, eg a wholesaler’s own code. Optional and non-repeating.
Jonix-Comment: this field is optional -
asStruct
- Specified by:
asStruct
in interfaceOnixComposite.OnixDataComposite<JonixDiscountCoded>
-
structKey
- Specified by:
structKey
in interfaceOnixComposite.OnixDataCompositeWithKey<JonixDiscountCoded,
DiscountCodeTypes>
-