Skip to content

Commit 4caa28b

Browse files
authored
Updated ReturnTransactionData and ExchangeTransactionData interfaces (#3148)
### Background Closes https://github.com/shop/issues-retail/issues/16805?issue=shop%7Cissues-retail%7C17025 ### Solution Updated the interface fields to add returnId and refundId ### 🎩 - This PR is difficult to tophat standalone. - This PR serves as a proposed approach to eventually close this [ticket](https://github.com/shop/issues-retail/issues/16805). Once the approach is finalized, we can update the POS with the changes and tophat locally. ### Checklist - [ ] I have 🎩'd these changes - [ ] I have updated relevant documentation
2 parents 2c62907 + 6820bfd commit 4caa28b

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.changeset/clever-walls-chew.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/ui-extensions': minor
3+
---
4+
5+
Modified transaction data interface fields to include returnId and refundId to Return and Exchange TransactionData.

packages/ui-extensions/src/surfaces/point-of-sale/event/data/ExchangeTransactionData.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {LineItem} from '../../types/cart';
33

44
export interface ExchangeTransactionData extends BaseTransactionComplete {
55
transactionType: 'Exchange';
6+
returnId?: number;
67
exchangeId?: number;
78
lineItemsAdded: LineItem[];
89
lineItemsRemoved: LineItem[];

packages/ui-extensions/src/surfaces/point-of-sale/event/data/ReturnTransactionData.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {LineItem} from '../../types/cart';
33

44
export interface ReturnTransactionData extends BaseTransactionComplete {
55
transactionType: 'Return';
6+
refundId?: number;
67
returnId?: number;
78
exchangeId?: number;
89
lineItems: LineItem[];

0 commit comments

Comments
 (0)