Commit 4c5a469
committed
feat: add policies[] to order, decouple refund
- Add `policies[]` to `order` as a read-only snapshot of the policies
that applied at checkout (`ucp_request: omit`), mirroring how
`order.attribution` snapshots checkout data. Completes the catalog ->
cart -> checkout -> order lifecycle; returns are post-purchase, so the
order is the durable home for their terms.
- Remove the refund `allOf` overlay from `policy.json` and delete the
now-empty `policy_refund.json`. Core stays a pure generic container;
the refund type attaches its body via extension composition (#257).
- Type `policy.type` via `$ref` to `reverse_domain_name.json`, so the
reverse-DNS format is enforced rather than described only in prose.
- State in Precedence that a Platform MUST NOT merge same-type policy
bodies: a consumer cannot infer combine-vs-replace semantics, so it
resolves a single governing policy by structure alone. Composition is
authored into the most-specific policy, not resolved at read time.
- Collapse the disclosure-pairing passage to one paragraph plus two
numbered rules (editorial).1 parent eac2724 commit 4c5a469
5 files changed
Lines changed: 25 additions & 35 deletions
File tree
- docs/specification
- source/schemas/shopping
- types
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
97 | 102 | | |
98 | 103 | | |
99 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2280 | 2280 | | |
2281 | 2281 | | |
2282 | 2282 | | |
2283 | | - | |
| 2283 | + | |
2284 | 2284 | | |
2285 | 2285 | | |
2286 | 2286 | | |
| |||
2306 | 2306 | | |
2307 | 2307 | | |
2308 | 2308 | | |
2309 | | - | |
2310 | | - | |
2311 | | - | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
2312 | 2315 | | |
2313 | 2316 | | |
2314 | 2317 | | |
| |||
2371 | 2374 | | |
2372 | 2375 | | |
2373 | 2376 | | |
2374 | | - | |
2375 | | - | |
2376 | | - | |
2377 | | - | |
| 2377 | + | |
| 2378 | + | |
2378 | 2379 | | |
2379 | 2380 | | |
2380 | 2381 | | |
2381 | | - | |
| 2382 | + | |
2382 | 2383 | | |
2383 | 2384 | | |
2384 | 2385 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
99 | 107 | | |
100 | 108 | | |
101 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 33 | + | |
51 | 34 | | |
This file was deleted.
0 commit comments