Getting Detailed Information About Discounts

Tags: v9preview1 v9

In the V9Preview1 API, discounts now have a property that indicates whether the discount is a loyalty discount (discount by SyrveCard or similar) IDiscountType.IsCardLoyalty. You can also now get detailed information about loyalty discounts through IOperationService.GetCardLoyaltyDiscounts. Information can only be obtained for open orders. After payment, the method will always return an empty collection.

Additionally, the method IEditSession.AddSyrveCardDiscounts has been renamed to IEditSession.AddCardLoyaltyDiscounts.