checkout-intents 0.6.0__tar.gz → 0.7.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.
Files changed (92) hide show
  1. checkout_intents-0.7.0/.release-please-manifest.json +3 -0
  2. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/CHANGELOG.md +8 -0
  3. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/PKG-INFO +1 -1
  4. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/pyproject.toml +1 -1
  5. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_version.py +1 -1
  6. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/resources/checkout_intents.py +4 -0
  7. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/types/checkout_intent_purchase_params.py +3 -0
  8. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/tests/api_resources/test_checkout_intents.py +2 -0
  9. checkout_intents-0.6.0/.release-please-manifest.json +0 -3
  10. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/.gitignore +0 -0
  11. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/CONTRIBUTING.md +0 -0
  12. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/LICENSE +0 -0
  13. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/README.md +0 -0
  14. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/SECURITY.md +0 -0
  15. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/api.md +0 -0
  16. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/bin/check-release-environment +0 -0
  17. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/bin/publish-pypi +0 -0
  18. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/examples/.keep +0 -0
  19. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/examples/complete-checkout-intent.py +0 -0
  20. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/examples/error-handling.py +0 -0
  21. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/noxfile.py +0 -0
  22. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/release-please-config.json +0 -0
  23. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/requirements-dev.lock +0 -0
  24. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/requirements.lock +0 -0
  25. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/__init__.py +0 -0
  26. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_base_client.py +0 -0
  27. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_client.py +0 -0
  28. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_compat.py +0 -0
  29. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_constants.py +0 -0
  30. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_exceptions.py +0 -0
  31. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_files.py +0 -0
  32. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_models.py +0 -0
  33. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_qs.py +0 -0
  34. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_resource.py +0 -0
  35. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_response.py +0 -0
  36. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_streaming.py +0 -0
  37. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_types.py +0 -0
  38. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_utils/__init__.py +0 -0
  39. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_utils/_compat.py +0 -0
  40. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_utils/_datetime_parse.py +0 -0
  41. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_utils/_logs.py +0 -0
  42. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_utils/_proxy.py +0 -0
  43. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_utils/_reflection.py +0 -0
  44. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_utils/_resources_proxy.py +0 -0
  45. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_utils/_streams.py +0 -0
  46. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_utils/_sync.py +0 -0
  47. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_utils/_transform.py +0 -0
  48. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_utils/_typing.py +0 -0
  49. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/_utils/_utils.py +0 -0
  50. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/lib/.keep +0 -0
  51. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/pagination.py +0 -0
  52. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/py.typed +0 -0
  53. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/resources/__init__.py +0 -0
  54. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/resources/brands.py +0 -0
  55. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/types/__init__.py +0 -0
  56. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/types/base_checkout_intent.py +0 -0
  57. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/types/brand_retrieve_response.py +0 -0
  58. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/types/buyer.py +0 -0
  59. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/types/buyer_param.py +0 -0
  60. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/types/checkout_intent.py +0 -0
  61. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/types/checkout_intent_add_payment_params.py +0 -0
  62. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/types/checkout_intent_confirm_params.py +0 -0
  63. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/types/checkout_intent_create_params.py +0 -0
  64. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/types/checkout_intent_list_params.py +0 -0
  65. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/types/money.py +0 -0
  66. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/types/offer.py +0 -0
  67. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/types/payment_method.py +0 -0
  68. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/types/payment_method_param.py +0 -0
  69. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/types/variant_selection.py +0 -0
  70. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/src/checkout_intents/types/variant_selection_param.py +0 -0
  71. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/tests/__init__.py +0 -0
  72. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/tests/api_resources/__init__.py +0 -0
  73. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/tests/api_resources/test_brands.py +0 -0
  74. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/tests/conftest.py +0 -0
  75. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/tests/sample_file.txt +0 -0
  76. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/tests/test_client.py +0 -0
  77. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/tests/test_deepcopy.py +0 -0
  78. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/tests/test_environment_inference.py +0 -0
  79. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/tests/test_extract_files.py +0 -0
  80. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/tests/test_files.py +0 -0
  81. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/tests/test_models.py +0 -0
  82. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/tests/test_polling.py +0 -0
  83. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/tests/test_qs.py +0 -0
  84. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/tests/test_required_args.py +0 -0
  85. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/tests/test_response.py +0 -0
  86. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/tests/test_streaming.py +0 -0
  87. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/tests/test_transform.py +0 -0
  88. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/tests/test_utils/test_datetime_parse.py +0 -0
  89. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/tests/test_utils/test_proxy.py +0 -0
  90. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/tests/test_utils/test_typing.py +0 -0
  91. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/tests/utils.py +0 -0
  92. {checkout_intents-0.6.0 → checkout_intents-0.7.0}/uv.lock +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.7.0"
