Commit edad144
authored
feat(inventory): add Inventory endpoint family (#242)
* feat(inventory): add Inventory endpoint family
Implements the new agentic:inventory OAuth-scoped endpoints: stock
adjustments, atomic multi-variant reservations (create/get/commit/release),
stock levels (get/set), and beta product knowledge (get/set/delete).
Error responses surface through the SDK's existing CheckoutApiException,
documented in method docstrings rather than a dedicated error class.
* refactor(inventory): dedupe shared product-knowledge fields
Extract the ~30 fields identical between InventoryProductKnowledge and
InventorySetProductRequest into an InventoryMerchandisingFields base class.
Fixes the SonarCloud duplication gate (32.4% on new code) without changing
the serialized shape of either class.1 parent 605a3da commit edad144
7 files changed
Lines changed: 1023 additions & 0 deletions
File tree
- checkout_sdk
- inventory
- tests/inventory
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| 109 | + | |
108 | 110 | | |
109 | 111 | | |
110 | 112 | | |
| |||
Whitespace-only changes.
0 commit comments