Skip to content

Commit 1940232

Browse files
authored
Add taxLines property to ShippingLine interface (#2972)
* add `shippingLine.taxLines` to pos type. * add changeset.
1 parent 62bdfdb commit 1940232

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.changeset/slimy-candles-beam.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 optional `shippingLines.taxLines` property.

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ Refer to the [migration guide](/docs/api/pos-ui-extensions/migrating) for more i
6464
- Added optional \`currency\` property to \`Discount\` interface.
6565
- Added \`executedAt\` property to \`BaseTransactionComplete\` interface.
6666
- Added optional \`exchangeId\` and \`returnId\` property to \`ReturnTransactionData\` interface.
67-
- Added optional \`onBlur\` handler to \`SearchBar\` component.
6867
- Added required \`variantId\` property to \`ProductApi\` interface.
68+
- Added optional \`taxLines\` property to \`ShippingLine\` interface.
69+
- Added optional \`onBlur\` handler to \`SearchBar\` component.
6970
7071
`,
7172
},

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import type {Money} from './money';
2+
import type {TaxLine} from './tax-line';
23

34
export interface ShippingLine {
45
handle?: string;
56
price: Money;
67
title?: string;
8+
taxLines?: TaxLine[];
79
}
810

911
export interface CalculatedShippingLine extends ShippingLine {

0 commit comments

Comments
 (0)