Module jonix.onix3

Class DiscountPercent

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

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

Discount percentage

A discount percentage applicable to the price carried in an occurrence of the <Price> composite. Optional and non-repeating; but either <DiscountPercent> or <DiscountAmount> or both must be present in each occurrence of the <Discount> composite.

Format Real number between zero and 100 (inclusive), including explicit decimal point when required, suggested maximum length 6 characters
Reference name <DiscountPercent>
Short tag <j267>
Cardinality 0…1
Example <DiscountPercent>37.5</DiscountPercent>

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 DiscountPercent. Could be null if exists() == false. Use OnixElement.value() instead if you want to get this as an Optional.

      Raw Format: Real number between zero and 100 (inclusive), including explicit decimal point when required, suggested maximum length 6 characters

      (type: dt.PercentDecimal)

    • EMPTY

      public static final DiscountPercent EMPTY
  • Constructor Details

    • DiscountPercent

      public DiscountPercent()
    • DiscountPercent

      public DiscountPercent(Element element)
  • Method Details