paid-python 1.7.0__tar.gz → 1.7.1__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 (164) hide show
  1. {paid_python-1.7.0 → paid_python-1.7.1}/PKG-INFO +1 -1
  2. {paid_python-1.7.0 → paid_python-1.7.1}/pyproject.toml +1 -1
  3. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/checkouts/client.py +34 -0
  4. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/checkouts/raw_client.py +34 -0
  5. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/core/client_wrapper.py +2 -2
  6. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/orders/client.py +48 -0
  7. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/orders/raw_client.py +48 -0
  8. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/checkout.py +10 -0
  9. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/order.py +13 -0
  10. {paid_python-1.7.0 → paid_python-1.7.1}/LICENSE +0 -0
  11. {paid_python-1.7.0 → paid_python-1.7.1}/README.md +0 -0
  12. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/__init__.py +0 -0
  13. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/checkouts/__init__.py +0 -0
  14. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/checkouts/types/__init__.py +0 -0
  15. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/checkouts/types/list_checkouts_request_status.py +0 -0
  16. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/client.py +0 -0
  17. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/contacts/__init__.py +0 -0
  18. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/contacts/client.py +0 -0
  19. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/contacts/raw_client.py +0 -0
  20. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/contacts/types/__init__.py +0 -0
  21. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/contacts/types/create_contact_request_roles_item.py +0 -0
  22. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/core/__init__.py +0 -0
  23. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/core/api_error.py +0 -0
  24. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/core/datetime_utils.py +0 -0
  25. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/core/file.py +0 -0
  26. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/core/force_multipart.py +0 -0
  27. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/core/http_client.py +0 -0
  28. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/core/http_response.py +0 -0
  29. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/core/http_sse/__init__.py +0 -0
  30. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/core/http_sse/_api.py +0 -0
  31. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/core/http_sse/_decoders.py +0 -0
  32. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/core/http_sse/_exceptions.py +0 -0
  33. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/core/http_sse/_models.py +0 -0
  34. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/core/jsonable_encoder.py +0 -0
  35. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/core/pydantic_utilities.py +0 -0
  36. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/core/query_encoder.py +0 -0
  37. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/core/remove_none_from_dict.py +0 -0
  38. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/core/request_options.py +0 -0
  39. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/core/serialization.py +0 -0
  40. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/credits/__init__.py +0 -0
  41. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/credits/client.py +0 -0
  42. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/credits/raw_client.py +0 -0
  43. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/customer_portals/__init__.py +0 -0
  44. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/customer_portals/client.py +0 -0
  45. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/customer_portals/raw_client.py +0 -0
  46. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/customers/__init__.py +0 -0
  47. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/customers/client.py +0 -0
  48. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/customers/raw_client.py +0 -0
  49. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/environment.py +0 -0
  50. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/errors/__init__.py +0 -0
  51. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/errors/bad_request_error.py +0 -0
  52. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/errors/forbidden_error.py +0 -0
  53. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/errors/internal_server_error.py +0 -0
  54. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/errors/not_found_error.py +0 -0
  55. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/invoices/__init__.py +0 -0
  56. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/invoices/client.py +0 -0
  57. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/invoices/raw_client.py +0 -0
  58. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/logger.py +0 -0
  59. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/orders/__init__.py +0 -0
  60. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/products/__init__.py +0 -0
  61. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/products/client.py +0 -0
  62. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/products/raw_client.py +0 -0
  63. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/py.typed +0 -0
  64. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/signals/__init__.py +0 -0
  65. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/signals/client.py +0 -0
  66. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/signals/raw_client.py +0 -0
  67. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/__init__.py +0 -0
  68. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/anthropic_patches/__init__.py +0 -0
  69. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/anthropic_patches/patches.py +0 -0
  70. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/autoinstrumentation.py +0 -0
  71. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/context_data.py +0 -0
  72. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/context_manager.py +0 -0
  73. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/distributed_tracing.py +0 -0
  74. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/gemini_patches/__init__.py +0 -0
  75. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/gemini_patches/patches.py +0 -0
  76. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/openai_agents_patches/__init__.py +0 -0
  77. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/openai_agents_patches/patches.py +0 -0
  78. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/openai_patches/__init__.py +0 -0
  79. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/openai_patches/patches.py +0 -0
  80. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/signal.py +0 -0
  81. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/tracing.py +0 -0
  82. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/wrappers/__init__.py +0 -0
  83. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/wrappers/anthropic/__init__.py +0 -0
  84. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/wrappers/anthropic/anthropicWrapper.py +0 -0
  85. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/wrappers/bedrock/__init__.py +0 -0
  86. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/wrappers/bedrock/bedrockWrapper.py +0 -0
  87. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/wrappers/gemini/__init__.py +0 -0
  88. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/wrappers/gemini/geminiWrapper.py +0 -0
  89. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/wrappers/langchain/__init__.py +0 -0
  90. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/wrappers/langchain/paidLangChainCallback.py +0 -0
  91. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/wrappers/mistral/__init__.py +0 -0
  92. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/wrappers/mistral/mistralWrapper.py +0 -0
  93. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/wrappers/openai/__init__.py +0 -0
  94. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/wrappers/openai/openAiWrapper.py +0 -0
  95. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/wrappers/openai_agents/__init__.py +0 -0
  96. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/wrappers/openai_agents/openaiAgentsHook.py +0 -0
  97. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/tracing/wrappers/utils.py +0 -0
  98. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/__init__.py +0 -0
  99. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/attribution.py +0 -0
  100. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/bulk_signals_response.py +0 -0
  101. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/checkout_list_response.py +0 -0
  102. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/checkout_product.py +0 -0
  103. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/checkout_product_input.py +0 -0
  104. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/checkout_status.py +0 -0
  105. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/contact.py +0 -0
  106. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/contact_billing_address.py +0 -0
  107. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/contact_list_response.py +0 -0
  108. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/contact_roles_item.py +0 -0
  109. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/create_order_line_attribute_request.py +0 -0
  110. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/create_order_line_attribute_request_pricing.py +0 -0
  111. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/create_order_line_attribute_request_pricing_billing_frequency.py +0 -0
  112. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/create_order_line_attribute_request_pricing_billing_type.py +0 -0
  113. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/create_order_line_attribute_request_pricing_charge_type.py +0 -0
  114. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/create_order_line_attribute_request_pricing_credit_benefits_item.py +0 -0
  115. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/create_order_line_attribute_request_pricing_credit_benefits_item_allocation_cadence.py +0 -0
  116. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/create_order_line_attribute_request_pricing_credit_benefits_item_credit_grant_timing.py +0 -0
  117. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/create_order_line_attribute_request_pricing_credit_benefits_item_recipient.py +0 -0
  118. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/create_order_line_attribute_request_pricing_credit_benefits_item_rollover_duration_unit.py +0 -0
  119. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/create_order_line_attribute_request_pricing_price_points.py +0 -0
  120. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/create_order_line_attribute_request_pricing_price_points_tiers_item.py +0 -0
  121. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/create_order_line_attribute_request_pricing_price_points_tiers_item_tier_billing_type.py +0 -0
  122. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/create_order_line_attribute_request_pricing_pricing_model.py +0 -0
  123. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/create_order_line_attribute_request_pricing_signal_type.py +0 -0
  124. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/create_order_line_request.py +0 -0
  125. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/credit_balance.py +0 -0
  126. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/credit_balance_list_response.py +0 -0
  127. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/credit_balance_recipient.py +0 -0
  128. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/credit_currency.py +0 -0
  129. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/credit_currency_list_response.py +0 -0
  130. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/customer.py +0 -0
  131. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/customer_attribution.py +0 -0
  132. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/customer_billing_address.py +0 -0
  133. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/customer_by_external_id.py +0 -0
  134. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/customer_by_id.py +0 -0
  135. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/customer_creation_state.py +0 -0
  136. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/customer_list_response.py +0 -0
  137. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/customer_portal.py +0 -0
  138. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/customer_portal_status.py +0 -0
  139. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/empty_response.py +0 -0
  140. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/error_response.py +0 -0
  141. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/invoice.py +0 -0
  142. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/invoice_line.py +0 -0
  143. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/invoice_line_payment_status.py +0 -0
  144. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/invoice_lines_response.py +0 -0
  145. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/invoice_list_response.py +0 -0
  146. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/invoice_payment_status.py +0 -0
  147. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/invoice_source.py +0 -0
  148. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/invoice_status.py +0 -0
  149. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/invoice_tax_status.py +0 -0
  150. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/order_creation_state.py +0 -0
  151. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/order_line.py +0 -0
  152. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/order_lines_response.py +0 -0
  153. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/order_list_response.py +0 -0
  154. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/pagination.py +0 -0
  155. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/product.py +0 -0
  156. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/product_by_external_id.py +0 -0
  157. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/product_by_id.py +0 -0
  158. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/product_list_response.py +0 -0
  159. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/signal.py +0 -0
  160. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/update_contact_request.py +0 -0
  161. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/update_contact_request_roles_item.py +0 -0
  162. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/update_customer_request.py +0 -0
  163. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/types/update_product_request.py +0 -0
  164. {paid_python-1.7.0 → paid_python-1.7.1}/src/paid/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: paid-python
