dodopayments 2.23.0 → 2.25.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/dodopayments/models/brand.rb +9 -1
- data/lib/dodopayments/models/brand_archive_params.rb +35 -0
- data/lib/dodopayments/models/brand_archive_response.rb +57 -0
- data/lib/dodopayments/models/brand_list_params.rb +9 -1
- data/lib/dodopayments/models/checkout_session_flags.rb +13 -1
- data/lib/dodopayments/models/subscription.rb +10 -1
- data/lib/dodopayments/models/subscription_list_params.rb +1 -0
- data/lib/dodopayments/models/subscription_list_response.rb +10 -1
- data/lib/dodopayments/models/subscription_paused_webhook_event.rb +40 -0
- data/lib/dodopayments/models/subscription_status.rb +1 -0
- data/lib/dodopayments/models/subscription_unpaused_webhook_event.rb +40 -0
- data/lib/dodopayments/models/subscription_update_params.rb +10 -1
- data/lib/dodopayments/models/unsafe_unwrap_webhook_event.rb +5 -1
- data/lib/dodopayments/models/unwrap_webhook_event.rb +5 -1
- data/lib/dodopayments/models/webhook_event_type.rb +1 -0
- data/lib/dodopayments/models.rb +6 -0
- data/lib/dodopayments/resources/brands.rb +35 -2
- data/lib/dodopayments/resources/subscriptions.rb +3 -1
- data/lib/dodopayments/resources/webhooks.rb +2 -2
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +4 -0
- data/rbi/dodopayments/models/brand.rbi +8 -0
- data/rbi/dodopayments/models/brand_archive_params.rbi +58 -0
- data/rbi/dodopayments/models/brand_archive_response.rbi +80 -0
- data/rbi/dodopayments/models/brand_list_params.rbi +22 -5
- data/rbi/dodopayments/models/checkout_session_flags.rbi +22 -3
- data/rbi/dodopayments/models/subscription.rbi +10 -0
- data/rbi/dodopayments/models/subscription_list_params.rbi +5 -0
- data/rbi/dodopayments/models/subscription_list_response.rbi +10 -0
- data/rbi/dodopayments/models/subscription_paused_webhook_event.rbi +67 -0
- data/rbi/dodopayments/models/subscription_status.rbi +1 -0
- data/rbi/dodopayments/models/subscription_unpaused_webhook_event.rbi +67 -0
- data/rbi/dodopayments/models/subscription_update_params.rbi +10 -0
- data/rbi/dodopayments/models/unsafe_unwrap_webhook_event.rbi +2 -0
- data/rbi/dodopayments/models/unwrap_webhook_event.rbi +2 -0
- data/rbi/dodopayments/models/webhook_event_type.rbi +5 -0
- data/rbi/dodopayments/models.rbi +8 -0
- data/rbi/dodopayments/resources/brands.rbi +30 -4
- data/rbi/dodopayments/resources/subscriptions.rbi +4 -0
- data/rbi/dodopayments/resources/webhooks.rbi +4 -0
- data/sig/dodopayments/models/brand.rbs +5 -0
- data/sig/dodopayments/models/brand_archive_params.rbs +28 -0
- data/sig/dodopayments/models/brand_archive_response.rbs +45 -0
- data/sig/dodopayments/models/brand_list_params.rbs +14 -3
- data/sig/dodopayments/models/checkout_session_flags.rbs +10 -3
- data/sig/dodopayments/models/subscription.rbs +5 -0
- data/sig/dodopayments/models/subscription_list_params.rbs +8 -1
- data/sig/dodopayments/models/subscription_list_response.rbs +5 -0
- data/sig/dodopayments/models/subscription_paused_webhook_event.rbs +35 -0
- data/sig/dodopayments/models/subscription_status.rbs +2 -1
- data/sig/dodopayments/models/subscription_unpaused_webhook_event.rbs +35 -0
- data/sig/dodopayments/models/subscription_update_params.rbs +5 -0
- data/sig/dodopayments/models/unsafe_unwrap_webhook_event.rbs +2 -0
- data/sig/dodopayments/models/unwrap_webhook_event.rbs +2 -0
- data/sig/dodopayments/models/webhook_event_type.rbs +2 -0
- data/sig/dodopayments/models.rbs +6 -0
- data/sig/dodopayments/resources/brands.rbs +7 -0
- data/sig/dodopayments/resources/subscriptions.rbs +1 -0
- data/sig/dodopayments/resources/webhooks.rbs +4 -0
- metadata +14 -2
|
@@ -153,6 +153,7 @@ module Dodopayments
|
|
|
153
153
|
metadata:
|
|
154
154
|
T.nilable(T::Hash[Symbol, Dodopayments::MetadataItem::Variants]),
|
|
155
155
|
next_billing_date: T.nilable(Time),
|
|
156
|
+
pause: T.nilable(T::Boolean),
|
|
156
157
|
status: T.nilable(Dodopayments::SubscriptionStatus::OrSymbol),
|
|
157
158
|
subscription_period_count: T.nilable(Integer),
|
|
158
159
|
subscription_period_interval:
|
|
@@ -186,6 +187,9 @@ module Dodopayments
|
|
|
186
187
|
# Arbitrary key-value metadata. Values can be string, integer, number, or boolean.
|
|
187
188
|
metadata: nil,
|
|
188
189
|
next_billing_date: nil,
|
|
190
|
+
# `Some(true)` pauses an active subscription; `Some(false)` unpauses a `Paused`
|
|
191
|
+
# (or abandoned `OnHold`) subscription. Exclusive of every other field.
|
|
192
|
+
pause: nil,
|
|
189
193
|
status: nil,
|
|
190
194
|
# New number of `subscription_period_interval` units the subscription entitlement
|
|
191
195
|
# should span. Used together with `subscription_period_interval` to extend the
|
|
@@ -185,8 +185,10 @@ module Dodopayments
|
|
|
185
185
|
Dodopayments::SubscriptionExpiredWebhookEvent,
|
|
186
186
|
Dodopayments::SubscriptionFailedWebhookEvent,
|
|
187
187
|
Dodopayments::SubscriptionOnHoldWebhookEvent,
|
|
188
|
+
Dodopayments::SubscriptionPausedWebhookEvent,
|
|
188
189
|
Dodopayments::SubscriptionPlanChangedWebhookEvent,
|
|
189
190
|
Dodopayments::SubscriptionRenewedWebhookEvent,
|
|
191
|
+
Dodopayments::SubscriptionUnpausedWebhookEvent,
|
|
190
192
|
Dodopayments::SubscriptionUpdatePaymentMethodWebhookEvent,
|
|
191
193
|
Dodopayments::SubscriptionUpdatedWebhookEvent
|
|
192
194
|
)
|
|
@@ -246,8 +248,10 @@ module Dodopayments
|
|
|
246
248
|
Dodopayments::SubscriptionExpiredWebhookEvent,
|
|
247
249
|
Dodopayments::SubscriptionFailedWebhookEvent,
|
|
248
250
|
Dodopayments::SubscriptionOnHoldWebhookEvent,
|
|
251
|
+
Dodopayments::SubscriptionPausedWebhookEvent,
|
|
249
252
|
Dodopayments::SubscriptionPlanChangedWebhookEvent,
|
|
250
253
|
Dodopayments::SubscriptionRenewedWebhookEvent,
|
|
254
|
+
Dodopayments::SubscriptionUnpausedWebhookEvent,
|
|
251
255
|
Dodopayments::SubscriptionUpdatePaymentMethodWebhookEvent,
|
|
252
256
|
Dodopayments::SubscriptionUpdatedWebhookEvent
|
|
253
257
|
)
|
|
@@ -8,6 +8,7 @@ module Dodopayments
|
|
|
8
8
|
statement_descriptor: String,
|
|
9
9
|
verification_enabled: bool,
|
|
10
10
|
verification_status: Dodopayments::Models::Brand::verification_status,
|
|
11
|
+
archived_at: Time?,
|
|
11
12
|
description: String?,
|
|
12
13
|
image: String?,
|
|
13
14
|
name: String?,
|
|
@@ -29,6 +30,8 @@ module Dodopayments
|
|
|
29
30
|
|
|
30
31
|
attr_accessor verification_status: Dodopayments::Models::Brand::verification_status
|
|
31
32
|
|
|
33
|
+
attr_accessor archived_at: Time?
|
|
34
|
+
|
|
32
35
|
attr_accessor description: String?
|
|
33
36
|
|
|
34
37
|
attr_accessor image: String?
|
|
@@ -48,6 +51,7 @@ module Dodopayments
|
|
|
48
51
|
statement_descriptor: String,
|
|
49
52
|
verification_enabled: bool,
|
|
50
53
|
verification_status: Dodopayments::Models::Brand::verification_status,
|
|
54
|
+
?archived_at: Time?,
|
|
51
55
|
?description: String?,
|
|
52
56
|
?image: String?,
|
|
53
57
|
?name: String?,
|
|
@@ -63,6 +67,7 @@ module Dodopayments
|
|
|
63
67
|
statement_descriptor: String,
|
|
64
68
|
verification_enabled: bool,
|
|
65
69
|
verification_status: Dodopayments::Models::Brand::verification_status,
|
|
70
|
+
archived_at: Time?,
|
|
66
71
|
description: String?,
|
|
67
72
|
image: String?,
|
|
68
73
|
name: String?,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type brand_archive_params =
|
|
4
|
+
{ id: String, move_products_to: String? }
|
|
5
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class BrandArchiveParams < Dodopayments::Internal::Type::BaseModel
|
|
8
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor id: String
|
|
12
|
+
|
|
13
|
+
attr_accessor move_products_to: String?
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
id: String,
|
|
17
|
+
?move_products_to: String?,
|
|
18
|
+
?request_options: Dodopayments::request_opts
|
|
19
|
+
) -> void
|
|
20
|
+
|
|
21
|
+
def to_hash: -> {
|
|
22
|
+
id: String,
|
|
23
|
+
move_products_to: String?,
|
|
24
|
+
request_options: Dodopayments::RequestOptions
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type brand_archive_response =
|
|
4
|
+
{
|
|
5
|
+
archived_at: Time,
|
|
6
|
+
brand_id: String,
|
|
7
|
+
collections_moved: Integer,
|
|
8
|
+
products_moved: Integer,
|
|
9
|
+
subscriptions_moved: Integer,
|
|
10
|
+
moved_to_brand_id: String?
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class BrandArchiveResponse < Dodopayments::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor archived_at: Time
|
|
15
|
+
|
|
16
|
+
attr_accessor brand_id: String
|
|
17
|
+
|
|
18
|
+
attr_accessor collections_moved: Integer
|
|
19
|
+
|
|
20
|
+
attr_accessor products_moved: Integer
|
|
21
|
+
|
|
22
|
+
attr_accessor subscriptions_moved: Integer
|
|
23
|
+
|
|
24
|
+
attr_accessor moved_to_brand_id: String?
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
archived_at: Time,
|
|
28
|
+
brand_id: String,
|
|
29
|
+
collections_moved: Integer,
|
|
30
|
+
products_moved: Integer,
|
|
31
|
+
subscriptions_moved: Integer,
|
|
32
|
+
?moved_to_brand_id: String?
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
archived_at: Time,
|
|
37
|
+
brand_id: String,
|
|
38
|
+
collections_moved: Integer,
|
|
39
|
+
products_moved: Integer,
|
|
40
|
+
subscriptions_moved: Integer,
|
|
41
|
+
moved_to_brand_id: String?
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type brand_list_params =
|
|
4
|
-
{
|
|
4
|
+
{ include_archived: bool }
|
|
5
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class BrandListParams < Dodopayments::Internal::Type::BaseModel
|
|
7
8
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
9
|
include Dodopayments::Internal::Type::RequestParameters
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
attr_reader include_archived: bool?
|
|
11
12
|
|
|
12
|
-
def
|
|
13
|
+
def include_archived=: (bool) -> bool
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
?include_archived: bool,
|
|
17
|
+
?request_options: Dodopayments::request_opts
|
|
18
|
+
) -> void
|
|
19
|
+
|
|
20
|
+
def to_hash: -> {
|
|
21
|
+
include_archived: bool,
|
|
22
|
+
request_options: Dodopayments::RequestOptions
|
|
23
|
+
}
|
|
13
24
|
end
|
|
14
25
|
end
|
|
15
26
|
end
|
|
@@ -18,7 +18,8 @@ module Dodopayments
|
|
|
18
18
|
allow_tax_id: bool,
|
|
19
19
|
always_create_new_customer: bool,
|
|
20
20
|
redirect_immediately: bool,
|
|
21
|
-
require_phone_number: bool
|
|
21
|
+
require_phone_number: bool,
|
|
22
|
+
single_page: bool
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
class CheckoutSessionFlags < Dodopayments::Internal::Type::BaseModel
|
|
@@ -90,6 +91,10 @@ module Dodopayments
|
|
|
90
91
|
|
|
91
92
|
def require_phone_number=: (bool) -> bool
|
|
92
93
|
|
|
94
|
+
attr_reader single_page: bool?
|
|
95
|
+
|
|
96
|
+
def single_page=: (bool) -> bool
|
|
97
|
+
|
|
93
98
|
def initialize: (
|
|
94
99
|
?allow_currency_selection: bool,
|
|
95
100
|
?allow_customer_editing_business_name: bool,
|
|
@@ -107,7 +112,8 @@ module Dodopayments
|
|
|
107
112
|
?allow_tax_id: bool,
|
|
108
113
|
?always_create_new_customer: bool,
|
|
109
114
|
?redirect_immediately: bool,
|
|
110
|
-
?require_phone_number: bool
|
|
115
|
+
?require_phone_number: bool,
|
|
116
|
+
?single_page: bool
|
|
111
117
|
) -> void
|
|
112
118
|
|
|
113
119
|
def to_hash: -> {
|
|
@@ -127,7 +133,8 @@ module Dodopayments
|
|
|
127
133
|
allow_tax_id: bool,
|
|
128
134
|
always_create_new_customer: bool,
|
|
129
135
|
redirect_immediately: bool,
|
|
130
|
-
require_phone_number: bool
|
|
136
|
+
require_phone_number: bool,
|
|
137
|
+
single_page: bool
|
|
131
138
|
}
|
|
132
139
|
end
|
|
133
140
|
end
|
|
@@ -36,6 +36,7 @@ module Dodopayments
|
|
|
36
36
|
discount_id: String?,
|
|
37
37
|
discounts: ::Array[Dodopayments::DiscountDetail]?,
|
|
38
38
|
expires_at: Time?,
|
|
39
|
+
paused_at: Time?,
|
|
39
40
|
payment_method_id: String?,
|
|
40
41
|
scheduled_change: Dodopayments::ScheduledPlanChange?,
|
|
41
42
|
tax_id: String?,
|
|
@@ -111,6 +112,8 @@ module Dodopayments
|
|
|
111
112
|
|
|
112
113
|
attr_accessor expires_at: Time?
|
|
113
114
|
|
|
115
|
+
attr_accessor paused_at: Time?
|
|
116
|
+
|
|
114
117
|
attr_accessor payment_method_id: String?
|
|
115
118
|
|
|
116
119
|
attr_accessor scheduled_change: Dodopayments::ScheduledPlanChange?
|
|
@@ -154,6 +157,7 @@ module Dodopayments
|
|
|
154
157
|
?discount_id: String?,
|
|
155
158
|
?discounts: ::Array[Dodopayments::DiscountDetail]?,
|
|
156
159
|
?expires_at: Time?,
|
|
160
|
+
?paused_at: Time?,
|
|
157
161
|
?payment_method_id: String?,
|
|
158
162
|
?scheduled_change: Dodopayments::ScheduledPlanChange?,
|
|
159
163
|
?tax_id: String?,
|
|
@@ -195,6 +199,7 @@ module Dodopayments
|
|
|
195
199
|
discount_id: String?,
|
|
196
200
|
discounts: ::Array[Dodopayments::DiscountDetail]?,
|
|
197
201
|
expires_at: Time?,
|
|
202
|
+
paused_at: Time?,
|
|
198
203
|
payment_method_id: String?,
|
|
199
204
|
scheduled_change: Dodopayments::ScheduledPlanChange?,
|
|
200
205
|
tax_id: String?,
|
|
@@ -83,7 +83,13 @@ module Dodopayments
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
type status =
|
|
86
|
-
:pending
|
|
86
|
+
:pending
|
|
87
|
+
| :active
|
|
88
|
+
| :on_hold
|
|
89
|
+
| :paused
|
|
90
|
+
| :cancelled
|
|
91
|
+
| :failed
|
|
92
|
+
| :expired
|
|
87
93
|
|
|
88
94
|
module Status
|
|
89
95
|
extend Dodopayments::Internal::Type::Enum
|
|
@@ -91,6 +97,7 @@ module Dodopayments
|
|
|
91
97
|
PENDING: :pending
|
|
92
98
|
ACTIVE: :active
|
|
93
99
|
ON_HOLD: :on_hold
|
|
100
|
+
PAUSED: :paused
|
|
94
101
|
CANCELLED: :cancelled
|
|
95
102
|
FAILED: :failed
|
|
96
103
|
EXPIRED: :expired
|
|
@@ -27,6 +27,7 @@ module Dodopayments
|
|
|
27
27
|
customer_business_name: String?,
|
|
28
28
|
discount_cycles_remaining: Integer?,
|
|
29
29
|
discount_id: String?,
|
|
30
|
+
paused_at: Time?,
|
|
30
31
|
payment_method_id: String?,
|
|
31
32
|
product_name: String?,
|
|
32
33
|
scheduled_change: Dodopayments::ScheduledPlanChange?,
|
|
@@ -85,6 +86,8 @@ module Dodopayments
|
|
|
85
86
|
|
|
86
87
|
attr_accessor discount_id: String?
|
|
87
88
|
|
|
89
|
+
attr_accessor paused_at: Time?
|
|
90
|
+
|
|
88
91
|
attr_accessor payment_method_id: String?
|
|
89
92
|
|
|
90
93
|
attr_accessor product_name: String?
|
|
@@ -121,6 +124,7 @@ module Dodopayments
|
|
|
121
124
|
?customer_business_name: String?,
|
|
122
125
|
?discount_cycles_remaining: Integer?,
|
|
123
126
|
?discount_id: String?,
|
|
127
|
+
?paused_at: Time?,
|
|
124
128
|
?payment_method_id: String?,
|
|
125
129
|
?product_name: String?,
|
|
126
130
|
?scheduled_change: Dodopayments::ScheduledPlanChange?,
|
|
@@ -154,6 +158,7 @@ module Dodopayments
|
|
|
154
158
|
customer_business_name: String?,
|
|
155
159
|
discount_cycles_remaining: Integer?,
|
|
156
160
|
discount_id: String?,
|
|
161
|
+
paused_at: Time?,
|
|
157
162
|
payment_method_id: String?,
|
|
158
163
|
product_name: String?,
|
|
159
164
|
scheduled_change: Dodopayments::ScheduledPlanChange?,
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type subscription_paused_webhook_event =
|
|
4
|
+
{
|
|
5
|
+
business_id: String,
|
|
6
|
+
data: Dodopayments::Subscription,
|
|
7
|
+
timestamp: Time,
|
|
8
|
+
type: :"subscription.paused"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class SubscriptionPausedWebhookEvent < Dodopayments::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor business_id: String
|
|
13
|
+
|
|
14
|
+
attr_accessor data: Dodopayments::Subscription
|
|
15
|
+
|
|
16
|
+
attr_accessor timestamp: Time
|
|
17
|
+
|
|
18
|
+
attr_accessor type: :"subscription.paused"
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
business_id: String,
|
|
22
|
+
data: Dodopayments::Subscription,
|
|
23
|
+
timestamp: Time,
|
|
24
|
+
?type: :"subscription.paused"
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
business_id: String,
|
|
29
|
+
data: Dodopayments::Subscription,
|
|
30
|
+
timestamp: Time,
|
|
31
|
+
type: :"subscription.paused"
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type subscription_status =
|
|
4
|
-
:pending | :active | :on_hold | :cancelled | :failed | :expired
|
|
4
|
+
:pending | :active | :on_hold | :paused | :cancelled | :failed | :expired
|
|
5
5
|
|
|
6
6
|
module SubscriptionStatus
|
|
7
7
|
extend Dodopayments::Internal::Type::Enum
|
|
@@ -9,6 +9,7 @@ module Dodopayments
|
|
|
9
9
|
PENDING: :pending
|
|
10
10
|
ACTIVE: :active
|
|
11
11
|
ON_HOLD: :on_hold
|
|
12
|
+
PAUSED: :paused
|
|
12
13
|
CANCELLED: :cancelled
|
|
13
14
|
FAILED: :failed
|
|
14
15
|
EXPIRED: :expired
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type subscription_unpaused_webhook_event =
|
|
4
|
+
{
|
|
5
|
+
business_id: String,
|
|
6
|
+
data: Dodopayments::Subscription,
|
|
7
|
+
timestamp: Time,
|
|
8
|
+
type: :"subscription.unpaused"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class SubscriptionUnpausedWebhookEvent < Dodopayments::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor business_id: String
|
|
13
|
+
|
|
14
|
+
attr_accessor data: Dodopayments::Subscription
|
|
15
|
+
|
|
16
|
+
attr_accessor timestamp: Time
|
|
17
|
+
|
|
18
|
+
attr_accessor type: :"subscription.unpaused"
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
business_id: String,
|
|
22
|
+
data: Dodopayments::Subscription,
|
|
23
|
+
timestamp: Time,
|
|
24
|
+
?type: :"subscription.unpaused"
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
business_id: String,
|
|
29
|
+
data: Dodopayments::Subscription,
|
|
30
|
+
timestamp: Time,
|
|
31
|
+
type: :"subscription.unpaused"
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -14,6 +14,7 @@ module Dodopayments
|
|
|
14
14
|
disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?,
|
|
15
15
|
metadata: Dodopayments::Models::metadata?,
|
|
16
16
|
next_billing_date: Time?,
|
|
17
|
+
pause: bool?,
|
|
17
18
|
status: Dodopayments::Models::subscription_status?,
|
|
18
19
|
subscription_period_count: Integer?,
|
|
19
20
|
subscription_period_interval: Dodopayments::Models::time_interval?,
|
|
@@ -49,6 +50,8 @@ module Dodopayments
|
|
|
49
50
|
|
|
50
51
|
attr_accessor next_billing_date: Time?
|
|
51
52
|
|
|
53
|
+
attr_accessor pause: bool?
|
|
54
|
+
|
|
52
55
|
attr_accessor status: Dodopayments::Models::subscription_status?
|
|
53
56
|
|
|
54
57
|
attr_accessor subscription_period_count: Integer?
|
|
@@ -70,6 +73,7 @@ module Dodopayments
|
|
|
70
73
|
?disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?,
|
|
71
74
|
?metadata: Dodopayments::Models::metadata?,
|
|
72
75
|
?next_billing_date: Time?,
|
|
76
|
+
?pause: bool?,
|
|
73
77
|
?status: Dodopayments::Models::subscription_status?,
|
|
74
78
|
?subscription_period_count: Integer?,
|
|
75
79
|
?subscription_period_interval: Dodopayments::Models::time_interval?,
|
|
@@ -90,6 +94,7 @@ module Dodopayments
|
|
|
90
94
|
disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?,
|
|
91
95
|
metadata: Dodopayments::Models::metadata?,
|
|
92
96
|
next_billing_date: Time?,
|
|
97
|
+
pause: bool?,
|
|
93
98
|
status: Dodopayments::Models::subscription_status?,
|
|
94
99
|
subscription_period_count: Integer?,
|
|
95
100
|
subscription_period_interval: Dodopayments::Models::time_interval?,
|
|
@@ -42,8 +42,10 @@ module Dodopayments
|
|
|
42
42
|
| Dodopayments::SubscriptionExpiredWebhookEvent
|
|
43
43
|
| Dodopayments::SubscriptionFailedWebhookEvent
|
|
44
44
|
| Dodopayments::SubscriptionOnHoldWebhookEvent
|
|
45
|
+
| Dodopayments::SubscriptionPausedWebhookEvent
|
|
45
46
|
| Dodopayments::SubscriptionPlanChangedWebhookEvent
|
|
46
47
|
| Dodopayments::SubscriptionRenewedWebhookEvent
|
|
48
|
+
| Dodopayments::SubscriptionUnpausedWebhookEvent
|
|
47
49
|
| Dodopayments::SubscriptionUpdatePaymentMethodWebhookEvent
|
|
48
50
|
| Dodopayments::SubscriptionUpdatedWebhookEvent
|
|
49
51
|
|
|
@@ -42,8 +42,10 @@ module Dodopayments
|
|
|
42
42
|
| Dodopayments::SubscriptionExpiredWebhookEvent
|
|
43
43
|
| Dodopayments::SubscriptionFailedWebhookEvent
|
|
44
44
|
| Dodopayments::SubscriptionOnHoldWebhookEvent
|
|
45
|
+
| Dodopayments::SubscriptionPausedWebhookEvent
|
|
45
46
|
| Dodopayments::SubscriptionPlanChangedWebhookEvent
|
|
46
47
|
| Dodopayments::SubscriptionRenewedWebhookEvent
|
|
48
|
+
| Dodopayments::SubscriptionUnpausedWebhookEvent
|
|
47
49
|
| Dodopayments::SubscriptionUpdatePaymentMethodWebhookEvent
|
|
48
50
|
| Dodopayments::SubscriptionUpdatedWebhookEvent
|
|
49
51
|
|
|
@@ -18,6 +18,7 @@ module Dodopayments
|
|
|
18
18
|
| :"subscription.renewed"
|
|
19
19
|
| :"subscription.on_hold"
|
|
20
20
|
| :"subscription.paused"
|
|
21
|
+
| :"subscription.unpaused"
|
|
21
22
|
| :"subscription.cancelled"
|
|
22
23
|
| :"subscription.failed"
|
|
23
24
|
| :"subscription.expired"
|
|
@@ -68,6 +69,7 @@ module Dodopayments
|
|
|
68
69
|
SUBSCRIPTION_RENEWED: :"subscription.renewed"
|
|
69
70
|
SUBSCRIPTION_ON_HOLD: :"subscription.on_hold"
|
|
70
71
|
SUBSCRIPTION_PAUSED: :"subscription.paused"
|
|
72
|
+
SUBSCRIPTION_UNPAUSED: :"subscription.unpaused"
|
|
71
73
|
SUBSCRIPTION_CANCELLED: :"subscription.cancelled"
|
|
72
74
|
SUBSCRIPTION_FAILED: :"subscription.failed"
|
|
73
75
|
SUBSCRIPTION_EXPIRED: :"subscription.expired"
|
data/sig/dodopayments/models.rbs
CHANGED
|
@@ -35,6 +35,8 @@ module Dodopayments
|
|
|
35
35
|
|
|
36
36
|
class Brand = Dodopayments::Models::Brand
|
|
37
37
|
|
|
38
|
+
class BrandArchiveParams = Dodopayments::Models::BrandArchiveParams
|
|
39
|
+
|
|
38
40
|
class BrandCreateParams = Dodopayments::Models::BrandCreateParams
|
|
39
41
|
|
|
40
42
|
class BrandListParams = Dodopayments::Models::BrandListParams
|
|
@@ -427,6 +429,8 @@ module Dodopayments
|
|
|
427
429
|
|
|
428
430
|
class SubscriptionOnHoldWebhookEvent = Dodopayments::Models::SubscriptionOnHoldWebhookEvent
|
|
429
431
|
|
|
432
|
+
class SubscriptionPausedWebhookEvent = Dodopayments::Models::SubscriptionPausedWebhookEvent
|
|
433
|
+
|
|
430
434
|
class SubscriptionPlanChangedWebhookEvent = Dodopayments::Models::SubscriptionPlanChangedWebhookEvent
|
|
431
435
|
|
|
432
436
|
class SubscriptionPreviewChangePlanParams = Dodopayments::Models::SubscriptionPreviewChangePlanParams
|
|
@@ -441,6 +445,8 @@ module Dodopayments
|
|
|
441
445
|
|
|
442
446
|
module SubscriptionStatus = Dodopayments::Models::SubscriptionStatus
|
|
443
447
|
|
|
448
|
+
class SubscriptionUnpausedWebhookEvent = Dodopayments::Models::SubscriptionUnpausedWebhookEvent
|
|
449
|
+
|
|
444
450
|
class SubscriptionUpdatedWebhookEvent = Dodopayments::Models::SubscriptionUpdatedWebhookEvent
|
|
445
451
|
|
|
446
452
|
class SubscriptionUpdateParams = Dodopayments::Models::SubscriptionUpdateParams
|
|
@@ -27,9 +27,16 @@ module Dodopayments
|
|
|
27
27
|
) -> Dodopayments::Brand
|
|
28
28
|
|
|
29
29
|
def list: (
|
|
30
|
+
?include_archived: bool,
|
|
30
31
|
?request_options: Dodopayments::request_opts
|
|
31
32
|
) -> Dodopayments::Models::BrandListResponse
|
|
32
33
|
|
|
34
|
+
def archive: (
|
|
35
|
+
String id,
|
|
36
|
+
?move_products_to: String?,
|
|
37
|
+
?request_options: Dodopayments::request_opts
|
|
38
|
+
) -> Dodopayments::Models::BrandArchiveResponse
|
|
39
|
+
|
|
33
40
|
def update_images: (
|
|
34
41
|
String id,
|
|
35
42
|
?request_options: Dodopayments::request_opts
|
|
@@ -47,6 +47,7 @@ module Dodopayments
|
|
|
47
47
|
?disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?,
|
|
48
48
|
?metadata: Dodopayments::Models::metadata?,
|
|
49
49
|
?next_billing_date: Time?,
|
|
50
|
+
?pause: bool?,
|
|
50
51
|
?status: Dodopayments::Models::subscription_status?,
|
|
51
52
|
?subscription_period_count: Integer?,
|
|
52
53
|
?subscription_period_interval: Dodopayments::Models::time_interval?,
|
|
@@ -90,8 +90,10 @@ module Dodopayments
|
|
|
90
90
|
| Dodopayments::SubscriptionExpiredWebhookEvent
|
|
91
91
|
| Dodopayments::SubscriptionFailedWebhookEvent
|
|
92
92
|
| Dodopayments::SubscriptionOnHoldWebhookEvent
|
|
93
|
+
| Dodopayments::SubscriptionPausedWebhookEvent
|
|
93
94
|
| Dodopayments::SubscriptionPlanChangedWebhookEvent
|
|
94
95
|
| Dodopayments::SubscriptionRenewedWebhookEvent
|
|
96
|
+
| Dodopayments::SubscriptionUnpausedWebhookEvent
|
|
95
97
|
| Dodopayments::SubscriptionUpdatePaymentMethodWebhookEvent
|
|
96
98
|
| Dodopayments::SubscriptionUpdatedWebhookEvent)
|
|
97
99
|
|
|
@@ -140,8 +142,10 @@ module Dodopayments
|
|
|
140
142
|
| Dodopayments::SubscriptionExpiredWebhookEvent
|
|
141
143
|
| Dodopayments::SubscriptionFailedWebhookEvent
|
|
142
144
|
| Dodopayments::SubscriptionOnHoldWebhookEvent
|
|
145
|
+
| Dodopayments::SubscriptionPausedWebhookEvent
|
|
143
146
|
| Dodopayments::SubscriptionPlanChangedWebhookEvent
|
|
144
147
|
| Dodopayments::SubscriptionRenewedWebhookEvent
|
|
148
|
+
| Dodopayments::SubscriptionUnpausedWebhookEvent
|
|
145
149
|
| Dodopayments::SubscriptionUpdatePaymentMethodWebhookEvent
|
|
146
150
|
| Dodopayments::SubscriptionUpdatedWebhookEvent)
|
|
147
151
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dodopayments
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.25.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dodo Payments
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-08-
|
|
11
|
+
date: 2026-08-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -104,6 +104,8 @@ files:
|
|
|
104
104
|
- lib/dodopayments/models/balance_retrieve_ledger_params.rb
|
|
105
105
|
- lib/dodopayments/models/billing_address.rb
|
|
106
106
|
- lib/dodopayments/models/brand.rb
|
|
107
|
+
- lib/dodopayments/models/brand_archive_params.rb
|
|
108
|
+
- lib/dodopayments/models/brand_archive_response.rb
|
|
107
109
|
- lib/dodopayments/models/brand_create_params.rb
|
|
108
110
|
- lib/dodopayments/models/brand_list_params.rb
|
|
109
111
|
- lib/dodopayments/models/brand_list_response.rb
|
|
@@ -372,6 +374,7 @@ files:
|
|
|
372
374
|
- lib/dodopayments/models/subscription_list_params.rb
|
|
373
375
|
- lib/dodopayments/models/subscription_list_response.rb
|
|
374
376
|
- lib/dodopayments/models/subscription_on_hold_webhook_event.rb
|
|
377
|
+
- lib/dodopayments/models/subscription_paused_webhook_event.rb
|
|
375
378
|
- lib/dodopayments/models/subscription_plan_changed_webhook_event.rb
|
|
376
379
|
- lib/dodopayments/models/subscription_preview_change_plan_params.rb
|
|
377
380
|
- lib/dodopayments/models/subscription_preview_change_plan_response.rb
|
|
@@ -382,6 +385,7 @@ files:
|
|
|
382
385
|
- lib/dodopayments/models/subscription_retrieve_usage_history_params.rb
|
|
383
386
|
- lib/dodopayments/models/subscription_retrieve_usage_history_response.rb
|
|
384
387
|
- lib/dodopayments/models/subscription_status.rb
|
|
388
|
+
- lib/dodopayments/models/subscription_unpaused_webhook_event.rb
|
|
385
389
|
- lib/dodopayments/models/subscription_update_params.rb
|
|
386
390
|
- lib/dodopayments/models/subscription_update_payment_method_params.rb
|
|
387
391
|
- lib/dodopayments/models/subscription_update_payment_method_response.rb
|
|
@@ -495,6 +499,8 @@ files:
|
|
|
495
499
|
- rbi/dodopayments/models/balance_retrieve_ledger_params.rbi
|
|
496
500
|
- rbi/dodopayments/models/billing_address.rbi
|
|
497
501
|
- rbi/dodopayments/models/brand.rbi
|
|
502
|
+
- rbi/dodopayments/models/brand_archive_params.rbi
|
|
503
|
+
- rbi/dodopayments/models/brand_archive_response.rbi
|
|
498
504
|
- rbi/dodopayments/models/brand_create_params.rbi
|
|
499
505
|
- rbi/dodopayments/models/brand_list_params.rbi
|
|
500
506
|
- rbi/dodopayments/models/brand_list_response.rbi
|
|
@@ -763,6 +769,7 @@ files:
|
|
|
763
769
|
- rbi/dodopayments/models/subscription_list_params.rbi
|
|
764
770
|
- rbi/dodopayments/models/subscription_list_response.rbi
|
|
765
771
|
- rbi/dodopayments/models/subscription_on_hold_webhook_event.rbi
|
|
772
|
+
- rbi/dodopayments/models/subscription_paused_webhook_event.rbi
|
|
766
773
|
- rbi/dodopayments/models/subscription_plan_changed_webhook_event.rbi
|
|
767
774
|
- rbi/dodopayments/models/subscription_preview_change_plan_params.rbi
|
|
768
775
|
- rbi/dodopayments/models/subscription_preview_change_plan_response.rbi
|
|
@@ -773,6 +780,7 @@ files:
|
|
|
773
780
|
- rbi/dodopayments/models/subscription_retrieve_usage_history_params.rbi
|
|
774
781
|
- rbi/dodopayments/models/subscription_retrieve_usage_history_response.rbi
|
|
775
782
|
- rbi/dodopayments/models/subscription_status.rbi
|
|
783
|
+
- rbi/dodopayments/models/subscription_unpaused_webhook_event.rbi
|
|
776
784
|
- rbi/dodopayments/models/subscription_update_params.rbi
|
|
777
785
|
- rbi/dodopayments/models/subscription_update_payment_method_params.rbi
|
|
778
786
|
- rbi/dodopayments/models/subscription_update_payment_method_response.rbi
|
|
@@ -885,6 +893,8 @@ files:
|
|
|
885
893
|
- sig/dodopayments/models/balance_retrieve_ledger_params.rbs
|
|
886
894
|
- sig/dodopayments/models/billing_address.rbs
|
|
887
895
|
- sig/dodopayments/models/brand.rbs
|
|
896
|
+
- sig/dodopayments/models/brand_archive_params.rbs
|
|
897
|
+
- sig/dodopayments/models/brand_archive_response.rbs
|
|
888
898
|
- sig/dodopayments/models/brand_create_params.rbs
|
|
889
899
|
- sig/dodopayments/models/brand_list_params.rbs
|
|
890
900
|
- sig/dodopayments/models/brand_list_response.rbs
|
|
@@ -1153,6 +1163,7 @@ files:
|
|
|
1153
1163
|
- sig/dodopayments/models/subscription_list_params.rbs
|
|
1154
1164
|
- sig/dodopayments/models/subscription_list_response.rbs
|
|
1155
1165
|
- sig/dodopayments/models/subscription_on_hold_webhook_event.rbs
|
|
1166
|
+
- sig/dodopayments/models/subscription_paused_webhook_event.rbs
|
|
1156
1167
|
- sig/dodopayments/models/subscription_plan_changed_webhook_event.rbs
|
|
1157
1168
|
- sig/dodopayments/models/subscription_preview_change_plan_params.rbs
|
|
1158
1169
|
- sig/dodopayments/models/subscription_preview_change_plan_response.rbs
|
|
@@ -1163,6 +1174,7 @@ files:
|
|
|
1163
1174
|
- sig/dodopayments/models/subscription_retrieve_usage_history_params.rbs
|
|
1164
1175
|
- sig/dodopayments/models/subscription_retrieve_usage_history_response.rbs
|
|
1165
1176
|
- sig/dodopayments/models/subscription_status.rbs
|
|
1177
|
+
- sig/dodopayments/models/subscription_unpaused_webhook_event.rbs
|
|
1166
1178
|
- sig/dodopayments/models/subscription_update_params.rbs
|
|
1167
1179
|
- sig/dodopayments/models/subscription_update_payment_method_params.rbs
|
|
1168
1180
|
- sig/dodopayments/models/subscription_update_payment_method_response.rbs
|