paid-python 1.0.0a1__py3-none-any.whl → 1.0.0a2__py3-none-any.whl
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/contacts/client.py +32 -30
- paid/contacts/raw_client.py +16 -14
- paid/core/client_wrapper.py +2 -2
- paid/customers/client.py +38 -36
- paid/customers/raw_client.py +20 -20
- paid/invoices/client.py +18 -18
- paid/invoices/raw_client.py +12 -10
- paid/orders/client.py +34 -32
- paid/orders/raw_client.py +18 -16
- paid/products/client.py +26 -26
- paid/products/raw_client.py +16 -14
- paid/signals/client.py +6 -6
- paid/signals/raw_client.py +2 -2
- {paid_python-1.0.0a1.dist-info → paid_python-1.0.0a2.dist-info}/METADATA +2 -1
- {paid_python-1.0.0a1.dist-info → paid_python-1.0.0a2.dist-info}/RECORD +17 -17
- {paid_python-1.0.0a1.dist-info → paid_python-1.0.0a2.dist-info}/LICENSE +0 -0
- {paid_python-1.0.0a1.dist-info → paid_python-1.0.0a2.dist-info}/WHEEL +0 -0
paid/orders/raw_client.py
CHANGED
|
@@ -110,7 +110,7 @@ class RawOrdersClient:
|
|
|
110
110
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
111
111
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
112
112
|
|
|
113
|
-
def
|
|
113
|
+
def create_order(
|
|
114
114
|
self,
|
|
115
115
|
*,
|
|
116
116
|
customer_id: str,
|
|
@@ -235,9 +235,11 @@ class RawOrdersClient:
|
|
|
235
235
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
236
236
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
237
237
|
|
|
238
|
-
def
|
|
238
|
+
def get_order_by_id(
|
|
239
|
+
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
240
|
+
) -> HttpResponse[Order]:
|
|
239
241
|
"""
|
|
240
|
-
Get an order by
|
|
242
|
+
Get an order by ID
|
|
241
243
|
|
|
242
244
|
Parameters
|
|
243
245
|
----------
|
|
@@ -304,7 +306,7 @@ class RawOrdersClient:
|
|
|
304
306
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
305
307
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
306
308
|
|
|
307
|
-
def
|
|
309
|
+
def update_order_by_id(
|
|
308
310
|
self,
|
|
309
311
|
id: str,
|
|
310
312
|
*,
|
|
@@ -322,7 +324,7 @@ class RawOrdersClient:
|
|
|
322
324
|
request_options: typing.Optional[RequestOptions] = None,
|
|
323
325
|
) -> HttpResponse[Order]:
|
|
324
326
|
"""
|
|
325
|
-
Update an order by
|
|
327
|
+
Update an order by ID
|
|
326
328
|
|
|
327
329
|
Parameters
|
|
328
330
|
----------
|
|
@@ -439,11 +441,11 @@ class RawOrdersClient:
|
|
|
439
441
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
440
442
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
441
443
|
|
|
442
|
-
def
|
|
444
|
+
def delete_order_by_id(
|
|
443
445
|
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
444
446
|
) -> HttpResponse[EmptyResponse]:
|
|
445
447
|
"""
|
|
446
|
-
Delete an order by
|
|
448
|
+
Delete an order by ID
|
|
447
449
|
|
|
448
450
|
Parameters
|
|
449
451
|
----------
|
|
@@ -519,7 +521,7 @@ class RawOrdersClient:
|
|
|
519
521
|
request_options: typing.Optional[RequestOptions] = None,
|
|
520
522
|
) -> HttpResponse[OrderLinesResponse]:
|
|
521
523
|
"""
|
|
522
|
-
Get the order lines for an order by
|
|
524
|
+
Get the order lines for an order by ID
|
|
523
525
|
|
|
524
526
|
Parameters
|
|
525
527
|
----------
|
|
@@ -680,7 +682,7 @@ class AsyncRawOrdersClient:
|
|
|
680
682
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
681
683
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
682
684
|
|
|
683
|
-
async def
|
|
685
|
+
async def create_order(
|
|
684
686
|
self,
|
|
685
687
|
*,
|
|
686
688
|
customer_id: str,
|
|
@@ -805,11 +807,11 @@ class AsyncRawOrdersClient:
|
|
|
805
807
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
806
808
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
807
809
|
|
|
808
|
-
async def
|
|
810
|
+
async def get_order_by_id(
|
|
809
811
|
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
810
812
|
) -> AsyncHttpResponse[Order]:
|
|
811
813
|
"""
|
|
812
|
-
Get an order by
|
|
814
|
+
Get an order by ID
|
|
813
815
|
|
|
814
816
|
Parameters
|
|
815
817
|
----------
|
|
@@ -876,7 +878,7 @@ class AsyncRawOrdersClient:
|
|
|
876
878
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
877
879
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
878
880
|
|
|
879
|
-
async def
|
|
881
|
+
async def update_order_by_id(
|
|
880
882
|
self,
|
|
881
883
|
id: str,
|
|
882
884
|
*,
|
|
@@ -894,7 +896,7 @@ class AsyncRawOrdersClient:
|
|
|
894
896
|
request_options: typing.Optional[RequestOptions] = None,
|
|
895
897
|
) -> AsyncHttpResponse[Order]:
|
|
896
898
|
"""
|
|
897
|
-
Update an order by
|
|
899
|
+
Update an order by ID
|
|
898
900
|
|
|
899
901
|
Parameters
|
|
900
902
|
----------
|
|
@@ -1011,11 +1013,11 @@ class AsyncRawOrdersClient:
|
|
|
1011
1013
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
1012
1014
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
1013
1015
|
|
|
1014
|
-
async def
|
|
1016
|
+
async def delete_order_by_id(
|
|
1015
1017
|
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
1016
1018
|
) -> AsyncHttpResponse[EmptyResponse]:
|
|
1017
1019
|
"""
|
|
1018
|
-
Delete an order by
|
|
1020
|
+
Delete an order by ID
|
|
1019
1021
|
|
|
1020
1022
|
Parameters
|
|
1021
1023
|
----------
|
|
@@ -1091,7 +1093,7 @@ class AsyncRawOrdersClient:
|
|
|
1091
1093
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1092
1094
|
) -> AsyncHttpResponse[OrderLinesResponse]:
|
|
1093
1095
|
"""
|
|
1094
|
-
Get the order lines for an order by
|
|
1096
|
+
Get the order lines for an order by ID
|
|
1095
1097
|
|
|
1096
1098
|
Parameters
|
|
1097
1099
|
----------
|
paid/products/client.py
CHANGED
|
@@ -63,7 +63,7 @@ class ProductsClient:
|
|
|
63
63
|
_response = self._raw_client.list_products(limit=limit, offset=offset, request_options=request_options)
|
|
64
64
|
return _response.data
|
|
65
65
|
|
|
66
|
-
def
|
|
66
|
+
def create_product(
|
|
67
67
|
self,
|
|
68
68
|
*,
|
|
69
69
|
name: str,
|
|
@@ -106,11 +106,11 @@ class ProductsClient:
|
|
|
106
106
|
client = Paid(
|
|
107
107
|
token="YOUR_TOKEN",
|
|
108
108
|
)
|
|
109
|
-
client.products.
|
|
109
|
+
client.products.create_product(
|
|
110
110
|
name="name",
|
|
111
111
|
)
|
|
112
112
|
"""
|
|
113
|
-
_response = self._raw_client.
|
|
113
|
+
_response = self._raw_client.create_product(
|
|
114
114
|
name=name,
|
|
115
115
|
description=description,
|
|
116
116
|
active=active,
|
|
@@ -121,9 +121,9 @@ class ProductsClient:
|
|
|
121
121
|
)
|
|
122
122
|
return _response.data
|
|
123
123
|
|
|
124
|
-
def
|
|
124
|
+
def get_product_by_id(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Product:
|
|
125
125
|
"""
|
|
126
|
-
Get a product by
|
|
126
|
+
Get a product by ID
|
|
127
127
|
|
|
128
128
|
Parameters
|
|
129
129
|
----------
|
|
@@ -144,14 +144,14 @@ class ProductsClient:
|
|
|
144
144
|
client = Paid(
|
|
145
145
|
token="YOUR_TOKEN",
|
|
146
146
|
)
|
|
147
|
-
client.products.
|
|
147
|
+
client.products.get_product_by_id(
|
|
148
148
|
id="id",
|
|
149
149
|
)
|
|
150
150
|
"""
|
|
151
|
-
_response = self._raw_client.
|
|
151
|
+
_response = self._raw_client.get_product_by_id(id, request_options=request_options)
|
|
152
152
|
return _response.data
|
|
153
153
|
|
|
154
|
-
def
|
|
154
|
+
def update_product_by_id(
|
|
155
155
|
self,
|
|
156
156
|
id: str,
|
|
157
157
|
*,
|
|
@@ -164,7 +164,7 @@ class ProductsClient:
|
|
|
164
164
|
request_options: typing.Optional[RequestOptions] = None,
|
|
165
165
|
) -> Product:
|
|
166
166
|
"""
|
|
167
|
-
Update a product by
|
|
167
|
+
Update a product by ID
|
|
168
168
|
|
|
169
169
|
Parameters
|
|
170
170
|
----------
|
|
@@ -197,11 +197,11 @@ class ProductsClient:
|
|
|
197
197
|
client = Paid(
|
|
198
198
|
token="YOUR_TOKEN",
|
|
199
199
|
)
|
|
200
|
-
client.products.
|
|
200
|
+
client.products.update_product_by_id(
|
|
201
201
|
id="id",
|
|
202
202
|
)
|
|
203
203
|
"""
|
|
204
|
-
_response = self._raw_client.
|
|
204
|
+
_response = self._raw_client.update_product_by_id(
|
|
205
205
|
id,
|
|
206
206
|
name=name,
|
|
207
207
|
description=description,
|
|
@@ -217,7 +217,7 @@ class ProductsClient:
|
|
|
217
217
|
self, external_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
218
218
|
) -> Product:
|
|
219
219
|
"""
|
|
220
|
-
Get a product by
|
|
220
|
+
Get a product by external ID
|
|
221
221
|
|
|
222
222
|
Parameters
|
|
223
223
|
----------
|
|
@@ -258,7 +258,7 @@ class ProductsClient:
|
|
|
258
258
|
request_options: typing.Optional[RequestOptions] = None,
|
|
259
259
|
) -> Product:
|
|
260
260
|
"""
|
|
261
|
-
Update a product by
|
|
261
|
+
Update a product by external ID
|
|
262
262
|
|
|
263
263
|
Parameters
|
|
264
264
|
----------
|
|
@@ -367,7 +367,7 @@ class AsyncProductsClient:
|
|
|
367
367
|
_response = await self._raw_client.list_products(limit=limit, offset=offset, request_options=request_options)
|
|
368
368
|
return _response.data
|
|
369
369
|
|
|
370
|
-
async def
|
|
370
|
+
async def create_product(
|
|
371
371
|
self,
|
|
372
372
|
*,
|
|
373
373
|
name: str,
|
|
@@ -415,14 +415,14 @@ class AsyncProductsClient:
|
|
|
415
415
|
|
|
416
416
|
|
|
417
417
|
async def main() -> None:
|
|
418
|
-
await client.products.
|
|
418
|
+
await client.products.create_product(
|
|
419
419
|
name="name",
|
|
420
420
|
)
|
|
421
421
|
|
|
422
422
|
|
|
423
423
|
asyncio.run(main())
|
|
424
424
|
"""
|
|
425
|
-
_response = await self._raw_client.
|
|
425
|
+
_response = await self._raw_client.create_product(
|
|
426
426
|
name=name,
|
|
427
427
|
description=description,
|
|
428
428
|
active=active,
|
|
@@ -433,9 +433,9 @@ class AsyncProductsClient:
|
|
|
433
433
|
)
|
|
434
434
|
return _response.data
|
|
435
435
|
|
|
436
|
-
async def
|
|
436
|
+
async def get_product_by_id(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Product:
|
|
437
437
|
"""
|
|
438
|
-
Get a product by
|
|
438
|
+
Get a product by ID
|
|
439
439
|
|
|
440
440
|
Parameters
|
|
441
441
|
----------
|
|
@@ -461,17 +461,17 @@ class AsyncProductsClient:
|
|
|
461
461
|
|
|
462
462
|
|
|
463
463
|
async def main() -> None:
|
|
464
|
-
await client.products.
|
|
464
|
+
await client.products.get_product_by_id(
|
|
465
465
|
id="id",
|
|
466
466
|
)
|
|
467
467
|
|
|
468
468
|
|
|
469
469
|
asyncio.run(main())
|
|
470
470
|
"""
|
|
471
|
-
_response = await self._raw_client.
|
|
471
|
+
_response = await self._raw_client.get_product_by_id(id, request_options=request_options)
|
|
472
472
|
return _response.data
|
|
473
473
|
|
|
474
|
-
async def
|
|
474
|
+
async def update_product_by_id(
|
|
475
475
|
self,
|
|
476
476
|
id: str,
|
|
477
477
|
*,
|
|
@@ -484,7 +484,7 @@ class AsyncProductsClient:
|
|
|
484
484
|
request_options: typing.Optional[RequestOptions] = None,
|
|
485
485
|
) -> Product:
|
|
486
486
|
"""
|
|
487
|
-
Update a product by
|
|
487
|
+
Update a product by ID
|
|
488
488
|
|
|
489
489
|
Parameters
|
|
490
490
|
----------
|
|
@@ -522,14 +522,14 @@ class AsyncProductsClient:
|
|
|
522
522
|
|
|
523
523
|
|
|
524
524
|
async def main() -> None:
|
|
525
|
-
await client.products.
|
|
525
|
+
await client.products.update_product_by_id(
|
|
526
526
|
id="id",
|
|
527
527
|
)
|
|
528
528
|
|
|
529
529
|
|
|
530
530
|
asyncio.run(main())
|
|
531
531
|
"""
|
|
532
|
-
_response = await self._raw_client.
|
|
532
|
+
_response = await self._raw_client.update_product_by_id(
|
|
533
533
|
id,
|
|
534
534
|
name=name,
|
|
535
535
|
description=description,
|
|
@@ -545,7 +545,7 @@ class AsyncProductsClient:
|
|
|
545
545
|
self, external_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
546
546
|
) -> Product:
|
|
547
547
|
"""
|
|
548
|
-
Get a product by
|
|
548
|
+
Get a product by external ID
|
|
549
549
|
|
|
550
550
|
Parameters
|
|
551
551
|
----------
|
|
@@ -594,7 +594,7 @@ class AsyncProductsClient:
|
|
|
594
594
|
request_options: typing.Optional[RequestOptions] = None,
|
|
595
595
|
) -> Product:
|
|
596
596
|
"""
|
|
597
|
-
Update a product by
|
|
597
|
+
Update a product by external ID
|
|
598
598
|
|
|
599
599
|
Parameters
|
|
600
600
|
----------
|
paid/products/raw_client.py
CHANGED
|
@@ -106,7 +106,7 @@ class RawProductsClient:
|
|
|
106
106
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
107
107
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
108
108
|
|
|
109
|
-
def
|
|
109
|
+
def create_product(
|
|
110
110
|
self,
|
|
111
111
|
*,
|
|
112
112
|
name: str,
|
|
@@ -207,9 +207,11 @@ class RawProductsClient:
|
|
|
207
207
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
208
208
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
209
209
|
|
|
210
|
-
def
|
|
210
|
+
def get_product_by_id(
|
|
211
|
+
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
212
|
+
) -> HttpResponse[Product]:
|
|
211
213
|
"""
|
|
212
|
-
Get a product by
|
|
214
|
+
Get a product by ID
|
|
213
215
|
|
|
214
216
|
Parameters
|
|
215
217
|
----------
|
|
@@ -276,7 +278,7 @@ class RawProductsClient:
|
|
|
276
278
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
277
279
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
278
280
|
|
|
279
|
-
def
|
|
281
|
+
def update_product_by_id(
|
|
280
282
|
self,
|
|
281
283
|
id: str,
|
|
282
284
|
*,
|
|
@@ -289,7 +291,7 @@ class RawProductsClient:
|
|
|
289
291
|
request_options: typing.Optional[RequestOptions] = None,
|
|
290
292
|
) -> HttpResponse[Product]:
|
|
291
293
|
"""
|
|
292
|
-
Update a product by
|
|
294
|
+
Update a product by ID
|
|
293
295
|
|
|
294
296
|
Parameters
|
|
295
297
|
----------
|
|
@@ -395,7 +397,7 @@ class RawProductsClient:
|
|
|
395
397
|
self, external_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
396
398
|
) -> HttpResponse[Product]:
|
|
397
399
|
"""
|
|
398
|
-
Get a product by
|
|
400
|
+
Get a product by external ID
|
|
399
401
|
|
|
400
402
|
Parameters
|
|
401
403
|
----------
|
|
@@ -475,7 +477,7 @@ class RawProductsClient:
|
|
|
475
477
|
request_options: typing.Optional[RequestOptions] = None,
|
|
476
478
|
) -> HttpResponse[Product]:
|
|
477
479
|
"""
|
|
478
|
-
Update a product by
|
|
480
|
+
Update a product by external ID
|
|
479
481
|
|
|
480
482
|
Parameters
|
|
481
483
|
----------
|
|
@@ -663,7 +665,7 @@ class AsyncRawProductsClient:
|
|
|
663
665
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
664
666
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
665
667
|
|
|
666
|
-
async def
|
|
668
|
+
async def create_product(
|
|
667
669
|
self,
|
|
668
670
|
*,
|
|
669
671
|
name: str,
|
|
@@ -764,11 +766,11 @@ class AsyncRawProductsClient:
|
|
|
764
766
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
765
767
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
766
768
|
|
|
767
|
-
async def
|
|
769
|
+
async def get_product_by_id(
|
|
768
770
|
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
769
771
|
) -> AsyncHttpResponse[Product]:
|
|
770
772
|
"""
|
|
771
|
-
Get a product by
|
|
773
|
+
Get a product by ID
|
|
772
774
|
|
|
773
775
|
Parameters
|
|
774
776
|
----------
|
|
@@ -835,7 +837,7 @@ class AsyncRawProductsClient:
|
|
|
835
837
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
836
838
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
837
839
|
|
|
838
|
-
async def
|
|
840
|
+
async def update_product_by_id(
|
|
839
841
|
self,
|
|
840
842
|
id: str,
|
|
841
843
|
*,
|
|
@@ -848,7 +850,7 @@ class AsyncRawProductsClient:
|
|
|
848
850
|
request_options: typing.Optional[RequestOptions] = None,
|
|
849
851
|
) -> AsyncHttpResponse[Product]:
|
|
850
852
|
"""
|
|
851
|
-
Update a product by
|
|
853
|
+
Update a product by ID
|
|
852
854
|
|
|
853
855
|
Parameters
|
|
854
856
|
----------
|
|
@@ -954,7 +956,7 @@ class AsyncRawProductsClient:
|
|
|
954
956
|
self, external_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
955
957
|
) -> AsyncHttpResponse[Product]:
|
|
956
958
|
"""
|
|
957
|
-
Get a product by
|
|
959
|
+
Get a product by external ID
|
|
958
960
|
|
|
959
961
|
Parameters
|
|
960
962
|
----------
|
|
@@ -1034,7 +1036,7 @@ class AsyncRawProductsClient:
|
|
|
1034
1036
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1035
1037
|
) -> AsyncHttpResponse[Product]:
|
|
1036
1038
|
"""
|
|
1037
|
-
Update a product by
|
|
1039
|
+
Update a product by external ID
|
|
1038
1040
|
|
|
1039
1041
|
Parameters
|
|
1040
1042
|
----------
|
paid/signals/client.py
CHANGED
|
@@ -27,7 +27,7 @@ class SignalsClient:
|
|
|
27
27
|
"""
|
|
28
28
|
return self._raw_client
|
|
29
29
|
|
|
30
|
-
def
|
|
30
|
+
def create_signals(
|
|
31
31
|
self, *, signals: typing.Sequence[Signal], request_options: typing.Optional[RequestOptions] = None
|
|
32
32
|
) -> BulkSignalsResponse:
|
|
33
33
|
"""
|
|
@@ -52,7 +52,7 @@ class SignalsClient:
|
|
|
52
52
|
client = Paid(
|
|
53
53
|
token="YOUR_TOKEN",
|
|
54
54
|
)
|
|
55
|
-
client.signals.
|
|
55
|
+
client.signals.create_signals(
|
|
56
56
|
signals=[
|
|
57
57
|
Signal(
|
|
58
58
|
event_name="eventName",
|
|
@@ -63,7 +63,7 @@ class SignalsClient:
|
|
|
63
63
|
],
|
|
64
64
|
)
|
|
65
65
|
"""
|
|
66
|
-
_response = self._raw_client.
|
|
66
|
+
_response = self._raw_client.create_signals(signals=signals, request_options=request_options)
|
|
67
67
|
return _response.data
|
|
68
68
|
|
|
69
69
|
|
|
@@ -82,7 +82,7 @@ class AsyncSignalsClient:
|
|
|
82
82
|
"""
|
|
83
83
|
return self._raw_client
|
|
84
84
|
|
|
85
|
-
async def
|
|
85
|
+
async def create_signals(
|
|
86
86
|
self, *, signals: typing.Sequence[Signal], request_options: typing.Optional[RequestOptions] = None
|
|
87
87
|
) -> BulkSignalsResponse:
|
|
88
88
|
"""
|
|
@@ -112,7 +112,7 @@ class AsyncSignalsClient:
|
|
|
112
112
|
|
|
113
113
|
|
|
114
114
|
async def main() -> None:
|
|
115
|
-
await client.signals.
|
|
115
|
+
await client.signals.create_signals(
|
|
116
116
|
signals=[
|
|
117
117
|
Signal(
|
|
118
118
|
event_name="eventName",
|
|
@@ -126,5 +126,5 @@ class AsyncSignalsClient:
|
|
|
126
126
|
|
|
127
127
|
asyncio.run(main())
|
|
128
128
|
"""
|
|
129
|
-
_response = await self._raw_client.
|
|
129
|
+
_response = await self._raw_client.create_signals(signals=signals, request_options=request_options)
|
|
130
130
|
return _response.data
|
paid/signals/raw_client.py
CHANGED
|
@@ -24,7 +24,7 @@ class RawSignalsClient:
|
|
|
24
24
|
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
25
25
|
self._client_wrapper = client_wrapper
|
|
26
26
|
|
|
27
|
-
def
|
|
27
|
+
def create_signals(
|
|
28
28
|
self, *, signals: typing.Sequence[Signal], request_options: typing.Optional[RequestOptions] = None
|
|
29
29
|
) -> HttpResponse[BulkSignalsResponse]:
|
|
30
30
|
"""
|
|
@@ -109,7 +109,7 @@ class AsyncRawSignalsClient:
|
|
|
109
109
|
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
110
110
|
self._client_wrapper = client_wrapper
|
|
111
111
|
|
|
112
|
-
async def
|
|
112
|
+
async def create_signals(
|
|
113
113
|
self, *, signals: typing.Sequence[Signal], request_options: typing.Optional[RequestOptions] = None
|
|
114
114
|
) -> AsyncHttpResponse[BulkSignalsResponse]:
|
|
115
115
|
"""
|
|
@@ -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)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
paid/__init__.py,sha256=6m_GmocptMPX6LExm6-xQp_2lbd9eCWByLFVba6IwzU,2304
|
|
2
2
|
paid/client.py,sha256=WpVtnBUNu_olaiVatkwT9PzR9cnYbPSg1BnutTWqXNw,6508
|
|
3
3
|
paid/contacts/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
4
|
-
paid/contacts/client.py,sha256=
|
|
5
|
-
paid/contacts/raw_client.py,sha256=
|
|
4
|
+
paid/contacts/client.py,sha256=TofBiAuSpCVFV7tzBQcghsf_EOBHKXx47AS09WRfZek,20859
|
|
5
|
+
paid/contacts/raw_client.py,sha256=2OGyy6FU3kNCVZ52nmrpPOM-gfPF273L-P_0_3DQ-fo,53799
|
|
6
6
|
paid/core/__init__.py,sha256=lTcqUPXcx4112yLDd70RAPeqq6tu3eFMe1pKOqkW9JQ,1562
|
|
7
7
|
paid/core/api_error.py,sha256=44vPoTyWN59gonCIZMdzw7M1uspygiLnr3GNFOoVL2Q,614
|
|
8
|
-
paid/core/client_wrapper.py,sha256=
|
|
8
|
+
paid/core/client_wrapper.py,sha256=efiu0wsZ-iTcEpK9CNRNRYiqGie-qsL5lJMbFcp4Mtk,2250
|
|
9
9
|
paid/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
10
10
|
paid/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
11
11
|
paid/core/force_multipart.py,sha256=awxh5MtcRYe74ehY8U76jzv6fYM_w_D3Rur7KQQzSDk,429
|
|
@@ -18,8 +18,8 @@ paid/core/remove_none_from_dict.py,sha256=EU9SGgYidWq7SexuJbNs4-PZ-5Bl3Vppd864mS
|
|
|
18
18
|
paid/core/request_options.py,sha256=h0QUNCFVdCW_7GclVySCAY2w4NhtXVBUCmHgmzaxpcg,1681
|
|
19
19
|
paid/core/serialization.py,sha256=ECL3bvv_0i7U4uvPidZCNel--MUbA0iq0aGcNKi3kws,9818
|
|
20
20
|
paid/customers/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
21
|
-
paid/customers/client.py,sha256=
|
|
22
|
-
paid/customers/raw_client.py,sha256=
|
|
21
|
+
paid/customers/client.py,sha256=hZg2vFxy6Ubrvnxj5c41haBJpdlWwQx7sjUp6lB_C-A,24455
|
|
22
|
+
paid/customers/raw_client.py,sha256=wuRSg7b65fsmxgR3Aj3E7PAB05lvzjRg-CQFyxopUUQ,57767
|
|
23
23
|
paid/environment.py,sha256=ZD9ZhcWXkKDJ-gkIyv9k86w1-3Fy3o0Y1ivNao4-Oig,161
|
|
24
24
|
paid/errors/__init__.py,sha256=i1Cxfwfm2tL1DRuYRbTEXZ5MIhobgDE8zm38gqGSNKY,363
|
|
25
25
|
paid/errors/bad_request_error.py,sha256=8YeeU1pvrmePf-GsOtENIQY-X88pArGYskLDK0qPGn4,373
|
|
@@ -27,19 +27,19 @@ paid/errors/forbidden_error.py,sha256=S4-q7biEKqqZoY3vW0it49EeYkdR_u2p3DYzxD5A8f
|
|
|
27
27
|
paid/errors/internal_server_error.py,sha256=qqVfFsLvs14COaHjgUUZv-_GKe2wIraZyHKMGMaMFtg,377
|
|
28
28
|
paid/errors/not_found_error.py,sha256=J4qzyBLJ3TMvRqxK65coEAoi7O7WHoufRSKi4aNtJ1s,371
|
|
29
29
|
paid/invoices/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
30
|
-
paid/invoices/client.py,sha256=
|
|
31
|
-
paid/invoices/raw_client.py,sha256=
|
|
30
|
+
paid/invoices/client.py,sha256=fofhV0bpN5ioyKopuGC0fvFxrDX_-NuzGM3UqHCJxyY,9126
|
|
31
|
+
paid/invoices/raw_client.py,sha256=8OkRk1zWfnGUbmJM1lrl0RuJiR_Q8DTP3bSjQrOTJzs,25385
|
|
32
32
|
paid/logger.py,sha256=CIo_i2n2Azp4g57GkU9twb_GzJ7x9lZmURqPsq4379M,514
|
|
33
33
|
paid/orders/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
34
|
-
paid/orders/client.py,sha256=
|
|
35
|
-
paid/orders/raw_client.py,sha256=
|
|
34
|
+
paid/orders/client.py,sha256=Kc6sK1uHv56sVYfnV_sfLb1HqkXFv6TFTELE1aPMFc8,19001
|
|
35
|
+
paid/orders/raw_client.py,sha256=ODMYGkdNHfiYXHSvtSpcr-Fm6-6-ILe0ADm8XSKHB-k,43050
|
|
36
36
|
paid/products/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
37
|
-
paid/products/client.py,sha256=
|
|
38
|
-
paid/products/raw_client.py,sha256=
|
|
37
|
+
paid/products/client.py,sha256=wLUScxbyH6DuXj-WKtpTGaOPahOD_1J7GPVcSDMJFLc,16712
|
|
38
|
+
paid/products/raw_client.py,sha256=fCqDHA1Z7ohStGWRL_982jCl4mXL6A7d4n1QQyhHbEE,41487
|
|
39
39
|
paid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
40
40
|
paid/signals/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
41
|
-
paid/signals/client.py,sha256=
|
|
42
|
-
paid/signals/raw_client.py,sha256=
|
|
41
|
+
paid/signals/client.py,sha256=aoJSCzeiYMZWexn3tzglThuO3SkPMim09GzWq2-HxDY,3976
|
|
42
|
+
paid/signals/raw_client.py,sha256=iC9qK5eldi3LVtKdHI1a_-rfrrf4Jl4FEDvAvEp7j70,7633
|
|
43
43
|
paid/tracing/__init__.py,sha256=fwjE0SnDWxNZKpYFnLB9IfTMa5ZIfLejs1aM4UA57yY,564
|
|
44
44
|
paid/tracing/autoinstrumentation.py,sha256=hbmJgf2vv769gs2IBxX_dpI9RWO0Cepy8qybiY1mL08,8152
|
|
45
45
|
paid/tracing/context_data.py,sha256=oiLocz-9qDqB5nQzJlrLsc2Mkr9MaNt_yF_hjppobKc,3298
|
|
@@ -104,7 +104,7 @@ paid/types/update_contact_request.py,sha256=JCLZ8wfOweFr4x3dW9Kx2bpKGNLDsjIImjfd
|
|
|
104
104
|
paid/types/update_customer_request.py,sha256=jfBLDFD50CG69OmIUm9G-V73xJ1cQNItmFrpO-e_ggE,1704
|
|
105
105
|
paid/types/update_product_request.py,sha256=y8-8up2EEIoNqtWN1x3Z_E29CjAJKTSS6XASK0hezXA,1013
|
|
106
106
|
paid/version.py,sha256=QIpDFnOrxMxrs86eL0iNH0mSZ1DO078wWHYY9TYAoew,78
|
|
107
|
-
paid_python-1.0.
|
|
108
|
-
paid_python-1.0.
|
|
109
|
-
paid_python-1.0.
|
|
110
|
-
paid_python-1.0.
|
|
107
|
+
paid_python-1.0.0a2.dist-info/LICENSE,sha256=Nz4baY1zvv0Qy7lqrQtbaiMhmEeGr2Q7A93aqzpml4c,1071
|
|
108
|
+
paid_python-1.0.0a2.dist-info/METADATA,sha256=OdZPpIgWbqAeDN9hwHgv7UJHH5EGikmXMclK-6f_J-g,24616
|
|
109
|
+
paid_python-1.0.0a2.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
110
|
+
paid_python-1.0.0a2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|