3
- Version: 1.7.0
3
+ Version: 1.7.1
4
4
  Summary:
5
5
  Requires-Python: >=3.10,<3.14
6
6
  Classifier: Intended Audience :: Developers
@@ -4,7 +4,7 @@ dynamic = ["version"]
4
4
 
5
5
  [tool.poetry]
6
6
  name = "paid-python"
7
- version = "1.7.0"
7
+ version = "1.7.1"
8
8
  description = ""
9
9
  readme = "README.md"
10
10
  authors = []
@@ -78,9 +78,13 @@ class CheckoutsClient:
78
78
  products: typing.Sequence[CheckoutProductInput],
79
79
  success_url: str,
80
80
  customer_id: typing.Optional[str] = OMIT,
81
+ external_customer_id: typing.Optional[str] = OMIT,
81
82
  cancel_url: typing.Optional[str] = OMIT,
82
83
  expires_at: typing.Optional[dt.datetime] = OMIT,
83
84
  metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
85
+ collect_address: typing.Optional[bool] = OMIT,
86
+ collect_phone: typing.Optional[bool] = OMIT,
87
+ single_use: typing.Optional[bool] = OMIT,
84
88
  request_options: typing.Optional[RequestOptions] = None,
85
89
  ) -> Checkout:
86
90
  """
@@ -94,12 +98,21 @@ class CheckoutsClient:
94
98
 
95
99
  customer_id : typing.Optional[str]
96
100
 
101
+ external_customer_id : typing.Optional[str]
102
+ External customer identifier. Creates the customer on first use, resolves to the existing customer on subsequent uses.
103
+
97
104
  cancel_url : typing.Optional[str]
98
105
 
99
106
  expires_at : typing.Optional[dt.datetime]
100
107
 
101
108
  metadata : typing.Optional[typing.Dict[str, typing.Any]]
102
109
 
110
+ collect_address : typing.Optional[bool]
111
+
112
+ collect_phone : typing.Optional[bool]
113
+
114
+ single_use : typing.Optional[bool]
115
+
103
116
  request_options : typing.Optional[RequestOptions]
104
117
  Request-specific configuration.
105
118
 
@@ -128,9 +141,13 @@ class CheckoutsClient:
128
141
  products=products,
129
142
  success_url=success_url,
130
143
  customer_id=customer_id,
144
+ external_customer_id=external_customer_id,
131
145
  cancel_url=cancel_url,
132
146
  expires_at=expires_at,
133
147
  metadata=metadata,
148
+ collect_address=collect_address,
149
+ collect_phone=collect_phone,
150
+ single_use=single_use,
134
151
  request_options=request_options,
135
152
  )
136
153
  return _response.data
@@ -266,9 +283,13 @@ class AsyncCheckoutsClient:
266
283
  products: typing.Sequence[CheckoutProductInput],
267
284
  success_url: str,
268
285
  customer_id: typing.Optional[str] = OMIT,
286
+ external_customer_id: typing.Optional[str] = OMIT,
269
287
  cancel_url: typing.Optional[str] = OMIT,
270
288
  expires_at: typing.Optional[dt.datetime] = OMIT,
271
289
  metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
290
+ collect_address: typing.Optional[bool] = OMIT,
291
+ collect_phone: typing.Optional[bool] = OMIT,
292
+ single_use: typing.Optional[bool] = OMIT,
272
293
  request_options: typing.Optional[RequestOptions] = None,
273
294
  ) -> Checkout:
274
295
  """
