- All Implemented Interfaces:
OnixCodelist
,Serializable
,Comparable<DiscountCodeTypes>
,Constable
Enum
that corresponds to ONIX Codelist 100
Description: Discount code type
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface com.tectonica.jonix.common.OnixCodelist
OnixCodelist.Pair
-
Enum Constant Summary
Enum ConstantDescriptionUK publisher's or distributor's commission group code in format specified by BIC to ensure uniqueness.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).Terms code used in the Netherlands book tradeTerms code used in German ONIX applicationsISNI-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.A publisher's or supplier's own code which identifies a commission rate category, as specified in <DiscountCodeTypeName>.A publisher's or supplier's own code which identifies a trade discount category, as specified in <DiscountCodeTypeName>. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DiscountCodeTypes
static Optional<DiscountCodeTypes>
byCodeOptional
(String code) static String
codeToDesciption
(String code) getCode()
static DiscountCodeTypes
Returns the enum constant of this class with the specified name.static DiscountCodeTypes[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.tectonica.jonix.common.OnixCodelist
pair
-
Enum Constant Details
-
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
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
Terms code used in the Netherlands book trade -
German_terms_code
Terms code used in German ONIX applications -
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
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
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 laterJonix-Comment: Introduced in Onix3
-
-
Field Details
-
code
-
description
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getCode
- Specified by:
getCode
in interfaceOnixCodelist
-
getDescription
- Specified by:
getDescription
in interfaceOnixCodelist
-
byCode
-
byCodeOptional
-
codeToDesciption
-