- All Implemented Interfaces:
OnixComposite
,OnixComposite.OnixDataComposite<JonixReturnsConditions>
,OnixComposite.OnixDataCompositeWithKey<JonixReturnsConditions,
,ReturnsConditionsCodeTypes> OnixTag
,Serializable
Returns conditions composite
An optional and repeatable group of data elements which together allow the supplier’s returns conditions to be specified in coded form.
Reference name | <ReturnsConditions> |
Short tag | <returnsconditions> |
Cardinality | 0…n |
- 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 ReturnsConditions
static final String
static final String
(type: dt.NonEmptyString) -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This is an internal API.asStruct()
boolean
exists()
indicates whether this tag exists in the ONIX recordFor advanced use-cases only.void
ifExists
(Consumer<ReturnsConditions> action) A returns conditions code from the scheme specified in <ReturnsCodeType>.An ONIX code identifying the scheme from which the returns conditions code in <ReturnsCode> is taken.A name which identifies a proprietary returns code scheme.Free text note explaining the returns conditions or special returns instructions, where the code alone is not sufficient.
-
Field Details
-
refname
- See Also:
-
shortname
- See Also:
-
datestamp
(type: dt.DateOrDateTime) -
sourcename
(type: dt.NonEmptyString) -
sourcetype
-
EMPTY
-
-
Constructor Details
-
ReturnsConditions
public ReturnsConditions() -
ReturnsConditions
-
-
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
-
returnsCodeType
An ONIX code identifying the scheme from which the returns conditions code in <ReturnsCode> is taken. Mandatory in each occurrence of the <ReturnsConditions> composite, and non-repeating.
Jonix-Comment: this field is required -
returnsCode
A returns conditions code from the scheme specified in <ReturnsCodeType>. Mandatory in each occurrence of the <ReturnsConditions> composite, and non-repeating.
Jonix-Comment: this field is required -
returnsCodeTypeName
A name which identifies a proprietary returns code scheme. Must be used when, and only when, the code in the <ReturnsCodeType> element indicates a proprietary scheme, eg a wholesaler’s own code. Optional and non-repeating.
Jonix-Comment: this field is optional -
returnsNotes
Free text note explaining the returns conditions or special returns instructions, where the code alone is not sufficient. Optional, and repeatable if parallel text is provided in multiple languages. The language attribute is optional for a single instance of <ReturnsNote>, but must be included in each instance if <ReturnsNote> is repeated.
Jonix-Comment: this list may be empty -
asStruct
- Specified by:
asStruct
in interfaceOnixComposite.OnixDataComposite<JonixReturnsConditions>
-
structKey
- Specified by:
structKey
in interfaceOnixComposite.OnixDataCompositeWithKey<JonixReturnsConditions,
ReturnsConditionsCodeTypes>
-