Add optional refundId, returnId, exchangeId, lineItemsAdded, and lineItemsRemoved fields to ReprintReceiptData to support reprinting return and exchange receipts.#4178
Conversation
🚨🚨🚨 Docs migration in progress 🚨🚨🚨We are actively migrating UI extension reference docs to MDX in the
During this migration, please be aware of the following:
Doc comments in Examples that previously lived in this repo are being moved to the What should I do?
Thanks for your patience while we complete the migration! 🙏 |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
…ItemsRemoved fields to ReprintReceiptData to support reprinting return and exchange receipts.
65d03e6 to
7408712
Compare
Merge activity
|

Background
This pull request enhances the
ReprintReceiptDatainterface to support reprinting receipts for return and exchange transactions in addition to the existing sale transaction support.Solution
Extended the
ReprintReceiptDatainterface with five new optional fields:refundId: Tracks refund ID when a refund was issued for the returnreturnId: Identifies the completed return transactionexchangeId: Links the return to an exchange transaction when applicablelineItemsAdded: Captures items added to the customer during an exchangelineItemsRemoved: Captures items removed from the customer during an exchangeThese fields are optional to maintain backward compatibility with existing sale transaction reprints while enabling comprehensive support for return and exchange receipt reprinting scenarios.
🎩
refundId,returnId, andexchangeIdfields to track transaction relationshipslineItemsAddedandlineItemsRemovedarrays to support exchange transaction detailsLineItemtype to support the new exchange-related fieldsChecklist