checkout-intents 0.8.0__tar.gz → 0.10.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checkout_intents-0.10.0/.release-please-manifest.json +3 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/CHANGELOG.md +20 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/LICENSE +1 -1
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/PKG-INFO +21 -5
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/README.md +20 -4
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/api.md +14 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/pyproject.toml +1 -1
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_client.py +38 -1
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_version.py +1 -1
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/resources/__init__.py +14 -0
- checkout_intents-0.10.0/src/checkout_intents/resources/betas/__init__.py +33 -0
- checkout_intents-0.10.0/src/checkout_intents/resources/betas/betas.py +102 -0
- checkout_intents-0.10.0/src/checkout_intents/resources/betas/checkout_sessions.py +208 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/types/__init__.py +1 -0
- checkout_intents-0.10.0/src/checkout_intents/types/betas/__init__.py +5 -0
- checkout_intents-0.10.0/src/checkout_intents/types/betas/checkout_session_create_params.py +62 -0
- checkout_intents-0.10.0/src/checkout_intents/types/checkout_session.py +16 -0
- checkout_intents-0.10.0/tests/api_resources/betas/__init__.py +1 -0
- checkout_intents-0.10.0/tests/api_resources/betas/test_checkout_sessions.py +162 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/tests/api_resources/test_checkout_intents.py +4 -4
- checkout_intents-0.8.0/.release-please-manifest.json +0 -3
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/.gitignore +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/CONTRIBUTING.md +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/SECURITY.md +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/bin/check-release-environment +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/bin/publish-pypi +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/examples/.keep +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/examples/complete-checkout-intent.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/examples/error-handling.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/noxfile.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/release-please-config.json +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/requirements-dev.lock +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/requirements.lock +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/__init__.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_base_client.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_compat.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_constants.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_exceptions.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_files.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_models.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_qs.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_resource.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_response.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_streaming.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_types.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_utils/__init__.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_utils/_compat.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_utils/_datetime_parse.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_utils/_logs.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_utils/_proxy.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_utils/_reflection.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_utils/_resources_proxy.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_utils/_streams.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_utils/_sync.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_utils/_transform.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_utils/_typing.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/_utils/_utils.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/lib/.keep +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/pagination.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/py.typed +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/resources/brands.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/resources/checkout_intents.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/types/base_checkout_intent.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/types/brand_retrieve_response.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/types/buyer.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/types/buyer_param.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/types/checkout_intent.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/types/checkout_intent_add_payment_params.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/types/checkout_intent_confirm_params.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/types/checkout_intent_create_params.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/types/checkout_intent_list_params.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/types/checkout_intent_purchase_params.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/types/money.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/types/offer.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/types/payment_method.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/types/payment_method_param.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/types/variant_selection.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/types/variant_selection_param.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/tests/__init__.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/tests/api_resources/__init__.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/tests/api_resources/test_brands.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/tests/conftest.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/tests/sample_file.txt +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/tests/test_client.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/tests/test_deepcopy.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/tests/test_environment_inference.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/tests/test_extract_files.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/tests/test_files.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/tests/test_models.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/tests/test_polling.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/tests/test_qs.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/tests/test_required_args.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/tests/test_response.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/tests/test_streaming.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/tests/test_transform.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/tests/test_utils/test_datetime_parse.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/tests/test_utils/test_proxy.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/tests/test_utils/test_typing.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/tests/utils.py +0 -0
- {checkout_intents-0.8.0 → checkout_intents-0.10.0}/uv.lock +0 -0
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.10.0 (2026-01-06)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.9.0...v0.10.0](https://github.com/rye-com/checkout-intents-python/compare/v0.9.0...v0.10.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* Fix Slack follow-up messages not posting to thread when initial message fails ([61f39ce](https://github.com/rye-com/checkout-intents-python/commit/61f39ce09ad720d99fb866eca1d30cd6fbe353fc))
|
|
10
|
+
* Improve JSDoc for checkout sessions ([dffa705](https://github.com/rye-com/checkout-intents-python/commit/dffa70546832f5f4c74ba0e1c3280a98739bc9bf))
|
|
11
|
+
* RYE-6466: Enrich tracked analytics context for the checkout intents api ([26ed61e](https://github.com/rye-com/checkout-intents-python/commit/26ed61e274b71f66d5c952561fe9565213aeed1b))
|
|
12
|
+
* Tidy API docs ([1ce6f5f](https://github.com/rye-com/checkout-intents-python/commit/1ce6f5fe5e7ca420b911b11d8bb5106e09e0ac40))
|
|
13
|
+
|
|
14
|
+
## 0.9.0 (2025-12-25)
|
|
15
|
+
|
|
16
|
+
Full Changelog: [v0.8.0...v0.9.0](https://github.com/rye-com/checkout-intents-python/compare/v0.8.0...v0.9.0)
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **api:** manual updates ([dc735cc](https://github.com/rye-com/checkout-intents-python/commit/dc735ccb8a0eaf4c46ffe8dd984fa4efb111e5d4))
|
|
21
|
+
* **api:** swap featured request ([c42f14b](https://github.com/rye-com/checkout-intents-python/commit/c42f14b1bed4bf417bb2c289e8ba62962086271b))
|
|
22
|
+
|
|
3
23
|
## 0.8.0 (2025-12-25)
|
|
4
24
|
|
|
5
25
|
Full Changelog: [v0.7.0...v0.8.0](https://github.com/rye-com/checkout-intents-python/compare/v0.7.0...v0.8.0)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright
|
|
1
|
+
Copyright 2026 Checkout Intents
|
|
2
2
|
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: checkout-intents
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.10.0
|
|
4
4
|
Summary: The official Python library for the Checkout Intents API
|
|
5
5
|
Project-URL: Homepage, https://github.com/rye-com/checkout-intents-python
|
|
6
6
|
Project-URL: Repository, https://github.com/rye-com/checkout-intents-python
|
|
@@ -69,7 +69,7 @@ client = CheckoutIntents(
|
|
|
69
69
|
environment="production",
|
|
70
70
|
)
|
|
71
71
|
|
|
72
|
-
checkout_intent = client.checkout_intents.
|
|
72
|
+
checkout_intent = client.checkout_intents.purchase(
|
|
73
73
|
buyer={
|
|
74
74
|
"address1": "123 Main St",
|
|
75
75
|
"city": "New York",
|
|
@@ -81,6 +81,10 @@ checkout_intent = client.checkout_intents.create(
|
|
|
81
81
|
"postal_code": "10001",
|
|
82
82
|
"province": "NY",
|
|
83
83
|
},
|
|
84
|
+
payment_method={
|
|
85
|
+
"stripe_token": "tok_1RkrWWHGDlstla3f1Fc7ZrhH",
|
|
86
|
+
"type": "stripe_token",
|
|
87
|
+
},
|
|
84
88
|
product_url="https://rye-protocol.myshopify.com/products/rye-sticker",
|
|
85
89
|
quantity=1,
|
|
86
90
|
)
|
|
@@ -200,7 +204,7 @@ client = AsyncCheckoutIntents(
|
|
|
200
204
|
|
|
201
205
|
|
|
202
206
|
async def main() -> None:
|
|
203
|
-
checkout_intent = await client.checkout_intents.
|
|
207
|
+
checkout_intent = await client.checkout_intents.purchase(
|
|
204
208
|
buyer={
|
|
205
209
|
"address1": "123 Main St",
|
|
206
210
|
"city": "New York",
|
|
@@ -212,6 +216,10 @@ async def main() -> None:
|
|
|
212
216
|
"postal_code": "10001",
|
|
213
217
|
"province": "NY",
|
|
214
218
|
},
|
|
219
|
+
payment_method={
|
|
220
|
+
"stripe_token": "tok_1RkrWWHGDlstla3f1Fc7ZrhH",
|
|
221
|
+
"type": "stripe_token",
|
|
222
|
+
},
|
|
215
223
|
product_url="https://rye-protocol.myshopify.com/products/rye-sticker",
|
|
216
224
|
quantity=1,
|
|
217
225
|
)
|
|
@@ -249,7 +257,7 @@ async def main() -> None:
|
|
|
249
257
|
), # This is the default and can be omitted
|
|
250
258
|
http_client=DefaultAioHttpClient(),
|
|
251
259
|
) as client:
|
|
252
|
-
checkout_intent = await client.checkout_intents.
|
|
260
|
+
checkout_intent = await client.checkout_intents.purchase(
|
|
253
261
|
buyer={
|
|
254
262
|
"address1": "123 Main St",
|
|
255
263
|
"city": "New York",
|
|
@@ -261,6 +269,10 @@ async def main() -> None:
|
|
|
261
269
|
"postal_code": "10001",
|
|
262
270
|
"province": "NY",
|
|
263
271
|
},
|
|
272
|
+
payment_method={
|
|
273
|
+
"stripe_token": "tok_1RkrWWHGDlstla3f1Fc7ZrhH",
|
|
274
|
+
"type": "stripe_token",
|
|
275
|
+
},
|
|
264
276
|
product_url="https://rye-protocol.myshopify.com/products/rye-sticker",
|
|
265
277
|
quantity=1,
|
|
266
278
|
)
|
|
@@ -358,7 +370,7 @@ from checkout_intents import CheckoutIntents
|
|
|
358
370
|
|
|
359
371
|
client = CheckoutIntents()
|
|
360
372
|
|
|
361
|
-
checkout_intent = client.checkout_intents.
|
|
373
|
+
checkout_intent = client.checkout_intents.purchase(
|
|
362
374
|
buyer={
|
|
363
375
|
"address1": "123 Main St",
|
|
364
376
|
"city": "New York",
|
|
@@ -370,6 +382,10 @@ checkout_intent = client.checkout_intents.create(
|
|
|
370
382
|
"postal_code": "10001",
|
|
371
383
|
"province": "NY",
|
|
372
384
|
},
|
|
385
|
+
payment_method={
|
|
386
|
+
"stripe_token": "tok_1RkrWWHGDlstla3f1Fc7ZrhH",
|
|
387
|
+
"type": "stripe_token",
|
|
388
|
+
},
|
|
373
389
|
product_url="productUrl",
|
|
374
390
|
quantity=1,
|
|
375
391
|
)
|
|
@@ -34,7 +34,7 @@ client = CheckoutIntents(
|
|
|
34
34
|
environment="production",
|
|
35
35
|
)
|
|
36
36
|
|
|
37
|
-
checkout_intent = client.checkout_intents.
|
|
37
|
+
checkout_intent = client.checkout_intents.purchase(
|
|
38
38
|
buyer={
|
|
39
39
|
"address1": "123 Main St",
|
|
40
40
|
"city": "New York",
|
|
@@ -46,6 +46,10 @@ checkout_intent = client.checkout_intents.create(
|
|
|
46
46
|
"postal_code": "10001",
|
|
47
47
|
"province": "NY",
|
|
48
48
|
},
|
|
49
|
+
payment_method={
|
|
50
|
+
"stripe_token": "tok_1RkrWWHGDlstla3f1Fc7ZrhH",
|
|
51
|
+
"type": "stripe_token",
|
|
52
|
+
},
|
|
49
53
|
product_url="https://rye-protocol.myshopify.com/products/rye-sticker",
|
|
50
54
|
quantity=1,
|
|
51
55
|
)
|
|
@@ -165,7 +169,7 @@ client = AsyncCheckoutIntents(
|
|
|
165
169
|
|
|
166
170
|
|
|
167
171
|
async def main() -> None:
|
|
168
|
-
checkout_intent = await client.checkout_intents.
|
|
172
|
+
checkout_intent = await client.checkout_intents.purchase(
|
|
169
173
|
buyer={
|
|
170
174
|
"address1": "123 Main St",
|
|
171
175
|
"city": "New York",
|
|
@@ -177,6 +181,10 @@ async def main() -> None:
|
|
|
177
181
|
"postal_code": "10001",
|
|
178
182
|
"province": "NY",
|
|
179
183
|
},
|
|
184
|
+
payment_method={
|
|
185
|
+
"stripe_token": "tok_1RkrWWHGDlstla3f1Fc7ZrhH",
|
|
186
|
+
"type": "stripe_token",
|
|
187
|
+
},
|
|
180
188
|
product_url="https://rye-protocol.myshopify.com/products/rye-sticker",
|
|
181
189
|
quantity=1,
|
|
182
190
|
)
|
|
@@ -214,7 +222,7 @@ async def main() -> None:
|
|
|
214
222
|
), # This is the default and can be omitted
|
|
215
223
|
http_client=DefaultAioHttpClient(),
|
|
216
224
|
) as client:
|
|
217
|
-
checkout_intent = await client.checkout_intents.
|
|
225
|
+
checkout_intent = await client.checkout_intents.purchase(
|
|
218
226
|
buyer={
|
|
219
227
|
"address1": "123 Main St",
|
|
220
228
|
"city": "New York",
|
|
@@ -226,6 +234,10 @@ async def main() -> None:
|
|
|
226
234
|
"postal_code": "10001",
|
|
227
235
|
"province": "NY",
|
|
228
236
|
},
|
|
237
|
+
payment_method={
|
|
238
|
+
"stripe_token": "tok_1RkrWWHGDlstla3f1Fc7ZrhH",
|
|
239
|
+
"type": "stripe_token",
|
|
240
|
+
},
|
|
229
241
|
product_url="https://rye-protocol.myshopify.com/products/rye-sticker",
|
|
230
242
|
quantity=1,
|
|
231
243
|
)
|
|
@@ -323,7 +335,7 @@ from checkout_intents import CheckoutIntents
|
|
|
323
335
|
|
|
324
336
|
client = CheckoutIntents()
|
|
325
337
|
|
|
326
|
-
checkout_intent = client.checkout_intents.
|
|
338
|
+
checkout_intent = client.checkout_intents.purchase(
|
|
327
339
|
buyer={
|
|
328
340
|
"address1": "123 Main St",
|
|
329
341
|
"city": "New York",
|
|
@@ -335,6 +347,10 @@ checkout_intent = client.checkout_intents.create(
|
|
|
335
347
|
"postal_code": "10001",
|
|
336
348
|
"province": "NY",
|
|
337
349
|
},
|
|
350
|
+
payment_method={
|
|
351
|
+
"stripe_token": "tok_1RkrWWHGDlstla3f1Fc7ZrhH",
|
|
352
|
+
"type": "stripe_token",
|
|
353
|
+
},
|
|
338
354
|
product_url="productUrl",
|
|
339
355
|
quantity=1,
|
|
340
356
|
)
|
|
@@ -23,6 +23,20 @@ Methods:
|
|
|
23
23
|
- <code title="post /api/v1/checkout-intents/{id}/confirm">client.checkout_intents.<a href="./src/checkout_intents/resources/checkout_intents.py">confirm</a>(id, \*\*<a href="src/checkout_intents/types/checkout_intent_confirm_params.py">params</a>) -> <a href="./src/checkout_intents/types/checkout_intent.py">CheckoutIntent</a></code>
|
|
24
24
|
- <code title="post /api/v1/checkout-intents/purchase">client.checkout_intents.<a href="./src/checkout_intents/resources/checkout_intents.py">purchase</a>(\*\*<a href="src/checkout_intents/types/checkout_intent_purchase_params.py">params</a>) -> <a href="./src/checkout_intents/types/checkout_intent.py">CheckoutIntent</a></code>
|
|
25
25
|
|
|
26
|
+
# Betas
|
|
27
|
+
|
|
28
|
+
Types:
|
|
29
|
+
|
|
30
|
+
```python
|
|
31
|
+
from checkout_intents.types import CheckoutSession
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## CheckoutSessions
|
|
35
|
+
|
|
36
|
+
Methods:
|
|
37
|
+
|
|
38
|
+
- <code title="post /api/v1/betas/checkout-sessions">client.betas.checkout_sessions.<a href="./src/checkout_intents/resources/betas/checkout_sessions.py">create</a>(\*\*<a href="src/checkout_intents/types/betas/checkout_session_create_params.py">params</a>) -> <a href="./src/checkout_intents/types/checkout_session.py">CheckoutSession</a></code>
|
|
39
|
+
|
|
26
40
|
# Brands
|
|
27
41
|
|
|
28
42
|
Types:
|
|
@@ -31,8 +31,9 @@ from ._base_client import (
|
|
|
31
31
|
)
|
|
32
32
|
|
|
33
33
|
if TYPE_CHECKING:
|
|
34
|
-
from .resources import brands, checkout_intents
|
|
34
|
+
from .resources import betas, brands, checkout_intents
|
|
35
35
|
from .resources.brands import BrandsResource, AsyncBrandsResource
|
|
36
|
+
from .resources.betas.betas import BetasResource, AsyncBetasResource
|
|
36
37
|
from .resources.checkout_intents import CheckoutIntentsResource, AsyncCheckoutIntentsResource
|
|
37
38
|
|
|
38
39
|
__all__ = [
|
|
@@ -172,6 +173,12 @@ class CheckoutIntents(SyncAPIClient):
|
|
|
172
173
|
|
|
173
174
|
return CheckoutIntentsResource(self)
|
|
174
175
|
|
|
176
|
+
@cached_property
|
|
177
|
+
def betas(self) -> BetasResource:
|
|
178
|
+
from .resources.betas import BetasResource
|
|
179
|
+
|
|
180
|
+
return BetasResource(self)
|
|
181
|
+
|
|
175
182
|
@cached_property
|
|
176
183
|
def brands(self) -> BrandsResource:
|
|
177
184
|
from .resources.brands import BrandsResource
|
|
@@ -395,6 +402,12 @@ class AsyncCheckoutIntents(AsyncAPIClient):
|
|
|
395
402
|
|
|
396
403
|
return AsyncCheckoutIntentsResource(self)
|
|
397
404
|
|
|
405
|
+
@cached_property
|
|
406
|
+
def betas(self) -> AsyncBetasResource:
|
|
407
|
+
from .resources.betas import AsyncBetasResource
|
|
408
|
+
|
|
409
|
+
return AsyncBetasResource(self)
|
|
410
|
+
|
|
398
411
|
@cached_property
|
|
399
412
|
def brands(self) -> AsyncBrandsResource:
|
|
400
413
|
from .resources.brands import AsyncBrandsResource
|
|
@@ -528,6 +541,12 @@ class CheckoutIntentsWithRawResponse:
|
|
|
528
541
|
|
|
529
542
|
return CheckoutIntentsResourceWithRawResponse(self._client.checkout_intents)
|
|
530
543
|
|
|
544
|
+
@cached_property
|
|
545
|
+
def betas(self) -> betas.BetasResourceWithRawResponse:
|
|
546
|
+
from .resources.betas import BetasResourceWithRawResponse
|
|
547
|
+
|
|
548
|
+
return BetasResourceWithRawResponse(self._client.betas)
|
|
549
|
+
|
|
531
550
|
@cached_property
|
|
532
551
|
def brands(self) -> brands.BrandsResourceWithRawResponse:
|
|
533
552
|
from .resources.brands import BrandsResourceWithRawResponse
|
|
@@ -547,6 +566,12 @@ class AsyncCheckoutIntentsWithRawResponse:
|
|
|
547
566
|
|
|
548
567
|
return AsyncCheckoutIntentsResourceWithRawResponse(self._client.checkout_intents)
|
|
549
568
|
|
|
569
|
+
@cached_property
|
|
570
|
+
def betas(self) -> betas.AsyncBetasResourceWithRawResponse:
|
|
571
|
+
from .resources.betas import AsyncBetasResourceWithRawResponse
|
|
572
|
+
|
|
573
|
+
return AsyncBetasResourceWithRawResponse(self._client.betas)
|
|
574
|
+
|
|
550
575
|
@cached_property
|
|
551
576
|
def brands(self) -> brands.AsyncBrandsResourceWithRawResponse:
|
|
552
577
|
from .resources.brands import AsyncBrandsResourceWithRawResponse
|
|
@@ -566,6 +591,12 @@ class CheckoutIntentsWithStreamedResponse:
|
|
|
566
591
|
|
|
567
592
|
return CheckoutIntentsResourceWithStreamingResponse(self._client.checkout_intents)
|
|
568
593
|
|
|
594
|
+
@cached_property
|
|
595
|
+
def betas(self) -> betas.BetasResourceWithStreamingResponse:
|
|
596
|
+
from .resources.betas import BetasResourceWithStreamingResponse
|
|
597
|
+
|
|
598
|
+
return BetasResourceWithStreamingResponse(self._client.betas)
|
|
599
|
+
|
|
569
600
|
@cached_property
|
|
570
601
|
def brands(self) -> brands.BrandsResourceWithStreamingResponse:
|
|
571
602
|
from .resources.brands import BrandsResourceWithStreamingResponse
|
|
@@ -585,6 +616,12 @@ class AsyncCheckoutIntentsWithStreamedResponse:
|
|
|
585
616
|
|
|
586
617
|
return AsyncCheckoutIntentsResourceWithStreamingResponse(self._client.checkout_intents)
|
|
587
618
|
|
|
619
|
+
@cached_property
|
|
620
|
+
def betas(self) -> betas.AsyncBetasResourceWithStreamingResponse:
|
|
621
|
+
from .resources.betas import AsyncBetasResourceWithStreamingResponse
|
|
622
|
+
|
|
623
|
+
return AsyncBetasResourceWithStreamingResponse(self._client.betas)
|
|
624
|
+
|
|
588
625
|
@cached_property
|
|
589
626
|
def brands(self) -> brands.AsyncBrandsResourceWithStreamingResponse:
|
|
590
627
|
from .resources.brands import AsyncBrandsResourceWithStreamingResponse
|
{checkout_intents-0.8.0 → checkout_intents-0.10.0}/src/checkout_intents/resources/__init__.py
RENAMED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
from .betas import (
|
|
4
|
+
BetasResource,
|
|
5
|
+
AsyncBetasResource,
|
|
6
|
+
BetasResourceWithRawResponse,
|
|
7
|
+
AsyncBetasResourceWithRawResponse,
|
|
8
|
+
BetasResourceWithStreamingResponse,
|
|
9
|
+
AsyncBetasResourceWithStreamingResponse,
|
|
10
|
+
)
|
|
3
11
|
from .brands import (
|
|
4
12
|
BrandsResource,
|
|
5
13
|
AsyncBrandsResource,
|
|
@@ -24,6 +32,12 @@ __all__ = [
|
|
|
24
32
|
"AsyncCheckoutIntentsResourceWithRawResponse",
|
|
25
33
|
"CheckoutIntentsResourceWithStreamingResponse",
|
|
26
34
|
"AsyncCheckoutIntentsResourceWithStreamingResponse",
|
|
35
|
+
"BetasResource",
|
|
36
|
+
"AsyncBetasResource",
|
|
37
|
+
"BetasResourceWithRawResponse",
|
|
38
|
+
"AsyncBetasResourceWithRawResponse",
|
|
39
|
+
"BetasResourceWithStreamingResponse",
|
|
40
|
+
"AsyncBetasResourceWithStreamingResponse",
|
|
27
41
|
"BrandsResource",
|
|
28
42
|
"AsyncBrandsResource",
|
|
29
43
|
"BrandsResourceWithRawResponse",
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from .betas import (
|
|
4
|
+
BetasResource,
|
|
5
|
+
AsyncBetasResource,
|
|
6
|
+
BetasResourceWithRawResponse,
|
|
7
|
+
AsyncBetasResourceWithRawResponse,
|
|
8
|
+
BetasResourceWithStreamingResponse,
|
|
9
|
+
AsyncBetasResourceWithStreamingResponse,
|
|
10
|
+
)
|
|
11
|
+
from .checkout_sessions import (
|
|
12
|
+
CheckoutSessionsResource,
|
|
13
|
+
AsyncCheckoutSessionsResource,
|
|
14
|
+
CheckoutSessionsResourceWithRawResponse,
|
|
15
|
+
AsyncCheckoutSessionsResourceWithRawResponse,
|
|
16
|
+
CheckoutSessionsResourceWithStreamingResponse,
|
|
17
|
+
AsyncCheckoutSessionsResourceWithStreamingResponse,
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
__all__ = [
|
|
21
|
+
"CheckoutSessionsResource",
|
|
22
|
+
"AsyncCheckoutSessionsResource",
|
|
23
|
+
"CheckoutSessionsResourceWithRawResponse",
|
|
24
|
+
"AsyncCheckoutSessionsResourceWithRawResponse",
|
|
25
|
+
"CheckoutSessionsResourceWithStreamingResponse",
|
|
26
|
+
"AsyncCheckoutSessionsResourceWithStreamingResponse",
|
|
27
|
+
"BetasResource",
|
|
28
|
+
"AsyncBetasResource",
|
|
29
|
+
"BetasResourceWithRawResponse",
|
|
30
|
+
"AsyncBetasResourceWithRawResponse",
|
|
31
|
+
"BetasResourceWithStreamingResponse",
|
|
32
|
+
"AsyncBetasResourceWithStreamingResponse",
|
|
33
|
+
]
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from ..._compat import cached_property
|
|
6
|
+
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
7
|
+
from .checkout_sessions import (
|
|
8
|
+
CheckoutSessionsResource,
|
|
9
|
+
AsyncCheckoutSessionsResource,
|
|
10
|
+
CheckoutSessionsResourceWithRawResponse,
|
|
11
|
+
AsyncCheckoutSessionsResourceWithRawResponse,
|
|
12
|
+
CheckoutSessionsResourceWithStreamingResponse,
|
|
13
|
+
AsyncCheckoutSessionsResourceWithStreamingResponse,
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
__all__ = ["BetasResource", "AsyncBetasResource"]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class BetasResource(SyncAPIResource):
|
|
20
|
+
@cached_property
|
|
21
|
+
def checkout_sessions(self) -> CheckoutSessionsResource:
|
|
22
|
+
return CheckoutSessionsResource(self._client)
|
|
23
|
+
|
|
24
|
+
@cached_property
|
|
25
|
+
def with_raw_response(self) -> BetasResourceWithRawResponse:
|
|
26
|
+
"""
|
|
27
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
28
|
+
the raw response object instead of the parsed content.
|
|
29
|
+
|
|
30
|
+
For more information, see https://www.github.com/rye-com/checkout-intents-python#accessing-raw-response-data-eg-headers
|
|
31
|
+
"""
|
|
32
|
+
return BetasResourceWithRawResponse(self)
|
|
33
|
+
|
|
34
|
+
@cached_property
|
|
35
|
+
def with_streaming_response(self) -> BetasResourceWithStreamingResponse:
|
|
36
|
+
"""
|
|
37
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
38
|
+
|
|
39
|
+
For more information, see https://www.github.com/rye-com/checkout-intents-python#with_streaming_response
|
|
40
|
+
"""
|
|
41
|
+
return BetasResourceWithStreamingResponse(self)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class AsyncBetasResource(AsyncAPIResource):
|
|
45
|
+
@cached_property
|
|
46
|
+
def checkout_sessions(self) -> AsyncCheckoutSessionsResource:
|
|
47
|
+
return AsyncCheckoutSessionsResource(self._client)
|
|
48
|
+
|
|
49
|
+
@cached_property
|
|
50
|
+
def with_raw_response(self) -> AsyncBetasResourceWithRawResponse:
|
|
51
|
+
"""
|
|
52
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
53
|
+
the raw response object instead of the parsed content.
|
|
54
|
+
|
|
55
|
+
For more information, see https://www.github.com/rye-com/checkout-intents-python#accessing-raw-response-data-eg-headers
|
|
56
|
+
"""
|
|
57
|
+
return AsyncBetasResourceWithRawResponse(self)
|
|
58
|
+
|
|
59
|
+
@cached_property
|
|
60
|
+
def with_streaming_response(self) -> AsyncBetasResourceWithStreamingResponse:
|
|
61
|
+
"""
|
|
62
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
63
|
+
|
|
64
|
+
For more information, see https://www.github.com/rye-com/checkout-intents-python#with_streaming_response
|
|
65
|
+
"""
|
|
66
|
+
return AsyncBetasResourceWithStreamingResponse(self)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class BetasResourceWithRawResponse:
|
|
70
|
+
def __init__(self, betas: BetasResource) -> None:
|
|
71
|
+
self._betas = betas
|
|
72
|
+
|
|
73
|
+
@cached_property
|
|
74
|
+
def checkout_sessions(self) -> CheckoutSessionsResourceWithRawResponse:
|
|
75
|
+
return CheckoutSessionsResourceWithRawResponse(self._betas.checkout_sessions)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
class AsyncBetasResourceWithRawResponse:
|
|
79
|
+
def __init__(self, betas: AsyncBetasResource) -> None:
|
|
80
|
+
self._betas = betas
|
|
81
|
+
|
|
82
|
+
@cached_property
|
|
83
|
+
def checkout_sessions(self) -> AsyncCheckoutSessionsResourceWithRawResponse:
|
|
84
|
+
return AsyncCheckoutSessionsResourceWithRawResponse(self._betas.checkout_sessions)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
class BetasResourceWithStreamingResponse:
|
|
88
|
+
def __init__(self, betas: BetasResource) -> None:
|
|
89
|
+
self._betas = betas
|
|
90
|
+
|
|
91
|
+
@cached_property
|
|
92
|
+
def checkout_sessions(self) -> CheckoutSessionsResourceWithStreamingResponse:
|
|
93
|
+
return CheckoutSessionsResourceWithStreamingResponse(self._betas.checkout_sessions)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
class AsyncBetasResourceWithStreamingResponse:
|
|
97
|
+
def __init__(self, betas: AsyncBetasResource) -> None:
|
|
98
|
+
self._betas = betas
|
|
99
|
+
|
|
100
|
+
@cached_property
|
|
101
|
+
def checkout_sessions(self) -> AsyncCheckoutSessionsResourceWithStreamingResponse:
|
|
102
|
+
return AsyncCheckoutSessionsResourceWithStreamingResponse(self._betas.checkout_sessions)
|