AdjustmentType Class
- public final class AdjustmentType
extends Object
implements Serializable
Specifies the available adjustment types.
Only one object of each type exists.
-
Hierarchy
-
Object
AdjustmentType
-
All Implemented Interfaces
-
Serializable
BASE_PRICE
public static final AdjustmentType
BASE_PRICE
- object for the LINE_DISCOUNT type
I_BASE_PRICE
public static final int I_BASE_PRICE
- integer representing the BASE_PRICE type
I_ITEM_TAX
public static final int I_ITEM_TAX
- integer representing the ITEM_TAX type
I_LINE_DISCOUNT
public static final int I_LINE_DISCOUNT
- integer representing the LINE_DISCOUNT type
I_ORDER_DISCOUNT
public static final int I_ORDER_DISCOUNT
- integer representing the ORDER_DISCOUNT type
I_ORDER_TAX
public static final int I_ORDER_TAX
- integer representing the ORDER_TAX type
I_SHIPPING
public static final int I_SHIPPING
- integer representing the SHIPPING type
I_SHIPPING_BASE_PRICE
public static final int I_SHIPPING_BASE_PRICE
- integer representing the SHIPPING_BASE_PRICE type
I_SHIPPING_DISCOUNT
public static final int I_SHIPPING_DISCOUNT
- integer representing the SHIPPING_DISCOUNT type
ITEM_TAX
public static final AdjustmentType
ITEM_TAX
- object for the LINE_DISCOUNT type
LINE_DISCOUNT
public static final AdjustmentType
LINE_DISCOUNT
- object for the LINE_DISCOUNT type
ORDER_DISCOUNT
public static final AdjustmentType
ORDER_DISCOUNT
- object for the LINE_DISCOUNT type
ORDER_TAX
public static final AdjustmentType
ORDER_TAX
- object for the LINE_DISCOUNT type
S_BASE_PRICE
public static final String
S_BASE_PRICE
- string representing the BASE_PRICE type
S_ITEM_TAX
public static final String
S_ITEM_TAX
- string representing the ITEM_TAX type
S_LINE_DISCOUNT
public static final String
S_LINE_DISCOUNT
- string representing the LINE_DISCOUNT type
S_ORDER_DISCOUNT
public static final String
S_ORDER_DISCOUNT
- string representing the ORDER_DISCOUNT type
S_ORDER_TAX
public static final String
S_ORDER_TAX
- string representing the ORDER_TAX type
S_SHIPPING
public static final String
S_SHIPPING
- string representing the SHIPPING type
S_SHIPPING_BASE_PRICE
public static final String
S_SHIPPING_BASE_PRICE
- string representing the SHIPPING_BASE_PRICE type
S_SHIPPING_DISCOUNT
public static final String
S_SHIPPING_DISCOUNT
- string representing the SHIPPING_DISCOUNT type
SHIPPING
public static final AdjustmentType
SHIPPING
- object for the LINE_DISCOUNT type
SHIPPING_BASE_PRICE
public static final AdjustmentType
SHIPPING_BASE_PRICE
- object for the LINE_DISCOUNT type
SHIPPING_DISCOUNT
public static final AdjustmentType
SHIPPING_DISCOUNT
- object for the LINE_DISCOUNT type
equals(Object) Method
public boolean equals(Object
object)
Compares the specified object to this object. If
the specified object is identical to this object
this method will return true. False will be returned
otherwise.
-
Overrides
-
Object.equals(Object)
getInt() Method
public int getInt()
Returns the string value for this instance.
getObject(String) Method
public static AdjustmentType
getObject(String
token)
Parameters
-
token
- a string to match to a AdjustmentType object
Returns
- the AdjustmentType object that corrsponds to the
specified string token.
getString() Method
public String
getString()
Returns the string value for this instance.
hashCode() Method
public int hashCode()
Returns a hashcode value for the object.
-
Overrides
-
Object.hashCode()
toString() Method
public String
toString()
Returns a string value and the class name for the instance.
This method is intended for debugging and may change.
Use the getString() method to obtain the string value of
the object.
-
Overrides
-
Object.toString()