Skip to content

Commit edad144

Browse files
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/checkout_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from checkout_sdk.forex.forex_client import ForexClient
1212
from checkout_sdk.checkout_apm_api import CheckoutApmApi
1313
from checkout_sdk.instruments.instruments_client import InstrumentsClient
14+
from checkout_sdk.inventory.inventory_client import InventoryClient
1415
from checkout_sdk.issuing.issuing_client import IssuingClient
1516
from checkout_sdk.payments.contexts.contexts_client import PaymentContextsClient
1617
from checkout_sdk.payments.sessions.sessions_client import PaymentSessionsClient
@@ -105,6 +106,7 @@ def __init__(self, configuration: CheckoutConfiguration):
105106
self.forward = ForwardClient(api_client=forward_api_client, configuration=configuration)
106107
self.setups = PaymentSetupsClient(api_client=base_api_client, configuration=configuration)
107108
self.agentic_commerce = AgenticCommerceClient(api_client=base_api_client, configuration=configuration)
109+
self.inventory = InventoryClient(api_client=base_api_client, configuration=configuration)
108110
self.apple_pay = ApplePayClient(api_client=base_api_client, configuration=configuration)
109111
self.google_pay = GooglePayClient(api_client=base_api_client, configuration=configuration)
110112
self.standalone_account_updater = StandaloneAccountUpdaterClient(api_client=base_api_client,

checkout_sdk/inventory/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)