Payments Processed or Fiscalized as Discounts
Tags:
v8
The V8 API has introduced the ability to distinguish discount payments.
Previously, we wrote a note about payments processed as discounts. Now, there are payments that are fiscalized as discounts. Such payments are also non-fiscal and are fiscalized on the FR side not as payments, but as discounts by reducing the cost of dishes. However, in the server OLAP reports, they still appear not as discounts, but as regular non-fiscal payments (whereas payments processed as discounts pretend to be discounts and appear as such in OLAP reports as well).
Thus, our API has undergone the following changes:
- The payment type property
IPaymentType.IsDiscounthas been removed. In its place, two properties have been added:IPaymentType.ProcessAsDiscount— indicates whether the payment type is processed as a discount.IPaymentType.FiscalizeAsDiscount— indicates whether the payment type is fiscalized as a discount.
- The order payment item
IPaymentItemhas been added with two properties:IPaymentItem.IsProcessedAsDiscount— indicates whether this payment was processed as a discount. This property only makes sense for prepayments:IPaymentItem.IsPrepay. For regular payments, the corresponding payment type property should be used:IPaymentType.ProcessAsDiscount.IPaymentItem.IsFiscalizedAsDiscount— indicates whether this payment was fiscalized as a discount. This property only makes sense for prepayments:IPaymentItem.IsPrepay. For regular payments, the corresponding payment type property should be used:IPaymentType.FiscalizeAsDiscount.
- The order discount item
IDiscountItemhas been added with a new propertyIDiscountItem.DiscountPaymentItem— the payment item from the listIOrder.Payments, processed or fiscalized as a discount. If the discount is not payment-related, this property isnull. - The list of payment discounts is still located in
IOrder.PaymentDiscounts.