- All Implemented Interfaces:
OnixComposite,OnixComposite.OnixDataComposite<JonixPriceCoded>,OnixComposite.OnixDataCompositeWithKey<JonixPriceCoded,,PriceCodeTypes> OnixTag,Serializable
Price coded composite
An optional group of data elements to carry a price that is expressed as one of a discrete set of price points, tiers or bands, rather than actual currency amounts. Each occurrence of the <Price> composite must include either a <PriceAmount> or a <PriceCoded> composite, with optional tax details, or an <UnpricedItemType> element.
| Reference name | <PriceCoded> |
| Short tag | <pricecoded> |
| Cardinality | 0…1 |
- <
Price>
Product⯈ProductSupply⯈SupplyDetail⯈Price⯈PriceCoded
- 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
FieldsModifier and TypeFieldDescription(type: dt.DateOrDateTime)static final PriceCodedstatic final Stringstatic final String(type: dt.NonEmptyString) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis is an internal API.asStruct()booleanexists()indicates whether this tag exists in the ONIX recordFor advanced use-cases only.voidifExists(Consumer<PriceCoded> action) A price code from the scheme specified in the <PriceCodeType> element.An ONIX code identifying the scheme from which the value in the <PriceCode> element is taken.A name which identifies a proprietary price code type.
-
Field Details
-
refname
- See Also:
-
shortname
- See Also:
-
datestamp
(type: dt.DateOrDateTime) -
sourcename
(type: dt.NonEmptyString) -
sourcetype
-
EMPTY
-
-
Constructor Details
-
PriceCoded
public PriceCoded() -
PriceCoded
-
-
Method Details
-
_initialize
public void _initialize()Description copied from interface:OnixCompositeThis 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:
_initializein interfaceOnixComposite
-
exists
public boolean exists()Description copied from interface:OnixTagindicates whether this tag exists in the ONIX record -
ifExists
-
getXmlElement
Description copied from interface:OnixCompositeFor advanced use-cases only.- Specified by:
getXmlElementin interfaceOnixComposite- Returns:
- native representation of the XML element underlying to this tag
-
priceCodeType
An ONIX code identifying the scheme from which the value in the <PriceCode> element is taken. Mandatory in an occurrence of the <PriceCoded> composite, and non-repeating.
JONIX adds: this field is required -
priceCode
A price code from the scheme specified in the <PriceCodeType> element. Mandatory in each occurrence of the <PriceCoded> composite, and non-repeating.
JONIX adds: this field is required -
priceCodeTypeName
A name which identifies a proprietary price code type. Must be used when, and only when the code in the <PriceCodeType> element indicates a proprietary scheme, eg a retailer’s price banding scheme. Optional and non-repeating.
JONIX adds: this field is optional -
asStruct
- Specified by:
asStructin interfaceOnixComposite.OnixDataComposite<JonixPriceCoded>
-
structKey
- Specified by:
structKeyin interfaceOnixComposite.OnixDataCompositeWithKey<JonixPriceCoded,PriceCodeTypes>
-