Module jonix.common

Enum Class UnpricedItemTypes

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

public enum UnpricedItemTypes extends Enum<UnpricedItemTypes> implements OnixCodelist
Enum that corresponds to ONIX Codelist 57

Description: Unpriced item type

See Also:
  • Enum Constant Details

    • Free_of_charge

      public static final UnpricedItemTypes Free_of_charge
    • Price_to_be_announced

      public static final UnpricedItemTypes Price_to_be_announced
    • Not_sold_separately

      public static final UnpricedItemTypes Not_sold_separately
      Not sold separately at retail
    • Contact_supplier

      public static final UnpricedItemTypes Contact_supplier
      May be used for books that do not carry a recommended retail price; when goods can only be ordered 'in person' from a sales representative; when an ONIX file is 'broadcast' rather than sent one-to-one to a single trading partner; or for digital products offered on subscription or with pricing which is too complex to specify in ONIX
    • Not_sold_as_set

      public static final UnpricedItemTypes Not_sold_as_set
      When a collection that is not sold as a set nevertheless has its own ONIX record
    • Revenue_share

      public static final UnpricedItemTypes Revenue_share
      Unpriced, but available via a pre-determined revenue share agreement
    • Calculated_from_contents

      public static final UnpricedItemTypes Calculated_from_contents
      Price calculated as sum of individual prices of components listed as Product parts. Only for use in ONIX 3.0 or later

      Jonix-Comment: Introduced in Onix3

    • Supplier_does_not_supply

      public static final UnpricedItemTypes Supplier_does_not_supply
      The supplier does not operate, or does not offer this product, in this part of the market as indicated by <territory>. Use when other prices apply in different parts of the market (eg when the market is global, but the particular supplier does not operate outside its domestic territory). Use code 04 when the supplier does supply but has not set a price for part of the market. 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 UnpricedItemTypes[] 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 UnpricedItemTypes 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 UnpricedItemTypes byCode(String code)
    • byCodeOptional

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

      public static String codeToDesciption(String code)