dodopayments 1.55.7__py3-none-any.whl → 1.56.2__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/__init__.py +2 -0
- dodopayments/_client.py +22 -2
- dodopayments/_exceptions.py +4 -0
- dodopayments/_version.py +1 -1
- dodopayments/resources/checkout_sessions.py +75 -0
- dodopayments/resources/subscriptions.py +4 -0
- dodopayments/resources/webhooks/webhooks.py +76 -1
- dodopayments/types/__init__.py +26 -0
- dodopayments/types/checkout_session_status.py +35 -0
- dodopayments/types/dispute_accepted_webhook_event.py +29 -0
- dodopayments/types/dispute_accepted_webhook_event1.py +29 -0
- dodopayments/types/dispute_cancelled_webhook_event.py +29 -0
- dodopayments/types/dispute_cancelled_webhook_event1.py +29 -0
- dodopayments/types/dispute_challenged_webhook_event.py +29 -0
- dodopayments/types/dispute_challenged_webhook_event1.py +29 -0
- dodopayments/types/dispute_expired_webhook_event.py +29 -0
- dodopayments/types/dispute_expired_webhook_event1.py +29 -0
- dodopayments/types/dispute_lost_webhook_event.py +29 -0
- dodopayments/types/dispute_lost_webhook_event1.py +29 -0
- dodopayments/types/dispute_opened_webhook_event.py +29 -0
- dodopayments/types/dispute_opened_webhook_event1.py +29 -0
- dodopayments/types/dispute_won_webhook_event.py +29 -0
- dodopayments/types/dispute_won_webhook_event1.py +29 -0
- dodopayments/types/license_key_created_webhook_event.py +29 -0
- dodopayments/types/license_key_created_webhook_event1.py +29 -0
- dodopayments/types/payment_cancelled_webhook_event.py +29 -0
- dodopayments/types/payment_cancelled_webhook_event1.py +29 -0
- dodopayments/types/payment_failed_webhook_event.py +29 -0
- dodopayments/types/payment_failed_webhook_event1.py +29 -0
- dodopayments/types/payment_processing_webhook_event.py +29 -0
- dodopayments/types/payment_processing_webhook_event1.py +29 -0
- dodopayments/types/payment_succeeded_webhook_event.py +29 -0
- dodopayments/types/payment_succeeded_webhook_event1.py +29 -0
- dodopayments/types/refund_failed_webhook_event.py +29 -0
- dodopayments/types/refund_failed_webhook_event1.py +29 -0
- dodopayments/types/refund_succeeded_webhook_event.py +29 -0
- dodopayments/types/refund_succeeded_webhook_event1.py +29 -0
- dodopayments/types/subscription_active_webhook_event.py +29 -0
- dodopayments/types/subscription_active_webhook_event1.py +29 -0
- dodopayments/types/subscription_cancelled_webhook_event.py +29 -0
- dodopayments/types/subscription_cancelled_webhook_event1.py +29 -0
- dodopayments/types/subscription_expired_webhook_event.py +29 -0
- dodopayments/types/subscription_expired_webhook_event1.py +29 -0
- dodopayments/types/subscription_failed_webhook_event.py +29 -0
- dodopayments/types/subscription_failed_webhook_event1.py +29 -0
- dodopayments/types/subscription_on_hold_webhook_event.py +29 -0
- dodopayments/types/subscription_on_hold_webhook_event1.py +29 -0
- dodopayments/types/subscription_plan_changed_webhook_event.py +29 -0
- dodopayments/types/subscription_plan_changed_webhook_event1.py +29 -0
- dodopayments/types/subscription_renewed_webhook_event.py +29 -0
- dodopayments/types/subscription_renewed_webhook_event1.py +29 -0
- dodopayments/types/subscription_update_params.py +2 -0
- dodopayments/types/unsafe_unwrap_webhook_event.py +52 -0
- dodopayments/types/unwrap_webhook_event.py +52 -0
- {dodopayments-1.55.7.dist-info → dodopayments-1.56.2.dist-info}/METADATA +4 -2
- {dodopayments-1.55.7.dist-info → dodopayments-1.56.2.dist-info}/RECORD +58 -13
- {dodopayments-1.55.7.dist-info → dodopayments-1.56.2.dist-info}/WHEEL +0 -0
- {dodopayments-1.55.7.dist-info → dodopayments-1.56.2.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from .refund import Refund
|
|
8
|
+
from .._models import BaseModel
|
|
9
|
+
|
|
10
|
+
__all__ = ["RefundSucceededWebhookEvent", "Data"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Data(Refund):
|
|
14
|
+
payload_type: Optional[Literal["Refund"]] = None
|
|
15
|
+
"""The type of payload in the data field"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class RefundSucceededWebhookEvent(BaseModel):
|
|
19
|
+
business_id: str
|
|
20
|
+
"""The business identifier"""
|
|
21
|
+
|
|
22
|
+
data: Data
|
|
23
|
+
"""Event-specific data"""
|
|
24
|
+
|
|
25
|
+
timestamp: datetime
|
|
26
|
+
"""The timestamp of when the event occurred"""
|
|
27
|
+
|
|
28
|
+
type: Literal["refund.succeeded"]
|
|
29
|
+
"""The event type"""
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
from .subscription import Subscription
|
|
9
|
+
|
|
10
|
+
__all__ = ["SubscriptionActiveWebhookEvent", "Data"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Data(Subscription):
|
|
14
|
+
payload_type: Optional[Literal["Subscription"]] = None
|
|
15
|
+
"""The type of payload in the data field"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class SubscriptionActiveWebhookEvent(BaseModel):
|
|
19
|
+
business_id: str
|
|
20
|
+
"""The business identifier"""
|
|
21
|
+
|
|
22
|
+
data: Data
|
|
23
|
+
"""Event-specific data"""
|
|
24
|
+
|
|
25
|
+
timestamp: datetime
|
|
26
|
+
"""The timestamp of when the event occurred"""
|
|
27
|
+
|
|
28
|
+
type: Literal["subscription.active"]
|
|
29
|
+
"""The event type"""
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
from .subscription import Subscription
|
|
9
|
+
|
|
10
|
+
__all__ = ["SubscriptionActiveWebhookEvent", "Data"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Data(Subscription):
|
|
14
|
+
payload_type: Optional[Literal["Subscription"]] = None
|
|
15
|
+
"""The type of payload in the data field"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class SubscriptionActiveWebhookEvent(BaseModel):
|
|
19
|
+
business_id: str
|
|
20
|
+
"""The business identifier"""
|
|
21
|
+
|
|
22
|
+
data: Data
|
|
23
|
+
"""Event-specific data"""
|
|
24
|
+
|
|
25
|
+
timestamp: datetime
|
|
26
|
+
"""The timestamp of when the event occurred"""
|
|
27
|
+
|
|
28
|
+
type: Literal["subscription.active"]
|
|
29
|
+
"""The event type"""
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
from .subscription import Subscription
|
|
9
|
+
|
|
10
|
+
__all__ = ["SubscriptionCancelledWebhookEvent", "Data"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Data(Subscription):
|
|
14
|
+
payload_type: Optional[Literal["Subscription"]] = None
|
|
15
|
+
"""The type of payload in the data field"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class SubscriptionCancelledWebhookEvent(BaseModel):
|
|
19
|
+
business_id: str
|
|
20
|
+
"""The business identifier"""
|
|
21
|
+
|
|
22
|
+
data: Data
|
|
23
|
+
"""Event-specific data"""
|
|
24
|
+
|
|
25
|
+
timestamp: datetime
|
|
26
|
+
"""The timestamp of when the event occurred"""
|
|
27
|
+
|
|
28
|
+
type: Literal["subscription.cancelled"]
|
|
29
|
+
"""The event type"""
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
from .subscription import Subscription
|
|
9
|
+
|
|
10
|
+
__all__ = ["SubscriptionCancelledWebhookEvent", "Data"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Data(Subscription):
|
|
14
|
+
payload_type: Optional[Literal["Subscription"]] = None
|
|
15
|
+
"""The type of payload in the data field"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class SubscriptionCancelledWebhookEvent(BaseModel):
|
|
19
|
+
business_id: str
|
|
20
|
+
"""The business identifier"""
|
|
21
|
+
|
|
22
|
+
data: Data
|
|
23
|
+
"""Event-specific data"""
|
|
24
|
+
|
|
25
|
+
timestamp: datetime
|
|
26
|
+
"""The timestamp of when the event occurred"""
|
|
27
|
+
|
|
28
|
+
type: Literal["subscription.cancelled"]
|
|
29
|
+
"""The event type"""
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
from .subscription import Subscription
|
|
9
|
+
|
|
10
|
+
__all__ = ["SubscriptionExpiredWebhookEvent", "Data"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Data(Subscription):
|
|
14
|
+
payload_type: Optional[Literal["Subscription"]] = None
|
|
15
|
+
"""The type of payload in the data field"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class SubscriptionExpiredWebhookEvent(BaseModel):
|
|
19
|
+
business_id: str
|
|
20
|
+
"""The business identifier"""
|
|
21
|
+
|
|
22
|
+
data: Data
|
|
23
|
+
"""Event-specific data"""
|
|
24
|
+
|
|
25
|
+
timestamp: datetime
|
|
26
|
+
"""The timestamp of when the event occurred"""
|
|
27
|
+
|
|
28
|
+
type: Literal["subscription.expired"]
|
|
29
|
+
"""The event type"""
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
from .subscription import Subscription
|
|
9
|
+
|
|
10
|
+
__all__ = ["SubscriptionExpiredWebhookEvent", "Data"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Data(Subscription):
|
|
14
|
+
payload_type: Optional[Literal["Subscription"]] = None
|
|
15
|
+
"""The type of payload in the data field"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class SubscriptionExpiredWebhookEvent(BaseModel):
|
|
19
|
+
business_id: str
|
|
20
|
+
"""The business identifier"""
|
|
21
|
+
|
|
22
|
+
data: Data
|
|
23
|
+
"""Event-specific data"""
|
|
24
|
+
|
|
25
|
+
timestamp: datetime
|
|
26
|
+
"""The timestamp of when the event occurred"""
|
|
27
|
+
|
|
28
|
+
type: Literal["subscription.expired"]
|
|
29
|
+
"""The event type"""
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
from .subscription import Subscription
|
|
9
|
+
|
|
10
|
+
__all__ = ["SubscriptionFailedWebhookEvent", "Data"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Data(Subscription):
|
|
14
|
+
payload_type: Optional[Literal["Subscription"]] = None
|
|
15
|
+
"""The type of payload in the data field"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class SubscriptionFailedWebhookEvent(BaseModel):
|
|
19
|
+
business_id: str
|
|
20
|
+
"""The business identifier"""
|
|
21
|
+
|
|
22
|
+
data: Data
|
|
23
|
+
"""Event-specific data"""
|
|
24
|
+
|
|
25
|
+
timestamp: datetime
|
|
26
|
+
"""The timestamp of when the event occurred"""
|
|
27
|
+
|
|
28
|
+
type: Literal["subscription.failed"]
|
|
29
|
+
"""The event type"""
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
from .subscription import Subscription
|
|
9
|
+
|
|
10
|
+
__all__ = ["SubscriptionFailedWebhookEvent", "Data"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Data(Subscription):
|
|
14
|
+
payload_type: Optional[Literal["Subscription"]] = None
|
|
15
|
+
"""The type of payload in the data field"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class SubscriptionFailedWebhookEvent(BaseModel):
|
|
19
|
+
business_id: str
|
|
20
|
+
"""The business identifier"""
|
|
21
|
+
|
|
22
|
+
data: Data
|
|
23
|
+
"""Event-specific data"""
|
|
24
|
+
|
|
25
|
+
timestamp: datetime
|
|
26
|
+
"""The timestamp of when the event occurred"""
|
|
27
|
+
|
|
28
|
+
type: Literal["subscription.failed"]
|
|
29
|
+
"""The event type"""
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
from .subscription import Subscription
|
|
9
|
+
|
|
10
|
+
__all__ = ["SubscriptionOnHoldWebhookEvent", "Data"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Data(Subscription):
|
|
14
|
+
payload_type: Optional[Literal["Subscription"]] = None
|
|
15
|
+
"""The type of payload in the data field"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class SubscriptionOnHoldWebhookEvent(BaseModel):
|
|
19
|
+
business_id: str
|
|
20
|
+
"""The business identifier"""
|
|
21
|
+
|
|
22
|
+
data: Data
|
|
23
|
+
"""Event-specific data"""
|
|
24
|
+
|
|
25
|
+
timestamp: datetime
|
|
26
|
+
"""The timestamp of when the event occurred"""
|
|
27
|
+
|
|
28
|
+
type: Literal["subscription.on_hold"]
|
|
29
|
+
"""The event type"""
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
from .subscription import Subscription
|
|
9
|
+
|
|
10
|
+
__all__ = ["SubscriptionOnHoldWebhookEvent", "Data"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Data(Subscription):
|
|
14
|
+
payload_type: Optional[Literal["Subscription"]] = None
|
|
15
|
+
"""The type of payload in the data field"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class SubscriptionOnHoldWebhookEvent(BaseModel):
|
|
19
|
+
business_id: str
|
|
20
|
+
"""The business identifier"""
|
|
21
|
+
|
|
22
|
+
data: Data
|
|
23
|
+
"""Event-specific data"""
|
|
24
|
+
|
|
25
|
+
timestamp: datetime
|
|
26
|
+
"""The timestamp of when the event occurred"""
|
|
27
|
+
|
|
28
|
+
type: Literal["subscription.on_hold"]
|
|
29
|
+
"""The event type"""
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
from .subscription import Subscription
|
|
9
|
+
|
|
10
|
+
__all__ = ["SubscriptionPlanChangedWebhookEvent", "Data"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Data(Subscription):
|
|
14
|
+
payload_type: Optional[Literal["Subscription"]] = None
|
|
15
|
+
"""The type of payload in the data field"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class SubscriptionPlanChangedWebhookEvent(BaseModel):
|
|
19
|
+
business_id: str
|
|
20
|
+
"""The business identifier"""
|
|
21
|
+
|
|
22
|
+
data: Data
|
|
23
|
+
"""Event-specific data"""
|
|
24
|
+
|
|
25
|
+
timestamp: datetime
|
|
26
|
+
"""The timestamp of when the event occurred"""
|
|
27
|
+
|
|
28
|
+
type: Literal["subscription.plan_changed"]
|
|
29
|
+
"""The event type"""
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
from .subscription import Subscription
|
|
9
|
+
|
|
10
|
+
__all__ = ["SubscriptionPlanChangedWebhookEvent", "Data"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Data(Subscription):
|
|
14
|
+
payload_type: Optional[Literal["Subscription"]] = None
|
|
15
|
+
"""The type of payload in the data field"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class SubscriptionPlanChangedWebhookEvent(BaseModel):
|
|
19
|
+
business_id: str
|
|
20
|
+
"""The business identifier"""
|
|
21
|
+
|
|
22
|
+
data: Data
|
|
23
|
+
"""Event-specific data"""
|
|
24
|
+
|
|
25
|
+
timestamp: datetime
|
|
26
|
+
"""The timestamp of when the event occurred"""
|
|
27
|
+
|
|
28
|
+
type: Literal["subscription.plan_changed"]
|
|
29
|
+
"""The event type"""
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
from .subscription import Subscription
|
|
9
|
+
|
|
10
|
+
__all__ = ["SubscriptionRenewedWebhookEvent", "Data"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Data(Subscription):
|
|
14
|
+
payload_type: Optional[Literal["Subscription"]] = None
|
|
15
|
+
"""The type of payload in the data field"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class SubscriptionRenewedWebhookEvent(BaseModel):
|
|
19
|
+
business_id: str
|
|
20
|
+
"""The business identifier"""
|
|
21
|
+
|
|
22
|
+
data: Data
|
|
23
|
+
"""Event-specific data"""
|
|
24
|
+
|
|
25
|
+
timestamp: datetime
|
|
26
|
+
"""The timestamp of when the event occurred"""
|
|
27
|
+
|
|
28
|
+
type: Literal["subscription.renewed"]
|
|
29
|
+
"""The event type"""
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
from .subscription import Subscription
|
|
9
|
+
|
|
10
|
+
__all__ = ["SubscriptionRenewedWebhookEvent", "Data"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Data(Subscription):
|
|
14
|
+
payload_type: Optional[Literal["Subscription"]] = None
|
|
15
|
+
"""The type of payload in the data field"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class SubscriptionRenewedWebhookEvent(BaseModel):
|
|
19
|
+
business_id: str
|
|
20
|
+
"""The business identifier"""
|
|
21
|
+
|
|
22
|
+
data: Data
|
|
23
|
+
"""Event-specific data"""
|
|
24
|
+
|
|
25
|
+
timestamp: datetime
|
|
26
|
+
"""The timestamp of when the event occurred"""
|
|
27
|
+
|
|
28
|
+
type: Literal["subscription.renewed"]
|
|
29
|
+
"""The event type"""
|
|
@@ -19,6 +19,8 @@ class SubscriptionUpdateParams(TypedDict, total=False):
|
|
|
19
19
|
cancel_at_next_billing_date: Optional[bool]
|
|
20
20
|
"""When set, the subscription will remain active until the end of billing period"""
|
|
21
21
|
|
|
22
|
+
customer_name: Optional[str]
|
|
23
|
+
|
|
22
24
|
disable_on_demand: Optional[DisableOnDemand]
|
|
23
25
|
|
|
24
26
|
metadata: Optional[Dict[str, str]]
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Union
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .dispute_won_webhook_event import DisputeWonWebhookEvent
|
|
7
|
+
from .dispute_lost_webhook_event import DisputeLostWebhookEvent
|
|
8
|
+
from .refund_failed_webhook_event import RefundFailedWebhookEvent
|
|
9
|
+
from .dispute_opened_webhook_event import DisputeOpenedWebhookEvent
|
|
10
|
+
from .payment_failed_webhook_event import PaymentFailedWebhookEvent
|
|
11
|
+
from .dispute_expired_webhook_event import DisputeExpiredWebhookEvent
|
|
12
|
+
from .dispute_accepted_webhook_event import DisputeAcceptedWebhookEvent
|
|
13
|
+
from .refund_succeeded_webhook_event import RefundSucceededWebhookEvent
|
|
14
|
+
from .dispute_cancelled_webhook_event import DisputeCancelledWebhookEvent
|
|
15
|
+
from .payment_cancelled_webhook_event import PaymentCancelledWebhookEvent
|
|
16
|
+
from .payment_succeeded_webhook_event import PaymentSucceededWebhookEvent
|
|
17
|
+
from .dispute_challenged_webhook_event import DisputeChallengedWebhookEvent
|
|
18
|
+
from .payment_processing_webhook_event import PaymentProcessingWebhookEvent
|
|
19
|
+
from .license_key_created_webhook_event import LicenseKeyCreatedWebhookEvent
|
|
20
|
+
from .subscription_active_webhook_event import SubscriptionActiveWebhookEvent
|
|
21
|
+
from .subscription_failed_webhook_event import SubscriptionFailedWebhookEvent
|
|
22
|
+
from .subscription_expired_webhook_event import SubscriptionExpiredWebhookEvent
|
|
23
|
+
from .subscription_on_hold_webhook_event import SubscriptionOnHoldWebhookEvent
|
|
24
|
+
from .subscription_renewed_webhook_event import SubscriptionRenewedWebhookEvent
|
|
25
|
+
from .subscription_cancelled_webhook_event import SubscriptionCancelledWebhookEvent
|
|
26
|
+
from .subscription_plan_changed_webhook_event import SubscriptionPlanChangedWebhookEvent
|
|
27
|
+
|
|
28
|
+
__all__ = ["UnsafeUnwrapWebhookEvent"]
|
|
29
|
+
|
|
30
|
+
UnsafeUnwrapWebhookEvent: TypeAlias = Union[
|
|
31
|
+
DisputeAcceptedWebhookEvent,
|
|
32
|
+
DisputeCancelledWebhookEvent,
|
|
33
|
+
DisputeChallengedWebhookEvent,
|
|
34
|
+
DisputeExpiredWebhookEvent,
|
|
35
|
+
DisputeLostWebhookEvent,
|
|
36
|
+
DisputeOpenedWebhookEvent,
|
|
37
|
+
DisputeWonWebhookEvent,
|
|
38
|
+
LicenseKeyCreatedWebhookEvent,
|
|
39
|
+
PaymentCancelledWebhookEvent,
|
|
40
|
+
PaymentFailedWebhookEvent,
|
|
41
|
+
PaymentProcessingWebhookEvent,
|
|
42
|
+
PaymentSucceededWebhookEvent,
|
|
43
|
+
RefundFailedWebhookEvent,
|
|
44
|
+
RefundSucceededWebhookEvent,
|
|
45
|
+
SubscriptionActiveWebhookEvent,
|
|
46
|
+
SubscriptionCancelledWebhookEvent,
|
|
47
|
+
SubscriptionExpiredWebhookEvent,
|
|
48
|
+
SubscriptionFailedWebhookEvent,
|
|
49
|
+
SubscriptionOnHoldWebhookEvent,
|
|
50
|
+
SubscriptionPlanChangedWebhookEvent,
|
|
51
|
+
SubscriptionRenewedWebhookEvent,
|
|
52
|
+
]
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Union
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .dispute_won_webhook_event import DisputeWonWebhookEvent
|
|
7
|
+
from .dispute_lost_webhook_event import DisputeLostWebhookEvent
|
|
8
|
+
from .refund_failed_webhook_event import RefundFailedWebhookEvent
|
|
9
|
+
from .dispute_opened_webhook_event import DisputeOpenedWebhookEvent
|
|
10
|
+
from .payment_failed_webhook_event import PaymentFailedWebhookEvent
|
|
11
|
+
from .dispute_expired_webhook_event import DisputeExpiredWebhookEvent
|
|
12
|
+
from .dispute_accepted_webhook_event import DisputeAcceptedWebhookEvent
|
|
13
|
+
from .refund_succeeded_webhook_event import RefundSucceededWebhookEvent
|
|
14
|
+
from .dispute_cancelled_webhook_event import DisputeCancelledWebhookEvent
|
|
15
|
+
from .payment_cancelled_webhook_event import PaymentCancelledWebhookEvent
|
|
16
|
+
from .payment_succeeded_webhook_event import PaymentSucceededWebhookEvent
|
|
17
|
+
from .dispute_challenged_webhook_event import DisputeChallengedWebhookEvent
|
|
18
|
+
from .payment_processing_webhook_event import PaymentProcessingWebhookEvent
|
|
19
|
+
from .license_key_created_webhook_event import LicenseKeyCreatedWebhookEvent
|
|
20
|
+
from .subscription_active_webhook_event import SubscriptionActiveWebhookEvent
|
|
21
|
+
from .subscription_failed_webhook_event import SubscriptionFailedWebhookEvent
|
|
22
|
+
from .subscription_expired_webhook_event import SubscriptionExpiredWebhookEvent
|
|
23
|
+
from .subscription_on_hold_webhook_event import SubscriptionOnHoldWebhookEvent
|
|
24
|
+
from .subscription_renewed_webhook_event import SubscriptionRenewedWebhookEvent
|
|
25
|
+
from .subscription_cancelled_webhook_event import SubscriptionCancelledWebhookEvent
|
|
26
|
+
from .subscription_plan_changed_webhook_event import SubscriptionPlanChangedWebhookEvent
|
|
27
|
+
|
|
28
|
+
__all__ = ["UnwrapWebhookEvent"]
|
|
29
|
+
|
|
30
|
+
UnwrapWebhookEvent: TypeAlias = Union[
|
|
31
|
+
DisputeAcceptedWebhookEvent,
|
|
32
|
+
DisputeCancelledWebhookEvent,
|
|
33
|
+
DisputeChallengedWebhookEvent,
|
|
34
|
+
DisputeExpiredWebhookEvent,
|
|
35
|
+
DisputeLostWebhookEvent,
|
|
36
|
+
DisputeOpenedWebhookEvent,
|
|
37
|
+
DisputeWonWebhookEvent,
|
|
38
|
+
LicenseKeyCreatedWebhookEvent,
|
|
39
|
+
PaymentCancelledWebhookEvent,
|
|
40
|
+
PaymentFailedWebhookEvent,
|
|
41
|
+
PaymentProcessingWebhookEvent,
|
|
42
|
+
PaymentSucceededWebhookEvent,
|
|
43
|
+
RefundFailedWebhookEvent,
|
|
44
|
+
RefundSucceededWebhookEvent,
|
|
45
|
+
SubscriptionActiveWebhookEvent,
|
|
46
|
+
SubscriptionCancelledWebhookEvent,
|
|
47
|
+
SubscriptionExpiredWebhookEvent,
|
|
48
|
+
SubscriptionFailedWebhookEvent,
|
|
49
|
+
SubscriptionOnHoldWebhookEvent,
|
|
50
|
+
SubscriptionPlanChangedWebhookEvent,
|
|
51
|
+
SubscriptionRenewedWebhookEvent,
|
|
52
|
+
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: dodopayments
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.56.2
|
|
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
|
|
@@ -30,7 +30,9 @@ Requires-Dist: sniffio
|
|
|
30
30
|
Requires-Dist: typing-extensions<5,>=4.10
|
|
31
31
|
Provides-Extra: aiohttp
|
|
32
32
|
Requires-Dist: aiohttp; extra == 'aiohttp'
|
|
33
|
-
Requires-Dist: httpx-aiohttp>=0.1.
|
|
33
|
+
Requires-Dist: httpx-aiohttp>=0.1.9; extra == 'aiohttp'
|
|
34
|
+
Provides-Extra: webhooks
|
|
35
|
+
Requires-Dist: standardwebhooks; extra == 'webhooks'
|
|
34
36
|
Description-Content-Type: text/markdown
|
|
35
37
|
|
|
36
38
|
# Dodo Payments Python API library
|