@@ -282,12 +303,21 @@ class AsyncCheckoutsClient:
282
303
 
283
304
  customer_id : typing.Optional[str]
284
305
 
306
+ external_customer_id : typing.Optional[str]
307
+ External customer identifier. Creates the customer on first use, resolves to the existing customer on subsequent uses.
308
+
285
309
  cancel_url : typing.Optional[str]
286
310
 
287
311
  expires_at : typing.Optional[dt.datetime]
288
312
 
289
313
  metadata : typing.Optional[typing.Dict[str, typing.Any]]
290
314
 
315
+ collect_address : typing.Optional[bool]
316
+
317
+ collect_phone : typing.Optional[bool]
318
+
319
+ single_use : typing.Optional[bool]
320
+
291
321
  request_options : typing.Optional[RequestOptions]
292
322
  Request-specific configuration.
293
323
 
@@ -324,9 +354,13 @@ class AsyncCheckoutsClient:
324
354
  products=products,
325
355
  success_url=success_url,
326
356
  customer_id=customer_id,
357
+ external_customer_id=external_customer_id,
327
358
  cancel_url=cancel_url,
328
359
  expires_at=expires_at,
329
360
  metadata=metadata,
361
+ collect_address=collect_address,
362
+ collect_phone=collect_phone,
363
+ single_use=single_use,
330
364
  request_options=request_options,
