Commit c9c4a93
authored
Update POS cart api docs to reflect discount per unit allocation (#4231)
### Background
Resolves shop/issues-retail#26385
Update documentation for discount allocation change from ACROSS to EACH starting in API version 2026-04.
### Solution
Update docs and provide example
### 🎩
- Ran `yarn docs:point-of-sale 2026-04-rc` in this repo.
- Ran this to copy over the generated files (temporary command while the migration is finalized):
```
cp -r /Users/janezhu/src/github.com/Shopify/ui-extensions/packages/ui-extensions/docs/surfaces/point-of-sale/generated/pos_ui_extensions/2026-04-rc \
/Users/janezhu/world/trees/root/src/areas/platforms/shopify-dev/db/data/docs/templated_apis/pos_ui_extensions/
```
- In `shopify-dev` repo (now in the monorepo), run `dev server`
- Go to your local https://shopify-dev.shop.dev/docs/api/pos-ui-extensions/2026-04-rc/target-apis/contextual-apis/cart-api to see the updated docs:


### Checklist
- [x] I have 🎩'd these changes
- [x] I have updated relevant documentation1 file changed
Lines changed: 4 additions & 4 deletions
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
0 commit comments