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.
- dodopayments/_base_client.py +4 -1
- dodopayments/_client.py +20 -9
- dodopayments/_files.py +4 -4
- dodopayments/_version.py +1 -1
- dodopayments/pagination.py +64 -1
- dodopayments/resources/__init__.py +27 -13
- dodopayments/resources/discounts.py +24 -0
- dodopayments/resources/products/products.py +17 -1
- dodopayments/resources/subscriptions.py +4 -6
- dodopayments/resources/webhooks/__init__.py +33 -0
- dodopayments/resources/webhooks/headers.py +255 -0
- dodopayments/resources/webhooks/webhooks.py +676 -0
- dodopayments/resources/your_webhook_url.py +224 -0
- dodopayments/types/__init__.py +17 -3
- dodopayments/types/addon_cart_response_item_param.py +13 -0
- dodopayments/types/customer_limited_details_param.py +18 -0
- dodopayments/types/customer_request_param.py +2 -2
- dodopayments/types/discount.py +7 -0
- dodopayments/types/discount_create_params.py +7 -0
- dodopayments/types/discount_update_params.py +7 -0
- dodopayments/types/dispute_param.py +45 -0
- dodopayments/types/get_dispute_param.py +52 -0
- dodopayments/types/license_key_param.py +53 -0
- dodopayments/types/new_customer_param.py +16 -0
- dodopayments/types/payment_param.py +131 -0
- dodopayments/types/product.py +4 -1
- dodopayments/types/product_create_params.py +4 -1
- dodopayments/types/product_list_response.py +4 -1
- dodopayments/types/product_update_params.py +4 -1
- dodopayments/types/refund_param.py +42 -0
- dodopayments/types/subscription.py +3 -0
- dodopayments/types/subscription_change_plan_params.py +1 -1
- dodopayments/types/subscription_list_params.py +1 -1
- dodopayments/types/subscription_list_response.py +3 -0
- dodopayments/types/subscription_param.py +97 -0
- dodopayments/types/subscription_status.py +1 -1
- dodopayments/types/webhook_create_params.py +40 -0
- dodopayments/types/webhook_create_response.py +42 -0
- dodopayments/types/webhook_event_type.py +0 -1
- dodopayments/types/webhook_list_params.py +16 -0
- dodopayments/types/webhook_list_response.py +42 -0
- dodopayments/types/webhook_retrieve_response.py +42 -0
- dodopayments/types/webhook_update_params.py +33 -0
- dodopayments/types/webhook_update_response.py +42 -0
- dodopayments/types/webhooks/__init__.py +6 -0
- dodopayments/types/webhooks/header_retrieve_response.py +15 -0
- dodopayments/types/webhooks/header_update_params.py +13 -0
- dodopayments/types/your_webhook_url_create_params.py +66 -0
- {dodopayments-1.43.1.dist-info → dodopayments-1.47.0.dist-info}/METADATA +1 -1
- {dodopayments-1.43.1.dist-info → dodopayments-1.47.0.dist-info}/RECORD +52 -32
- dodopayments/resources/webhook_events.py +0 -326
- dodopayments/types/create_new_customer_param.py +0 -23
- dodopayments/types/webhook_event.py +0 -26
- dodopayments/types/webhook_event_list_params.py +0 -39
- {dodopayments-1.43.1.dist-info → dodopayments-1.47.0.dist-info}/WHEEL +0 -0
- {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"""
|
|
File without changes
|
|
File without changes
|