Module jonix.common

Enum Class DiscountCodeTypes

java.lang.Object
java.lang.Enum<DiscountCodeTypes>
com.tectonica.jonix.common.codelist.DiscountCodeTypes
All Implemented Interfaces:
OnixCodelist, Serializable, Comparable<DiscountCodeTypes>, Constable

public enum DiscountCodeTypes extends Enum<DiscountCodeTypes> implements OnixCodelist
Enum that corresponds to ONIX Codelist 100

Description: Discount code type

See Also:
  • Enum Constant Details

    • BIC_discount_group_code

      public static final DiscountCodeTypes BIC_discount_group_code
      UK publisher's or distributor's discount group code in a format specified by BIC to ensure uniqueness (a five-letter prefix allocated by BIC, plus one to three alphanumeric characters - normally digits - chosen by the supplier). See https://bic.org.uk/resources/discount-group-codes/
    • Proprietary_discount_code

      public static final DiscountCodeTypes Proprietary_discount_code
      A publisher's or supplier's own code which identifies a trade discount category, as specified in <DiscountCodeTypeName>. The actual discount for each code is set by trading partner agreement (applies to goods supplied on standard trade discounting terms)
    • Boeksoort

      public static final DiscountCodeTypes Boeksoort
      Terms code used in the Netherlands book trade
    • German_terms_code

      public static final DiscountCodeTypes German_terms_code
      Terms code used in German ONIX applications
    • Proprietary_commission_code

      public static final DiscountCodeTypes Proprietary_commission_code
      A publisher's or supplier's own code which identifies a commission rate category, as specified in <DiscountCodeTypeName>. The actual commission rate for each code is set by trading partner agreement (applies to goods supplied on agency terms)
    • BIC_commission_group_code

      public static final DiscountCodeTypes BIC_commission_group_code
      UK publisher's or distributor's commission group code in format specified by BIC to ensure uniqueness. Format is identical to BIC discount group code, but indicates a commission rather than a discount (applies to goods supplied on agency terms)
    • ISNI_based_discount_group_code

      public static final DiscountCodeTypes ISNI_based_discount_group_code
      ISNI-based discount group scheme devised initially by the German IG ProduktMetadaten, in a format comprised of the supplier's 16-digit ISNI, followed by a hyphen and one to three alphanumeric characters - normally digits - chosen by the supplier. These characters are the index to a discount percentage in a table shared in advance by the supplier with individual customers. In this way, a supplier may maintain individual product-specific discount arrangements with each customer. Only for use in ONIX 3.0 or later

      Jonix-Comment: Introduced in Onix3

  • Field Details

    • code

      public final String code
    • description

      public final String description
  • Method Details

    • values

      public static DiscountCodeTypes[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DiscountCodeTypes valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getCode

      public String getCode()
      Specified by:
      getCode in interface OnixCodelist
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface OnixCodelist
    • byCode

      public static DiscountCodeTypes byCode(String code)
    • byCodeOptional

      public static Optional<DiscountCodeTypes> byCodeOptional(String code)
    • codeToDesciption

      public static String codeToDesciption(String code)