public class PromotionCodeCentral
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM Copyright statement.
|
Modifier and Type | Method and Description |
---|---|
static void |
addOrderItemPromotionCode(java.lang.Long orderItemID,
java.lang.String code)
This method adds the Promotion Code specified to the specified orderItem.
|
static void |
addOrderPromotionCode(java.lang.Long orderID,
java.lang.String code)
This method adds the Promotion Code specified to the specified order.
If Commerce Version 7 Feature pack 1 is not enabled, the method will only support adds the public promotion codes to the specified order. If Commerce Version 7 Feature pack 1 is enabled, the method will support adds the public and unique promotion codes to the specified order. |
static java.lang.String[] |
getOrderItemPromotionCodes(java.lang.Long orderItemID)
This method returns the Promotion Codes associated with a specified
orderItem.
|
static java.lang.String[] |
getOrderPromotionCodes(java.lang.Long orderID)
This method returns the Promotion Codes associated with a specified
order.
|
static java.lang.String[] |
getOrderPublicPromotionCodes(java.lang.Long orderID)
This method returns the public Promotion Codes associated with a
specified order.
|
static java.lang.String[] |
getOrderUniquePromotionCodes(java.lang.Long orderID)
This method returns the unique Promotion Codes associated with a
specified order.
|
static void |
removeAllCodesForOrder(java.lang.Long ordersID)
This method removes all the Promotion Codes from the specified order.
|
static void |
removeAllCodesForOrderItem(java.lang.Long orderItemID)
This method removes all the Promotion Codes from the specified orderItem.
|
static void |
removeOrderItemPromotionCode(java.lang.Long orderItemID,
java.lang.String code)
This method removes the Promotion Code specified from the specified
orderItem.
|
static void |
removeOrderPromotionCode(java.lang.Long orderID,
java.lang.String code)
This method removes the Promotion Code specified from the specified
order.
If Commerce Version 7 Feature pack 1 is not enabled, the method will only support removes the public promotion codes from the specified order. If Commerce Version 7 Feature pack 1 is enabled, the method will support removes the public and unique promotion codes to the specified order. |
public static final java.lang.String COPYRIGHT
public static java.lang.String[] getOrderPromotionCodes(java.lang.Long orderID) throws ECApplicationException, ECSystemException
orderID
- The order id of the order for which the promotion codes are
required.ECApplicationException
- The ECApplicationException.ECSystemException
- The ECSystemException.public static java.lang.String[] getOrderPublicPromotionCodes(java.lang.Long orderID) throws ECApplicationException, ECSystemException
orderID
- The order id of the order for which the promotion codes are
required.ECApplicationException
- The ECApplicationException.ECSystemException
- The ECSystemException.public static java.lang.String[] getOrderUniquePromotionCodes(java.lang.Long orderID) throws ECApplicationException, ECSystemException
orderID
- The order id of the order for which the promotion codes are
required.ECApplicationException
- The ECApplicationException.ECSystemException
- The ECSystemException.public static java.lang.String[] getOrderItemPromotionCodes(java.lang.Long orderItemID) throws ECApplicationException, ECSystemException
orderItemID
- The orderItem id of the orderItem for which the promotion
codes are required.ECApplicationException
- The ECApplicationException.ECSystemException
- The ECSystemException.public static void addOrderPromotionCode(java.lang.Long orderID, java.lang.String code) throws ECApplicationException, ECSystemException
orderID
- The order id of the order to which the promotion code is to be
added.code
- The promotion code string to be added to the specified order.ECApplicationException
- The ECApplicationException.ECSystemException
- The ECSystemException.public static void addOrderItemPromotionCode(java.lang.Long orderItemID, java.lang.String code) throws ECSystemException
orderItemID
- The orderItem id of the orderItem to which the promotion code
is to be added.code
- The promotion code string to be added to the specified
orderItem.ECSystemException
- The ECSystemException.public static void removeOrderPromotionCode(java.lang.Long orderID, java.lang.String code) throws ECSystemException
orderID
- The order id of the order from which the promotion code is to
be removed.code
- The promotion code string to be removed from the specified
order.ECSystemException
- The ECSystemException.public static void removeOrderItemPromotionCode(java.lang.Long orderItemID, java.lang.String code) throws ECSystemException
orderItemID
- The orderItem id of the orderItem from which the promotion
code is to be removed.code
- The promotion code string to be removed from the specified
orderItem.ECSystemException
- The ECSystemException.public static void removeAllCodesForOrder(java.lang.Long ordersID) throws ECSystemException
ordersID
- The order id of the order from which the promotion codes are
to be removed.ECSystemException
- The ECSystemException.public static void removeAllCodesForOrderItem(java.lang.Long orderItemID) throws ECSystemException
orderItemID
- The orderItem id of the orderItem from which the promotion
codes are to be removed.ECSystemException
- The ECSystemException.