Skip to content

Commit 6aae61b

Browse files
authored
Add Discount.currency optional property (#2734)
* add optional currency property to Discount type. * add changeset.
1 parent ce0f4bc commit 6aae61b

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.changeset/cool-insects-dream.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/ui-extensions': patch
3+
---
4+
5+
Add currency property to Discount interface.

packages/ui-extensions/docs/surfaces/point-of-sale/staticPages/pages/versions.doc.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,20 @@ Refer to the [migration guide](/docs/api/pos-ui-extensions/migrating) for more i
3737
},
3838
],
3939
},
40+
{
41+
type: 'Generic',
42+
anchorLink: '202507',
43+
title: '2025.07',
44+
sectionContent: `
45+
- Added in POS version: 10.6
46+
- Removed in POS version: N/A
47+
- Release day: N/A
48+
49+
### Features
50+
51+
- Added optional \`currency\` property to \`Discount\` interface.
52+
`,
53+
},
4054
{
4155
type: 'Generic',
4256
anchorLink: '202504',
@@ -55,7 +69,7 @@ Refer to the [migration guide](/docs/api/pos-ui-extensions/migrating) for more i
5569
- Added support for the ${TargetLink.PosReceiptFooterBlockRender} target.
5670
- Introduced a [POSReceiptBlock component](/docs/api/pos-ui-extensions/components/posreceiptblock). It's the required parent component for ${TargetLink.PosReceiptFooterBlockRender} targets.
5771
- Introduced a [QRCode component](/docs/api/pos-ui-extensions/components/qrcode). It can be used to render a QR code in POS receipts but must be within a [POSReceiptBlock component](/docs/api/pos-ui-extensions/components/posreceiptblock).
58-
`,
72+
`,
5973
},
6074
{
6175
type: 'Generic',

packages/ui-extensions/src/surfaces/point-of-sale/types/cart.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export interface LineItem {
4545

4646
export interface Discount {
4747
amount: number;
48+
currency?: string;
4849
discountDescription?: string;
4950
type?: string;
5051
}

0 commit comments

Comments
 (0)