Skip to content

Commit f9ab867

Browse files
authored
add tipAmount to BaseTransactionComplete type (#3586)
### Background Our compliance partners need tipAmount available in the data payload they receive for reporting. This PR updates the BaseTransactionComplete type to include tipAmount as optional. shop/issues-retail#20523 shop/issues-retail#20463 ### Solution Add tipAmount to BaseTransactionComplete type ### Checklist - [x] I have 🎩'd these changes - [ ] I have updated relevant documentation
1 parent b26cc8b commit f9ab867

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/funny-moons-share.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 tipAmount field to POS transaction data types

packages/ui-extensions/src/surfaces/point-of-sale/types/base-transaction-complete.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ export interface BaseTransactionComplete {
1717
balanceDue: Money;
1818
shippingLines?: ShippingLine[];
1919
taxLines?: TaxLine[];
20+
tipAmount?: Money;
2021
executedAt: string;
2122
}

0 commit comments

Comments
 (0)