Module jonix.onix3

Class ToQuantity

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

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

To Quantity

A maximum order quantity eligible for a specified discount, used only in the case of ‘progressive’ discounts. Optional, but where used, must be preceded by a minimum qualifying order quantity (even if that minimum is 1). For the special case where there is no maximum (ie in the repeat of the <Discount> composite that specifies the highest progressive discount), use zero.

Format Positive number, here necessarily an integer, or zero. Suggested maximum length 7 digits
Reference name <ToQuantity>
Short tag <x514>
Cardinality 0…1
Example <ToQuantity>25</ToQuantity>

This tag may be included in the following composites:

Possible placements within ONIX message:

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

      Raw Format: Positive number, here necessarily an integer, or zero. Suggested maximum length 7 digits

      (type: dt.PositiveDecimalOrZero)

    • EMPTY

      public static final ToQuantity EMPTY
  • Constructor Details

    • ToQuantity

      public ToQuantity()
    • ToQuantity

      public ToQuantity(Element element)
  • Method Details