Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/ui-extensions/checkout/preact.esnext
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./build/esnext/surfaces/checkout/preact/index.esnext";
1 change: 1 addition & 0 deletions packages/ui-extensions/checkout/preact.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("./build/cjs/surfaces/checkout/preact/index.js");
1 change: 1 addition & 0 deletions packages/ui-extensions/checkout/preact.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./build/esm/surfaces/checkout/preact/index.mjs";
1 change: 1 addition & 0 deletions packages/ui-extensions/customer-account/preact.esnext
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./build/esnext/surfaces/customer-account/preact/index.esnext";
1 change: 1 addition & 0 deletions packages/ui-extensions/customer-account/preact.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("./build/cjs/surfaces/customer-account/preact/index.js");
1 change: 1 addition & 0 deletions packages/ui-extensions/customer-account/preact.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./build/esm/surfaces/customer-account/preact/index.mjs";
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ export interface LineItem {
}

export interface Discount {
/**
* The discount value to apply. For `'Percentage'` type, this is the percentage value (for example, `10` for 10% off). For `'FixedAmount'` type, this is the fixed monetary amount to deduct.
*
* 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;
currency?: string;
discountDescription?: string;
Expand Down
Loading