public interface PromotionCodeManager extends PromotionCodeResolver
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Deprecated.
IBM Copyright
|
static int |
PROMO_CODE_IN_USE
Deprecated.
A promotion code is being used in a order
|
static int |
PROMO_CODE_USED
Deprecated.
A promotion code has been used in a order that's completed
|
Modifier and Type | Method and Description |
---|---|
void |
addCodeForOrder(java.lang.String code,
OrderKey okey)
Deprecated.
Use addCodeForOrder(String code, OrderKey okey, Date date)
|
void |
addCodeForOrder(java.lang.String code,
OrderKey okey,
java.util.Date date)
Deprecated.
Add a promotion code to an order
|
java.lang.String[] |
listCodeForOrder(OrderKey okey)
Deprecated.
List all the codes that are used in an order
|
void |
removeAllCodesForOrder(OrderKey okey)
Deprecated.
Removes all promotion codes entered for an order
|
void |
removeCodeForOrder(java.lang.String code,
OrderKey okey)
Deprecated.
Removes a promotion code entered for an order
|
PromotionErrorReport |
validatePromotionCode(java.lang.String code,
CustomerKey ukey,
StoreKey storeKey)
Deprecated.
Use validatePromotionCode(String code,CustomerKey ukey,StoreKey storeKey, Date date)
|
PromotionErrorReport |
validatePromotionCode(java.lang.String code,
CustomerKey ukey,
StoreKey storeKey,
java.util.Date date)
Deprecated.
Validates a promotion code.
|
resolve, resolve
static final java.lang.String COPYRIGHT
static final int PROMO_CODE_IN_USE
static final int PROMO_CODE_USED
void addCodeForOrder(java.lang.String code, OrderKey okey) throws PromotionApplicationException
code
- the codeokey
- the orderPromotionApplication
- is thrown when system fails to add the code to the orderPromotionApplicationException
void addCodeForOrder(java.lang.String code, OrderKey okey, java.util.Date date) throws PromotionApplicationException
code
- the codeokey
- the orderdate
- Current or Preview time to check if the coupon is valid or not.PromotionApplication
- is thrown when system fails to add the code to the orderPromotionApplicationException
java.lang.String[] listCodeForOrder(OrderKey okey)
okey
- void removeCodeForOrder(java.lang.String code, OrderKey okey) throws PromotionApplicationException
code
- the codeokey
- the orderPromotionApplication
- is thrown when system fails to remove the code from the orderPromotionApplicationException
void removeAllCodesForOrder(OrderKey okey) throws PromotionApplicationException
okey
- the orderPromotionApplication
- is thrown when system fails to remove the codes from the orderPromotionApplicationException
PromotionErrorReport validatePromotionCode(java.lang.String code, CustomerKey ukey, StoreKey storeKey) throws PromotionApplicationException
code
- the codeukey
- customer who entered the codestoreKey
- key of the store where the customer is shoppingPromotionApplicationException
- if any of the 3 criteria is not satisfied.PromotionErrorReport validatePromotionCode(java.lang.String code, CustomerKey ukey, StoreKey storeKey, java.util.Date date) throws PromotionApplicationException
code
- the codeukey
- customer who entered the codestoreKey
- key of the store where the customer is shoppingdate
- Current or Preview time to check if the coupon is valid or not.PromotionApplicationException
- if any of the 3 criteria is not satisfied.