Module jonix.onix3

Class PriceAmount

java.lang.Object
com.tectonica.jonix.onix3.PriceAmount
All Implemented Interfaces:
OnixElement<Double>, OnixTag, Serializable

public class PriceAmount extends Object implements OnixElement<Double>, Serializable

Price amount

The amount of a price. Optional and non-repeating, but each occurrence of the <Price> composite must include either a <PriceAmount> or a <PriceCoded> composite, with optional tax details, or an <UnpricedItemType> element. Note that free-of-charge products must use <UnpricedItemType> rather than a zero price.

Format Positive real number, with explicit decimal point when required, suggested maximum length 12 characters
Reference name <PriceAmount>
Short tag <j151>
Cardinality 0…1
Example <j151>18.99</j151>

This tag may be included in the following composites:

Possible placements within ONIX message:

See Also:
  • Field Details

    • refname

      public static final String refname
      See Also:
    • shortname

      public static final String shortname
      See Also:
    • datestamp

      public String datestamp
      (type: dt.DateOrDateTime)
    • sourcename

      public String sourcename
      (type: dt.NonEmptyString)
    • sourcetype

      public RecordSourceTypes sourcetype
    • value

      public Double value
      This is the raw content of PriceAmount. Could be null if exists() == false. Use OnixElement.value() instead if you want to get this as an Optional.

      Raw Format: Positive real number, with explicit decimal point when required, suggested maximum length 12 characters

      (type: dt.PositiveDecimal)

    • EMPTY

      public static final PriceAmount EMPTY
  • Constructor Details

    • PriceAmount

      public PriceAmount()
    • PriceAmount

      public PriceAmount(Element element)
  • Method Details