Skip to content

Conversation

@chadcromwell
Copy link
Member

@chadcromwell chadcromwell commented Oct 8, 2025

Background

This PR adds support for:

  • DiscountAllocations​ in the Cart Line Item API for POS extensions, allowing developers to see the precise proportion of a discount applied to a particular line item.
  • The pos.receipt-header.block.render​ target.
  • ExchangeTransactionData​ with optional returnId​ and ReturnTransactionData​ with optional refundId​.

These changes are cherry-picked from 2025-10.

Solution

See the following PRs for more information:

🎩

  • Test that POS extensions can properly access and display discount allocation information
  • Verify that existing functionality continues to work with this new optional field
  • Test that POS extensions can register for the pos.receipt-header.block.render​ target and render components
  • Verify thatExchangeTransactionData contains optional returnId and ReturnTransactionData contains optional refundId

Checklist

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

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@chadcromwell chadcromwell marked this pull request as ready for review October 8, 2025 15:03
@chadcromwell chadcromwell changed the title Adds DiscountAllocation to CartLineItem API Backport Oct 8, 2025
@chadcromwell chadcromwell changed the title Backport Backport compliance changes to 2025-07 Oct 8, 2025
Copy link
Contributor

@alexgraffeocohen alexgraffeocohen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@chadcromwell chadcromwell merged commit f098467 into 2025-07 Oct 10, 2025
7 checks passed
chadcromwell added a commit that referenced this pull request Oct 14, 2025
### Background

This PR adds documentation for the 2025-07 backport PR [here](#3477)

### Solution

Added the necessary files to support the new `pos.receipt-header.block.render` target:
- Created example implementations in both TypeScript and React
- Added documentation for the new target
- Updated the `ExtensionTargetType` enum to include the new target

The examples demonstrate how to display transaction information in the receipt header, showing developers how to access transaction data and render components within this new target.

### 🎩

- Test the new target in POS 10.8+ by creating an extension that uses `pos.receipt-header.block.render`
- Verify that custom content appears in the receipt header as expected
- Test with different transaction types to ensure the conditional QR code logic works correctly

### Checklist

- [ ] I have 🎩'd these changes
- [ ] I have updated relevant documentation
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.

4 participants