331
365
  )
332
366
  return _response.data
@@ -121,9 +121,13 @@ class RawCheckoutsClient:
121
121
  products: typing.Sequence[CheckoutProductInput],
122
122
  success_url: str,
123
123
  customer_id: typing.Optional[str] = OMIT,
124
+ external_customer_id: typing.Optional[str] = OMIT,
124
125
  cancel_url: typing.Optional[str] = OMIT,
125
126
  expires_at: typing.Optional[dt.datetime] = OMIT,
126
127
  metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
128
+ collect_address: typing.Optional[bool] = OMIT,
129
+ collect_phone: typing.Optional[bool] = OMIT,
130
+ single_use: typing.Optional[bool] = OMIT,
127
131
  request_options: typing.Optional[RequestOptions] = None,
128
132
  ) -> HttpResponse[Checkout]:
129
133
  """
@@ -137,12 +141,21 @@ class RawCheckoutsClient:
137
141
 
138
142
  customer_id : typing.Optional[str]
139
143
 
144
+ external_customer_id : typing.Optional[str]
145
+ External customer identifier. Creates the customer on first use, resolves to the existing customer on subsequent uses.
146
+
140
147
  cancel_url : typing.Optional[str]
141
148
 
142
149
  expires_at : typing.Optional[dt.datetime]
143
150
 
144
151
  metadata : typing.Optional[typing.Dict[str, typing.Any]]
145
152
 
153
+ collect_address : typing.Optional[bool]
154
+
155
+ collect_phone : typing.Optional[bool]
156
+
157
+ single_use : typing.Optional[bool]
158
+
146
159
  request_options : typing.Optional[RequestOptions]
147
160
  Request-specific configuration.
148
161
 
@@ -159,10 +172,14 @@ class RawCheckoutsClient:
159
172
  object_=products, annotation=typing.Sequence[CheckoutProductInput], direction="write"
160
173
  ),
161
174
  "customerId": customer_id,
175
+ "externalCustomerId": external_customer_id,
162
176
  "successUrl": success_url,
163
177
  "cancelUrl": cancel_url,
164
178
  "expiresAt": expires_at,
165
179
  "metadata": metadata,
180
+ "collectAddress": collect_address,
181
+ "collectPhone": collect_phone,
182
+ "singleUse": single_use,
166
183
  },
167
184
  headers={
168
185
  "content-type": "application/json",
@@ -467,9 +484,13 @@ class AsyncRawCheckoutsClient:
467
484
  products: typing.Sequence[CheckoutProductInput],
468
485
  success_url: str,
469
486
  customer_id: typing.Optional[str] = OMIT,
487
+ external_customer_id: typing.Optional[str] = OMIT,
470
488
  cancel_url: typing.Optional[str] = OMIT,
471
489
  expires_at: typing.Optional[dt.datetime] = OMIT,
472
490
  metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
491
+ collect_address: typing.Optional[bool] = OMIT,
492
+ collect_phone: typing.Optional[bool] = OMIT,
493
+ single_use: typing.Optional[bool] = OMIT,
473
494
  request_options: typing.Optional[RequestOptions] = None,
474
495
  ) -> AsyncHttpResponse[Checkout]:
475
496
  """
@@ -483,12 +504,21 @@ class AsyncRawCheckoutsClient:
483
504
 
484
505
  customer_id : typing.Optional[str]
485
506
 
507
+ external_customer_id : typing.Optional[str]
508
+ External customer identifier. Creates the customer on first use, resolves to the existing customer on subsequent uses.
509
+
486
510
  cancel_url : typing.Optional[str]
487
511
 
488
512
  expires_at : typing.Optional[dt.datetime]
489
513
 
490
514
  metadata : typing.Optional[typing.Dict[str, typing.Any]]
491
515
 
516
+ collect_address : typing.Optional[bool]
517
+
518
+ collect_phone : typing.Optional[bool]
519
+
520
+ single_use : typing.Optional[bool]
521
+
492
522
  request_options : typing.Optional[RequestOptions]
