dodopayments 2.25.0 → 2.26.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 +8 -0
- data/README.md +1 -1
- data/lib/dodopayments/models/entitlements/license_key_grant.rb +24 -3
- data/lib/dodopayments/models/price.rb +34 -30
- data/lib/dodopayments/models/subscription_change_plan_response.rb +47 -0
- data/lib/dodopayments/models/subscription_update_params.rb +16 -4
- data/lib/dodopayments/models/update_subscription_plan_req.rb +35 -1
- data/lib/dodopayments/resources/subscriptions.rb +14 -6
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +1 -0
- data/rbi/dodopayments/models/entitlements/license_key_grant.rbi +22 -2
- data/rbi/dodopayments/models/price.rbi +47 -30
- data/rbi/dodopayments/models/subscription_change_plan_response.rbi +69 -0
- data/rbi/dodopayments/models/subscription_update_params.rbi +28 -4
- data/rbi/dodopayments/models/update_subscription_plan_req.rbi +58 -0
- data/rbi/dodopayments/resources/subscriptions.rbi +63 -3
- data/sig/dodopayments/models/entitlements/license_key_grant.rbs +10 -0
- data/sig/dodopayments/models/price.rbs +21 -15
- data/sig/dodopayments/models/subscription_change_plan_response.rbs +35 -0
- data/sig/dodopayments/models/update_subscription_plan_req.rbs +14 -0
- data/sig/dodopayments/resources/subscriptions.rbs +5 -1
- metadata +5 -2
|
@@ -13,9 +13,9 @@ module Dodopayments
|
|
|
13
13
|
currency: Dodopayments::Models::currency,
|
|
14
14
|
discount: Integer,
|
|
15
15
|
price: Integer,
|
|
16
|
-
purchasing_power_parity: bool,
|
|
17
16
|
type: :one_time_price,
|
|
18
17
|
pay_what_you_want: bool,
|
|
18
|
+
purchasing_power_parity: bool,
|
|
19
19
|
suggested_price: Integer?,
|
|
20
20
|
tax_inclusive: bool?
|
|
21
21
|
}
|
|
@@ -27,14 +27,16 @@ module Dodopayments
|
|
|
27
27
|
|
|
28
28
|
attr_accessor price: Integer
|
|
29
29
|
|
|
30
|
-
attr_accessor purchasing_power_parity: bool
|
|
31
|
-
|
|
32
30
|
attr_accessor type: :one_time_price
|
|
33
31
|
|
|
34
32
|
attr_reader pay_what_you_want: bool?
|
|
35
33
|
|
|
36
34
|
def pay_what_you_want=: (bool) -> bool
|
|
37
35
|
|
|
36
|
+
attr_reader purchasing_power_parity: bool?
|
|
37
|
+
|
|
38
|
+
def purchasing_power_parity=: (bool) -> bool
|
|
39
|
+
|
|
38
40
|
attr_accessor suggested_price: Integer?
|
|
39
41
|
|
|
40
42
|
attr_accessor tax_inclusive: bool?
|
|
@@ -43,8 +45,8 @@ module Dodopayments
|
|
|
43
45
|
currency: Dodopayments::Models::currency,
|
|
44
46
|
discount: Integer,
|
|
45
47
|
price: Integer,
|
|
46
|
-
purchasing_power_parity: bool,
|
|
47
48
|
?pay_what_you_want: bool,
|
|
49
|
+
?purchasing_power_parity: bool,
|
|
48
50
|
?suggested_price: Integer?,
|
|
49
51
|
?tax_inclusive: bool?,
|
|
50
52
|
?type: :one_time_price
|
|
@@ -54,9 +56,9 @@ module Dodopayments
|
|
|
54
56
|
currency: Dodopayments::Models::currency,
|
|
55
57
|
discount: Integer,
|
|
56
58
|
price: Integer,
|
|
57
|
-
purchasing_power_parity: bool,
|
|
58
59
|
type: :one_time_price,
|
|
59
60
|
pay_what_you_want: bool,
|
|
61
|
+
purchasing_power_parity: bool,
|
|
60
62
|
suggested_price: Integer?,
|
|
61
63
|
tax_inclusive: bool?
|
|
62
64
|
}
|
|
@@ -69,10 +71,10 @@ module Dodopayments
|
|
|
69
71
|
payment_frequency_count: Integer,
|
|
70
72
|
payment_frequency_interval: Dodopayments::Models::time_interval,
|
|
71
73
|
price: Integer,
|
|
72
|
-
purchasing_power_parity: bool,
|
|
73
74
|
subscription_period_count: Integer,
|
|
74
75
|
subscription_period_interval: Dodopayments::Models::time_interval,
|
|
75
76
|
type: :recurring_price,
|
|
77
|
+
purchasing_power_parity: bool,
|
|
76
78
|
tax_inclusive: bool?,
|
|
77
79
|
trial_amount: Integer?,
|
|
78
80
|
trial_apply_discounts: bool?,
|
|
@@ -90,14 +92,16 @@ module Dodopayments
|
|
|
90
92
|
|
|
91
93
|
attr_accessor price: Integer
|
|
92
94
|
|
|
93
|
-
attr_accessor purchasing_power_parity: bool
|
|
94
|
-
|
|
95
95
|
attr_accessor subscription_period_count: Integer
|
|
96
96
|
|
|
97
97
|
attr_accessor subscription_period_interval: Dodopayments::Models::time_interval
|
|
98
98
|
|
|
99
99
|
attr_accessor type: :recurring_price
|
|
100
100
|
|
|
101
|
+
attr_reader purchasing_power_parity: bool?
|
|
102
|
+
|
|
103
|
+
def purchasing_power_parity=: (bool) -> bool
|
|
104
|
+
|
|
101
105
|
attr_accessor tax_inclusive: bool?
|
|
102
106
|
|
|
103
107
|
attr_accessor trial_amount: Integer?
|
|
@@ -114,9 +118,9 @@ module Dodopayments
|
|
|
114
118
|
payment_frequency_count: Integer,
|
|
115
119
|
payment_frequency_interval: Dodopayments::Models::time_interval,
|
|
116
120
|
price: Integer,
|
|
117
|
-
purchasing_power_parity: bool,
|
|
118
121
|
subscription_period_count: Integer,
|
|
119
122
|
subscription_period_interval: Dodopayments::Models::time_interval,
|
|
123
|
+
?purchasing_power_parity: bool,
|
|
120
124
|
?tax_inclusive: bool?,
|
|
121
125
|
?trial_amount: Integer?,
|
|
122
126
|
?trial_apply_discounts: bool?,
|
|
@@ -130,10 +134,10 @@ module Dodopayments
|
|
|
130
134
|
payment_frequency_count: Integer,
|
|
131
135
|
payment_frequency_interval: Dodopayments::Models::time_interval,
|
|
132
136
|
price: Integer,
|
|
133
|
-
purchasing_power_parity: bool,
|
|
134
137
|
subscription_period_count: Integer,
|
|
135
138
|
subscription_period_interval: Dodopayments::Models::time_interval,
|
|
136
139
|
type: :recurring_price,
|
|
140
|
+
purchasing_power_parity: bool,
|
|
137
141
|
tax_inclusive: bool?,
|
|
138
142
|
trial_amount: Integer?,
|
|
139
143
|
trial_apply_discounts: bool?,
|
|
@@ -148,11 +152,11 @@ module Dodopayments
|
|
|
148
152
|
fixed_price: Integer,
|
|
149
153
|
payment_frequency_count: Integer,
|
|
150
154
|
payment_frequency_interval: Dodopayments::Models::time_interval,
|
|
151
|
-
purchasing_power_parity: bool,
|
|
152
155
|
subscription_period_count: Integer,
|
|
153
156
|
subscription_period_interval: Dodopayments::Models::time_interval,
|
|
154
157
|
type: :usage_based_price,
|
|
155
158
|
meters: ::Array[Dodopayments::AddMeterToPrice]?,
|
|
159
|
+
purchasing_power_parity: bool,
|
|
156
160
|
tax_inclusive: bool?
|
|
157
161
|
}
|
|
158
162
|
|
|
@@ -167,8 +171,6 @@ module Dodopayments
|
|
|
167
171
|
|
|
168
172
|
attr_accessor payment_frequency_interval: Dodopayments::Models::time_interval
|
|
169
173
|
|
|
170
|
-
attr_accessor purchasing_power_parity: bool
|
|
171
|
-
|
|
172
174
|
attr_accessor subscription_period_count: Integer
|
|
173
175
|
|
|
174
176
|
attr_accessor subscription_period_interval: Dodopayments::Models::time_interval
|
|
@@ -177,6 +179,10 @@ module Dodopayments
|
|
|
177
179
|
|
|
178
180
|
attr_accessor meters: ::Array[Dodopayments::AddMeterToPrice]?
|
|
179
181
|
|
|
182
|
+
attr_reader purchasing_power_parity: bool?
|
|
183
|
+
|
|
184
|
+
def purchasing_power_parity=: (bool) -> bool
|
|
185
|
+
|
|
180
186
|
attr_accessor tax_inclusive: bool?
|
|
181
187
|
|
|
182
188
|
def initialize: (
|
|
@@ -185,10 +191,10 @@ module Dodopayments
|
|
|
185
191
|
fixed_price: Integer,
|
|
186
192
|
payment_frequency_count: Integer,
|
|
187
193
|
payment_frequency_interval: Dodopayments::Models::time_interval,
|
|
188
|
-
purchasing_power_parity: bool,
|
|
189
194
|
subscription_period_count: Integer,
|
|
190
195
|
subscription_period_interval: Dodopayments::Models::time_interval,
|
|
191
196
|
?meters: ::Array[Dodopayments::AddMeterToPrice]?,
|
|
197
|
+
?purchasing_power_parity: bool,
|
|
192
198
|
?tax_inclusive: bool?,
|
|
193
199
|
?type: :usage_based_price
|
|
194
200
|
) -> void
|
|
@@ -199,11 +205,11 @@ module Dodopayments
|
|
|
199
205
|
fixed_price: Integer,
|
|
200
206
|
payment_frequency_count: Integer,
|
|
201
207
|
payment_frequency_interval: Dodopayments::Models::time_interval,
|
|
202
|
-
purchasing_power_parity: bool,
|
|
203
208
|
subscription_period_count: Integer,
|
|
204
209
|
subscription_period_interval: Dodopayments::Models::time_interval,
|
|
205
210
|
type: :usage_based_price,
|
|
206
211
|
meters: ::Array[Dodopayments::AddMeterToPrice]?,
|
|
212
|
+
purchasing_power_parity: bool,
|
|
207
213
|
tax_inclusive: bool?
|
|
208
214
|
}
|
|
209
215
|
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type subscription_change_plan_response =
|
|
4
|
+
{
|
|
5
|
+
client_secret: String?,
|
|
6
|
+
expires_on: Time?,
|
|
7
|
+
payment_id: String?,
|
|
8
|
+
payment_link: String?
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class SubscriptionChangePlanResponse < Dodopayments::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor client_secret: String?
|
|
13
|
+
|
|
14
|
+
attr_accessor expires_on: Time?
|
|
15
|
+
|
|
16
|
+
attr_accessor payment_id: String?
|
|
17
|
+
|
|
18
|
+
attr_accessor payment_link: String?
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
?client_secret: String?,
|
|
22
|
+
?expires_on: Time?,
|
|
23
|
+
?payment_id: String?,
|
|
24
|
+
?payment_link: String?
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
client_secret: String?,
|
|
29
|
+
expires_on: Time?,
|
|
30
|
+
payment_id: String?,
|
|
31
|
+
payment_link: String?
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -7,6 +7,8 @@ module Dodopayments
|
|
|
7
7
|
quantity: Integer,
|
|
8
8
|
adaptive_currency_fees_inclusive: bool?,
|
|
9
9
|
addons: ::Array[Dodopayments::AttachAddon]?,
|
|
10
|
+
cancel_scheduled_change_plan: bool,
|
|
11
|
+
collect_via_payment_link: bool,
|
|
10
12
|
discount_code: String?,
|
|
11
13
|
discount_codes: ::Array[String]?,
|
|
12
14
|
effective_at: Dodopayments::Models::UpdateSubscriptionPlanReq::effective_at,
|
|
@@ -25,6 +27,14 @@ module Dodopayments
|
|
|
25
27
|
|
|
26
28
|
attr_accessor addons: ::Array[Dodopayments::AttachAddon]?
|
|
27
29
|
|
|
30
|
+
attr_reader cancel_scheduled_change_plan: bool?
|
|
31
|
+
|
|
32
|
+
def cancel_scheduled_change_plan=: (bool) -> bool
|
|
33
|
+
|
|
34
|
+
attr_reader collect_via_payment_link: bool?
|
|
35
|
+
|
|
36
|
+
def collect_via_payment_link=: (bool) -> bool
|
|
37
|
+
|
|
28
38
|
attr_accessor discount_code: String?
|
|
29
39
|
|
|
30
40
|
attr_accessor discount_codes: ::Array[String]?
|
|
@@ -45,6 +55,8 @@ module Dodopayments
|
|
|
45
55
|
quantity: Integer,
|
|
46
56
|
?adaptive_currency_fees_inclusive: bool?,
|
|
47
57
|
?addons: ::Array[Dodopayments::AttachAddon]?,
|
|
58
|
+
?cancel_scheduled_change_plan: bool,
|
|
59
|
+
?collect_via_payment_link: bool,
|
|
48
60
|
?discount_code: String?,
|
|
49
61
|
?discount_codes: ::Array[String]?,
|
|
50
62
|
?effective_at: Dodopayments::Models::UpdateSubscriptionPlanReq::effective_at,
|
|
@@ -58,6 +70,8 @@ module Dodopayments
|
|
|
58
70
|
quantity: Integer,
|
|
59
71
|
adaptive_currency_fees_inclusive: bool?,
|
|
60
72
|
addons: ::Array[Dodopayments::AttachAddon]?,
|
|
73
|
+
cancel_scheduled_change_plan: bool,
|
|
74
|
+
collect_via_payment_link: bool,
|
|
61
75
|
discount_code: String?,
|
|
62
76
|
discount_codes: ::Array[String]?,
|
|
63
77
|
effective_at: Dodopayments::Models::UpdateSubscriptionPlanReq::effective_at,
|
|
@@ -80,13 +80,15 @@ module Dodopayments
|
|
|
80
80
|
quantity: Integer,
|
|
81
81
|
?adaptive_currency_fees_inclusive: bool?,
|
|
82
82
|
?addons: ::Array[Dodopayments::AttachAddon]?,
|
|
83
|
+
?cancel_scheduled_change_plan: bool,
|
|
84
|
+
?collect_via_payment_link: bool,
|
|
83
85
|
?discount_code: String?,
|
|
84
86
|
?discount_codes: ::Array[String]?,
|
|
85
87
|
?effective_at: Dodopayments::Models::UpdateSubscriptionPlanReq::effective_at,
|
|
86
88
|
?metadata: Dodopayments::Models::metadata?,
|
|
87
89
|
?on_payment_failure: Dodopayments::Models::UpdateSubscriptionPlanReq::on_payment_failure?,
|
|
88
90
|
?request_options: Dodopayments::request_opts
|
|
89
|
-
) ->
|
|
91
|
+
) -> Dodopayments::Models::SubscriptionChangePlanResponse
|
|
90
92
|
|
|
91
93
|
def charge: (
|
|
92
94
|
String subscription_id,
|
|
@@ -106,6 +108,8 @@ module Dodopayments
|
|
|
106
108
|
quantity: Integer,
|
|
107
109
|
?adaptive_currency_fees_inclusive: bool?,
|
|
108
110
|
?addons: ::Array[Dodopayments::AttachAddon]?,
|
|
111
|
+
?cancel_scheduled_change_plan: bool,
|
|
112
|
+
?collect_via_payment_link: bool,
|
|
109
113
|
?discount_code: String?,
|
|
110
114
|
?discount_codes: ::Array[String]?,
|
|
111
115
|
?effective_at: Dodopayments::Models::UpdateSubscriptionPlanReq::effective_at,
|
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.26.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-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -364,6 +364,7 @@ files:
|
|
|
364
364
|
- lib/dodopayments/models/subscription_cancel_change_plan_params.rb
|
|
365
365
|
- lib/dodopayments/models/subscription_cancelled_webhook_event.rb
|
|
366
366
|
- lib/dodopayments/models/subscription_change_plan_params.rb
|
|
367
|
+
- lib/dodopayments/models/subscription_change_plan_response.rb
|
|
367
368
|
- lib/dodopayments/models/subscription_charge_params.rb
|
|
368
369
|
- lib/dodopayments/models/subscription_charge_response.rb
|
|
369
370
|
- lib/dodopayments/models/subscription_create_params.rb
|
|
@@ -759,6 +760,7 @@ files:
|
|
|
759
760
|
- rbi/dodopayments/models/subscription_cancel_change_plan_params.rbi
|
|
760
761
|
- rbi/dodopayments/models/subscription_cancelled_webhook_event.rbi
|
|
761
762
|
- rbi/dodopayments/models/subscription_change_plan_params.rbi
|
|
763
|
+
- rbi/dodopayments/models/subscription_change_plan_response.rbi
|
|
762
764
|
- rbi/dodopayments/models/subscription_charge_params.rbi
|
|
763
765
|
- rbi/dodopayments/models/subscription_charge_response.rbi
|
|
764
766
|
- rbi/dodopayments/models/subscription_create_params.rbi
|
|
@@ -1153,6 +1155,7 @@ files:
|
|
|
1153
1155
|
- sig/dodopayments/models/subscription_cancel_change_plan_params.rbs
|
|
1154
1156
|
- sig/dodopayments/models/subscription_cancelled_webhook_event.rbs
|
|
1155
1157
|
- sig/dodopayments/models/subscription_change_plan_params.rbs
|
|
1158
|
+
- sig/dodopayments/models/subscription_change_plan_response.rbs
|
|
1156
1159
|
- sig/dodopayments/models/subscription_charge_params.rbs
|
|
1157
1160
|
- sig/dodopayments/models/subscription_charge_response.rbs
|
|
1158
1161
|
- sig/dodopayments/models/subscription_create_params.rbs
|