Module jonix.onix3

Class DiscountCode

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

public class DiscountCode extends Object implements OnixElement<String>, Serializable

Discount code value

A discount or commission code from the scheme specified in the <DiscountCodeType> element. Mandatory in each occurrence of the <DiscountCoded> composite, and non-repeating.

Format According to the scheme specified in <DiscountCodeType>
Reference name <DiscountCode>
Short tag <j364>
Cardinality 1
Example <DiscountCode>AHACP033</DiscountCode>

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 String value
      This is the raw content of DiscountCode. Could be null if exists() == false. Use OnixElement.value() instead if you want to get this as an Optional.

      Raw Format: According to the scheme specified in <DiscountCodeType>

      (type: dt.NonEmptyString)

    • EMPTY

      public static final DiscountCode EMPTY
  • Constructor Details

    • DiscountCode

      public DiscountCode()
    • DiscountCode

      public DiscountCode(Element element)
  • Method Details