Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright
|
Modifier and Type | Method and Description |
---|---|
void | cancelCoupon(com.ibm.commerce.marketing.promotion.coupon.Coupon coupon)
Cancels a coupon after it has been used.
|
void | deleteCoupon(com.ibm.commerce.marketing.promotion.coupon.Coupon coupon)
Deletes a coupon.
|
void | deselectCouponForUseInOrder(com.ibm.commerce.marketing.promotion.coupon.CouponKey ckey)
Removes a coupon from an order so that it will not be applied to an order.
|
void | deselectCouponForUseInOrder(com.ibm.commerce.marketing.promotion.coupon.CouponKey ckey, java.util.Date date)
Deprecated.
Use deselectCouponForUseInOrder(CouponKey ckey)
|
com.ibm.commerce.marketing.promotion.coupon.Coupon | issueCoupon(CustomerKey user, Promotion promotion, java.lang.String code)
Issues a coupon for a registered user.
|
com.ibm.commerce.marketing.promotion.coupon.Coupon | issueCoupon(CustomerKey user, Promotion promotion, java.lang.String code, java.util.Date time)
Deprecated.
Use issueCoupon(CustomerKey user,Promotion promotion,String code)
|
com.ibm.commerce.marketing.promotion.coupon.Coupon[] | listCouponsFor(CustomerKey customerKey, int state)
Lists coupons in a state for a user.
|
com.ibm.commerce.marketing.promotion.coupon.Coupon[] | listCouponsFor(CustomerKey customerKey, int state, java.util.Date date)
Deprecated.
Use listCouponsFor(CustomerKey customerKey, int state)
|
com.ibm.commerce.marketing.promotion.coupon.Coupon[] | listCouponsInUseForOrder(OrderKey okey)
Lists coupons in use for an order.
|
com.ibm.commerce.marketing.promotion.coupon.Coupon[] | listCouponsInUseForOrder(OrderKey okey, java.util.Date date)
Deprecated.
Use listCouponsInUseForOrder(OrderKey okey)
|
void | restoreCancelledCouponsInOrder(OrderKey okey)
This method restores all cancelled coupons in a specified order.
|
void | restoreUnusedCouponsInOrder(OrderKey okey)
Restores all unused coupons in an order.
|
void | restoreUnusedCouponsInOrder(OrderKey okey, java.util.Date date)
Deprecated.
Use restoreUnusedCouponsInOrder(OrderKey okey)
|
void | selectCouponForUseInOrder(com.ibm.commerce.marketing.promotion.coupon.CouponKey ckey, CustomerKey ukey, OrderKey okey)
Selects a coupon and adds it to an order so that the coupon will be used with the order.
|
void | selectCouponForUseInOrder(com.ibm.commerce.marketing.promotion.coupon.CouponKey ckey, CustomerKey ukey, OrderKey okey, java.util.Date date)
Deprecated.
Use selectCouponForUseInOrder(CouponKey ckey,CustomerKey ukey,OrderKey okey)
|
com.ibm.commerce.marketing.promotion.coupon.Coupon | transferCoupon(com.ibm.commerce.marketing.promotion.coupon.Coupon coupon, CustomerKey to)
Transfers a coupon from the original owner to another owner.
|
com.ibm.commerce.marketing.promotion.coupon.Coupon | transferCoupon(com.ibm.commerce.marketing.promotion.coupon.Coupon coupon, CustomerKey to, java.util.Date date)
Deprecated.
Use transferCoupon(Coupon coupon, CustomerKey to)
|
PromotionErrorReport | validateCoupon(com.ibm.commerce.marketing.promotion.coupon.CouponKey ckey, CustomerKey ukey)
Validates a coupon.
|
PromotionErrorReport | validateCoupon(com.ibm.commerce.marketing.promotion.coupon.CouponKey ckey, CustomerKey ukey, java.util.Date date)
Deprecated.
Use validateCoupon(CouponKey ckey,CustomerKey ukey)
|
static final java.lang.String COPYRIGHT
com.ibm.commerce.marketing.promotion.coupon.Coupon issueCoupon(CustomerKey user, Promotion promotion, java.lang.String code) throws PromotionApplicationException
com.ibm.commerce.marketing.promotion.coupon.Coupon issueCoupon(CustomerKey user, Promotion promotion, java.lang.String code, java.util.Date time) throws PromotionApplicationException
com.ibm.commerce.marketing.promotion.coupon.Coupon transferCoupon(com.ibm.commerce.marketing.promotion.coupon.Coupon coupon, CustomerKey to, java.util.Date date) throws PromotionApplicationException
com.ibm.commerce.marketing.promotion.coupon.Coupon transferCoupon(com.ibm.commerce.marketing.promotion.coupon.Coupon coupon, CustomerKey to) throws PromotionApplicationException
void cancelCoupon(com.ibm.commerce.marketing.promotion.coupon.Coupon coupon) throws PromotionApplicationException
void deleteCoupon(com.ibm.commerce.marketing.promotion.coupon.Coupon coupon) throws PromotionApplicationException
com.ibm.commerce.marketing.promotion.coupon.Coupon[] listCouponsFor(CustomerKey customerKey, int state)
com.ibm.commerce.marketing.promotion.coupon.Coupon[] listCouponsFor(CustomerKey customerKey, int state, java.util.Date date)
com.ibm.commerce.marketing.promotion.coupon.Coupon[] listCouponsInUseForOrder(OrderKey okey)
com.ibm.commerce.marketing.promotion.coupon.Coupon[] listCouponsInUseForOrder(OrderKey okey, java.util.Date date)
void selectCouponForUseInOrder(com.ibm.commerce.marketing.promotion.coupon.CouponKey ckey, CustomerKey ukey, OrderKey okey) throws PromotionApplicationException
void selectCouponForUseInOrder(com.ibm.commerce.marketing.promotion.coupon.CouponKey ckey, CustomerKey ukey, OrderKey okey, java.util.Date date) throws PromotionApplicationException
void deselectCouponForUseInOrder(com.ibm.commerce.marketing.promotion.coupon.CouponKey ckey) throws PromotionApplicationException
void deselectCouponForUseInOrder(com.ibm.commerce.marketing.promotion.coupon.CouponKey ckey, java.util.Date date) throws PromotionApplicationException
void restoreUnusedCouponsInOrder(OrderKey okey) throws PromotionApplicationException
void restoreUnusedCouponsInOrder(OrderKey okey, java.util.Date date) throws PromotionApplicationException
void restoreCancelledCouponsInOrder(OrderKey okey) throws PromotionApplicationException
PromotionErrorReport validateCoupon(com.ibm.commerce.marketing.promotion.coupon.CouponKey ckey, CustomerKey ukey) throws PromotionApplicationException
PromotionErrorReport validateCoupon(com.ibm.commerce.marketing.promotion.coupon.CouponKey ckey, CustomerKey ukey, java.util.Date date) throws PromotionApplicationException