493
523
  Request-specific configuration.
494
524
 
@@ -505,10 +535,14 @@ class AsyncRawCheckoutsClient:
505
535
  object_=products, annotation=typing.Sequence[CheckoutProductInput], direction="write"
506
536
  ),
507
537
  "customerId": customer_id,
538
+ "externalCustomerId": external_customer_id,
508
539
  "successUrl": success_url,
509
540
  "cancelUrl": cancel_url,
510
541
  "expiresAt": expires_at,
511
542
  "metadata": metadata,
543
+ "collectAddress": collect_address,
544
+ "collectPhone": collect_phone,
545
+ "singleUse": single_use,
512
546
  },
513
547
  headers={
514
548
  "content-type": "application/json",
@@ -24,12 +24,12 @@ class BaseClientWrapper:
24
24
  import platform
25
25
 
26
26
  headers: typing.Dict[str, str] = {
27
- "User-Agent": "paid-python/1.7.0",
27
+ "User-Agent": "paid-python/1.7.1",
28
28
  "X-Fern-Language": "Python",
29
29
  "X-Fern-Runtime": f"python/{platform.python_version()}",
30
30
  "X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
31
31
  "X-Fern-SDK-Name": "paid-python",
32
- "X-Fern-SDK-Version": "1.7.0",
32
+ "X-Fern-SDK-Version": "1.7.1",
33
33
  **(self.get_custom_headers() or {}),
34
34
  }
35
35
  headers["Authorization"] = f"Bearer {self._get_token()}"
@@ -84,6 +84,9 @@ class OrdersClient:
84
84
  external_id: typing.Optional[str] = OMIT,
85
85
  metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
86
86
  currency: typing.Optional[str] = OMIT,
87
+ auto_post_invoices: typing.Optional[bool] = OMIT,
88
+ auto_send_billing_emails: typing.Optional[bool] = OMIT,
89
+ auto_send_payment_emails: typing.Optional[bool] = OMIT,
87
90
  lines: typing.Optional[typing.Sequence[CreateOrderLineRequest]] = OMIT,
88
91
  request_options: typing.Optional[RequestOptions] = None,
89
92
  ) -> Order:
@@ -119,6 +122,12 @@ class OrdersClient:
119
122
 
120
123
  currency : typing.Optional[str]
121
124
 
125
+ auto_post_invoices : typing.Optional[bool]
126
+
127
+ auto_send_billing_emails : typing.Optional[bool]
128
+
129
+ auto_send_payment_emails : typing.Optional[bool]
130
+
122
131
  lines : typing.Optional[typing.Sequence[CreateOrderLineRequest]]
123
132
 
124
133
  request_options : typing.Optional[RequestOptions]
@@ -154,6 +163,9 @@ class OrdersClient:
154
163
  external_id=external_id,
155
164
  metadata=metadata,
156
165
  currency=currency,
166
+ auto_post_invoices=auto_post_invoices,
167
+ auto_send_billing_emails=auto_send_billing_emails,
168
+ auto_send_payment_emails=auto_send_payment_emails,
157
169
  lines=lines,
158
170
  request_options=request_options,
159
171
  )
@@ -204,6 +216,9 @@ class OrdersClient:
204
216
  metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
205
217
  billing_customer_id: typing.Optional[str] = OMIT,
206
218
  billing_contact_ids: typing.Optional[typing.Sequence[str]] = OMIT,
219
+ auto_post_invoices: typing.Optional[bool] = OMIT,
220
+ auto_send_billing_emails: typing.Optional[bool] = OMIT,
221
+ auto_send_payment_emails: typing.Optional[bool] = OMIT,
207
222
  request_options: typing.Optional[RequestOptions] = None,
208
223
  ) -> Order:
