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
public static java.lang.String[] getOrderPublicPromotionCodes(java.lang.Long orderID) throws ECApplicationException, ECSystemException
public static java.lang.String[] getOrderUniquePromotionCodes(java.lang.Long orderID) throws ECApplicationException, ECSystemException
public static java.lang.String[] getOrderItemPromotionCodes(java.lang.Long orderItemID) throws ECApplicationException, ECSystemException
public static void addOrderPromotionCode(java.lang.Long orderID, java.lang.String code) throws ECApplicationException, ECSystemException
public static void addOrderItemPromotionCode(java.lang.Long orderItemID, java.lang.String code) throws ECSystemException
public static void removeOrderPromotionCode(java.lang.Long orderID, java.lang.String code) throws ECSystemException
public static void removeOrderItemPromotionCode(java.lang.Long orderItemID, java.lang.String code) throws ECSystemException
public static void removeAllCodesForOrder(java.lang.Long ordersID) throws ECSystemException
public static void removeAllCodesForOrderItem(java.lang.Long orderItemID) throws ECSystemException