Module jonix.common

Enum Class PriceConditionTypes

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

public enum PriceConditionTypes extends Enum<PriceConditionTypes> implements OnixCodelist
Enum that corresponds to ONIX Codelist 167

Description: Price condition type

See Also:
  • Enum Constant Details

    • No_conditions

      public static final PriceConditionTypes No_conditions
      Allows positive indication that there are no conditions (the default if <PriceCondition> is omitted)
    • Includes_updates

      public static final PriceConditionTypes Includes_updates
      Purchase at this price includes specified updates
    • Must_also_purchase_updates

      public static final PriceConditionTypes Must_also_purchase_updates
      Purchase at this price requires commitment to purchase specified updates, not included in price
    • Updates_available

      public static final PriceConditionTypes Updates_available
      Updates may be purchased separately, no minimum commitment required
    • Linked_subsequent_purchase_price

      public static final PriceConditionTypes Linked_subsequent_purchase_price
      Use with <PriceConditionQuantity> and <ProductIdentifier>. Purchase at this price requires commitment to purchase the specified linked product, which is not included in the price

      Jonix-Comment: Introduced in Onix3

    • Linked_prior_purchase_price

      public static final PriceConditionTypes Linked_prior_purchase_price
      Use with <PriceConditionQuantity> and <ProductIdentifier>. Purchase at this price requires prior purchase of the specified linked product
    • Linked_price

      public static final PriceConditionTypes Linked_price
      Use with <PriceConditionQuantity> and <ProductIdentifier>. Purchase at this price requires simultaneous purchase of the specified linked product, which is not included in the price
    • Auto_renewing

      public static final PriceConditionTypes Auto_renewing
      The rental or subscription will automatically renew at the end of the period unless actively cancelled

      Jonix-Comment: Introduced in Onix3

    • Combined_price

      public static final PriceConditionTypes Combined_price
      Purchase at this price includes the price of the specified other product

      Jonix-Comment: Introduced in Onix3

    • Rental_duration

      public static final PriceConditionTypes Rental_duration
      The duration of the rental to which the price applies. Deprecated, use <PriceConstraint> instead
    • Rental_to_purchase

      public static final PriceConditionTypes Rental_to_purchase
      Purchase at this price requires prior rental of the product. <PriceConditionQuantity> gives minimum prior rental period, and <ProductIdentifier> may be used if rental uses a different product identifier
    • Rental_extension

      public static final PriceConditionTypes Rental_extension
      Upgrade to longer rental duration. <PriceConditionQuantity> gives minimum prior rental duration, and <ProductIdentifier> may be used if rental uses a different product identifier. Separate price constraint with time limited license duration (code 07) specifies the new combined rental duration
  • Field Details

    • code

      public final String code
    • description

      public final String description
  • Method Details

    • values

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

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

      public static String codeToDesciption(String code)