Two New Promotion APIs

Two new promotion APIs expose the promotion tier index at order and product level in dw.campaign.Discount script API

How:

/**

* Returns the tier index for promotion at order level or bonus product.

* Promotion tiers are always evaluated in the order of the highest threshold (such as quantity, or amount)

* to the lowest threshold. The tier that is evaluated first (that is, the highest quantity or amount) is indexed as 0,

* the next tier 1, and so on. The lowest tier has index n - 1, where n is the total number of tiers.

* @return Tier index or <code>null</code>

*/

public Integer getPromotionTier();

/**

* Returns the tier index by quantity Id of Product promotion. ProductLineItems can have more than one quantity, but

* not all items of that SKU have received the same tier of promotion. Each quantity of the ProductLineItem is

* indexed from 1 to n, where n is the quantity of the ProductLineItem, and this method returns a mapping from that

* quantity index to the index of tier of the promotion that item received. For more information about tier indexes,

* see {@link #getPromotionTier()} method.

*

* @see #getPromotionTier()

* @return Map of Tier index by quantity Id or <code>empty map</code>

*/

public dw.util.Map getItemPromotionTiers()