dodopayments 1.71.1 → 1.73.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 +13 -0
- data/README.md +1 -1
- data/lib/dodopayments/models/checkout_session_preview_params.rb +14 -0
- data/lib/dodopayments/models/checkout_session_preview_response.rb +426 -0
- data/lib/dodopayments/models/checkout_session_request.rb +9 -1
- data/lib/dodopayments/models/discount_retrieve_by_code_params.rb +14 -0
- data/lib/dodopayments/models/payment.rb +9 -1
- data/lib/dodopayments/models/payment_method_types.rb +13 -98
- data/lib/dodopayments/models/product.rb +9 -1
- data/lib/dodopayments/models/subscription_change_plan_params.rb +10 -1
- data/lib/dodopayments/models/subscription_preview_change_plan_params.rb +10 -1
- data/lib/dodopayments/models.rb +4 -0
- data/lib/dodopayments/resources/checkout_sessions.rb +60 -1
- data/lib/dodopayments/resources/discounts.rb +22 -0
- data/lib/dodopayments/resources/subscriptions.rb +6 -2
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +3 -0
- data/rbi/dodopayments/models/checkout_session_preview_params.rbi +32 -0
- data/rbi/dodopayments/models/checkout_session_preview_response.rbi +616 -0
- data/rbi/dodopayments/models/checkout_session_request.rbi +8 -0
- data/rbi/dodopayments/models/discount_retrieve_by_code_params.rbi +32 -0
- data/rbi/dodopayments/models/payment.rbi +8 -0
- data/rbi/dodopayments/models/payment_method_types.rbi +18 -186
- data/rbi/dodopayments/models/product.rbi +11 -3
- data/rbi/dodopayments/models/subscription_change_plan_params.rbi +10 -0
- data/rbi/dodopayments/models/subscription_preview_change_plan_params.rbi +10 -0
- data/rbi/dodopayments/models.rbi +6 -0
- data/rbi/dodopayments/resources/checkout_sessions.rbi +88 -0
- data/rbi/dodopayments/resources/discounts.rbi +16 -0
- data/rbi/dodopayments/resources/subscriptions.rbi +8 -0
- data/sig/dodopayments/models/checkout_session_preview_params.rbs +15 -0
- data/sig/dodopayments/models/checkout_session_preview_response.rbs +330 -0
- data/sig/dodopayments/models/checkout_session_request.rbs +5 -0
- data/sig/dodopayments/models/discount_retrieve_by_code_params.rbs +15 -0
- data/sig/dodopayments/models/payment.rbs +5 -0
- data/sig/dodopayments/models/payment_method_types.rbs +26 -196
- data/sig/dodopayments/models/product.rbs +8 -3
- data/sig/dodopayments/models/subscription_change_plan_params.rbs +6 -1
- data/sig/dodopayments/models/subscription_preview_change_plan_params.rbs +6 -1
- data/sig/dodopayments/models.rbs +4 -0
- data/sig/dodopayments/resources/checkout_sessions.rbs +23 -0
- data/sig/dodopayments/resources/discounts.rbs +5 -0
- data/sig/dodopayments/resources/subscriptions.rbs +2 -0
- metadata +11 -2
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type checkout_session_preview_response =
|
|
4
|
+
{
|
|
5
|
+
billing_country: Dodopayments::Models::country_code,
|
|
6
|
+
currency: Dodopayments::Models::currency,
|
|
7
|
+
current_breakup: Dodopayments::Models::CheckoutSessionPreviewResponse::CurrentBreakup,
|
|
8
|
+
product_cart: ::Array[Dodopayments::Models::CheckoutSessionPreviewResponse::ProductCart],
|
|
9
|
+
total_price: Integer,
|
|
10
|
+
recurring_breakup: Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup?,
|
|
11
|
+
total_tax: Integer?
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class CheckoutSessionPreviewResponse < Dodopayments::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor billing_country: Dodopayments::Models::country_code
|
|
16
|
+
|
|
17
|
+
attr_accessor currency: Dodopayments::Models::currency
|
|
18
|
+
|
|
19
|
+
attr_accessor current_breakup: Dodopayments::Models::CheckoutSessionPreviewResponse::CurrentBreakup
|
|
20
|
+
|
|
21
|
+
attr_accessor product_cart: ::Array[Dodopayments::Models::CheckoutSessionPreviewResponse::ProductCart]
|
|
22
|
+
|
|
23
|
+
attr_accessor total_price: Integer
|
|
24
|
+
|
|
25
|
+
attr_accessor recurring_breakup: Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup?
|
|
26
|
+
|
|
27
|
+
attr_accessor total_tax: Integer?
|
|
28
|
+
|
|
29
|
+
def initialize: (
|
|
30
|
+
billing_country: Dodopayments::Models::country_code,
|
|
31
|
+
currency: Dodopayments::Models::currency,
|
|
32
|
+
current_breakup: Dodopayments::Models::CheckoutSessionPreviewResponse::CurrentBreakup,
|
|
33
|
+
product_cart: ::Array[Dodopayments::Models::CheckoutSessionPreviewResponse::ProductCart],
|
|
34
|
+
total_price: Integer,
|
|
35
|
+
?recurring_breakup: Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup?,
|
|
36
|
+
?total_tax: Integer?
|
|
37
|
+
) -> void
|
|
38
|
+
|
|
39
|
+
def to_hash: -> {
|
|
40
|
+
billing_country: Dodopayments::Models::country_code,
|
|
41
|
+
currency: Dodopayments::Models::currency,
|
|
42
|
+
current_breakup: Dodopayments::Models::CheckoutSessionPreviewResponse::CurrentBreakup,
|
|
43
|
+
product_cart: ::Array[Dodopayments::Models::CheckoutSessionPreviewResponse::ProductCart],
|
|
44
|
+
total_price: Integer,
|
|
45
|
+
recurring_breakup: Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup?,
|
|
46
|
+
total_tax: Integer?
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
type current_breakup =
|
|
50
|
+
{
|
|
51
|
+
discount: Integer,
|
|
52
|
+
subtotal: Integer,
|
|
53
|
+
total_amount: Integer,
|
|
54
|
+
tax: Integer?
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
class CurrentBreakup < Dodopayments::Internal::Type::BaseModel
|
|
58
|
+
attr_accessor discount: Integer
|
|
59
|
+
|
|
60
|
+
attr_accessor subtotal: Integer
|
|
61
|
+
|
|
62
|
+
attr_accessor total_amount: Integer
|
|
63
|
+
|
|
64
|
+
attr_accessor tax: Integer?
|
|
65
|
+
|
|
66
|
+
def initialize: (
|
|
67
|
+
discount: Integer,
|
|
68
|
+
subtotal: Integer,
|
|
69
|
+
total_amount: Integer,
|
|
70
|
+
?tax: Integer?
|
|
71
|
+
) -> void
|
|
72
|
+
|
|
73
|
+
def to_hash: -> {
|
|
74
|
+
discount: Integer,
|
|
75
|
+
subtotal: Integer,
|
|
76
|
+
total_amount: Integer,
|
|
77
|
+
tax: Integer?
|
|
78
|
+
}
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
type product_cart =
|
|
82
|
+
{
|
|
83
|
+
currency: Dodopayments::Models::currency,
|
|
84
|
+
discounted_price: Integer,
|
|
85
|
+
is_subscription: bool,
|
|
86
|
+
is_usage_based: bool,
|
|
87
|
+
meters: ::Array[Dodopayments::Models::CheckoutSessionPreviewResponse::ProductCart::Meter],
|
|
88
|
+
og_currency: Dodopayments::Models::currency,
|
|
89
|
+
og_price: Integer,
|
|
90
|
+
product_id: String,
|
|
91
|
+
quantity: Integer,
|
|
92
|
+
tax_category: Dodopayments::Models::tax_category,
|
|
93
|
+
tax_inclusive: bool,
|
|
94
|
+
tax_rate: Integer,
|
|
95
|
+
addons: ::Array[Dodopayments::Models::CheckoutSessionPreviewResponse::ProductCart::Addon]?,
|
|
96
|
+
description: String?,
|
|
97
|
+
discount_amount: Integer?,
|
|
98
|
+
discount_cycle: Integer?,
|
|
99
|
+
name: String?,
|
|
100
|
+
tax: Integer?
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
class ProductCart < Dodopayments::Internal::Type::BaseModel
|
|
104
|
+
attr_accessor currency: Dodopayments::Models::currency
|
|
105
|
+
|
|
106
|
+
attr_accessor discounted_price: Integer
|
|
107
|
+
|
|
108
|
+
attr_accessor is_subscription: bool
|
|
109
|
+
|
|
110
|
+
attr_accessor is_usage_based: bool
|
|
111
|
+
|
|
112
|
+
attr_accessor meters: ::Array[Dodopayments::Models::CheckoutSessionPreviewResponse::ProductCart::Meter]
|
|
113
|
+
|
|
114
|
+
attr_accessor og_currency: Dodopayments::Models::currency
|
|
115
|
+
|
|
116
|
+
attr_accessor og_price: Integer
|
|
117
|
+
|
|
118
|
+
attr_accessor product_id: String
|
|
119
|
+
|
|
120
|
+
attr_accessor quantity: Integer
|
|
121
|
+
|
|
122
|
+
attr_accessor tax_category: Dodopayments::Models::tax_category
|
|
123
|
+
|
|
124
|
+
attr_accessor tax_inclusive: bool
|
|
125
|
+
|
|
126
|
+
attr_accessor tax_rate: Integer
|
|
127
|
+
|
|
128
|
+
attr_accessor addons: ::Array[Dodopayments::Models::CheckoutSessionPreviewResponse::ProductCart::Addon]?
|
|
129
|
+
|
|
130
|
+
attr_accessor description: String?
|
|
131
|
+
|
|
132
|
+
attr_accessor discount_amount: Integer?
|
|
133
|
+
|
|
134
|
+
attr_accessor discount_cycle: Integer?
|
|
135
|
+
|
|
136
|
+
attr_accessor name: String?
|
|
137
|
+
|
|
138
|
+
attr_accessor tax: Integer?
|
|
139
|
+
|
|
140
|
+
def initialize: (
|
|
141
|
+
currency: Dodopayments::Models::currency,
|
|
142
|
+
discounted_price: Integer,
|
|
143
|
+
is_subscription: bool,
|
|
144
|
+
is_usage_based: bool,
|
|
145
|
+
meters: ::Array[Dodopayments::Models::CheckoutSessionPreviewResponse::ProductCart::Meter],
|
|
146
|
+
og_currency: Dodopayments::Models::currency,
|
|
147
|
+
og_price: Integer,
|
|
148
|
+
product_id: String,
|
|
149
|
+
quantity: Integer,
|
|
150
|
+
tax_category: Dodopayments::Models::tax_category,
|
|
151
|
+
tax_inclusive: bool,
|
|
152
|
+
tax_rate: Integer,
|
|
153
|
+
?addons: ::Array[Dodopayments::Models::CheckoutSessionPreviewResponse::ProductCart::Addon]?,
|
|
154
|
+
?description: String?,
|
|
155
|
+
?discount_amount: Integer?,
|
|
156
|
+
?discount_cycle: Integer?,
|
|
157
|
+
?name: String?,
|
|
158
|
+
?tax: Integer?
|
|
159
|
+
) -> void
|
|
160
|
+
|
|
161
|
+
def to_hash: -> {
|
|
162
|
+
currency: Dodopayments::Models::currency,
|
|
163
|
+
discounted_price: Integer,
|
|
164
|
+
is_subscription: bool,
|
|
165
|
+
is_usage_based: bool,
|
|
166
|
+
meters: ::Array[Dodopayments::Models::CheckoutSessionPreviewResponse::ProductCart::Meter],
|
|
167
|
+
og_currency: Dodopayments::Models::currency,
|
|
168
|
+
og_price: Integer,
|
|
169
|
+
product_id: String,
|
|
170
|
+
quantity: Integer,
|
|
171
|
+
tax_category: Dodopayments::Models::tax_category,
|
|
172
|
+
tax_inclusive: bool,
|
|
173
|
+
tax_rate: Integer,
|
|
174
|
+
addons: ::Array[Dodopayments::Models::CheckoutSessionPreviewResponse::ProductCart::Addon]?,
|
|
175
|
+
description: String?,
|
|
176
|
+
discount_amount: Integer?,
|
|
177
|
+
discount_cycle: Integer?,
|
|
178
|
+
name: String?,
|
|
179
|
+
tax: Integer?
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
type meter =
|
|
183
|
+
{
|
|
184
|
+
measurement_unit: String,
|
|
185
|
+
name: String,
|
|
186
|
+
price_per_unit: String,
|
|
187
|
+
description: String?,
|
|
188
|
+
free_threshold: Integer?
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
class Meter < Dodopayments::Internal::Type::BaseModel
|
|
192
|
+
attr_accessor measurement_unit: String
|
|
193
|
+
|
|
194
|
+
attr_accessor name: String
|
|
195
|
+
|
|
196
|
+
attr_accessor price_per_unit: String
|
|
197
|
+
|
|
198
|
+
attr_accessor description: String?
|
|
199
|
+
|
|
200
|
+
attr_accessor free_threshold: Integer?
|
|
201
|
+
|
|
202
|
+
def initialize: (
|
|
203
|
+
measurement_unit: String,
|
|
204
|
+
name: String,
|
|
205
|
+
price_per_unit: String,
|
|
206
|
+
?description: String?,
|
|
207
|
+
?free_threshold: Integer?
|
|
208
|
+
) -> void
|
|
209
|
+
|
|
210
|
+
def to_hash: -> {
|
|
211
|
+
measurement_unit: String,
|
|
212
|
+
name: String,
|
|
213
|
+
price_per_unit: String,
|
|
214
|
+
description: String?,
|
|
215
|
+
free_threshold: Integer?
|
|
216
|
+
}
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
type addon =
|
|
220
|
+
{
|
|
221
|
+
addon_id: String,
|
|
222
|
+
currency: Dodopayments::Models::currency,
|
|
223
|
+
discounted_price: Integer,
|
|
224
|
+
name: String,
|
|
225
|
+
og_currency: Dodopayments::Models::currency,
|
|
226
|
+
og_price: Integer,
|
|
227
|
+
quantity: Integer,
|
|
228
|
+
tax_category: Dodopayments::Models::tax_category,
|
|
229
|
+
tax_inclusive: bool,
|
|
230
|
+
tax_rate: Integer,
|
|
231
|
+
description: String?,
|
|
232
|
+
discount_amount: Integer?,
|
|
233
|
+
tax: Integer?
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
class Addon < Dodopayments::Internal::Type::BaseModel
|
|
237
|
+
attr_accessor addon_id: String
|
|
238
|
+
|
|
239
|
+
attr_accessor currency: Dodopayments::Models::currency
|
|
240
|
+
|
|
241
|
+
attr_accessor discounted_price: Integer
|
|
242
|
+
|
|
243
|
+
attr_accessor name: String
|
|
244
|
+
|
|
245
|
+
attr_accessor og_currency: Dodopayments::Models::currency
|
|
246
|
+
|
|
247
|
+
attr_accessor og_price: Integer
|
|
248
|
+
|
|
249
|
+
attr_accessor quantity: Integer
|
|
250
|
+
|
|
251
|
+
attr_accessor tax_category: Dodopayments::Models::tax_category
|
|
252
|
+
|
|
253
|
+
attr_accessor tax_inclusive: bool
|
|
254
|
+
|
|
255
|
+
attr_accessor tax_rate: Integer
|
|
256
|
+
|
|
257
|
+
attr_accessor description: String?
|
|
258
|
+
|
|
259
|
+
attr_accessor discount_amount: Integer?
|
|
260
|
+
|
|
261
|
+
attr_accessor tax: Integer?
|
|
262
|
+
|
|
263
|
+
def initialize: (
|
|
264
|
+
addon_id: String,
|
|
265
|
+
currency: Dodopayments::Models::currency,
|
|
266
|
+
discounted_price: Integer,
|
|
267
|
+
name: String,
|
|
268
|
+
og_currency: Dodopayments::Models::currency,
|
|
269
|
+
og_price: Integer,
|
|
270
|
+
quantity: Integer,
|
|
271
|
+
tax_category: Dodopayments::Models::tax_category,
|
|
272
|
+
tax_inclusive: bool,
|
|
273
|
+
tax_rate: Integer,
|
|
274
|
+
?description: String?,
|
|
275
|
+
?discount_amount: Integer?,
|
|
276
|
+
?tax: Integer?
|
|
277
|
+
) -> void
|
|
278
|
+
|
|
279
|
+
def to_hash: -> {
|
|
280
|
+
addon_id: String,
|
|
281
|
+
currency: Dodopayments::Models::currency,
|
|
282
|
+
discounted_price: Integer,
|
|
283
|
+
name: String,
|
|
284
|
+
og_currency: Dodopayments::Models::currency,
|
|
285
|
+
og_price: Integer,
|
|
286
|
+
quantity: Integer,
|
|
287
|
+
tax_category: Dodopayments::Models::tax_category,
|
|
288
|
+
tax_inclusive: bool,
|
|
289
|
+
tax_rate: Integer,
|
|
290
|
+
description: String?,
|
|
291
|
+
discount_amount: Integer?,
|
|
292
|
+
tax: Integer?
|
|
293
|
+
}
|
|
294
|
+
end
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
type recurring_breakup =
|
|
298
|
+
{
|
|
299
|
+
discount: Integer,
|
|
300
|
+
subtotal: Integer,
|
|
301
|
+
total_amount: Integer,
|
|
302
|
+
tax: Integer?
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
class RecurringBreakup < Dodopayments::Internal::Type::BaseModel
|
|
306
|
+
attr_accessor discount: Integer
|
|
307
|
+
|
|
308
|
+
attr_accessor subtotal: Integer
|
|
309
|
+
|
|
310
|
+
attr_accessor total_amount: Integer
|
|
311
|
+
|
|
312
|
+
attr_accessor tax: Integer?
|
|
313
|
+
|
|
314
|
+
def initialize: (
|
|
315
|
+
discount: Integer,
|
|
316
|
+
subtotal: Integer,
|
|
317
|
+
total_amount: Integer,
|
|
318
|
+
?tax: Integer?
|
|
319
|
+
) -> void
|
|
320
|
+
|
|
321
|
+
def to_hash: -> {
|
|
322
|
+
discount: Integer,
|
|
323
|
+
subtotal: Integer,
|
|
324
|
+
total_amount: Integer,
|
|
325
|
+
tax: Integer?
|
|
326
|
+
}
|
|
327
|
+
end
|
|
328
|
+
end
|
|
329
|
+
end
|
|
330
|
+
end
|
|
@@ -15,6 +15,7 @@ module Dodopayments
|
|
|
15
15
|
metadata: ::Hash[Symbol, String]?,
|
|
16
16
|
minimal_address: bool,
|
|
17
17
|
payment_method_id: String?,
|
|
18
|
+
product_collection_id: String?,
|
|
18
19
|
return_url: String?,
|
|
19
20
|
short_link: bool,
|
|
20
21
|
show_saved_payment_methods: bool,
|
|
@@ -60,6 +61,8 @@ module Dodopayments
|
|
|
60
61
|
|
|
61
62
|
attr_accessor payment_method_id: String?
|
|
62
63
|
|
|
64
|
+
attr_accessor product_collection_id: String?
|
|
65
|
+
|
|
63
66
|
attr_accessor return_url: String?
|
|
64
67
|
|
|
65
68
|
attr_reader short_link: bool?
|
|
@@ -86,6 +89,7 @@ module Dodopayments
|
|
|
86
89
|
?metadata: ::Hash[Symbol, String]?,
|
|
87
90
|
?minimal_address: bool,
|
|
88
91
|
?payment_method_id: String?,
|
|
92
|
+
?product_collection_id: String?,
|
|
89
93
|
?return_url: String?,
|
|
90
94
|
?short_link: bool,
|
|
91
95
|
?show_saved_payment_methods: bool,
|
|
@@ -106,6 +110,7 @@ module Dodopayments
|
|
|
106
110
|
metadata: ::Hash[Symbol, String]?,
|
|
107
111
|
minimal_address: bool,
|
|
108
112
|
payment_method_id: String?,
|
|
113
|
+
product_collection_id: String?,
|
|
109
114
|
return_url: String?,
|
|
110
115
|
short_link: bool,
|
|
111
116
|
show_saved_payment_methods: bool,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type discount_retrieve_by_code_params =
|
|
4
|
+
{ } & Dodopayments::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class DiscountRetrieveByCodeParams < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: Dodopayments::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: Dodopayments::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -26,6 +26,7 @@ module Dodopayments
|
|
|
26
26
|
error_code: String?,
|
|
27
27
|
error_message: String?,
|
|
28
28
|
invoice_id: String?,
|
|
29
|
+
invoice_url: String?,
|
|
29
30
|
payment_link: String?,
|
|
30
31
|
payment_method: String?,
|
|
31
32
|
payment_method_type: String?,
|
|
@@ -86,6 +87,8 @@ module Dodopayments
|
|
|
86
87
|
|
|
87
88
|
attr_accessor invoice_id: String?
|
|
88
89
|
|
|
90
|
+
attr_accessor invoice_url: String?
|
|
91
|
+
|
|
89
92
|
attr_accessor payment_link: String?
|
|
90
93
|
|
|
91
94
|
attr_accessor payment_method: String?
|
|
@@ -129,6 +132,7 @@ module Dodopayments
|
|
|
129
132
|
?error_code: String?,
|
|
130
133
|
?error_message: String?,
|
|
131
134
|
?invoice_id: String?,
|
|
135
|
+
?invoice_url: String?,
|
|
132
136
|
?payment_link: String?,
|
|
133
137
|
?payment_method: String?,
|
|
134
138
|
?payment_method_type: String?,
|
|
@@ -165,6 +169,7 @@ module Dodopayments
|
|
|
165
169
|
error_code: String?,
|
|
166
170
|
error_message: String?,
|
|
167
171
|
invoice_id: String?,
|
|
172
|
+
invoice_url: String?,
|
|
168
173
|
payment_link: String?,
|
|
169
174
|
payment_method: String?,
|
|
170
175
|
payment_method_type: String?,
|
|
@@ -1,218 +1,48 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type payment_method_types =
|
|
4
|
-
:
|
|
5
|
-
| :
|
|
6
|
-
| :
|
|
7
|
-
| :
|
|
8
|
-
| :ali_pay
|
|
9
|
-
| :ali_pay_hk
|
|
10
|
-
| :alma
|
|
11
|
-
| :amazon_pay
|
|
4
|
+
:credit
|
|
5
|
+
| :debit
|
|
6
|
+
| :upi_collect
|
|
7
|
+
| :upi_intent
|
|
12
8
|
| :apple_pay
|
|
13
|
-
| :atome
|
|
14
|
-
| :bacs
|
|
15
|
-
| :bancontact_card
|
|
16
|
-
| :becs
|
|
17
|
-
| :benefit
|
|
18
|
-
| :bizum
|
|
19
|
-
| :blik
|
|
20
|
-
| :boleto
|
|
21
|
-
| :bca_bank_transfer
|
|
22
|
-
| :bni_va
|
|
23
|
-
| :bri_va
|
|
24
|
-
| :card_redirect
|
|
25
|
-
| :cimb_va
|
|
26
|
-
| :classic
|
|
27
|
-
| :credit
|
|
28
|
-
| :crypto_currency
|
|
29
9
|
| :cashapp
|
|
30
|
-
| :dana
|
|
31
|
-
| :danamon_va
|
|
32
|
-
| :debit
|
|
33
|
-
| :duit_now
|
|
34
|
-
| :efecty
|
|
35
|
-
| :eft
|
|
36
|
-
| :eps
|
|
37
|
-
| :fps
|
|
38
|
-
| :evoucher
|
|
39
|
-
| :giropay
|
|
40
|
-
| :givex
|
|
41
10
|
| :google_pay
|
|
42
|
-
| :go_pay
|
|
43
|
-
| :gcash
|
|
44
|
-
| :ideal
|
|
45
|
-
| :interac
|
|
46
|
-
| :indomaret
|
|
47
|
-
| :klarna
|
|
48
|
-
| :kakao_pay
|
|
49
|
-
| :local_bank_redirect
|
|
50
|
-
| :mandiri_va
|
|
51
|
-
| :knet
|
|
52
|
-
| :mb_way
|
|
53
|
-
| :mobile_pay
|
|
54
|
-
| :momo
|
|
55
|
-
| :momo_atm
|
|
56
11
|
| :multibanco
|
|
57
|
-
| :
|
|
58
|
-
| :
|
|
59
|
-
| :
|
|
60
|
-
| :online_banking_fpx
|
|
61
|
-
| :online_banking_poland
|
|
62
|
-
| :online_banking_slovakia
|
|
63
|
-
| :oxxo
|
|
64
|
-
| :pago_efectivo
|
|
65
|
-
| :permata_bank_transfer
|
|
66
|
-
| :open_banking_uk
|
|
67
|
-
| :pay_bright
|
|
68
|
-
| :paypal
|
|
69
|
-
| :paze
|
|
70
|
-
| :pix
|
|
71
|
-
| :pay_safe_card
|
|
12
|
+
| :bancontact_card
|
|
13
|
+
| :eps
|
|
14
|
+
| :ideal
|
|
72
15
|
| :przelewy24
|
|
73
|
-
| :
|
|
74
|
-
| :
|
|
75
|
-
| :
|
|
76
|
-
| :red_pagos
|
|
77
|
-
| :samsung_pay
|
|
16
|
+
| :paypal
|
|
17
|
+
| :affirm
|
|
18
|
+
| :klarna
|
|
78
19
|
| :sepa
|
|
79
|
-
| :
|
|
80
|
-
| :
|
|
81
|
-
| :
|
|
82
|
-
| :touch_n_go
|
|
83
|
-
| :trustly
|
|
84
|
-
| :twint
|
|
85
|
-
| :upi_collect
|
|
86
|
-
| :upi_intent
|
|
87
|
-
| :vipps
|
|
88
|
-
| :viet_qr
|
|
89
|
-
| :venmo
|
|
90
|
-
| :walley
|
|
91
|
-
| :we_chat_pay
|
|
92
|
-
| :seven_eleven
|
|
93
|
-
| :lawson
|
|
94
|
-
| :mini_stop
|
|
95
|
-
| :family_mart
|
|
96
|
-
| :seicomart
|
|
97
|
-
| :pay_easy
|
|
98
|
-
| :local_bank_transfer
|
|
99
|
-
| :mifinity
|
|
100
|
-
| :open_banking_pis
|
|
101
|
-
| :direct_carrier_billing
|
|
102
|
-
| :instant_bank_transfer
|
|
103
|
-
| :billie
|
|
104
|
-
| :zip
|
|
105
|
-
| :revolut_pay
|
|
106
|
-
| :naver_pay
|
|
107
|
-
| :payco
|
|
20
|
+
| :ach
|
|
21
|
+
| :amazon_pay
|
|
22
|
+
| :afterpay_clearpay
|
|
108
23
|
|
|
109
24
|
module PaymentMethodTypes
|
|
110
25
|
extend Dodopayments::Internal::Type::Enum
|
|
111
26
|
|
|
112
|
-
ACH: :ach
|
|
113
|
-
AFFIRM: :affirm
|
|
114
|
-
AFTERPAY_CLEARPAY: :afterpay_clearpay
|
|
115
|
-
ALFAMART: :alfamart
|
|
116
|
-
ALI_PAY: :ali_pay
|
|
117
|
-
ALI_PAY_HK: :ali_pay_hk
|
|
118
|
-
ALMA: :alma
|
|
119
|
-
AMAZON_PAY: :amazon_pay
|
|
120
|
-
APPLE_PAY: :apple_pay
|
|
121
|
-
ATOME: :atome
|
|
122
|
-
BACS: :bacs
|
|
123
|
-
BANCONTACT_CARD: :bancontact_card
|
|
124
|
-
BECS: :becs
|
|
125
|
-
BENEFIT: :benefit
|
|
126
|
-
BIZUM: :bizum
|
|
127
|
-
BLIK: :blik
|
|
128
|
-
BOLETO: :boleto
|
|
129
|
-
BCA_BANK_TRANSFER: :bca_bank_transfer
|
|
130
|
-
BNI_VA: :bni_va
|
|
131
|
-
BRI_VA: :bri_va
|
|
132
|
-
CARD_REDIRECT: :card_redirect
|
|
133
|
-
CIMB_VA: :cimb_va
|
|
134
|
-
CLASSIC: :classic
|
|
135
27
|
CREDIT: :credit
|
|
136
|
-
CRYPTO_CURRENCY: :crypto_currency
|
|
137
|
-
CASHAPP: :cashapp
|
|
138
|
-
DANA: :dana
|
|
139
|
-
DANAMON_VA: :danamon_va
|
|
140
28
|
DEBIT: :debit
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
FPS: :fps
|
|
146
|
-
EVOUCHER: :evoucher
|
|
147
|
-
GIROPAY: :giropay
|
|
148
|
-
GIVEX: :givex
|
|
29
|
+
UPI_COLLECT: :upi_collect
|
|
30
|
+
UPI_INTENT: :upi_intent
|
|
31
|
+
APPLE_PAY: :apple_pay
|
|
32
|
+
CASHAPP: :cashapp
|
|
149
33
|
GOOGLE_PAY: :google_pay
|
|
150
|
-
GO_PAY: :go_pay
|
|
151
|
-
GCASH: :gcash
|
|
152
|
-
IDEAL: :ideal
|
|
153
|
-
INTERAC: :interac
|
|
154
|
-
INDOMARET: :indomaret
|
|
155
|
-
KLARNA: :klarna
|
|
156
|
-
KAKAO_PAY: :kakao_pay
|
|
157
|
-
LOCAL_BANK_REDIRECT: :local_bank_redirect
|
|
158
|
-
MANDIRI_VA: :mandiri_va
|
|
159
|
-
KNET: :knet
|
|
160
|
-
MB_WAY: :mb_way
|
|
161
|
-
MOBILE_PAY: :mobile_pay
|
|
162
|
-
MOMO: :momo
|
|
163
|
-
MOMO_ATM: :momo_atm
|
|
164
34
|
MULTIBANCO: :multibanco
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
ONLINE_BANKING_FPX: :online_banking_fpx
|
|
169
|
-
ONLINE_BANKING_POLAND: :online_banking_poland
|
|
170
|
-
ONLINE_BANKING_SLOVAKIA: :online_banking_slovakia
|
|
171
|
-
OXXO: :oxxo
|
|
172
|
-
PAGO_EFECTIVO: :pago_efectivo
|
|
173
|
-
PERMATA_BANK_TRANSFER: :permata_bank_transfer
|
|
174
|
-
OPEN_BANKING_UK: :open_banking_uk
|
|
175
|
-
PAY_BRIGHT: :pay_bright
|
|
176
|
-
PAYPAL: :paypal
|
|
177
|
-
PAZE: :paze
|
|
178
|
-
PIX: :pix
|
|
179
|
-
PAY_SAFE_CARD: :pay_safe_card
|
|
35
|
+
BANCONTACT_CARD: :bancontact_card
|
|
36
|
+
EPS: :eps
|
|
37
|
+
IDEAL: :ideal
|
|
180
38
|
PRZELEWY24: :przelewy24
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
RED_PAGOS: :red_pagos
|
|
185
|
-
SAMSUNG_PAY: :samsung_pay
|
|
39
|
+
PAYPAL: :paypal
|
|
40
|
+
AFFIRM: :affirm
|
|
41
|
+
KLARNA: :klarna
|
|
186
42
|
SEPA: :sepa
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
TOUCH_N_GO: :touch_n_go
|
|
191
|
-
TRUSTLY: :trustly
|
|
192
|
-
TWINT: :twint
|
|
193
|
-
UPI_COLLECT: :upi_collect
|
|
194
|
-
UPI_INTENT: :upi_intent
|
|
195
|
-
VIPPS: :vipps
|
|
196
|
-
VIET_QR: :viet_qr
|
|
197
|
-
VENMO: :venmo
|
|
198
|
-
WALLEY: :walley
|
|
199
|
-
WE_CHAT_PAY: :we_chat_pay
|
|
200
|
-
SEVEN_ELEVEN: :seven_eleven
|
|
201
|
-
LAWSON: :lawson
|
|
202
|
-
MINI_STOP: :mini_stop
|
|
203
|
-
FAMILY_MART: :family_mart
|
|
204
|
-
SEICOMART: :seicomart
|
|
205
|
-
PAY_EASY: :pay_easy
|
|
206
|
-
LOCAL_BANK_TRANSFER: :local_bank_transfer
|
|
207
|
-
MIFINITY: :mifinity
|
|
208
|
-
OPEN_BANKING_PIS: :open_banking_pis
|
|
209
|
-
DIRECT_CARRIER_BILLING: :direct_carrier_billing
|
|
210
|
-
INSTANT_BANK_TRANSFER: :instant_bank_transfer
|
|
211
|
-
BILLIE: :billie
|
|
212
|
-
ZIP: :zip
|
|
213
|
-
REVOLUT_PAY: :revolut_pay
|
|
214
|
-
NAVER_PAY: :naver_pay
|
|
215
|
-
PAYCO: :payco
|
|
43
|
+
ACH: :ach
|
|
44
|
+
AMAZON_PAY: :amazon_pay
|
|
45
|
+
AFTERPAY_CLEARPAY: :afterpay_clearpay
|
|
216
46
|
|
|
217
47
|
def self?.values: -> ::Array[Dodopayments::Models::payment_method_types]
|
|
218
48
|
end
|
|
@@ -19,7 +19,8 @@ module Dodopayments
|
|
|
19
19
|
license_key_activation_message: String?,
|
|
20
20
|
license_key_activations_limit: Integer?,
|
|
21
21
|
license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
22
|
-
name: String
|
|
22
|
+
name: String?,
|
|
23
|
+
product_collection_id: String?
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
class Product < Dodopayments::Internal::Type::BaseModel
|
|
@@ -59,6 +60,8 @@ module Dodopayments
|
|
|
59
60
|
|
|
60
61
|
attr_accessor name: String?
|
|
61
62
|
|
|
63
|
+
attr_accessor product_collection_id: String?
|
|
64
|
+
|
|
62
65
|
def initialize: (
|
|
63
66
|
brand_id: String,
|
|
64
67
|
business_id: String,
|
|
@@ -77,7 +80,8 @@ module Dodopayments
|
|
|
77
80
|
?license_key_activation_message: String?,
|
|
78
81
|
?license_key_activations_limit: Integer?,
|
|
79
82
|
?license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
80
|
-
?name: String
|
|
83
|
+
?name: String?,
|
|
84
|
+
?product_collection_id: String?
|
|
81
85
|
) -> void
|
|
82
86
|
|
|
83
87
|
def to_hash: -> {
|
|
@@ -98,7 +102,8 @@ module Dodopayments
|
|
|
98
102
|
license_key_activation_message: String?,
|
|
99
103
|
license_key_activations_limit: Integer?,
|
|
100
104
|
license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
101
|
-
name: String
|
|
105
|
+
name: String?,
|
|
106
|
+
product_collection_id: String?
|
|
102
107
|
}
|
|
103
108
|
|
|
104
109
|
type digital_product_delivery =
|