dodopayments 1.43.1__py3-none-any.whl → 1.47.0__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.

Potentially problematic release.


This version of dodopayments might be problematic. Click here for more details.

Files changed (56) hide show
  1. dodopayments/_base_client.py +4 -1
  2. dodopayments/_client.py +20 -9
  3. dodopayments/_files.py +4 -4
  4. dodopayments/_version.py +1 -1
  5. dodopayments/pagination.py +64 -1
  6. dodopayments/resources/__init__.py +27 -13
  7. dodopayments/resources/discounts.py +24 -0
  8. dodopayments/resources/products/products.py +17 -1
  9. dodopayments/resources/subscriptions.py +4 -6
  10. dodopayments/resources/webhooks/__init__.py +33 -0
  11. dodopayments/resources/webhooks/headers.py +255 -0
  12. dodopayments/resources/webhooks/webhooks.py +676 -0
  13. dodopayments/resources/your_webhook_url.py +224 -0
  14. dodopayments/types/__init__.py +17 -3
  15. dodopayments/types/addon_cart_response_item_param.py +13 -0
  16. dodopayments/types/customer_limited_details_param.py +18 -0
  17. dodopayments/types/customer_request_param.py +2 -2
  18. dodopayments/types/discount.py +7 -0
  19. dodopayments/types/discount_create_params.py +7 -0
  20. dodopayments/types/discount_update_params.py +7 -0
  21. dodopayments/types/dispute_param.py +45 -0
  22. dodopayments/types/get_dispute_param.py +52 -0
  23. dodopayments/types/license_key_param.py +53 -0
  24. dodopayments/types/new_customer_param.py +16 -0
  25. dodopayments/types/payment_param.py +131 -0
  26. dodopayments/types/product.py +4 -1
  27. dodopayments/types/product_create_params.py +4 -1
  28. dodopayments/types/product_list_response.py +4 -1
  29. dodopayments/types/product_update_params.py +4 -1
  30. dodopayments/types/refund_param.py +42 -0
  31. dodopayments/types/subscription.py +3 -0
  32. dodopayments/types/subscription_change_plan_params.py +1 -1
  33. dodopayments/types/subscription_list_params.py +1 -1
  34. dodopayments/types/subscription_list_response.py +3 -0
  35. dodopayments/types/subscription_param.py +97 -0
  36. dodopayments/types/subscription_status.py +1 -1
  37. dodopayments/types/webhook_create_params.py +40 -0
  38. dodopayments/types/webhook_create_response.py +42 -0
  39. dodopayments/types/webhook_event_type.py +0 -1
  40. dodopayments/types/webhook_list_params.py +16 -0
  41. dodopayments/types/webhook_list_response.py +42 -0
  42. dodopayments/types/webhook_retrieve_response.py +42 -0
  43. dodopayments/types/webhook_update_params.py +33 -0
  44. dodopayments/types/webhook_update_response.py +42 -0
  45. dodopayments/types/webhooks/__init__.py +6 -0
  46. dodopayments/types/webhooks/header_retrieve_response.py +15 -0
  47. dodopayments/types/webhooks/header_update_params.py +13 -0
  48. dodopayments/types/your_webhook_url_create_params.py +66 -0
  49. {dodopayments-1.43.1.dist-info → dodopayments-1.47.0.dist-info}/METADATA +1 -1
  50. {dodopayments-1.43.1.dist-info → dodopayments-1.47.0.dist-info}/RECORD +52 -32
  51. dodopayments/resources/webhook_events.py +0 -326
  52. dodopayments/types/create_new_customer_param.py +0 -23
  53. dodopayments/types/webhook_event.py +0 -26
  54. dodopayments/types/webhook_event_list_params.py +0 -39
  55. {dodopayments-1.43.1.dist-info → dodopayments-1.47.0.dist-info}/WHEEL +0 -0
  56. {dodopayments-1.43.1.dist-info → dodopayments-1.47.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,15 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Dict, List
4
+
5
+ from ..._models import BaseModel
6
+
7
+ __all__ = ["HeaderRetrieveResponse"]
8
+
9
+
10
+ class HeaderRetrieveResponse(BaseModel):
11
+ headers: Dict[str, str]
12
+ """List of headers configured"""
13
+
14
+ sensitive: List[str]
15
+ """Sensitive headers without the value"""
@@ -0,0 +1,13 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Dict
6
+ from typing_extensions import Required, TypedDict
7
+
8
+ __all__ = ["HeaderUpdateParams"]
9
+
10
+
11
+ class HeaderUpdateParams(TypedDict, total=False):
12
+ headers: Required[Dict[str, str]]
13
+ """Object of header-value pair to update or add"""
@@ -0,0 +1,66 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Union
6
+ from datetime import datetime
7
+ from typing_extensions import Literal, Required, Annotated, TypedDict
8
+
9
+ from .._utils import PropertyInfo
10
+ from .refund_param import RefundParam
11
+ from .payment_param import PaymentParam
12
+ from .get_dispute_param import GetDisputeParam
13
+ from .license_key_param import LicenseKeyParam
14
+ from .subscription_param import SubscriptionParam
15
+ from .webhook_event_type import WebhookEventType
16
+
17
+ __all__ = [
18
+ "YourWebhookURLCreateParams",
19
+ "DataPayment",
20
+ "DataSubscription",
21
+ "DataRefund",
22
+ "DataDispute",
23
+ "DataLicenseKey",
24
+ ]
25
+
26
+
27
+ class YourWebhookURLCreateParams(TypedDict, total=False):
28
+ business_id: Required[str]
29
+
30
+ data: Required[Union[DataPayment, DataSubscription, DataRefund, DataDispute, DataLicenseKey]]
31
+ """The latest data at the time of delivery attempt"""
32
+
33
+ timestamp: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
34
+ """
35
+ The timestamp of when the event occurred (not necessarily the same of when it
36
+ was delivered)
37
+ """
38
+
39
+ type: Required[WebhookEventType]
40
+ """Event types for Dodo events"""
41
+
42
+ webhook_id: Required[Annotated[str, PropertyInfo(alias="webhook-id")]]
43
+
44
+ webhook_signature: Required[Annotated[str, PropertyInfo(alias="webhook-signature")]]
45
+
46
+ webhook_timestamp: Required[Annotated[str, PropertyInfo(alias="webhook-timestamp")]]
47
+
48
+
49
+ class DataPayment(PaymentParam, total=False):
50
+ payload_type: Required[Literal["Payment"]]
51
+
52
+
53
+ class DataSubscription(SubscriptionParam, total=False):
54
+ payload_type: Required[Literal["Subscription"]]
55
+
56
+
57
+ class DataRefund(RefundParam, total=False):
58
+ payload_type: Required[Literal["Refund"]]
59
+
60
+
61
+ class DataDispute(GetDisputeParam, total=False):
62
+ payload_type: Required[Literal["Dispute"]]
63
+
64
+
65
+ class DataLicenseKey(LicenseKeyParam, total=False):
66
+ payload_type: Required[Literal["LicenseKey"]]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dodopayments
3
- Version: 1.43.1
3
+ Version: 1.47.0
4
4
  Summary: The official Python library for the Dodo Payments API
5
5
  Project-URL: Homepage, https://github.com/dodopayments/dodopayments-python
6
6
  Project-URL: Repository, https://github.com/dodopayments/dodopayments-python
@@ -1,18 +1,18 @@
1
1
  dodopayments/__init__.py,sha256=jLgJiqM7q7-wstUdqp2RuuWVjLPGor5q-vw3liQR5lw,2711
2
- dodopayments/_base_client.py,sha256=ibIQuQPXHiiNAy9mFS01f4iuD8mgqeYXW40Hye6SFQ4,66928
3
- dodopayments/_client.py,sha256=6gxmSa9iNmeNzmpy05mph0aAbrzFU8P0swS3oYc0dKY,27376
2
+ dodopayments/_base_client.py,sha256=rrB4T5TSjt2gzNFQiYNF8NTvmeyE0S3sn7ZyCL6kf2A,67041
3
+ dodopayments/_client.py,sha256=erQ_FT-ixhFBfZWLU-AgrjQSaw2yi4fv3NgltRr2RmY,28041
4
4
  dodopayments/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
5
5
  dodopayments/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
6
6
  dodopayments/_exceptions.py,sha256=NgI0bxilB8xXOfjBWCzr-Y7t1aIJGMqCQRXvSyy29cM,3232
7
- dodopayments/_files.py,sha256=mf4dOgL4b0ryyZlbqLhggD3GVgDf6XxdGFAgce01ugE,3549
7
+ dodopayments/_files.py,sha256=KnEzGi_O756MvKyJ4fOCW_u3JhOeWPQ4RsmDvqihDQU,3545
8
8
  dodopayments/_models.py,sha256=KvjsMfb88XZlFUKVoOxr8OyDj47MhoH2OKqWNEbBhk4,30010
9
9
  dodopayments/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
10
10
  dodopayments/_resource.py,sha256=Jfh17Q3kKzAhO-dlfIwYlueN9t1edaaY_vmnC9vErpA,1136
11
11
  dodopayments/_response.py,sha256=PDvrSN3E3IkXVw2GvyOCTNB8ch0Xn9yaWQz4w1nHZEQ,28854
12
12
  dodopayments/_streaming.py,sha256=U4D6MhotaUaGaHz32lBt0XM98IOPIpPbKHUfbb0HGCk,10124
13
13
  dodopayments/_types.py,sha256=gP0yR7AIegimhmZ6rYIjSHFCr9YWzvh-jZabbVcgtio,6203
14
- dodopayments/_version.py,sha256=m8STQzQc2_T1Qg55gAW-NhjXpTYLhIcJ3Icq6nokt0g,165
15
- dodopayments/pagination.py,sha256=WYDrAWHvGL58Fe6X2yYZyYTAFvzWOR63JAsKURk2ti4,1308
14
+ dodopayments/_version.py,sha256=AbtMH8BJJg3HdQORv-gMy9lZZt3VvCFLTdHeOjU6nq8,165
15
+ dodopayments/pagination.py,sha256=gaS62u_b_92OYnUHmstLAFL5AF2_cr3Z6VpzSHd0mMw,2796
16
16
  dodopayments/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  dodopayments/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
18
18
  dodopayments/_utils/_logs.py,sha256=wS-wfjlRVqO9Na43iwXZXBQ3Vm0dbZRPyOl9xYum580,793
@@ -25,10 +25,10 @@ dodopayments/_utils/_transform.py,sha256=n7kskEWz6o__aoNvhFoGVyDoalNe6mJwp-g7BWk
25
25
  dodopayments/_utils/_typing.py,sha256=D0DbbNu8GnYQTSICnTSHDGsYXj8TcAKyhejb0XcnjtY,4602
26
26
  dodopayments/_utils/_utils.py,sha256=ts4CiiuNpFiGB6YMdkQRh2SZvYvsl7mAF-JWHCcLDf4,12312
27
27
  dodopayments/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
28
- dodopayments/resources/__init__.py,sha256=slKzesz4GxU0aA1gYESOGCrpFtLYX_maRsoT6RK425M,7930
28
+ dodopayments/resources/__init__.py,sha256=WO5lWjB6vsb22ZLGT-nDsUL2Zxf8M3NA0bg_3q3yDHg,8420
29
29
  dodopayments/resources/addons.py,sha256=apKpyfdtajQNxSKUnj-tkFB-6Xgj7kMnpQ8q_1LbcB4,21902
30
30
  dodopayments/resources/brands.py,sha256=EH0Meg4duOJO9ZSvzv4IxBazA7OrdS6_gdOOJkQMSGo,18786
31
- dodopayments/resources/discounts.py,sha256=2f2QTIlTufEuDLRmniS9ieB5vcuXQ8wB1nlLxhVyeTw,25206
31
+ dodopayments/resources/discounts.py,sha256=NwcjxzVXR1rlxfeevg8MGxpPBseqfULw3PgHtICJuWc,26690
32
32
  dodopayments/resources/disputes.py,sha256=pnRGAyvRvQdXntqq8PTnCxpaFjKRkukbq7CzlRkG-kg,12263
33
33
  dodopayments/resources/license_key_instances.py,sha256=oCgJ-D6JVP_Fte_IjRHnykqhAynN6rDJphrkg6hyxjE,14082
34
34
  dodopayments/resources/license_keys.py,sha256=N4CKnjzEx3JoAmGZ72hU30ENVT5NegGwvP-ILaTu04U,15838
@@ -37,8 +37,8 @@ dodopayments/resources/misc.py,sha256=BRPUna3lLIrJ-gMGOOQL1-xYx_oMwVDzKL4d498C7p
37
37
  dodopayments/resources/payments.py,sha256=8VNZCDvtjjUyj_yETzF-nx19gqWzfca9Za5zb2dwfMA,24533
38
38
  dodopayments/resources/payouts.py,sha256=llIbNwI3vQZYf2HsgYL5Irfl6BBoQc1g4aLPWwY09Uo,6926
39
39
  dodopayments/resources/refunds.py,sha256=BS9PcxZhEmBZveZTRo4__WmgVwKpqEEHQDp7tuMh7tQ,15045
40
- dodopayments/resources/subscriptions.py,sha256=eLCIUjf7I0utZ3mHYcSIDZVWPAjDtu9Bh-E27lW7GM4,38410
41
- dodopayments/resources/webhook_events.py,sha256=4pzAMk5TDzkMZv-9tGAevDpsh62XKqb5nOqwI27y6HQ,12803
40
+ dodopayments/resources/subscriptions.py,sha256=WKTa3LZa2bUBY-sng6ppL8ZmsuOfeNpP2u-92jp_gmw,38426
41
+ dodopayments/resources/your_webhook_url.py,sha256=dQ4wO8B_Ioxn-cm_Rlq7y56qqfmptbKpG6D9ZivI7RQ,8540
42
42
  dodopayments/resources/customers/__init__.py,sha256=RIP1WYqO_PIq9b57tDaJWf9zIRxG_iFeFkOVhe3apAo,1146
43
43
  dodopayments/resources/customers/customer_portal.py,sha256=f74AYBYOb0yIffh4jLmIB3igrcfaHnCS0oAbACmGlyA,6961
44
44
  dodopayments/resources/customers/customers.py,sha256=Z3HuZh3XiX7xUl_rNCO-Ia0uahy97QkUTTB_ue-Z1Cc,18337
@@ -47,9 +47,13 @@ dodopayments/resources/invoices/invoices.py,sha256=-XZWHtZk92Wbbz5qO0DgiOCZGNKv4
47
47
  dodopayments/resources/invoices/payments.py,sha256=Kq32Cpzca3YuPdk8XjmF6wkRi6_BQ2aegyLf2FZ7KG8,6346
48
48
  dodopayments/resources/products/__init__.py,sha256=GKmDlI7Pw4UnnCRlnhb5WBh2Y3UYhqme7RqC35aztGo,1028
49
49
  dodopayments/resources/products/images.py,sha256=7pl2ZFMB3Y_ltwAOiyC0tif31tAXSf_MkQ8-kjrlrKE,6339
50
- dodopayments/resources/products/products.py,sha256=0KRYNbqODjfokZAJvuGNWuSd-t1qG3jK_qoc3Gv5FOM,38376
51
- dodopayments/types/__init__.py,sha256=x0ddabpf1TCrO86P0k7KxugttWvm9N9BTzha13MrSWs,6887
50
+ dodopayments/resources/products/products.py,sha256=3GiRtx4HDWgzj5YVCPgZmvqwjZq3IBgw2eQWwnR55vw,39026
51
+ dodopayments/resources/webhooks/__init__.py,sha256=qhsQMSm4GpXfesAwbvPOYkhytB3Ab_uW4Nqur7h1R8w,1041
52
+ dodopayments/resources/webhooks/headers.py,sha256=wkTnIIfL2XjFcsXB4ceQVJtsty9uxuLVY_cRcaOZJ7M,9581
53
+ dodopayments/resources/webhooks/webhooks.py,sha256=3g4Ki88NZTPH8cZoj1MUo-bVyLcgrTMGTDrxuA37axw,25179
54
+ dodopayments/types/__init__.py,sha256=RyPGo6it8vH4IPJ_hoRBsinQh6c3VhF3_NN9XhEKAh4,7961
52
55
  dodopayments/types/addon_cart_response_item.py,sha256=R-I8Zd2HJKn0DmXmv6Oyu4oo-oEC1-dud0Q6_yqDB7k,235
56
+ dodopayments/types/addon_cart_response_item_param.py,sha256=ZLoTI_zd-i6CTJ3lc_Eq-vaahalHshqgcpYdMS5lcpM,332
53
57
  dodopayments/types/addon_create_params.py,sha256=a1bKexuFdJcWUPzvPodeeTjqYvCyOwTdp8b2es2ygx8,695
54
58
  dodopayments/types/addon_list_params.py,sha256=Vwp_bhaf6F4E4Xe2N5YcuaOr9SdyIWK_w-KXB1JwKss,364
55
59
  dodopayments/types/addon_response.py,sha256=7EKoB8AwfGSPlnNEFrL8tZESJXPa5kZcfnNa04H4qXI,907
@@ -65,26 +69,28 @@ dodopayments/types/brand_list_response.py,sha256=UTjYrMm32TaMtVR61jWJMCi2-JKY0FH
65
69
  dodopayments/types/brand_update_images_response.py,sha256=QEt_87f6YTRqgN1Wu0NL_zJ96jl6SeUSiBLh8Hpc0pw,350
66
70
  dodopayments/types/brand_update_params.py,sha256=S7qu2_IYkxxBbNuz5G12sujyW9gyte8cxw3jVsm1V4Y,468
67
71
  dodopayments/types/country_code.py,sha256=aKc-CApHuQUg8xWGKxS2pnYvwUOz7G59qv4H7NOOHEo,2690
68
- dodopayments/types/create_new_customer_param.py,sha256=QAl3yonE2iPWRQY3LOPwyjkLqN9lJW6TjgLJGCitG4k,599
69
72
  dodopayments/types/currency.py,sha256=Cv-x2wYCXupjzRgWHgtepd3ANbB6DrygxJVVxLpjEJY,1789
70
73
  dodopayments/types/customer.py,sha256=gyxIAWVJyoUPvqKFMSZb2SE-gbgVw9Cf8FGVevPFKQs,371
71
74
  dodopayments/types/customer_create_params.py,sha256=jILY28OtoNMyd3OEJcWmRCNUDc8LN3jMvWxPtFwWx2c,374
72
75
  dodopayments/types/customer_limited_details.py,sha256=Q9o6uDLx2-XXMqLf5r_c4BMPJgOGeIXurK3od3d-Sgc,373
76
+ dodopayments/types/customer_limited_details_param.py,sha256=iW69gofjJLNjsTvJitO2fvuzGn2uICgtNBxuMdFbyMw,480
73
77
  dodopayments/types/customer_list_params.py,sha256=hK4vh0wscovGF6w1Z595aYOmHrxGQTr1AshwsEwfs4o,421
74
78
  dodopayments/types/customer_portal_session.py,sha256=XwfDZMfoaiuVoJ4OmulTfLrfGurjgaCDiBKbUxA6Q08,212
75
- dodopayments/types/customer_request_param.py,sha256=Y0a3YTcwB1JHIgTUcLIKWfVIfZljcYCnQu7YaP-0Qsg,453
79
+ dodopayments/types/customer_request_param.py,sha256=dfhcbTX8Ujb0pVlYWJm0fbI8-tR1fKxyDogG9xl0WVs,434
76
80
  dodopayments/types/customer_update_params.py,sha256=FRS6J8xSI4i6ZvZW72DIxZLm1CAYKZHnShzduGcwvu0,338
77
- dodopayments/types/discount.py,sha256=d5SQy3GyIieMkv2YqX1Ly0Y8sJ9rgaWb8aBpEFU_m_E,1285
78
- dodopayments/types/discount_create_params.py,sha256=5pTTV_wocPl5LHz0sZ29HNq6Bg80OW6akeFrZdqhTc4,1449
81
+ dodopayments/types/discount.py,sha256=SufFRysp2DMuL9588cO--5vwieH9qCe66XiW_iKGTyg,1540
82
+ dodopayments/types/discount_create_params.py,sha256=ytnXVDkftHBbgKGPYYh6J7pkLm3Z3xDyChDYRcvgHD0,1697
79
83
  dodopayments/types/discount_list_params.py,sha256=xKbKRcv1Z8N_KhqKs3DqsJMnsoceMBP1ocWh4kI0GBM,374
80
84
  dodopayments/types/discount_type.py,sha256=2GOiaq6ssxLTFIMh_jO9mvFfoPhZp1XtUs516f6hrIM,213
81
- dodopayments/types/discount_update_params.py,sha256=Uv2gxqZIa0j6jlN3aUfUYSxw6fasVhRqVfjLLBY2XkY,1193
85
+ dodopayments/types/discount_update_params.py,sha256=T1GZjxAoix8LzNwWt9xiUXqz2FllkoNw48okhFQtxEI,1441
82
86
  dodopayments/types/dispute.py,sha256=RR8uLulYlDRgC4IWlhEIwVweTVnn5Swk_3hLwx2F9t0,1115
83
87
  dodopayments/types/dispute_list_params.py,sha256=px9NuKB4ABAV4jGWs_4dPkpfEToQUQpcEiLzWf4HDHA,1158
84
88
  dodopayments/types/dispute_list_response.py,sha256=-2iimail29OzhGJFXev4_yDlLifMl3zpiNO2nSo5NT8,1058
89
+ dodopayments/types/dispute_param.py,sha256=cliKOs8RVqpCFluyKjCHyXO98zFM31uRrxoULqaw3lU,1372
85
90
  dodopayments/types/dispute_stage.py,sha256=OFaSeVXItONcrIoxGx37qccFVD_dvTeerPJ-d7pPwo8,244
86
91
  dodopayments/types/dispute_status.py,sha256=tBDzobNwCiCmlwT08Y8h3R-IuRPCn_M0IKEpQk-wPXA,363
87
92
  dodopayments/types/get_dispute.py,sha256=26tVlqDoddB27yrS4p1Ve5B1OOhdTCe8AYAcVeaOzUg,1332
93
+ dodopayments/types/get_dispute_param.py,sha256=Afh4MfkZXg-ZwyIgEtk4CmPTydxsJ4SsmUh8tKM8OIg,1608
88
94
  dodopayments/types/intent_status.py,sha256=0aP3OxHiMfZDXQFOOXNbTSZz1vZkLjBFm3ryT0sT4Z8,483
89
95
  dodopayments/types/license_activate_params.py,sha256=LM3_sHiPdco8kuYlKXmSzXu9OyU9okrZW7Drl63GRZU,321
90
96
  dodopayments/types/license_deactivate_params.py,sha256=F6A7vZfdkCsfQi4ibECL3SFzwjjOyr8ZR_RrNRVsCMo,344
@@ -95,11 +101,13 @@ dodopayments/types/license_key_instance.py,sha256=lrXpgEMNoEZM6xVXe-QV2Tu609uEOP
95
101
  dodopayments/types/license_key_instance_list_params.py,sha256=jhvMFwGOJSgEmelw9Ss5SzCK5FbHkjLYNhgR_B-eAFc,508
96
102
  dodopayments/types/license_key_instance_update_params.py,sha256=oiwEpOTQsj7D5dAjYGlliL1UC3RUrck2WzRBwYaVRJE,307
97
103
  dodopayments/types/license_key_list_params.py,sha256=kDaFEXVw1PTL7pG8JJrZHmYC9CPMGvIKDR4ouLAQYDc,582
104
+ dodopayments/types/license_key_param.py,sha256=WWG-UtkAN1A422inbBtpfWkvhl2upudLs3cmHMzRX7A,1809
98
105
  dodopayments/types/license_key_status.py,sha256=UlGOUTQM93ePW0xWxcOgeLQ_SAkjtav-Rg-QugaFfuo,240
99
106
  dodopayments/types/license_key_update_params.py,sha256=iLtkSyF7R4NdWUgX3aZnzO0XQPujVvLjLWLsULXTEug,1018
100
107
  dodopayments/types/license_validate_params.py,sha256=f_UWM6Jy9E4pdcjGLr7YtsAsHR1-6EXpw4zGzLZj1JQ,368
101
108
  dodopayments/types/license_validate_response.py,sha256=vlSrdtsVYmQcsJpPMI-ENCf_apLzhbS9Q6e4MG3ys1Q,218
102
109
  dodopayments/types/misc_list_supported_countries_response.py,sha256=Imr7f0CAjq04iikVbDSUvG1ZSYzB9Fopx8pVfVtt-zw,307
110
+ dodopayments/types/new_customer_param.py,sha256=00L6Tg-VNzwbhTHZo010D34cRj9hZISdyCbLTpFUg7A,366
103
111
  dodopayments/types/one_time_product_cart_item.py,sha256=3l7J3KEE-SCXgArN25qKIXbIIu44Q2kxqd7jf73AGto,544
104
112
  dodopayments/types/one_time_product_cart_item_param.py,sha256=JydRYPBnLhON1pCQPRpQzKLaGJTSrDn1IRVCcMK8iAE,633
105
113
  dodopayments/types/payment.py,sha256=UNlKp_uXhFmQtL5_sMvOBgmvNsWz9IVViuzCo-YfA7o,3796
@@ -108,44 +116,56 @@ dodopayments/types/payment_create_response.py,sha256=Kx70m87jA_WlNtdkzGN8Arzjmfr
108
116
  dodopayments/types/payment_list_params.py,sha256=CH6z3MqKkQsoWzuSnsxxEj60HBrAsUKwQ_9iLm4uZJc,1283
109
117
  dodopayments/types/payment_list_response.py,sha256=I4X52FokitP_OzrR7qQSnIrswyIDOI8E1gu1h4vyDHA,784
110
118
  dodopayments/types/payment_method_types.py,sha256=_Kp6SGsquALvZ7WRboxDsTdFhJxtgQtlpOmBtp-bMfM,505
119
+ dodopayments/types/payment_param.py,sha256=0MpdPXlHhTmZ8HFLhA1I4pS39FoFAwx-wh5JXbQMDEw,4172
111
120
  dodopayments/types/payment_retrieve_line_items_response.py,sha256=Cxfq-BNHw0AyoLzZ6-5JAcQLkHsKWHg0e0a3yBfzRXU,513
112
121
  dodopayments/types/payout_list_params.py,sha256=xI5mSD5hlbXTSWSw5pMeiMyyTamh4NzVGodmzPGOaK4,366
113
122
  dodopayments/types/payout_list_response.py,sha256=6SDDeP3J2OemGMujl-nsrvpt50evfP2FwX5nM32nAIg,1661
114
123
  dodopayments/types/price.py,sha256=5jQNBQSMXkTv8Ze7hy-omjDglG62_GRCSw6-agesn2k,3197
115
124
  dodopayments/types/price_param.py,sha256=jg6ECbyPHEcTL3pIIcUMN--y_UXJ1-dC2AlaJcsHgZ4,3343
116
- dodopayments/types/product.py,sha256=pApCXmiQxknpV9AimxzVkQLs8-E8vgha8Jv5f6c7Q1Q,2304
117
- dodopayments/types/product_create_params.py,sha256=IUDAvUerLLNjsQ7zc7ImYk5_S4ypgoJfI2EQd1RUf_A,1991
125
+ dodopayments/types/product.py,sha256=iYBF781NDTm9aJ02W8NWK0D3mFVqGt4W1gabdwgItFQ,2401
126
+ dodopayments/types/product_create_params.py,sha256=vwYQ2CFcDdRsIbyA7TWvwy6js37QwKqj6Z_YXu6n8-c,2073
118
127
  dodopayments/types/product_list_params.py,sha256=pi50RGxTFtJsuxp8Zs2zXBXml-0T9FRJu8W2e4PlUk4,712
119
- dodopayments/types/product_list_response.py,sha256=pJdsqAengWqOrXRwMK8robvPnfDm9Ts0F6x3NkQi5ZY,1790
128
+ dodopayments/types/product_list_response.py,sha256=quSCR3qak0T1aLPsZSgnkRGLSwFEWAaUXl4JsiSsq14,1887
120
129
  dodopayments/types/product_update_files_params.py,sha256=7AkcQ3mWfc2WyUOnWabzst-gQaWTuS3KSvmM1KYnhT4,300
121
130
  dodopayments/types/product_update_files_response.py,sha256=a6sNHOCHQxxA7l55M3zS8S26O3UEFo1vctngHIy5tJo,239
122
- dodopayments/types/product_update_params.py,sha256=PgZIzSRoxoTG0KIFzlS-uHzTQkYPJcKa70U2pmUdUGg,2434
131
+ dodopayments/types/product_update_params.py,sha256=sApVoLbnoDkOaVZBlzvAa3TP2Xe2P5NX6lL7ODQFUmg,2526
123
132
  dodopayments/types/refund.py,sha256=ySj9ERvneb2ya4hdcszIVvqWZaqQMUkuCJuBKoKeTBI,1064
124
133
  dodopayments/types/refund_create_params.py,sha256=hua-rUlW_5ZfKaPsh8O06yPgsj0gH7ru9Rw0Rb-3moQ,912
125
134
  dodopayments/types/refund_list_params.py,sha256=iz4MPgquP4K3AlYPV5_bbt5jHzGFT__RTpGjT4QXnPs,883
135
+ dodopayments/types/refund_param.py,sha256=uS3psDUnkYf1Ir5CtlLK-2hpKPT-HVFGeGRkJEL9kuw,1287
126
136
  dodopayments/types/refund_status.py,sha256=ftnBnLvslfMYcUg8t7nEvb6-m5NWyVVnNcgyVu9eZto,243
127
- dodopayments/types/subscription.py,sha256=RvYAopmSsBmNAbTLpSFPHJitQGDQbrQQ6cfT0y4fzEk,2762
128
- dodopayments/types/subscription_change_plan_params.py,sha256=zk1Ux7oJNOIpcaNyT4mHRD5yHcv1pjcPgbk1lUq-2qA,840
137
+ dodopayments/types/subscription.py,sha256=ogzqiK8ohoRLyWRcB3nqIJ8YqtTBJXimHZPamySAUJs,2884
138
+ dodopayments/types/subscription_change_plan_params.py,sha256=u04uGX3XYTPZSldZzc7fvhKeq_HFyQ3kkOkCugZo7TQ,866
129
139
  dodopayments/types/subscription_charge_params.py,sha256=b7KPBp8Jv5U0srxqi4AgJbrL1PWkZ6VhDObigAuph0M,1302
130
140
  dodopayments/types/subscription_charge_response.py,sha256=aDFuOKqqQ-_v1szx9oUT89QaeM3nvwrlAExzZhF0O-Q,228
131
141
  dodopayments/types/subscription_create_params.py,sha256=PJgyhH0WJmOqIcDdRZ14YBIWwxh05bkfit83BvlHnkg,3691
132
142
  dodopayments/types/subscription_create_response.py,sha256=Equ-ycrO3A3mOVElW6BjoBH8sqc5wwKS8ED9fHvTza0,1372
133
- dodopayments/types/subscription_list_params.py,sha256=nNOBUT4N2p6SpXODpuLw05_KU3dln8HkEMI6S6voy3k,975
134
- dodopayments/types/subscription_list_response.py,sha256=bL-2inf-DRW7lfrHXxkJFPTIJlkzZFjuCq0bSjj98zc,2628
135
- dodopayments/types/subscription_status.py,sha256=dSVJW6HaTt7EwhIxOKT8dDfrT7AyQuE0LAJAKwOf4Aw,287
143
+ dodopayments/types/subscription_list_params.py,sha256=rh6yKzc_2T2R2P4ASk3L6wll-wC9bWa-wTLwFaz67WE,965
144
+ dodopayments/types/subscription_list_response.py,sha256=CVNB4vhOLHMTsFndufVcIv58CfOyUDV6HjhSE3uAH8M,2750
145
+ dodopayments/types/subscription_param.py,sha256=bPJOtuqOqpv8yJSy2Q10XNtK-MKHGnCr-HSjJjwZc9A,3474
146
+ dodopayments/types/subscription_status.py,sha256=3UxvrPY4QVcppbeIV86qe6p2YUQK8sPVcxbqUJn4V8Y,277
136
147
  dodopayments/types/subscription_update_params.py,sha256=OZwspac0I8t3ulswhXn4EQlkCZClgbqkpyvmkGHgQxA,911
137
148
  dodopayments/types/tax_category.py,sha256=Fwgm25IMhHaSziDOfqePSBKE4PczW_KFJq1yE1uSfpA,245
138
149
  dodopayments/types/time_interval.py,sha256=ZTA79GvVo5RjERLfRrY7ad6e0OqfeeoZuMnE1NShcio,231
139
- dodopayments/types/webhook_event.py,sha256=S9L3N5aqnykB4KoJN1mhq8xqC06BhAjBJLHv5PFRWIQ,469
140
- dodopayments/types/webhook_event_list_params.py,sha256=3c-Q4_dkbAjh7Ej-WAmsk9_qco7PcD2bz4n-6QEWRag,1043
141
- dodopayments/types/webhook_event_type.py,sha256=AIFMv2bg_SL4_FlEmc2NhARRK2DBUqAJNPeaWeCtArI,767
150
+ dodopayments/types/webhook_create_params.py,sha256=ZtlMqt014PSO9dBcEFOu-UFreo3qgxFNnMiea5auSW0,974
151
+ dodopayments/types/webhook_create_response.py,sha256=dH3jmco090stLBFmtiVSeruRb6tYnWWHfvxX_Rc_rqc,887
152
+ dodopayments/types/webhook_event_type.py,sha256=TzMHCyMXyxsGLLVyg7h9if4vth5Iaiw7EBijr1a-37k,740
153
+ dodopayments/types/webhook_list_params.py,sha256=SCrBT0s4VDOQdRvqgL6P5YDhqd3njW5rQlqOAnu3r40,430
154
+ dodopayments/types/webhook_list_response.py,sha256=3zppjO95dQpqTxlADqwSTF-URSsopsOMNeYxIbRolHQ,883
155
+ dodopayments/types/webhook_retrieve_response.py,sha256=kZIwIwT_AjHWFVcDw2u0eZhdOPIXfodM0vADY4BpAlI,891
156
+ dodopayments/types/webhook_update_params.py,sha256=Gv-1jteNEm58ZevionMCv7xCUUZUJ1cxTKV4M23oQIw,807
157
+ dodopayments/types/webhook_update_response.py,sha256=K60qOiOHUe97ousH0cz497hzQINwxDub1sYm1GKpu0o,887
158
+ dodopayments/types/your_webhook_url_create_params.py,sha256=vgtEfhPqFQBZ-aA31qLYpLkgH3bbhJLU5fjyTi6V0xc,1991
142
159
  dodopayments/types/customers/__init__.py,sha256=8UD_iRVrX_gB6Ji7SDLApLGewOlaEtmiYv6NynIQ120,223
143
160
  dodopayments/types/customers/customer_portal_create_params.py,sha256=QTRksHDHn8_3AmOpsscjWF1ZNvooLY05DZNbMmLbC2Y,329
144
161
  dodopayments/types/invoices/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
145
162
  dodopayments/types/products/__init__.py,sha256=-W2ETtkni8cZpsC4Eg1aRwuLg1plV1U429JFOR1U4Rw,273
146
163
  dodopayments/types/products/image_update_params.py,sha256=xyF5fRudD8wct8KKx6wc8F7bbMzVBQPOMKnX5bTiRDQ,270
147
164
  dodopayments/types/products/image_update_response.py,sha256=TcJyXjoJlONpwwR6yZdIuBTu2VNyLRZFELfstD9_V-o,273
148
- dodopayments-1.43.1.dist-info/METADATA,sha256=_JbeQ87O7PB1jiGi87Nyx8TQYaZuZqd1Hgj0G6Xb5SE,18832
149
- dodopayments-1.43.1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
150
- dodopayments-1.43.1.dist-info/licenses/LICENSE,sha256=3_sqrBb5J3AT3FsjMKEOBRZhweWVsl_s_RjFlclm1vQ,11343
151
- dodopayments-1.43.1.dist-info/RECORD,,
165
+ dodopayments/types/webhooks/__init__.py,sha256=F_ZpQalnBiuXt_C2pUepZjgJZwiAGKNwaEB03ZB6sUM,285
166
+ dodopayments/types/webhooks/header_retrieve_response.py,sha256=IKNaI2xO9qU7UXbffENYrRo2vUr0mqb8TIkAQdtLtXI,369
167
+ dodopayments/types/webhooks/header_update_params.py,sha256=USiXP4oFllTJgOBcBZQrcLlEzEOB6RHH9Ugdxatyy3g,376
168
+ dodopayments-1.47.0.dist-info/METADATA,sha256=2ehTWwf1RQWf5Ep2SVs84sI3VPceDaCubcWm7_QVVG8,18832
169
+ dodopayments-1.47.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
170
+ dodopayments-1.47.0.dist-info/licenses/LICENSE,sha256=3_sqrBb5J3AT3FsjMKEOBRZhweWVsl_s_RjFlclm1vQ,11343
171
+ dodopayments-1.47.0.dist-info/RECORD,,
@@ -1,326 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
4
-
5
- import typing_extensions
6
- from typing import Union
7
- from datetime import datetime
8
-
9
- import httpx
10
-
11
- from ..types import webhook_event_list_params
12
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
13
- from .._utils import maybe_transform
14
- from .._compat import cached_property
15
- from .._resource import SyncAPIResource, AsyncAPIResource
16
- from .._response import (
17
- to_raw_response_wrapper,
18
- to_streamed_response_wrapper,
19
- async_to_raw_response_wrapper,
20
- async_to_streamed_response_wrapper,
21
- )
22
- from ..pagination import SyncDefaultPageNumberPagination, AsyncDefaultPageNumberPagination
23
- from .._base_client import AsyncPaginator, make_request_options
24
- from ..types.webhook_event import WebhookEvent
25
-
26
- __all__ = ["WebhookEventsResource", "AsyncWebhookEventsResource"]
27
-
28
-
29
- class WebhookEventsResource(SyncAPIResource):
30
- @cached_property
31
- def with_raw_response(self) -> WebhookEventsResourceWithRawResponse:
32
- """
33
- This property can be used as a prefix for any HTTP method call to return
34
- the raw response object instead of the parsed content.
35
-
36
- For more information, see https://www.github.com/dodopayments/dodopayments-python#accessing-raw-response-data-eg-headers
37
- """
38
- return WebhookEventsResourceWithRawResponse(self)
39
-
40
- @cached_property
41
- def with_streaming_response(self) -> WebhookEventsResourceWithStreamingResponse:
42
- """
43
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
44
-
45
- For more information, see https://www.github.com/dodopayments/dodopayments-python#with_streaming_response
46
- """
47
- return WebhookEventsResourceWithStreamingResponse(self)
48
-
49
- @typing_extensions.deprecated("deprecated")
50
- def retrieve(
51
- self,
52
- webhook_event_id: str,
53
- *,
54
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
55
- # The extra values given here take precedence over values defined on the client or passed to this method.
56
- extra_headers: Headers | None = None,
57
- extra_query: Query | None = None,
58
- extra_body: Body | None = None,
59
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
60
- ) -> WebhookEvent:
61
- """
62
- Args:
63
- extra_headers: Send extra headers
64
-
65
- extra_query: Add additional query parameters to the request
66
-
67
- extra_body: Add additional JSON properties to the request
68
-
69
- timeout: Override the client-level default timeout for this request, in seconds
70
- """
71
- if not webhook_event_id:
72
- raise ValueError(f"Expected a non-empty value for `webhook_event_id` but received {webhook_event_id!r}")
73
- return self._get(
74
- f"/webhook_events/{webhook_event_id}",
75
- options=make_request_options(
76
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
77
- ),
78
- cast_to=WebhookEvent,
79
- )
80
-
81
- def list(
82
- self,
83
- *,
84
- created_at_gte: Union[str, datetime] | NotGiven = NOT_GIVEN,
85
- created_at_lte: Union[str, datetime] | NotGiven = NOT_GIVEN,
86
- limit: int | NotGiven = NOT_GIVEN,
87
- object_id: str | NotGiven = NOT_GIVEN,
88
- page_number: int | NotGiven = NOT_GIVEN,
89
- page_size: int | NotGiven = NOT_GIVEN,
90
- webhook_event_id: str | NotGiven = NOT_GIVEN,
91
- webhook_id: str | NotGiven = NOT_GIVEN,
92
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
93
- # The extra values given here take precedence over values defined on the client or passed to this method.
94
- extra_headers: Headers | None = None,
95
- extra_query: Query | None = None,
96
- extra_body: Body | None = None,
97
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
98
- ) -> SyncDefaultPageNumberPagination[WebhookEvent]:
99
- """
100
- Args:
101
- created_at_gte: Get events after this created time
102
-
103
- created_at_lte: Get events created before this time
104
-
105
- limit: Min : 1, Max : 100, default 10
106
-
107
- object_id: Get events history of a specific object like payment/subscription/refund/dispute
108
-
109
- page_number: Page number default is 0
110
-
111
- page_size: Page size default is 10 max is 100
112
-
113
- webhook_event_id: Filter by webhook event id
114
-
115
- webhook_id: Filter by webhook destination
116
-
117
- extra_headers: Send extra headers
118
-
119
- extra_query: Add additional query parameters to the request
120
-
121
- extra_body: Add additional JSON properties to the request
122
-
123
- timeout: Override the client-level default timeout for this request, in seconds
124
- """
125
- return self._get_api_list(
126
- "/webhook_events",
127
- page=SyncDefaultPageNumberPagination[WebhookEvent],
128
- options=make_request_options(
129
- extra_headers=extra_headers,
130
- extra_query=extra_query,
131
- extra_body=extra_body,
132
- timeout=timeout,
133
- query=maybe_transform(
134
- {
135
- "created_at_gte": created_at_gte,
136
- "created_at_lte": created_at_lte,
137
- "limit": limit,
138
- "object_id": object_id,
139
- "page_number": page_number,
140
- "page_size": page_size,
141
- "webhook_event_id": webhook_event_id,
142
- "webhook_id": webhook_id,
143
- },
144
- webhook_event_list_params.WebhookEventListParams,
145
- ),
146
- ),
147
- model=WebhookEvent,
148
- )
149
-
150
-
151
- class AsyncWebhookEventsResource(AsyncAPIResource):
152
- @cached_property
153
- def with_raw_response(self) -> AsyncWebhookEventsResourceWithRawResponse:
154
- """
155
- This property can be used as a prefix for any HTTP method call to return
156
- the raw response object instead of the parsed content.
157
-
158
- For more information, see https://www.github.com/dodopayments/dodopayments-python#accessing-raw-response-data-eg-headers
159
- """
160
- return AsyncWebhookEventsResourceWithRawResponse(self)
161
-
162
- @cached_property
163
- def with_streaming_response(self) -> AsyncWebhookEventsResourceWithStreamingResponse:
164
- """
165
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
166
-
167
- For more information, see https://www.github.com/dodopayments/dodopayments-python#with_streaming_response
168
- """
169
- return AsyncWebhookEventsResourceWithStreamingResponse(self)
170
-
171
- @typing_extensions.deprecated("deprecated")
172
- async def retrieve(
173
- self,
174
- webhook_event_id: str,
175
- *,
176
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
177
- # The extra values given here take precedence over values defined on the client or passed to this method.
178
- extra_headers: Headers | None = None,
179
- extra_query: Query | None = None,
180
- extra_body: Body | None = None,
181
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
182
- ) -> WebhookEvent:
183
- """
184
- Args:
185
- extra_headers: Send extra headers
186
-
187
- extra_query: Add additional query parameters to the request
188
-
189
- extra_body: Add additional JSON properties to the request
190
-
191
- timeout: Override the client-level default timeout for this request, in seconds
192
- """
193
- if not webhook_event_id:
194
- raise ValueError(f"Expected a non-empty value for `webhook_event_id` but received {webhook_event_id!r}")
195
- return await self._get(
196
- f"/webhook_events/{webhook_event_id}",
197
- options=make_request_options(
198
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
199
- ),
200
- cast_to=WebhookEvent,
201
- )
202
-
203
- def list(
204
- self,
205
- *,
206
- created_at_gte: Union[str, datetime] | NotGiven = NOT_GIVEN,
207
- created_at_lte: Union[str, datetime] | NotGiven = NOT_GIVEN,
208
- limit: int | NotGiven = NOT_GIVEN,
209
- object_id: str | NotGiven = NOT_GIVEN,
210
- page_number: int | NotGiven = NOT_GIVEN,
211
- page_size: int | NotGiven = NOT_GIVEN,
212
- webhook_event_id: str | NotGiven = NOT_GIVEN,
213
- webhook_id: str | NotGiven = NOT_GIVEN,
214
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
215
- # The extra values given here take precedence over values defined on the client or passed to this method.
216
- extra_headers: Headers | None = None,
217
- extra_query: Query | None = None,
218
- extra_body: Body | None = None,
219
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
220
- ) -> AsyncPaginator[WebhookEvent, AsyncDefaultPageNumberPagination[WebhookEvent]]:
221
- """
222
- Args:
223
- created_at_gte: Get events after this created time
224
-
225
- created_at_lte: Get events created before this time
226
-
227
- limit: Min : 1, Max : 100, default 10
228
-
229
- object_id: Get events history of a specific object like payment/subscription/refund/dispute
230
-
231
- page_number: Page number default is 0
232
-
233
- page_size: Page size default is 10 max is 100
234
-
235
- webhook_event_id: Filter by webhook event id
236
-
237
- webhook_id: Filter by webhook destination
238
-
239
- extra_headers: Send extra headers
240
-
241
- extra_query: Add additional query parameters to the request
242
-
243
- extra_body: Add additional JSON properties to the request
244
-
245
- timeout: Override the client-level default timeout for this request, in seconds
246
- """
247
- return self._get_api_list(
248
- "/webhook_events",
249
- page=AsyncDefaultPageNumberPagination[WebhookEvent],
250
- options=make_request_options(
251
- extra_headers=extra_headers,
252
- extra_query=extra_query,
253
- extra_body=extra_body,
254
- timeout=timeout,
255
- query=maybe_transform(
256
- {
257
- "created_at_gte": created_at_gte,
258
- "created_at_lte": created_at_lte,
259
- "limit": limit,
260
- "object_id": object_id,
261
- "page_number": page_number,
262
- "page_size": page_size,
263
- "webhook_event_id": webhook_event_id,
264
- "webhook_id": webhook_id,
265
- },
266
- webhook_event_list_params.WebhookEventListParams,
267
- ),
268
- ),
269
- model=WebhookEvent,
270
- )
271
-
272
-
273
- class WebhookEventsResourceWithRawResponse:
274
- def __init__(self, webhook_events: WebhookEventsResource) -> None:
275
- self._webhook_events = webhook_events
276
-
277
- self.retrieve = ( # pyright: ignore[reportDeprecated]
278
- to_raw_response_wrapper(
279
- webhook_events.retrieve # pyright: ignore[reportDeprecated],
280
- )
281
- )
282
- self.list = to_raw_response_wrapper(
283
- webhook_events.list,
284
- )
285
-
286
-
287
- class AsyncWebhookEventsResourceWithRawResponse:
288
- def __init__(self, webhook_events: AsyncWebhookEventsResource) -> None:
289
- self._webhook_events = webhook_events
290
-
291
- self.retrieve = ( # pyright: ignore[reportDeprecated]
292
- async_to_raw_response_wrapper(
293
- webhook_events.retrieve # pyright: ignore[reportDeprecated],
294
- )
295
- )
296
- self.list = async_to_raw_response_wrapper(
297
- webhook_events.list,
298
- )
299
-
300
-
301
- class WebhookEventsResourceWithStreamingResponse:
302
- def __init__(self, webhook_events: WebhookEventsResource) -> None:
303
- self._webhook_events = webhook_events
304
-
305
- self.retrieve = ( # pyright: ignore[reportDeprecated]
306
- to_streamed_response_wrapper(
307
- webhook_events.retrieve # pyright: ignore[reportDeprecated],
308
- )
309
- )
310
- self.list = to_streamed_response_wrapper(
311
- webhook_events.list,
312
- )
313
-
314
-
315
- class AsyncWebhookEventsResourceWithStreamingResponse:
316
- def __init__(self, webhook_events: AsyncWebhookEventsResource) -> None:
317
- self._webhook_events = webhook_events
318
-
319
- self.retrieve = ( # pyright: ignore[reportDeprecated]
320
- async_to_streamed_response_wrapper(
321
- webhook_events.retrieve # pyright: ignore[reportDeprecated],
322
- )
323
- )
324
- self.list = async_to_streamed_response_wrapper(
325
- webhook_events.list,
326
- )
@@ -1,23 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
4
-
5
- from typing import Optional
6
- from typing_extensions import Required, TypedDict
7
-
8
- __all__ = ["CreateNewCustomerParam"]
9
-
10
-
11
- class CreateNewCustomerParam(TypedDict, total=False):
12
- email: Required[str]
13
-
14
- name: Required[str]
15
-
16
- create_new_customer: bool
17
- """
18
- When false, the most recently created customer object with the given email is
19
- used if exists. When true, a new customer object is always created False by
20
- default
21
- """
22
-
23
- phone_number: Optional[str]