209
224
  """
@@ -236,6 +251,12 @@ class OrdersClient:
236
251
 
237
252
  billing_contact_ids : typing.Optional[typing.Sequence[str]]
238
253
 
254
+ auto_post_invoices : typing.Optional[bool]
255
+
256
+ auto_send_billing_emails : typing.Optional[bool]
257
+
258
+ auto_send_payment_emails : typing.Optional[bool]
259
+
239
260
  request_options : typing.Optional[RequestOptions]
240
261
  Request-specific configuration.
241
262
 
@@ -268,6 +289,9 @@ class OrdersClient:
268
289
  metadata=metadata,
269
290
  billing_customer_id=billing_customer_id,
270
291
  billing_contact_ids=billing_contact_ids,
292
+ auto_post_invoices=auto_post_invoices,
293
+ auto_send_billing_emails=auto_send_billing_emails,
294
+ auto_send_payment_emails=auto_send_payment_emails,
271
295
  request_options=request_options,
272
296
  )
273
297
  return _response.data
@@ -419,6 +443,9 @@ class AsyncOrdersClient:
419
443
  external_id: typing.Optional[str] = OMIT,
420
444
  metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
421
445
  currency: typing.Optional[str] = OMIT,
446
+ auto_post_invoices: typing.Optional[bool] = OMIT,
447
+ auto_send_billing_emails: typing.Optional[bool] = OMIT,
448
+ auto_send_payment_emails: typing.Optional[bool] = OMIT,
422
449
  lines: typing.Optional[typing.Sequence[CreateOrderLineRequest]] = OMIT,
423
450
  request_options: typing.Optional[RequestOptions] = None,
424
451
  ) -> Order:
@@ -454,6 +481,12 @@ class AsyncOrdersClient:
454
481
 
455
482
  currency : typing.Optional[str]
456
483
 
484
+ auto_post_invoices : typing.Optional[bool]
485
+
486
+ auto_send_billing_emails : typing.Optional[bool]
487
+
488
+ auto_send_payment_emails : typing.Optional[bool]
489
+
457
490
  lines : typing.Optional[typing.Sequence[CreateOrderLineRequest]]
458
491
 
459
492
  request_options : typing.Optional[RequestOptions]
@@ -497,6 +530,9 @@ class AsyncOrdersClient:
497
530
  external_id=external_id,
498
531
  metadata=metadata,
499
532
  currency=currency,
533
+ auto_post_invoices=auto_post_invoices,
534
+ auto_send_billing_emails=auto_send_billing_emails,
535
+ auto_send_payment_emails=auto_send_payment_emails,
500
536
  lines=lines,
501
537
  request_options=request_options,
502
538
  )
@@ -555,6 +591,9 @@ class AsyncOrdersClient:
555
591
  metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
556
592
  billing_customer_id: typing.Optional[str] = OMIT,
557
593
  billing_contact_ids: typing.Optional[typing.Sequence[str]] = OMIT,
594
+ auto_post_invoices: typing.Optional[bool] = OMIT,
595
+ auto_send_billing_emails: typing.Optional[bool] = OMIT,
596
+ auto_send_payment_emails: typing.Optional[bool] = OMIT,
558
597
  request_options: typing.Optional[RequestOptions] = None,
559
598
  ) -> Order:
560
599
  """
@@ -587,6 +626,12 @@ class AsyncOrdersClient:
587
626
 
588
627
  billing_contact_ids : typing.Optional[typing.Sequence[str]]
589
628
 
629
+ auto_post_invoices : typing.Optional[bool]
630
+
631
+ auto_send_billing_emails : typing.Optional[bool]
632
+
633
+ auto_send_payment_emails : typing.Optional[bool]
634
+
590
635
  request_options : typing.Optional[RequestOptions]
591
636
  Request-specific configuration.
592
637
 
@@ -627,6 +672,9 @@ class AsyncOrdersClient:
627
672
  metadata=metadata,
628
673
  billing_customer_id=billing_customer_id,
629
674
  billing_contact_ids=billing_contact_ids,
675
+ auto_post_invoices=auto_post_invoices,
676
+ auto_send_billing_emails=auto_send_billing_emails,
677
+ auto_send_payment_emails=auto_send_payment_emails,
630
678
  request_options=request_options,
631
679
  )
632
680
  return _response.data
@@ -128,6 +128,9 @@ class RawOrdersClient:
128
128
  external_id: typing.Optional[str] = OMIT,
129
129
  metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
130
130
  currency: typing.Optional[str] = OMIT,
131
+ auto_post_invoices: typing.Optional[bool] = OMIT,
132
+ auto_send_billing_emails: typing.Optional[bool] = OMIT,
133
+ auto_send_payment_emails: typing.Optional[bool] = OMIT,
131
134
  lines: typing.Optional[typing.Sequence[CreateOrderLineRequest]] = OMIT,
132
135
  request_options: typing.Optional[RequestOptions] = None,
133
136
  ) -> HttpResponse[Order]:
@@ -163,6 +166,12 @@ class RawOrdersClient:
163
166
 
164
167
  currency : typing.Optional[str]
165
168
 
169
+ auto_post_invoices : typing.Optional[bool]
170
+
171
+ auto_send_billing_emails : typing.Optional[bool]
172
+
173
+ auto_send_payment_emails : typing.Optional[bool]
174
+
166
175
  lines : typing.Optional[typing.Sequence[CreateOrderLineRequest]]
