Enum Class PriceableFieldType
- All Implemented Interfaces:
Serializable,Comparable<PriceableFieldType>,Constable
public enum PriceableFieldType
extends Enum<PriceableFieldType>
implements Comparable<PriceableFieldType>
Fields on
PriceableTargets that the pricing service cares about.- Author:
- Nathan Moore (nathanmoore).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOnly valid in an adjustment context.Base cost of manufacturing the target provided by the target itself rather than being derived by the pricing service.Base price to sell the target at provided by the target itself rather than being derived by the pricing service.Price from a contract price listPrice from a sale price listOnly valid for an adjustment context.Price from a standard price list -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringfield()final intorder()toString()static PriceableFieldTypeReturns the enum constant of this class with the specified name.static PriceableFieldType[]values()Returns an array containing the constants of this enum class, in the order they are declared.static List<PriceableFieldType>Returns an ordered list of all fields, excluding base cost.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface java.lang.Comparable
compareTo
-
Enum Constant Details
-
BASE_COST
Base cost of manufacturing the target provided by the target itself rather than being derived by the pricing service. Refers to the direct cost passed in from the product or the cost as provided by a COST price list type. -
BASE_PRICE
Base price to sell the target at provided by the target itself rather than being derived by the pricing service. -
STANDARD_PRICE
Price from a standard price list -
SALE_PRICE
Price from a sale price list -
STANDARD_AND_SALE_PRICE
Only valid for an adjustment context. Indicates a modification applies to both the standard and sale prices. -
CONTRACT_PRICE
Price from a contract price list -
ALL
Only valid in an adjustment context. Indicates the adjustment applies to all pricing phases (e.g. STANDARD, SALE, and CONTRACT). Note: this would not apply to the COST phase which is not adjustable out of the box.
-
-
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
-
field
-
order
public final int order() -
valuesOrdered
Returns an ordered list of all fields, excluding base cost. -
toString
- Overrides:
toStringin classEnum<PriceableFieldType>
-