You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(checkout): ✨ Add parent/parentRelationship property to CartLines for Checkout. (#3072)
### Background
This PR adds parent/parentRelationship properties to CartLines for Checkout, enabling the representation of relationships between cart lines. Follow up to the [private repo change](https://app.graphite.dev/github/pr/shop/world/62239).
### Solution
Added support for parent-child relationships between cart lines in the Checkout API:
1. Added a new `CartLineParentRelationship` interface that contains parent line information
2. Added the `parentRelationship` property to the `CartLine` interface
3. Added optional `parent` property to `CartLineAddChange` and `CartLineUpdateChange` interfaces to allow setting parent relationships when adding or updating cart lines
4. Exported the new `CartLineParentRelationship` type
These changes enable extensions to work with hierarchical cart line structures, such as bundles or add-ons that are associated with a parent product.
### 🎩
- Test adding a cart line with a parent relationship
- Test updating a cart line to associate it with a parent
- Verify parent relationships are correctly displayed in the UI
### Checklist
- [ ] I have 🎩'd these changes
- [x] I have updated relevant documentation
0 commit comments