167
176
 
168
177
  request_options : typing.Optional[RequestOptions]
@@ -190,6 +199,9 @@ class RawOrdersClient:
190
199
  "externalId": external_id,
191
200
  "metadata": metadata,
192
201
  "currency": currency,
202
+ "autoPostInvoices": auto_post_invoices,
203
+ "autoSendBillingEmails": auto_send_billing_emails,
204
+ "autoSendPaymentEmails": auto_send_payment_emails,
193
205
  "lines": convert_and_respect_annotation_metadata(
194
206
  object_=lines, annotation=typing.Sequence[CreateOrderLineRequest], direction="write"
195
207
  ),
@@ -334,6 +346,9 @@ class RawOrdersClient:
334
346
  metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
335
347
  billing_customer_id: typing.Optional[str] = OMIT,
336
348
  billing_contact_ids: typing.Optional[typing.Sequence[str]] = OMIT,
349
+ auto_post_invoices: typing.Optional[bool] = OMIT,
350
+ auto_send_billing_emails: typing.Optional[bool] = OMIT,
351
+ auto_send_payment_emails: typing.Optional[bool] = OMIT,
337
352
  request_options: typing.Optional[RequestOptions] = None,
338
353
  ) -> HttpResponse[Order]:
339
354
  """
@@ -366,6 +381,12 @@ class RawOrdersClient:
366
381
 
367
382
  billing_contact_ids : typing.Optional[typing.Sequence[str]]
368
383
 
384
+ auto_post_invoices : typing.Optional[bool]
385
+
386
+ auto_send_billing_emails : typing.Optional[bool]
387
+
388
+ auto_send_payment_emails : typing.Optional[bool]
389
+
369
390
  request_options : typing.Optional[RequestOptions]
370
391
  Request-specific configuration.
371
392
 
@@ -389,6 +410,9 @@ class RawOrdersClient:
389
410
  "metadata": metadata,
390
411
  "billingCustomerId": billing_customer_id,
391
412
  "billingContactIds": billing_contact_ids,
413
+ "autoPostInvoices": auto_post_invoices,
414
+ "autoSendBillingEmails": auto_send_billing_emails,
415
+ "autoSendPaymentEmails": auto_send_payment_emails,
392
416
  },
393
417
  headers={
394
418
  "content-type": "application/json",
@@ -712,6 +736,9 @@ class AsyncRawOrdersClient:
712
736
  external_id: typing.Optional[str] = OMIT,
713
737
  metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
714
738
  currency: typing.Optional[str] = OMIT,
739
+ auto_post_invoices: typing.Optional[bool] = OMIT,
740
+ auto_send_billing_emails: typing.Optional[bool] = OMIT,
741
+ auto_send_payment_emails: typing.Optional[bool] = OMIT,
715
742
  lines: typing.Optional[typing.Sequence[CreateOrderLineRequest]] = OMIT,
716
743
  request_options: typing.Optional[RequestOptions] = None,
717
744
  ) -> AsyncHttpResponse[Order]:
@@ -747,6 +774,12 @@ class AsyncRawOrdersClient:
747
774
 
748
775
  currency : typing.Optional[str]
749
776
 
777
+ auto_post_invoices : typing.Optional[bool]
778
+
779
+ auto_send_billing_emails : typing.Optional[bool]
780
+
781
+ auto_send_payment_emails : typing.Optional[bool]
782
+
750
783
  lines : typing.Optional[typing.Sequence[CreateOrderLineRequest]]
751
784
 
752
785
  request_options : typing.Optional[RequestOptions]
@@ -774,6 +807,9 @@ class AsyncRawOrdersClient:
774
807
  "externalId": external_id,
775
808
  "metadata": metadata,
776
809
  "currency": currency,
810
+ "autoPostInvoices": auto_post_invoices,
811
+ "autoSendBillingEmails": auto_send_billing_emails,
812
+ "autoSendPaymentEmails": auto_send_payment_emails,
777
813
  "lines": convert_and_respect_annotation_metadata(
778
814
  object_=lines, annotation=typing.Sequence[CreateOrderLineRequest], direction="write"
779
815
  ),
@@ -918,6 +954,9 @@ class AsyncRawOrdersClient:
918
954
  metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
919
955
  billing_customer_id: typing.Optional[str] = OMIT,
920
956
  billing_contact_ids: typing.Optional[typing.Sequence[str]] = OMIT,
957
+ auto_post_invoices: typing.Optional[bool] = OMIT,
958
+ auto_send_billing_emails: typing.Optional[bool] = OMIT,
959
+ auto_send_payment_emails: typing.Optional[bool] = OMIT,
921
960
  request_options: typing.Optional[RequestOptions] = None,
922
961
  ) -> AsyncHttpResponse[Order]:
923
962
  """
