From 6e1f815e68687a7200dd440ee876377d0e060ebc Mon Sep 17 00:00:00 2001 From: Victor Chu Date: Thu, 13 Aug 2026 17:26:11 -0700 Subject: [PATCH] docs(pos): document Discount.amount read behavior from 2026-10 Assisted-By: devx/ebf9cf26-03bb-4c3e-9919-a083a362bb2b --- .../ui-extensions/src/surfaces/point-of-sale/types/cart.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/ui-extensions/src/surfaces/point-of-sale/types/cart.ts b/packages/ui-extensions/src/surfaces/point-of-sale/types/cart.ts index ae4764cbac..75785ca583 100644 --- a/packages/ui-extensions/src/surfaces/point-of-sale/types/cart.ts +++ b/packages/ui-extensions/src/surfaces/point-of-sale/types/cart.ts @@ -246,7 +246,9 @@ export interface SellingPlan { */ export interface Discount { /** - * The discount value to apply. For `'Percentage'` type, this represents the percentage value (For example, "10" for 10% off). For `'FixedAmount'` type, this represents the fixed monetary amount to deduct from the line item price. Commonly used for discount calculations and displaying the discount value to merchants. + * The discount value to apply. For `'Percentage'` type, this represents the percentage value (For example, "10" for 10% off). For `'FixedAmount'` type, this represents the fixed monetary amount to deduct from the line item price. + * + * From API version 2026-10, reading a manual discount from the cart returns the same value that was applied, so discounts can be passed back to `bulkCartUpdate` unchanged. This also requires a POS app version with the corresponding fix; on older POS app versions, reads return the calculated monetary total of the discount instead (the behavior of all API versions before 2026-10). */ amount: number; /**