Module jonix.common

Enum Class PriceIdentifierTypes

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

public enum PriceIdentifierTypes extends Enum<PriceIdentifierTypes> implements OnixCodelist
Enum that corresponds to ONIX Codelist 217

Description: Price identifier type

See Also:
  • Enum Constant Details

    • Proprietary

      public static final PriceIdentifierTypes Proprietary
      Note that <IDTypeName> is required for proprietary identifiers
    • Proprietary_price_point_identifier

      public static final PriceIdentifierTypes Proprietary_price_point_identifier
      Proprietary identifier uniquely identifies price amount and currency. Two unrelated products with the same price amount carry the same identifier, though their price types may be different
    • Proprietary_price_type_identifier

      public static final PriceIdentifierTypes Proprietary_price_type_identifier
      Proprietary identifier uniquely identifies price type, qualifier and any constraints and conditions. Two unrelated products with the same price type carry the same identifier, though their price points may be different
    • Proprietary_price_point_and_type_identifier

      public static final PriceIdentifierTypes Proprietary_price_point_and_type_identifier
      Proprietary identifier identifies a unique combination of price point and type, though two unrelated products may carry the same identifier if all details of their prices are identical
    • Proprietary_unique_price_identifier

      public static final PriceIdentifierTypes Proprietary_unique_price_identifier
      Proprietary identifier is unique to a single price point, price type and product. No two products can carry the same identifier, even if all details of their prices are identical
    • Proprietary_product_price_point_identifier

      public static final PriceIdentifierTypes Proprietary_product_price_point_identifier
      Proprietary identifier uniquely identifies a specific combination of product, price amount and currency, independent of the price type
    • Proprietary_product_price_type_identifier

      public static final PriceIdentifierTypes Proprietary_product_price_type_identifier
      Proprietary identifier uniquely identifies a specific combination of product, price type, qualifier and any constraints and conditions, independent of the price amount and currency. A product with the same product price type identififer may carry differing price amounts, currencies at different points in time
  • Field Details

    • code

      public final String code
    • description

      public final String description
  • Method Details

    • values

      public static PriceIdentifierTypes[] 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 PriceIdentifierTypes 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 PriceIdentifierTypes byCode(String code)
    • byCodeOptional

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

      public static String codeToDesciption(String code)