paid-python 1.0.0a1__tar.gz → 1.0.0a2__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.
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/PKG-INFO +2 -1
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/pyproject.toml +3 -1
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/contacts/client.py +32 -30
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/contacts/raw_client.py +16 -14
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/core/client_wrapper.py +2 -2
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/customers/client.py +38 -36
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/customers/raw_client.py +20 -20
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/invoices/client.py +18 -18
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/invoices/raw_client.py +12 -10
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/orders/client.py +34 -32
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/orders/raw_client.py +18 -16
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/products/client.py +26 -26
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/products/raw_client.py +16 -14
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/signals/client.py +6 -6
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/signals/raw_client.py +2 -2
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/LICENSE +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/README.md +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/__init__.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/client.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/contacts/__init__.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/core/__init__.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/core/api_error.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/core/datetime_utils.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/core/file.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/core/force_multipart.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/core/http_client.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/core/http_response.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/core/jsonable_encoder.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/core/pydantic_utilities.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/core/query_encoder.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/core/remove_none_from_dict.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/core/request_options.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/core/serialization.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/customers/__init__.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/environment.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/errors/__init__.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/errors/bad_request_error.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/errors/forbidden_error.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/errors/internal_server_error.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/errors/not_found_error.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/invoices/__init__.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/logger.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/orders/__init__.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/products/__init__.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/py.typed +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/signals/__init__.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/__init__.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/autoinstrumentation.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/context_data.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/context_manager.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/distributed_tracing.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/signal.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/tracing.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/wrappers/__init__.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/wrappers/anthropic/__init__.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/wrappers/anthropic/anthropicWrapper.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/wrappers/bedrock/__init__.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/wrappers/bedrock/bedrockWrapper.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/wrappers/gemini/__init__.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/wrappers/gemini/geminiWrapper.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/wrappers/langchain/__init__.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/wrappers/langchain/paidLangChainCallback.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/wrappers/llamaindex/__init__.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/wrappers/llamaindex/llamaIndexWrapper.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/wrappers/mistral/__init__.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/wrappers/mistral/mistralWrapper.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/wrappers/openai/__init__.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/wrappers/openai/openAiWrapper.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/wrappers/openai_agents/__init__.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/wrappers/openai_agents/openaiAgentsHook.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/tracing/wrappers/utils.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/__init__.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/attribution.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/bulk_signals_response.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/contact.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/contact_billing_address.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/contact_list_response.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/customer.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/customer_attribution.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/customer_billing_address.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/customer_by_external_id.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/customer_by_id.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/customer_creation_state.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/customer_list_response.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/empty_response.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/error_response.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/invoice.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/invoice_line.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/invoice_line_payment_status.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/invoice_lines_response.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/invoice_list_response.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/invoice_payment_status.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/invoice_source.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/invoice_status.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/invoice_tax_status.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/order.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/order_creation_state.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/order_line.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/order_lines_response.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/order_list_response.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/pagination.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/product.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/product_by_external_id.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/product_by_id.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/product_list_response.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/signal.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/update_contact_request.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/update_customer_request.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/types/update_product_request.py +0 -0
- {paid_python-1.0.0a1 → paid_python-1.0.0a2}/src/paid/version.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: paid-python
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.0a2
|
|
4
4
|
Summary:
|
|
5
5
|
Requires-Python: >=3.9,<3.14
|
|
6
6
|
Classifier: Intended Audience :: Developers
|
|
@@ -22,6 +22,7 @@ Requires-Dist: httpx (>=0.21.2)
|
|
|
22
22
|
Requires-Dist: mutagen (>=1.47.0)
|
|
23
23
|
Requires-Dist: openinference-instrumentation-bedrock (>=0.1.0)
|
|
24
24
|
Requires-Dist: openinference-instrumentation-google-genai (>=0.1.8)
|
|
25
|
+
Requires-Dist: openinference-instrumentation-instructor (>=0.1.0)
|
|
25
26
|
Requires-Dist: openinference-instrumentation-langchain (>=0.1.55)
|
|
26
27
|
Requires-Dist: openinference-instrumentation-openai-agents (>=1.0.0)
|
|
27
28
|
Requires-Dist: opentelemetry-api (>=1.23.0)
|
|
@@ -3,7 +3,7 @@ name = "paid-python"
|
|
|
3
3
|
|
|
4
4
|
[tool.poetry]
|
|
5
5
|
name = "paid-python"
|
|
6
|
-
version = "1.0.0-
|
|
6
|
+
version = "1.0.0-alpha2"
|
|
7
7
|
description = ""
|
|
8
8
|
readme = "README.md"
|
|
9
9
|
authors = []
|
|
@@ -39,6 +39,7 @@ httpx = ">=0.21.2"
|
|
|
39
39
|
mutagen = ">=1.47.0"
|
|
40
40
|
openinference-instrumentation-bedrock = ">=0.1.0"
|
|
41
41
|
openinference-instrumentation-google-genai = ">=0.1.8"
|
|
42
|
+
openinference-instrumentation-instructor = ">=0.1.0"
|
|
42
43
|
openinference-instrumentation-langchain = ">=0.1.55"
|
|
43
44
|
openinference-instrumentation-openai-agents = ">=1.0.0"
|
|
44
45
|
opentelemetry-api = ">=1.23.0"
|
|
@@ -59,6 +60,7 @@ python-dateutil = "^2.9.0"
|
|
|
59
60
|
types-python-dateutil = "^2.9.0.20240316"
|
|
60
61
|
anthropic = ">=0.57.0"
|
|
61
62
|
google-genai = ">=1.19.0"
|
|
63
|
+
instructor = ">=1.0.0"
|
|
62
64
|
langchain-core = ">=0.1.0"
|
|
63
65
|
llama-index-core = ">=0.13.0"
|
|
64
66
|
llama-index-llms-openai = ">=0.5.0"
|
|
@@ -65,7 +65,7 @@ class ContactsClient:
|
|
|
65
65
|
_response = self._raw_client.list_contacts(limit=limit, offset=offset, request_options=request_options)
|
|
66
66
|
return _response.data
|
|
67
67
|
|
|
68
|
-
def
|
|
68
|
+
def create_contact(
|
|
69
69
|
self,
|
|
70
70
|
*,
|
|
71
71
|
customer_id: str,
|
|
@@ -111,14 +111,14 @@ class ContactsClient:
|
|
|
111
111
|
client = Paid(
|
|
112
112
|
token="YOUR_TOKEN",
|
|
113
113
|
)
|
|
114
|
-
client.contacts.
|
|
114
|
+
client.contacts.create_contact(
|
|
115
115
|
customer_id="customerId",
|
|
116
116
|
first_name="firstName",
|
|
117
117
|
last_name="lastName",
|
|
118
118
|
email="email",
|
|
119
119
|
)
|
|
120
120
|
"""
|
|
121
|
-
_response = self._raw_client.
|
|
121
|
+
_response = self._raw_client.create_contact(
|
|
122
122
|
customer_id=customer_id,
|
|
123
123
|
first_name=first_name,
|
|
124
124
|
last_name=last_name,
|
|
@@ -130,7 +130,7 @@ class ContactsClient:
|
|
|
130
130
|
)
|
|
131
131
|
return _response.data
|
|
132
132
|
|
|
133
|
-
def
|
|
133
|
+
def get_contact_by_id(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Contact:
|
|
134
134
|
"""
|
|
135
135
|
Get a contact by its ID
|
|
136
136
|
|
|
@@ -153,14 +153,14 @@ class ContactsClient:
|
|
|
153
153
|
client = Paid(
|
|
154
154
|
token="YOUR_TOKEN",
|
|
155
155
|
)
|
|
156
|
-
client.contacts.
|
|
156
|
+
client.contacts.get_contact_by_id(
|
|
157
157
|
id="id",
|
|
158
158
|
)
|
|
159
159
|
"""
|
|
160
|
-
_response = self._raw_client.
|
|
160
|
+
_response = self._raw_client.get_contact_by_id(id, request_options=request_options)
|
|
161
161
|
return _response.data
|
|
162
162
|
|
|
163
|
-
def
|
|
163
|
+
def update_contact_by_id(
|
|
164
164
|
self,
|
|
165
165
|
id: str,
|
|
166
166
|
*,
|
|
@@ -209,11 +209,11 @@ class ContactsClient:
|
|
|
209
209
|
client = Paid(
|
|
210
210
|
token="YOUR_TOKEN",
|
|
211
211
|
)
|
|
212
|
-
client.contacts.
|
|
212
|
+
client.contacts.update_contact_by_id(
|
|
213
213
|
id="id",
|
|
214
214
|
)
|
|
215
215
|
"""
|
|
216
|
-
_response = self._raw_client.
|
|
216
|
+
_response = self._raw_client.update_contact_by_id(
|
|
217
217
|
id,
|
|
218
218
|
customer_id=customer_id,
|
|
219
219
|
first_name=first_name,
|
|
@@ -226,7 +226,9 @@ class ContactsClient:
|
|
|
226
226
|
)
|
|
227
227
|
return _response.data
|
|
228
228
|
|
|
229
|
-
def
|
|
229
|
+
def delete_contact_by_id(
|
|
230
|
+
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
231
|
+
) -> EmptyResponse:
|
|
230
232
|
"""
|
|
231
233
|
Delete a contact by its ID
|
|
232
234
|
|
|
@@ -249,18 +251,18 @@ class ContactsClient:
|
|
|
249
251
|
client = Paid(
|
|
250
252
|
token="YOUR_TOKEN",
|
|
251
253
|
)
|
|
252
|
-
client.contacts.
|
|
254
|
+
client.contacts.delete_contact_by_id(
|
|
253
255
|
id="id",
|
|
254
256
|
)
|
|
255
257
|
"""
|
|
256
|
-
_response = self._raw_client.
|
|
258
|
+
_response = self._raw_client.delete_contact_by_id(id, request_options=request_options)
|
|
257
259
|
return _response.data
|
|
258
260
|
|
|
259
261
|
def get_contact_by_external_id(
|
|
260
262
|
self, external_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
261
263
|
) -> Contact:
|
|
262
264
|
"""
|
|
263
|
-
Get a contact by its
|
|
265
|
+
Get a contact by its external ID
|
|
264
266
|
|
|
265
267
|
Parameters
|
|
266
268
|
----------
|
|
@@ -302,7 +304,7 @@ class ContactsClient:
|
|
|
302
304
|
request_options: typing.Optional[RequestOptions] = None,
|
|
303
305
|
) -> Contact:
|
|
304
306
|
"""
|
|
305
|
-
Update a contact by its
|
|
307
|
+
Update a contact by its external ID
|
|
306
308
|
|
|
307
309
|
Parameters
|
|
308
310
|
----------
|
|
@@ -358,7 +360,7 @@ class ContactsClient:
|
|
|
358
360
|
self, external_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
359
361
|
) -> EmptyResponse:
|
|
360
362
|
"""
|
|
361
|
-
Delete a contact by its
|
|
363
|
+
Delete a contact by its external ID
|
|
362
364
|
|
|
363
365
|
Parameters
|
|
364
366
|
----------
|
|
@@ -446,7 +448,7 @@ class AsyncContactsClient:
|
|
|
446
448
|
_response = await self._raw_client.list_contacts(limit=limit, offset=offset, request_options=request_options)
|
|
447
449
|
return _response.data
|
|
448
450
|
|
|
449
|
-
async def
|
|
451
|
+
async def create_contact(
|
|
450
452
|
self,
|
|
451
453
|
*,
|
|
452
454
|
customer_id: str,
|
|
@@ -497,7 +499,7 @@ class AsyncContactsClient:
|
|
|
497
499
|
|
|
498
500
|
|
|
499
501
|
async def main() -> None:
|
|
500
|
-
await client.contacts.
|
|
502
|
+
await client.contacts.create_contact(
|
|
501
503
|
customer_id="customerId",
|
|
502
504
|
first_name="firstName",
|
|
503
505
|
last_name="lastName",
|
|
@@ -507,7 +509,7 @@ class AsyncContactsClient:
|
|
|
507
509
|
|
|
508
510
|
asyncio.run(main())
|
|
509
511
|
"""
|
|
510
|
-
_response = await self._raw_client.
|
|
512
|
+
_response = await self._raw_client.create_contact(
|
|
511
513
|
customer_id=customer_id,
|
|
512
514
|
first_name=first_name,
|
|
513
515
|
last_name=last_name,
|
|
@@ -519,7 +521,7 @@ class AsyncContactsClient:
|
|
|
519
521
|
)
|
|
520
522
|
return _response.data
|
|
521
523
|
|
|
522
|
-
async def
|
|
524
|
+
async def get_contact_by_id(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Contact:
|
|
523
525
|
"""
|
|
524
526
|
Get a contact by its ID
|
|
525
527
|
|
|
@@ -547,17 +549,17 @@ class AsyncContactsClient:
|
|
|
547
549
|
|
|
548
550
|
|
|
549
551
|
async def main() -> None:
|
|
550
|
-
await client.contacts.
|
|
552
|
+
await client.contacts.get_contact_by_id(
|
|
551
553
|
id="id",
|
|
552
554
|
)
|
|
553
555
|
|
|
554
556
|
|
|
555
557
|
asyncio.run(main())
|
|
556
558
|
"""
|
|
557
|
-
_response = await self._raw_client.
|
|
559
|
+
_response = await self._raw_client.get_contact_by_id(id, request_options=request_options)
|
|
558
560
|
return _response.data
|
|
559
561
|
|
|
560
|
-
async def
|
|
562
|
+
async def update_contact_by_id(
|
|
561
563
|
self,
|
|
562
564
|
id: str,
|
|
563
565
|
*,
|
|
@@ -611,14 +613,14 @@ class AsyncContactsClient:
|
|
|
611
613
|
|
|
612
614
|
|
|
613
615
|
async def main() -> None:
|
|
614
|
-
await client.contacts.
|
|
616
|
+
await client.contacts.update_contact_by_id(
|
|
615
617
|
id="id",
|
|
616
618
|
)
|
|
617
619
|
|
|
618
620
|
|
|
619
621
|
asyncio.run(main())
|
|
620
622
|
"""
|
|
621
|
-
_response = await self._raw_client.
|
|
623
|
+
_response = await self._raw_client.update_contact_by_id(
|
|
622
624
|
id,
|
|
623
625
|
customer_id=customer_id,
|
|
624
626
|
first_name=first_name,
|
|
@@ -631,7 +633,7 @@ class AsyncContactsClient:
|
|
|
631
633
|
)
|
|
632
634
|
return _response.data
|
|
633
635
|
|
|
634
|
-
async def
|
|
636
|
+
async def delete_contact_by_id(
|
|
635
637
|
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
636
638
|
) -> EmptyResponse:
|
|
637
639
|
"""
|
|
@@ -661,21 +663,21 @@ class AsyncContactsClient:
|
|
|
661
663
|
|
|
662
664
|
|
|
663
665
|
async def main() -> None:
|
|
664
|
-
await client.contacts.
|
|
666
|
+
await client.contacts.delete_contact_by_id(
|
|
665
667
|
id="id",
|
|
666
668
|
)
|
|
667
669
|
|
|
668
670
|
|
|
669
671
|
asyncio.run(main())
|
|
670
672
|
"""
|
|
671
|
-
_response = await self._raw_client.
|
|
673
|
+
_response = await self._raw_client.delete_contact_by_id(id, request_options=request_options)
|
|
672
674
|
return _response.data
|
|
673
675
|
|
|
674
676
|
async def get_contact_by_external_id(
|
|
675
677
|
self, external_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
676
678
|
) -> Contact:
|
|
677
679
|
"""
|
|
678
|
-
Get a contact by its
|
|
680
|
+
Get a contact by its external ID
|
|
679
681
|
|
|
680
682
|
Parameters
|
|
681
683
|
----------
|
|
@@ -725,7 +727,7 @@ class AsyncContactsClient:
|
|
|
725
727
|
request_options: typing.Optional[RequestOptions] = None,
|
|
726
728
|
) -> Contact:
|
|
727
729
|
"""
|
|
728
|
-
Update a contact by its
|
|
730
|
+
Update a contact by its external ID
|
|
729
731
|
|
|
730
732
|
Parameters
|
|
731
733
|
----------
|
|
@@ -789,7 +791,7 @@ class AsyncContactsClient:
|
|
|
789
791
|
self, external_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
790
792
|
) -> EmptyResponse:
|
|
791
793
|
"""
|
|
792
|
-
Delete a contact by its
|
|
794
|
+
Delete a contact by its external ID
|
|
793
795
|
|
|
794
796
|
Parameters
|
|
795
797
|
----------
|
|
@@ -109,7 +109,7 @@ class RawContactsClient:
|
|
|
109
109
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
110
110
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
111
111
|
|
|
112
|
-
def
|
|
112
|
+
def create_contact(
|
|
113
113
|
self,
|
|
114
114
|
*,
|
|
115
115
|
customer_id: str,
|
|
@@ -216,7 +216,9 @@ class RawContactsClient:
|
|
|
216
216
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
217
217
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
218
218
|
|
|
219
|
-
def
|
|
219
|
+
def get_contact_by_id(
|
|
220
|
+
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
221
|
+
) -> HttpResponse[Contact]:
|
|
220
222
|
"""
|
|
221
223
|
Get a contact by its ID
|
|
222
224
|
|
|
@@ -285,7 +287,7 @@ class RawContactsClient:
|
|
|
285
287
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
286
288
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
287
289
|
|
|
288
|
-
def
|
|
290
|
+
def update_contact_by_id(
|
|
289
291
|
self,
|
|
290
292
|
id: str,
|
|
291
293
|
*,
|
|
@@ -406,7 +408,7 @@ class RawContactsClient:
|
|
|
406
408
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
407
409
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
408
410
|
|
|
409
|
-
def
|
|
411
|
+
def delete_contact_by_id(
|
|
410
412
|
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
411
413
|
) -> HttpResponse[EmptyResponse]:
|
|
412
414
|
"""
|
|
@@ -481,7 +483,7 @@ class RawContactsClient:
|
|
|
481
483
|
self, external_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
482
484
|
) -> HttpResponse[Contact]:
|
|
483
485
|
"""
|
|
484
|
-
Get a contact by its
|
|
486
|
+
Get a contact by its external ID
|
|
485
487
|
|
|
486
488
|
Parameters
|
|
487
489
|
----------
|
|
@@ -562,7 +564,7 @@ class RawContactsClient:
|
|
|
562
564
|
request_options: typing.Optional[RequestOptions] = None,
|
|
563
565
|
) -> HttpResponse[Contact]:
|
|
564
566
|
"""
|
|
565
|
-
Update a contact by its
|
|
567
|
+
Update a contact by its external ID
|
|
566
568
|
|
|
567
569
|
Parameters
|
|
568
570
|
----------
|
|
@@ -673,7 +675,7 @@ class RawContactsClient:
|
|
|
673
675
|
self, external_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
674
676
|
) -> HttpResponse[EmptyResponse]:
|
|
675
677
|
"""
|
|
676
|
-
Delete a contact by its
|
|
678
|
+
Delete a contact by its external ID
|
|
677
679
|
|
|
678
680
|
Parameters
|
|
679
681
|
----------
|
|
@@ -826,7 +828,7 @@ class AsyncRawContactsClient:
|
|
|
826
828
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
827
829
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
828
830
|
|
|
829
|
-
async def
|
|
831
|
+
async def create_contact(
|
|
830
832
|
self,
|
|
831
833
|
*,
|
|
832
834
|
customer_id: str,
|
|
@@ -933,7 +935,7 @@ class AsyncRawContactsClient:
|
|
|
933
935
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
934
936
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
935
937
|
|
|
936
|
-
async def
|
|
938
|
+
async def get_contact_by_id(
|
|
937
939
|
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
938
940
|
) -> AsyncHttpResponse[Contact]:
|
|
939
941
|
"""
|
|
@@ -1004,7 +1006,7 @@ class AsyncRawContactsClient:
|
|
|
1004
1006
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
1005
1007
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
1006
1008
|
|
|
1007
|
-
async def
|
|
1009
|
+
async def update_contact_by_id(
|
|
1008
1010
|
self,
|
|
1009
1011
|
id: str,
|
|
1010
1012
|
*,
|
|
@@ -1125,7 +1127,7 @@ class AsyncRawContactsClient:
|
|
|
1125
1127
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
1126
1128
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
1127
1129
|
|
|
1128
|
-
async def
|
|
1130
|
+
async def delete_contact_by_id(
|
|
1129
1131
|
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
1130
1132
|
) -> AsyncHttpResponse[EmptyResponse]:
|
|
1131
1133
|
"""
|
|
@@ -1200,7 +1202,7 @@ class AsyncRawContactsClient:
|
|
|
1200
1202
|
self, external_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
1201
1203
|
) -> AsyncHttpResponse[Contact]:
|
|
1202
1204
|
"""
|
|
1203
|
-
Get a contact by its
|
|
1205
|
+
Get a contact by its external ID
|
|
1204
1206
|
|
|
1205
1207
|
Parameters
|
|
1206
1208
|
----------
|
|
@@ -1281,7 +1283,7 @@ class AsyncRawContactsClient:
|
|
|
1281
1283
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1282
1284
|
) -> AsyncHttpResponse[Contact]:
|
|
1283
1285
|
"""
|
|
1284
|
-
Update a contact by its
|
|
1286
|
+
Update a contact by its external ID
|
|
1285
1287
|
|
|
1286
1288
|
Parameters
|
|
1287
1289
|
----------
|
|
@@ -1392,7 +1394,7 @@ class AsyncRawContactsClient:
|
|
|
1392
1394
|
self, external_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
1393
1395
|
) -> AsyncHttpResponse[EmptyResponse]:
|
|
1394
1396
|
"""
|
|
1395
|
-
Delete a contact by its
|
|
1397
|
+
Delete a contact by its external ID
|
|
1396
1398
|
|
|
1397
1399
|
Parameters
|
|
1398
1400
|
----------
|
|
@@ -20,10 +20,10 @@ class BaseClientWrapper:
|
|
|
20
20
|
|
|
21
21
|
def get_headers(self) -> typing.Dict[str, str]:
|
|
22
22
|
headers: typing.Dict[str, str] = {
|
|
23
|
-
"User-Agent": "paid-python/1.0.0-
|
|
23
|
+
"User-Agent": "paid-python/1.0.0-alpha2",
|
|
24
24
|
"X-Fern-Language": "Python",
|
|
25
25
|
"X-Fern-SDK-Name": "paid-python",
|
|
26
|
-
"X-Fern-SDK-Version": "1.0.0-
|
|
26
|
+
"X-Fern-SDK-Version": "1.0.0-alpha2",
|
|
27
27
|
}
|
|
28
28
|
headers["Authorization"] = f"Bearer {self._get_token()}"
|
|
29
29
|
return headers
|
|
@@ -67,7 +67,7 @@ class CustomersClient:
|
|
|
67
67
|
_response = self._raw_client.list_customers(limit=limit, offset=offset, request_options=request_options)
|
|
68
68
|
return _response.data
|
|
69
69
|
|
|
70
|
-
def
|
|
70
|
+
def create_customer(
|
|
71
71
|
self,
|
|
72
72
|
*,
|
|
73
73
|
name: str,
|
|
@@ -122,11 +122,11 @@ class CustomersClient:
|
|
|
122
122
|
client = Paid(
|
|
123
123
|
token="YOUR_TOKEN",
|
|
124
124
|
)
|
|
125
|
-
client.customers.
|
|
125
|
+
client.customers.create_customer(
|
|
126
126
|
name="name",
|
|
127
127
|
)
|
|
128
128
|
"""
|
|
129
|
-
_response = self._raw_client.
|
|
129
|
+
_response = self._raw_client.create_customer(
|
|
130
130
|
name=name,
|
|
131
131
|
legal_name=legal_name,
|
|
132
132
|
email=email,
|
|
@@ -141,9 +141,9 @@ class CustomersClient:
|
|
|
141
141
|
)
|
|
142
142
|
return _response.data
|
|
143
143
|
|
|
144
|
-
def
|
|
144
|
+
def get_customer_by_id(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Customer:
|
|
145
145
|
"""
|
|
146
|
-
Get a customer by
|
|
146
|
+
Get a customer by ID
|
|
147
147
|
|
|
148
148
|
Parameters
|
|
149
149
|
----------
|
|
@@ -164,14 +164,14 @@ class CustomersClient:
|
|
|
164
164
|
client = Paid(
|
|
165
165
|
token="YOUR_TOKEN",
|
|
166
166
|
)
|
|
167
|
-
client.customers.
|
|
167
|
+
client.customers.get_customer_by_id(
|
|
168
168
|
id="id",
|
|
169
169
|
)
|
|
170
170
|
"""
|
|
171
|
-
_response = self._raw_client.
|
|
171
|
+
_response = self._raw_client.get_customer_by_id(id, request_options=request_options)
|
|
172
172
|
return _response.data
|
|
173
173
|
|
|
174
|
-
def
|
|
174
|
+
def update_customer_by_id(
|
|
175
175
|
self,
|
|
176
176
|
id: str,
|
|
177
177
|
*,
|
|
@@ -189,7 +189,7 @@ class CustomersClient:
|
|
|
189
189
|
request_options: typing.Optional[RequestOptions] = None,
|
|
190
190
|
) -> Customer:
|
|
191
191
|
"""
|
|
192
|
-
Update a customer by
|
|
192
|
+
Update a customer by ID
|
|
193
193
|
|
|
194
194
|
Parameters
|
|
195
195
|
----------
|
|
@@ -232,11 +232,11 @@ class CustomersClient:
|
|
|
232
232
|
client = Paid(
|
|
233
233
|
token="YOUR_TOKEN",
|
|
234
234
|
)
|
|
235
|
-
client.customers.
|
|
235
|
+
client.customers.update_customer_by_id(
|
|
236
236
|
id="id",
|
|
237
237
|
)
|
|
238
238
|
"""
|
|
239
|
-
_response = self._raw_client.
|
|
239
|
+
_response = self._raw_client.update_customer_by_id(
|
|
240
240
|
id,
|
|
241
241
|
name=name,
|
|
242
242
|
legal_name=legal_name,
|
|
@@ -253,9 +253,11 @@ class CustomersClient:
|
|
|
253
253
|
)
|
|
254
254
|
return _response.data
|
|
255
255
|
|
|
256
|
-
def
|
|
256
|
+
def delete_customer_by_id(
|
|
257
|
+
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
258
|
+
) -> EmptyResponse:
|
|
257
259
|
"""
|
|
258
|
-
Delete a customer by
|
|
260
|
+
Delete a customer by ID
|
|
259
261
|
|
|
260
262
|
Parameters
|
|
261
263
|
----------
|
|
@@ -276,18 +278,18 @@ class CustomersClient:
|
|
|
276
278
|
client = Paid(
|
|
277
279
|
token="YOUR_TOKEN",
|
|
278
280
|
)
|
|
279
|
-
client.customers.
|
|
281
|
+
client.customers.delete_customer_by_id(
|
|
280
282
|
id="id",
|
|
281
283
|
)
|
|
282
284
|
"""
|
|
283
|
-
_response = self._raw_client.
|
|
285
|
+
_response = self._raw_client.delete_customer_by_id(id, request_options=request_options)
|
|
284
286
|
return _response.data
|
|
285
287
|
|
|
286
288
|
def get_customer_by_external_id(
|
|
287
289
|
self, external_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
288
290
|
) -> Customer:
|
|
289
291
|
"""
|
|
290
|
-
Get a customer by
|
|
292
|
+
Get a customer by external ID
|
|
291
293
|
|
|
292
294
|
Parameters
|
|
293
295
|
----------
|
|
@@ -333,7 +335,7 @@ class CustomersClient:
|
|
|
333
335
|
request_options: typing.Optional[RequestOptions] = None,
|
|
334
336
|
) -> Customer:
|
|
335
337
|
"""
|
|
336
|
-
Update a customer by
|
|
338
|
+
Update a customer by external ID
|
|
337
339
|
|
|
338
340
|
Parameters
|
|
339
341
|
----------
|
|
@@ -401,7 +403,7 @@ class CustomersClient:
|
|
|
401
403
|
self, external_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
402
404
|
) -> EmptyResponse:
|
|
403
405
|
"""
|
|
404
|
-
Delete a customer by
|
|
406
|
+
Delete a customer by external ID
|
|
405
407
|
|
|
406
408
|
Parameters
|
|
407
409
|
----------
|
|
@@ -489,7 +491,7 @@ class AsyncCustomersClient:
|
|
|
489
491
|
_response = await self._raw_client.list_customers(limit=limit, offset=offset, request_options=request_options)
|
|
490
492
|
return _response.data
|
|
491
493
|
|
|
492
|
-
async def
|
|
494
|
+
async def create_customer(
|
|
493
495
|
self,
|
|
494
496
|
*,
|
|
495
497
|
name: str,
|
|
@@ -549,14 +551,14 @@ class AsyncCustomersClient:
|
|
|
549
551
|
|
|
550
552
|
|
|
551
553
|
async def main() -> None:
|
|
552
|
-
await client.customers.
|
|
554
|
+
await client.customers.create_customer(
|
|
553
555
|
name="name",
|
|
554
556
|
)
|
|
555
557
|
|
|
556
558
|
|
|
557
559
|
asyncio.run(main())
|
|
558
560
|
"""
|
|
559
|
-
_response = await self._raw_client.
|
|
561
|
+
_response = await self._raw_client.create_customer(
|
|
560
562
|
name=name,
|
|
561
563
|
legal_name=legal_name,
|
|
562
564
|
email=email,
|
|
@@ -571,9 +573,9 @@ class AsyncCustomersClient:
|
|
|
571
573
|
)
|
|
572
574
|
return _response.data
|
|
573
575
|
|
|
574
|
-
async def
|
|
576
|
+
async def get_customer_by_id(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Customer:
|
|
575
577
|
"""
|
|
576
|
-
Get a customer by
|
|
578
|
+
Get a customer by ID
|
|
577
579
|
|
|
578
580
|
Parameters
|
|
579
581
|
----------
|
|
@@ -599,17 +601,17 @@ class AsyncCustomersClient:
|
|
|
599
601
|
|
|
600
602
|
|
|
601
603
|
async def main() -> None:
|
|
602
|
-
await client.customers.
|
|
604
|
+
await client.customers.get_customer_by_id(
|
|
603
605
|
id="id",
|
|
604
606
|
)
|
|
605
607
|
|
|
606
608
|
|
|
607
609
|
asyncio.run(main())
|
|
608
610
|
"""
|
|
609
|
-
_response = await self._raw_client.
|
|
611
|
+
_response = await self._raw_client.get_customer_by_id(id, request_options=request_options)
|
|
610
612
|
return _response.data
|
|
611
613
|
|
|
612
|
-
async def
|
|
614
|
+
async def update_customer_by_id(
|
|
613
615
|
self,
|
|
614
616
|
id: str,
|
|
615
617
|
*,
|
|
@@ -627,7 +629,7 @@ class AsyncCustomersClient:
|
|
|
627
629
|
request_options: typing.Optional[RequestOptions] = None,
|
|
628
630
|
) -> Customer:
|
|
629
631
|
"""
|
|
630
|
-
Update a customer by
|
|
632
|
+
Update a customer by ID
|
|
631
633
|
|
|
632
634
|
Parameters
|
|
633
635
|
----------
|
|
@@ -675,14 +677,14 @@ class AsyncCustomersClient:
|
|
|
675
677
|
|
|
676
678
|
|
|
677
679
|
async def main() -> None:
|
|
678
|
-
await client.customers.
|
|
680
|
+
await client.customers.update_customer_by_id(
|
|
679
681
|
id="id",
|
|
680
682
|
)
|
|
681
683
|
|
|
682
684
|
|
|
683
685
|
asyncio.run(main())
|
|
684
686
|
"""
|
|
685
|
-
_response = await self._raw_client.
|
|
687
|
+
_response = await self._raw_client.update_customer_by_id(
|
|
686
688
|
id,
|
|
687
689
|
name=name,
|
|
688
690
|
legal_name=legal_name,
|
|
@@ -699,11 +701,11 @@ class AsyncCustomersClient:
|
|
|
699
701
|
)
|
|
700
702
|
return _response.data
|
|
701
703
|
|
|
702
|
-
async def
|
|
704
|
+
async def delete_customer_by_id(
|
|
703
705
|
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
704
706
|
) -> EmptyResponse:
|
|
705
707
|
"""
|
|
706
|
-
Delete a customer by
|
|
708
|
+
Delete a customer by ID
|
|
707
709
|
|
|
708
710
|
Parameters
|
|
709
711
|
----------
|
|
@@ -729,21 +731,21 @@ class AsyncCustomersClient:
|
|
|
729
731
|
|
|
730
732
|
|
|
731
733
|
async def main() -> None:
|
|
732
|
-
await client.customers.
|
|
734
|
+
await client.customers.delete_customer_by_id(
|
|
733
735
|
id="id",
|
|
734
736
|
)
|
|
735
737
|
|
|
736
738
|
|
|
737
739
|
asyncio.run(main())
|
|
738
740
|
"""
|
|
739
|
-
_response = await self._raw_client.
|
|
741
|
+
_response = await self._raw_client.delete_customer_by_id(id, request_options=request_options)
|
|
740
742
|
return _response.data
|
|
741
743
|
|
|
742
744
|
async def get_customer_by_external_id(
|
|
743
745
|
self, external_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
744
746
|
) -> Customer:
|
|
745
747
|
"""
|
|
746
|
-
Get a customer by
|
|
748
|
+
Get a customer by external ID
|
|
747
749
|
|
|
748
750
|
Parameters
|
|
749
751
|
----------
|
|
@@ -797,7 +799,7 @@ class AsyncCustomersClient:
|
|
|
797
799
|
request_options: typing.Optional[RequestOptions] = None,
|
|
798
800
|
) -> Customer:
|
|
799
801
|
"""
|
|
800
|
-
Update a customer by
|
|
802
|
+
Update a customer by external ID
|
|
801
803
|
|
|
802
804
|
Parameters
|
|
803
805
|
----------
|
|
@@ -873,7 +875,7 @@ class AsyncCustomersClient:
|
|
|
873
875
|
self, external_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
874
876
|
) -> EmptyResponse:
|
|
875
877
|
"""
|
|
876
|
-
Delete a customer by
|
|
878
|
+
Delete a customer by external ID
|
|
877
879
|
|
|
878
880
|
Parameters
|
|
879
881
|
----------
|