public class ReturnableStates
extends java.lang.Object
There is only one state that is considered "returnable". All other states are "non-returnable" states.
These states are returned by API in ReturnTools. See ReturnTools
To add additional "non-returnable" states, that API should be extended to return them.
This class also provides resourced values for each state. To add a new state, a new resourced value should also be added.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
ITEM_ALREADY_RETURNED
Generic state to indicate the item is not returnable.
|
static java.lang.String |
ITEM_NON_RETURNABLE
State to indicate the item's product or sku has its non-returnable flag set to true.
|
static java.lang.String |
ITEM_NOT_RETURNABLE
Generic state to indicate the item is not returnable.
|
static java.lang.String |
ITEM_RETURNABLE
Generic state to indicate the item is returnable.
|
static java.lang.String |
ORDER_NO_ITEMS_RETURNABLE
Generic state to indicate the order is not returnable because there are no items in it that are returnable.
|
static java.lang.String |
ORDER_NOT_FULFILLED
Generic state to indicate the order is not returnable because it hasn't been completely fulfilled.
|
static java.lang.String |
ORDER_NOT_RETURNABLE
Generic state to indicate the order is not returnable.
|
static java.lang.String |
ORDER_RETURNABLE
Generic state to indicate the order is returnable.
|
protected static java.lang.String |
sResourceFileName |
Constructor and Description |
---|
ReturnableStates() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getStateDescription(java.lang.String pState,
java.util.Locale pLocale) |
public static java.lang.String CLASS_VERSION
protected static java.lang.String sResourceFileName
public static final java.lang.String ITEM_RETURNABLE
ReturnTools.getItemReturnableState(RepositoryItem)
public static final java.lang.String ITEM_ALREADY_RETURNED
ReturnTools.getItemReturnableState(RepositoryItem)
public static final java.lang.String ITEM_NOT_RETURNABLE
ReturnTools.getItemReturnableState(RepositoryItem)
public static final java.lang.String ITEM_NON_RETURNABLE
ReturnTools.getItemReturnableState(RepositoryItem)
public static final java.lang.String ORDER_RETURNABLE
ReturnTools.getOrderReturnableState(RepositoryItem)
public static final java.lang.String ORDER_NOT_FULFILLED
ReturnTools.getOrderReturnableState(RepositoryItem)
public static final java.lang.String ORDER_NO_ITEMS_RETURNABLE
ReturnTools.getOrderReturnableState(RepositoryItem)
public static final java.lang.String ORDER_NOT_RETURNABLE
ReturnTools.getOrderReturnableState(RepositoryItem)