3
+ }
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.0 (2025-12-22)
4
+
5
+ Full Changelog: [v0.6.0...v0.7.0](https://github.com/rye-com/checkout-intents-python/compare/v0.6.0...v0.7.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** support promo codes in purchase endpoint ([db9b7ca](https://github.com/rye-com/checkout-intents-python/commit/db9b7caa613c20a0d516930551f89932be8f14d9))
10
+
3
11
  ## 0.6.0 (2025-12-22)
4
12
 
5
13
  Full Changelog: [v0.5.0...v0.6.0](https://github.com/rye-com/checkout-intents-python/compare/v0.5.0...v0.6.0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: checkout-intents
3
- Version: 0.6.0
3
+ Version: 0.7.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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "checkout-intents"
3
- version = "0.6.0"
3
+ version = "0.7.0"
4
4
  description = "The official Python library for the Checkout Intents API"
5
5
  dynamic = ["readme"]
6
6
  license = "MIT"
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "checkout_intents"
4
- __version__ = "0.6.0" # x-release-please-version
4
+ __version__ = "0.7.0" # x-release-please-version
@@ -294,6 +294,7 @@ class CheckoutIntentsResource(SyncAPIResource):
294
294
  buyer: BuyerParam,
295
295
  product_url: str,
296
296
  quantity: float,
297
+ promo_codes: SequenceNotStr[str] | Omit = omit,
297
298
  variant_selections: Iterable[VariantSelectionParam] | Omit = omit,
298
299
  payment_method: PaymentMethodParam,
299
300
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -329,6 +330,7 @@ class CheckoutIntentsResource(SyncAPIResource):
329
330
  "payment_method": payment_method,
330
331
  "product_url": product_url,
331
332
  "quantity": quantity,
333
+ "promo_codes": promo_codes,
332
334
  "variant_selections": variant_selections,
333
335
  },
334
336
  checkout_intent_purchase_params.CheckoutIntentPurchaseParams
@@ -949,6 +951,7 @@ class AsyncCheckoutIntentsResource(AsyncAPIResource):
949
951
  buyer: BuyerParam,
950
952
  product_url: str,
951
953
  quantity: float,
954
+ promo_codes: SequenceNotStr[str] | Omit = omit,
952
955
  variant_selections: Iterable[VariantSelectionParam] | Omit = omit,
953
956
  payment_method: PaymentMethodParam,
954
957
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -984,6 +987,7 @@ class AsyncCheckoutIntentsResource(AsyncAPIResource):
984
987
  "payment_method": payment_method,
985
988
  "product_url": product_url,
986
989
  "quantity": quantity,
990
+ "promo_codes": promo_codes,
987
991
  "variant_selections": variant_selections,
988
992
  },
989
993
  checkout_intent_purchase_params.CheckoutIntentPurchaseParams
@@ -5,6 +5,7 @@ from __future__ import annotations
5
5
  from typing import Iterable
6
6
  from typing_extensions import Required, Annotated, TypedDict
7
7
 
8
+ from .._types import SequenceNotStr
8
9
  from .._utils import PropertyInfo
9
10
  from .buyer_param import BuyerParam
10
11
  from .payment_method_param import PaymentMethodParam
@@ -22,4 +23,6 @@ class CheckoutIntentPurchaseParams(TypedDict, total=False):
22
23
 
23
24
  quantity: Required[float]
24
25
 
26
+ promo_codes: Annotated[SequenceNotStr[str], PropertyInfo(alias="promoCodes")]
27
+
25
28
  variant_selections: Annotated[Iterable[VariantSelectionParam], PropertyInfo(alias="variantSelections")]
@@ -386,6 +386,7 @@ class TestCheckoutIntents:
386
386
  },
387
387
  product_url="productUrl",
388
388
  quantity=1,
389
+ promo_codes=["string"],
389
390
  variant_selections=[
390
391
  {
391
392
  "label": "Size, Color, etc.",
@@ -825,6 +826,7 @@ class TestAsyncCheckoutIntents:
825
826
  },
826
827
  product_url="productUrl",
827
828
  quantity=1,
829
+ promo_codes=["string"],
828
830
  variant_selections=[
829
831
  {
830
832
  "label": "Size, Color, etc.",
@@ -1,3 +0,0 @@
1
- {
2
- ".": "0.6.0"
3
- }