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
@@ -1,26 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import Optional
4
- from datetime import datetime
5
-
6
- from .._models import BaseModel
7
-
8
- __all__ = ["WebhookEvent"]
9
-
10
-
11
- class WebhookEvent(BaseModel):
12
- business_id: str
13
-
14
- created_at: datetime
15
-
16
- event_id: str
17
-
18
- event_type: str
19
-
20
- object_id: str
21
-
22
- latest_attempted_at: Optional[datetime] = None
23
-
24
- request: Optional[str] = None
25
-
26
- response: Optional[str] = None
@@ -1,39 +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 Union
6
- from datetime import datetime
7
- from typing_extensions import Annotated, TypedDict
8
-
9
- from .._utils import PropertyInfo
10
-
11
- __all__ = ["WebhookEventListParams"]
12
-
13
-
14
- class WebhookEventListParams(TypedDict, total=False):
15
- created_at_gte: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
16
- """Get events after this created time"""
17
-
18
- created_at_lte: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
19
- """Get events created before this time"""
20
-
21
- limit: int
22
- """Min : 1, Max : 100, default 10"""
23
-
24
- object_id: str
25
- """
26
- Get events history of a specific object like payment/subscription/refund/dispute
27
- """
28
-
29
- page_number: int
30
- """Page number default is 0"""
31
-
32
- page_size: int
33
- """Page size default is 10 max is 100"""
34
-
35
- webhook_event_id: str
36
- """Filter by webhook event id"""
37
-
38
- webhook_id: str
39
- """Filter by webhook destination"""