The promotionUsage
pipeline returns data on the promotions filled. The pipeline chain’s transaction mode is TX_REQUIRED.
The following sections describe each processor in the pipeline chain.
lookupPromotion
Looks up the promotions and obtains the promotion IDs.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | Return value of 1 executes |
convertPromotionCurrency
Iterates through each line item and converts the item’s local currency values to standard currency values.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | Return value of 1 executes |
checkOrderCommerceItemExists
Identifies that the commerce item within an order exists.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | Return value of 1 executes |
lookupPromotionSku
Looks up the SKU associated with the promotion ID.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | Return value of 1 executes |
lookupPromotionProduct
Looks up the product associated with the promotion ID.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | Return value of 1 executes |
lookupPromotionCategory
Looks up the category associated with the promotion ID.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | Return value of 1 executes |
getUnspecifiedPromotionSku
Obtains the SKU used within a promotion to assign it when the commerce item is not found.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | Return value of 1 executes |
getUnspecifiedPromotionProduct
Obtains the product ID used in a promotion to assign it when the commerce item is not found.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | Return value of 1 executes |
getUnspecifiedPromotionCategory
Obtains the category used in a promotion to assign it when the commerce item is not found.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | Return value of 1 executes |
lookupCouponProcessor
Looks for coupons associated with the promotion ID.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | Return value of 1 executes |
couponUsageIdProcessor
Generates a unique ID for each individual coupon code used within the scope of an order.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | Return value of 1 executes |
logPromotionUsage
Generates a log of the promotions used.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | None. This is the last processor in the pipeline. |