Skip to content

Add optional refundId, returnId, exchangeId, lineItemsAdded, and lineItemsRemoved fields to ReprintReceiptData to support reprinting return and exchange receipts.#4178

Merged
mauriciosierra merged 1 commit into2026-04-rcfrom
ms/pos_add_return_exchange_data_to_reprint
Mar 20, 2026
Merged

Add optional refundId, returnId, exchangeId, lineItemsAdded, and lineItemsRemoved fields to ReprintReceiptData to support reprinting return and exchange receipts.#4178
mauriciosierra merged 1 commit into2026-04-rcfrom
ms/pos_add_return_exchange_data_to_reprint

Conversation

@mauriciosierra
Copy link
Copy Markdown
Contributor

@mauriciosierra mauriciosierra commented Mar 20, 2026

Background

This pull request enhances the ReprintReceiptData interface to support reprinting receipts for return and exchange transactions in addition to the existing sale transaction support.

Solution

Extended the ReprintReceiptData interface with five new optional fields:

  • refundId: Tracks refund ID when a refund was issued for the return
  • returnId: Identifies the completed return transaction
  • exchangeId: Links the return to an exchange transaction when applicable
  • lineItemsAdded: Captures items added to the customer during an exchange
  • lineItemsRemoved: Captures items removed from the customer during an exchange

These fields are optional to maintain backward compatibility with existing sale transaction reprints while enabling comprehensive support for return and exchange receipt reprinting scenarios.

🎩

  • Added optional refundId, returnId, and exchangeId fields to track transaction relationships
  • Added lineItemsAdded and lineItemsRemoved arrays to support exchange transaction details
  • Updated documentation comments to reflect broader transaction type support
  • Imported LineItem type to support the new exchange-related fields

Checklist

  • I have 🎩'd these changes
  • I have updated relevant documentation

@github-actions
Copy link
Copy Markdown
Contributor

🚨🚨🚨 Docs migration in progress 🚨🚨🚨

We are actively migrating UI extension reference docs to MDX in the areas/platforms/shopify-dev zone of the monorepo. This impacts docs for the following surfaces:

During this migration, please be aware of the following:

.doc.ts files are being deprecated. Changes to .doc.ts files in this repo will not be reflected in the new MDX-based docs. If you need to update docs for a reference that has already been migrated, make your changes directly in the areas/platforms/shopify-dev zone of the monorepo instead.

Doc comments in .ts source files (the comment blocks above types and functions) are also affected. Generating docs from these comments currently requires a newer version of the @shopify/generate-docs library that isn't yet available. Updates to doc comments may not produce the expected output until the migration is complete.

Examples that previously lived in this repo are being moved to the areas/platforms/shopify-dev zone of the monorepo and should be authored there going forward.

What should I do?

  • If your PR includes changes to .doc.ts files, doc comments, or examples, please reach out to us in #devtools-proj-templated-refs so we can help ensure your updates are captured correctly.
  • If your PR is limited to source code changes (non-docs), you can ignore this notice.

Thanks for your patience while we complete the migration! 🙏

Copy link
Copy Markdown
Contributor Author

@mauriciosierra mauriciosierra marked this pull request as ready for review March 20, 2026 15:22
…ItemsRemoved fields to ReprintReceiptData to support reprinting return and exchange receipts.
@mauriciosierra mauriciosierra force-pushed the ms/pos_add_return_exchange_data_to_reprint branch from 65d03e6 to 7408712 Compare March 20, 2026 19:07
Copy link
Copy Markdown
Contributor Author

mauriciosierra commented Mar 20, 2026

Merge activity

  • Mar 20, 7:08 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Mar 20, 7:09 PM UTC: @mauriciosierra merged this pull request with Graphite.

@mauriciosierra mauriciosierra merged commit 10d5622 into 2026-04-rc Mar 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants