Module jonix.common

Class JonixDiscount

java.lang.Object
com.tectonica.jonix.common.struct.JonixDiscount
All Implemented Interfaces:
JonixStruct, Serializable

public class JonixDiscount extends Object implements JonixStruct, Serializable
This class is a JonixStruct that represents Onix3 <Discount>.

It can be retrieved from the composite by invoking its asStruct() method.

See Also:
  • Field Details

    • EMPTY

      public static final JonixDiscount EMPTY
    • discountType

      public DiscountTypes discountType
    • quantity

      public Double quantity
      Raw Format: Positive real number, with explicit decimal point when required, or zero, as appropriate for the units specified in <EpubUsageUnit>

      (type: dt.PositiveDecimalOrZero)

    • toQuantity

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

      (type: dt.PositiveDecimalOrZero)

    • discountPercent

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

      (type: dt.PercentDecimal)

    • discountAmount

      public Double discountAmount
      Raw Format: Positive real number, with explicit decimal point when required, or zero, suggested maximum length 12 characters

      (type: dt.PositiveDecimalOrZero)

  • Constructor Details

    • JonixDiscount

      public JonixDiscount()