public PromotionReward[] GetRewards() { var retVal = new CatalogItemAmountReward { Amount = Amount, AmountType = RewardAmountType.Absolute, ProductId = ProductId }; return(new PromotionReward[] { retVal }); }
public PromotionReward[] GetRewards() { var retVal = new CatalogItemAmountReward { Amount = Amount, AmountType = RewardAmountType.Relative, ProductId = ProductId, MaxLimit = MaxLimit }; return(new PromotionReward[] { retVal }); }
public PromotionReward[] GetRewards() { var retVal = new CatalogItemAmountReward { Amount = 100, AmountType = RewardAmountType.Relative, Quantity = NumItem, ProductId = ProductId }; return(new PromotionReward[] { retVal }); }
public virtual PromotionReward[] GetRewards() { var retVal = new CatalogItemAmountReward { Amount = Amount, AmountType = RewardAmountType.Relative, Quantity = ItemLimit, ForNthQuantity = ForNthQuantity, InEveryNthQuantity = InEveryNthQuantity, ProductId = Product?.ProductId, MaxLimit = MaxLimit, }; return(new PromotionReward[] { retVal }); }