@@ -950,6 +989,12 @@ class AsyncRawOrdersClient:
950
989
 
951
990
  billing_contact_ids : typing.Optional[typing.Sequence[str]]
952
991
 
992
+ auto_post_invoices : typing.Optional[bool]
993
+
994
+ auto_send_billing_emails : typing.Optional[bool]
995
+
996
+ auto_send_payment_emails : typing.Optional[bool]
997
+
953
998
  request_options : typing.Optional[RequestOptions]
954
999
  Request-specific configuration.
955
1000
 
@@ -973,6 +1018,9 @@ class AsyncRawOrdersClient:
973
1018
  "metadata": metadata,
974
1019
  "billingCustomerId": billing_customer_id,
975
1020
  "billingContactIds": billing_contact_ids,
1021
+ "autoPostInvoices": auto_post_invoices,
1022
+ "autoSendBillingEmails": auto_send_billing_emails,
1023
+ "autoSendPaymentEmails": auto_send_payment_emails,
976
1024
  },
977
1025
  headers={
978
1026
  "content-type": "application/json",
@@ -19,6 +19,9 @@ class Checkout(UniversalBaseModel):
19
19
  customer_id: typing_extensions.Annotated[
20
20
  typing.Optional[str], FieldMetadata(alias="customerId"), pydantic.Field(alias="customerId")
21
21
  ] = None
22
+ external_customer_id: typing_extensions.Annotated[
23
+ typing.Optional[str], FieldMetadata(alias="externalCustomerId"), pydantic.Field(alias="externalCustomerId")
24
+ ] = None
22
25
  success_url: typing_extensions.Annotated[str, FieldMetadata(alias="successUrl"), pydantic.Field(alias="successUrl")]
23
26
  cancel_url: typing_extensions.Annotated[
24
27
  typing.Optional[str], FieldMetadata(alias="cancelUrl"), pydantic.Field(alias="cancelUrl")
@@ -27,6 +30,13 @@ class Checkout(UniversalBaseModel):
27
30
  typing.Optional[dt.datetime], FieldMetadata(alias="expiresAt"), pydantic.Field(alias="expiresAt")
28
31
  ] = None
29
32
  metadata: typing.Optional[typing.Dict[str, typing.Any]] = None
33
+ collect_address: typing_extensions.Annotated[
34
+ bool, FieldMetadata(alias="collectAddress"), pydantic.Field(alias="collectAddress")
35
+ ]
36
+ collect_phone: typing_extensions.Annotated[
37
+ bool, FieldMetadata(alias="collectPhone"), pydantic.Field(alias="collectPhone")
38
+ ]
39
+ single_use: typing_extensions.Annotated[bool, FieldMetadata(alias="singleUse"), pydantic.Field(alias="singleUse")]
30
40
  created_at: typing_extensions.Annotated[
31
41
  dt.datetime, FieldMetadata(alias="createdAt"), pydantic.Field(alias="createdAt")
32
42
  ]
@@ -68,6 +68,19 @@ class Order(UniversalBaseModel):
68
68
  show_bank_details: typing_extensions.Annotated[
69
69
  typing.Optional[bool], FieldMetadata(alias="showBankDetails"), pydantic.Field(alias="showBankDetails")
70
70
  ] = None
71
+ auto_post_invoices: typing_extensions.Annotated[
72
+ typing.Optional[bool], FieldMetadata(alias="autoPostInvoices"), pydantic.Field(alias="autoPostInvoices")
73
+ ] = None
74
+ auto_send_billing_emails: typing_extensions.Annotated[
75
+ typing.Optional[bool],
76
+ FieldMetadata(alias="autoSendBillingEmails"),
77
+ pydantic.Field(alias="autoSendBillingEmails"),
78
+ ] = None
79
+ auto_send_payment_emails: typing_extensions.Annotated[
80
+ typing.Optional[bool],
81
+ FieldMetadata(alias="autoSendPaymentEmails"),
82
+ pydantic.Field(alias="autoSendPaymentEmails"),
83
+ ] = None
71
84
  version: int
72
85
 
73
86
  if IS_PYDANTIC_V2:
File without changes
File without changes