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.

Files changed (58) hide show
  1. dodopayments/__init__.py +2 -0
  2. dodopayments/_client.py +22 -2
  3. dodopayments/_exceptions.py +4 -0
  4. dodopayments/_version.py +1 -1
  5. dodopayments/resources/checkout_sessions.py +75 -0
  6. dodopayments/resources/subscriptions.py +4 -0
  7. dodopayments/resources/webhooks/webhooks.py +76 -1
  8. dodopayments/types/__init__.py +26 -0
  9. dodopayments/types/checkout_session_status.py +35 -0
  10. dodopayments/types/dispute_accepted_webhook_event.py +29 -0
  11. dodopayments/types/dispute_accepted_webhook_event1.py +29 -0
  12. dodopayments/types/dispute_cancelled_webhook_event.py +29 -0
  13. dodopayments/types/dispute_cancelled_webhook_event1.py +29 -0
  14. dodopayments/types/dispute_challenged_webhook_event.py +29 -0
  15. dodopayments/types/dispute_challenged_webhook_event1.py +29 -0
  16. dodopayments/types/dispute_expired_webhook_event.py +29 -0
  17. dodopayments/types/dispute_expired_webhook_event1.py +29 -0
  18. dodopayments/types/dispute_lost_webhook_event.py +29 -0
  19. dodopayments/types/dispute_lost_webhook_event1.py +29 -0
  20. dodopayments/types/dispute_opened_webhook_event.py +29 -0
  21. dodopayments/types/dispute_opened_webhook_event1.py +29 -0
  22. dodopayments/types/dispute_won_webhook_event.py +29 -0
  23. dodopayments/types/dispute_won_webhook_event1.py +29 -0
  24. dodopayments/types/license_key_created_webhook_event.py +29 -0
  25. dodopayments/types/license_key_created_webhook_event1.py +29 -0
  26. dodopayments/types/payment_cancelled_webhook_event.py +29 -0
  27. dodopayments/types/payment_cancelled_webhook_event1.py +29 -0
  28. dodopayments/types/payment_failed_webhook_event.py +29 -0
  29. dodopayments/types/payment_failed_webhook_event1.py +29 -0
  30. dodopayments/types/payment_processing_webhook_event.py +29 -0
  31. dodopayments/types/payment_processing_webhook_event1.py +29 -0
  32. dodopayments/types/payment_succeeded_webhook_event.py +29 -0
  33. dodopayments/types/payment_succeeded_webhook_event1.py +29 -0
  34. dodopayments/types/refund_failed_webhook_event.py +29 -0
  35. dodopayments/types/refund_failed_webhook_event1.py +29 -0
  36. dodopayments/types/refund_succeeded_webhook_event.py +29 -0
  37. dodopayments/types/refund_succeeded_webhook_event1.py +29 -0
  38. dodopayments/types/subscription_active_webhook_event.py +29 -0
  39. dodopayments/types/subscription_active_webhook_event1.py +29 -0
  40. dodopayments/types/subscription_cancelled_webhook_event.py +29 -0
  41. dodopayments/types/subscription_cancelled_webhook_event1.py +29 -0
  42. dodopayments/types/subscription_expired_webhook_event.py +29 -0
  43. dodopayments/types/subscription_expired_webhook_event1.py +29 -0
  44. dodopayments/types/subscription_failed_webhook_event.py +29 -0
  45. dodopayments/types/subscription_failed_webhook_event1.py +29 -0
  46. dodopayments/types/subscription_on_hold_webhook_event.py +29 -0
  47. dodopayments/types/subscription_on_hold_webhook_event1.py +29 -0
  48. dodopayments/types/subscription_plan_changed_webhook_event.py +29 -0
  49. dodopayments/types/subscription_plan_changed_webhook_event1.py +29 -0
  50. dodopayments/types/subscription_renewed_webhook_event.py +29 -0
  51. dodopayments/types/subscription_renewed_webhook_event1.py +29 -0
  52. dodopayments/types/subscription_update_params.py +2 -0
  53. dodopayments/types/unsafe_unwrap_webhook_event.py +52 -0
  54. dodopayments/types/unwrap_webhook_event.py +52 -0
  55. {dodopayments-1.55.7.dist-info → dodopayments-1.56.2.dist-info}/METADATA +4 -2
  56. {dodopayments-1.55.7.dist-info → dodopayments-1.56.2.dist-info}/RECORD +58 -13
  57. {dodopayments-1.55.7.dist-info → dodopayments-1.56.2.dist-info}/WHEEL +0 -0
  58. {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.55.7
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.8; extra == 'aiohttp'
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