dodopayments 2.10.0 → 2.11.1
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 +22 -0
- data/README.md +9 -9
- data/lib/dodopayments/client.rb +4 -0
- data/lib/dodopayments/models/checkout_session_flags.rb +15 -1
- data/lib/dodopayments/models/checkout_session_request.rb +11 -1
- data/lib/dodopayments/models/checkout_session_response.rb +33 -1
- data/lib/dodopayments/models/discount_detail.rb +143 -0
- data/lib/dodopayments/models/filter_type.rb +71 -0
- data/lib/dodopayments/models/github_permission.rb +19 -0
- data/lib/dodopayments/models/integration_config.rb +3 -19
- data/lib/dodopayments/models/integration_config_response.rb +3 -19
- data/lib/dodopayments/models/invoices/payment_retrieve_payout_params.rb +22 -0
- data/lib/dodopayments/models/meter_filter.rb +3 -331
- data/lib/dodopayments/models/payment.rb +3 -141
- data/lib/dodopayments/models/payment_create_params.rb +11 -1
- data/lib/dodopayments/models/payment_method_types.rb +1 -0
- data/lib/dodopayments/models/product_collection.rb +74 -0
- data/lib/dodopayments/models/product_collection_create_params.rb +47 -0
- data/lib/dodopayments/models/product_collection_delete_params.rb +20 -0
- data/lib/dodopayments/models/product_collection_list_params.rb +46 -0
- data/lib/dodopayments/models/product_collection_list_response.rb +65 -0
- data/lib/dodopayments/models/product_collection_retrieve_params.rb +20 -0
- data/lib/dodopayments/models/product_collection_unarchive_params.rb +20 -0
- data/lib/dodopayments/models/product_collection_unarchive_response.rb +33 -0
- data/lib/dodopayments/models/product_collection_update_images_params.rb +29 -0
- data/lib/dodopayments/models/product_collection_update_images_response.rb +25 -0
- data/lib/dodopayments/models/product_collection_update_params.rb +61 -0
- data/lib/dodopayments/models/product_collections/group_create_params.rb +22 -0
- data/lib/dodopayments/models/product_collections/group_delete_params.rb +28 -0
- data/lib/dodopayments/models/product_collections/group_product.rb +26 -0
- data/lib/dodopayments/models/product_collections/group_update_params.rb +59 -0
- data/lib/dodopayments/models/product_collections/groups/item_create_params.rb +41 -0
- data/lib/dodopayments/models/product_collections/groups/item_create_response.rb +15 -0
- data/lib/dodopayments/models/product_collections/groups/item_delete_params.rb +36 -0
- data/lib/dodopayments/models/product_collections/groups/item_update_params.rb +47 -0
- data/lib/dodopayments/models/product_collections/groups/product_collection_product.rb +132 -0
- data/lib/dodopayments/models/product_collections/product_collection_group_details.rb +42 -0
- data/lib/dodopayments/models/product_collections/product_collection_group_response.rb +39 -0
- data/lib/dodopayments/models/subscription.rb +13 -142
- data/lib/dodopayments/models/subscription_create_params.rb +11 -1
- data/lib/dodopayments/models/subscription_list_response.rb +10 -1
- data/lib/dodopayments/models/subscription_update_params.rb +12 -1
- data/lib/dodopayments/models/subscription_update_payment_method_params.rb +9 -9
- data/lib/dodopayments/models/webhook_event_type.rb +1 -5
- data/lib/dodopayments/models.rb +24 -0
- data/lib/dodopayments/resources/checkout_sessions.rb +6 -2
- data/lib/dodopayments/resources/invoices/payments.rb +18 -0
- data/lib/dodopayments/resources/payments.rb +3 -1
- data/lib/dodopayments/resources/product_collections/groups/items.rb +111 -0
- data/lib/dodopayments/resources/product_collections/groups.rb +109 -0
- data/lib/dodopayments/resources/product_collections.rb +179 -0
- data/lib/dodopayments/resources/subscriptions.rb +9 -5
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +29 -0
- data/rbi/dodopayments/client.rbi +3 -0
- data/rbi/dodopayments/models/checkout_session_flags.rbi +23 -0
- data/rbi/dodopayments/models/checkout_session_request.rbi +12 -0
- data/rbi/dodopayments/models/checkout_session_response.rbi +43 -5
- data/rbi/dodopayments/models/discount_detail.rbi +161 -0
- data/rbi/dodopayments/models/filter_type.rbi +112 -0
- data/rbi/dodopayments/models/github_permission.rbi +26 -0
- data/rbi/dodopayments/models/integration_config.rbi +3 -59
- data/rbi/dodopayments/models/integration_config_response.rbi +3 -59
- data/rbi/dodopayments/models/invoices/payment_retrieve_payout_params.rbi +40 -0
- data/rbi/dodopayments/models/meter_filter.rbi +3 -572
- data/rbi/dodopayments/models/payment.rbi +3 -163
- data/rbi/dodopayments/models/payment_create_params.rbi +12 -0
- data/rbi/dodopayments/models/payment_method_types.rbi +1 -0
- data/rbi/dodopayments/models/product_collection.rbi +108 -0
- data/rbi/dodopayments/models/product_collection_create_params.rbi +82 -0
- data/rbi/dodopayments/models/product_collection_delete_params.rbi +38 -0
- data/rbi/dodopayments/models/product_collection_list_params.rbi +82 -0
- data/rbi/dodopayments/models/product_collection_list_response.rbi +88 -0
- data/rbi/dodopayments/models/product_collection_retrieve_params.rbi +38 -0
- data/rbi/dodopayments/models/product_collection_unarchive_params.rbi +38 -0
- data/rbi/dodopayments/models/product_collection_unarchive_response.rbi +56 -0
- data/rbi/dodopayments/models/product_collection_update_images_params.rbi +52 -0
- data/rbi/dodopayments/models/product_collection_update_images_response.rbi +40 -0
- data/rbi/dodopayments/models/product_collection_update_params.rbi +84 -0
- data/rbi/dodopayments/models/product_collections/group_create_params.rbi +40 -0
- data/rbi/dodopayments/models/product_collections/group_delete_params.rbi +48 -0
- data/rbi/dodopayments/models/product_collections/group_product.rbi +46 -0
- data/rbi/dodopayments/models/product_collections/group_update_params.rbi +80 -0
- data/rbi/dodopayments/models/product_collections/groups/item_create_params.rbi +68 -0
- data/rbi/dodopayments/models/product_collections/groups/item_create_response.rbi +17 -0
- data/rbi/dodopayments/models/product_collections/groups/item_delete_params.rbi +55 -0
- data/rbi/dodopayments/models/product_collections/groups/item_update_params.rbi +68 -0
- data/rbi/dodopayments/models/product_collections/groups/product_collection_product.rbi +148 -0
- data/rbi/dodopayments/models/product_collections/product_collection_group_details.rbi +67 -0
- data/rbi/dodopayments/models/product_collections/product_collection_group_response.rbi +68 -0
- data/rbi/dodopayments/models/subscription.rbi +13 -164
- data/rbi/dodopayments/models/subscription_create_params.rbi +12 -0
- data/rbi/dodopayments/models/subscription_list_response.rbi +10 -0
- data/rbi/dodopayments/models/subscription_update_params.rbi +14 -0
- data/rbi/dodopayments/models/subscription_update_payment_method_params.rbi +16 -16
- data/rbi/dodopayments/models/webhook_event_type.rbi +4 -18
- data/rbi/dodopayments/models.rbi +31 -0
- data/rbi/dodopayments/resources/checkout_sessions.rbi +10 -0
- data/rbi/dodopayments/resources/invoices/payments.rbi +9 -0
- data/rbi/dodopayments/resources/payments.rbi +5 -0
- data/rbi/dodopayments/resources/product_collections/groups/items.rbi +83 -0
- data/rbi/dodopayments/resources/product_collections/groups.rbi +88 -0
- data/rbi/dodopayments/resources/product_collections.rbi +149 -0
- data/rbi/dodopayments/resources/subscriptions.rbi +15 -4
- data/sig/dodopayments/client.rbs +2 -0
- data/sig/dodopayments/models/checkout_session_flags.rbs +7 -0
- data/sig/dodopayments/models/checkout_session_request.rbs +5 -0
- data/sig/dodopayments/models/checkout_session_response.rbs +27 -3
- data/sig/dodopayments/models/discount_detail.rbs +95 -0
- data/sig/dodopayments/models/filter_type.rbs +52 -0
- data/sig/dodopayments/models/github_permission.rbs +17 -0
- data/sig/dodopayments/models/integration_config.rbs +4 -18
- data/sig/dodopayments/models/integration_config_response.rbs +4 -18
- data/sig/dodopayments/models/invoices/payment_retrieve_payout_params.rbs +25 -0
- data/sig/dodopayments/models/meter_filter.rbs +4 -252
- data/sig/dodopayments/models/payment.rbs +4 -96
- data/sig/dodopayments/models/payment_create_params.rbs +5 -0
- data/sig/dodopayments/models/payment_method_types.rbs +2 -0
- data/sig/dodopayments/models/product_collection.rbs +55 -0
- data/sig/dodopayments/models/product_collection_create_params.rbs +41 -0
- data/sig/dodopayments/models/product_collection_delete_params.rbs +23 -0
- data/sig/dodopayments/models/product_collection_list_params.rbs +49 -0
- data/sig/dodopayments/models/product_collection_list_response.rbs +50 -0
- data/sig/dodopayments/models/product_collection_retrieve_params.rbs +23 -0
- data/sig/dodopayments/models/product_collection_unarchive_params.rbs +23 -0
- data/sig/dodopayments/models/product_collection_unarchive_response.rbs +30 -0
- data/sig/dodopayments/models/product_collection_update_images_params.rbs +28 -0
- data/sig/dodopayments/models/product_collection_update_images_response.rbs +16 -0
- data/sig/dodopayments/models/product_collection_update_params.rbs +51 -0
- data/sig/dodopayments/models/product_collections/group_create_params.rbs +27 -0
- data/sig/dodopayments/models/product_collections/group_delete_params.rbs +30 -0
- data/sig/dodopayments/models/product_collections/group_product.rbs +17 -0
- data/sig/dodopayments/models/product_collections/group_update_params.rbs +48 -0
- data/sig/dodopayments/models/product_collections/groups/item_create_params.rbs +40 -0
- data/sig/dodopayments/models/product_collections/groups/item_create_response.rbs +12 -0
- data/sig/dodopayments/models/product_collections/groups/item_delete_params.rbs +36 -0
- data/sig/dodopayments/models/product_collections/groups/item_update_params.rbs +40 -0
- data/sig/dodopayments/models/product_collections/groups/product_collection_product.rbs +99 -0
- data/sig/dodopayments/models/product_collections/product_collection_group_details.rbs +34 -0
- data/sig/dodopayments/models/product_collections/product_collection_group_response.rbs +39 -0
- data/sig/dodopayments/models/subscription.rbs +9 -96
- data/sig/dodopayments/models/subscription_create_params.rbs +5 -0
- data/sig/dodopayments/models/subscription_list_response.rbs +5 -0
- data/sig/dodopayments/models/subscription_update_params.rbs +5 -0
- data/sig/dodopayments/models/subscription_update_payment_method_params.rbs +9 -9
- data/sig/dodopayments/models/webhook_event_type.rbs +2 -10
- data/sig/dodopayments/models.rbs +24 -0
- data/sig/dodopayments/resources/checkout_sessions.rbs +2 -0
- data/sig/dodopayments/resources/invoices/payments.rbs +5 -0
- data/sig/dodopayments/resources/payments.rbs +1 -0
- data/sig/dodopayments/resources/product_collections/groups/items.rbs +33 -0
- data/sig/dodopayments/resources/product_collections/groups.rbs +34 -0
- data/sig/dodopayments/resources/product_collections.rbs +56 -0
- data/sig/dodopayments/resources/subscriptions.rbs +3 -1
- metadata +89 -2
|
@@ -24,7 +24,7 @@ module Dodopayments
|
|
|
24
24
|
checkout_session_id: String?,
|
|
25
25
|
custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
26
26
|
discount_id: String?,
|
|
27
|
-
discounts: ::Array[Dodopayments::
|
|
27
|
+
discounts: ::Array[Dodopayments::DiscountDetail]?,
|
|
28
28
|
error_code: String?,
|
|
29
29
|
error_message: String?,
|
|
30
30
|
invoice_id: String?,
|
|
@@ -86,7 +86,7 @@ module Dodopayments
|
|
|
86
86
|
|
|
87
87
|
attr_accessor discount_id: String?
|
|
88
88
|
|
|
89
|
-
attr_accessor discounts: ::Array[Dodopayments::
|
|
89
|
+
attr_accessor discounts: ::Array[Dodopayments::DiscountDetail]?
|
|
90
90
|
|
|
91
91
|
attr_accessor error_code: String?
|
|
92
92
|
|
|
@@ -139,7 +139,7 @@ module Dodopayments
|
|
|
139
139
|
?checkout_session_id: String?,
|
|
140
140
|
?custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
141
141
|
?discount_id: String?,
|
|
142
|
-
?discounts: ::Array[Dodopayments::
|
|
142
|
+
?discounts: ::Array[Dodopayments::DiscountDetail]?,
|
|
143
143
|
?error_code: String?,
|
|
144
144
|
?error_message: String?,
|
|
145
145
|
?invoice_id: String?,
|
|
@@ -179,7 +179,7 @@ module Dodopayments
|
|
|
179
179
|
checkout_session_id: String?,
|
|
180
180
|
custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
181
181
|
discount_id: String?,
|
|
182
|
-
discounts: ::Array[Dodopayments::
|
|
182
|
+
discounts: ::Array[Dodopayments::DiscountDetail]?,
|
|
183
183
|
error_code: String?,
|
|
184
184
|
error_message: String?,
|
|
185
185
|
invoice_id: String?,
|
|
@@ -196,98 +196,6 @@ module Dodopayments
|
|
|
196
196
|
updated_at: Time?
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
type discount =
|
|
200
|
-
{
|
|
201
|
-
amount: Integer,
|
|
202
|
-
business_id: String,
|
|
203
|
-
code: String,
|
|
204
|
-
created_at: Time,
|
|
205
|
-
discount_id: String,
|
|
206
|
-
metadata: ::Hash[Symbol, String],
|
|
207
|
-
position: Integer,
|
|
208
|
-
preserve_on_plan_change: bool,
|
|
209
|
-
restricted_to: ::Array[String],
|
|
210
|
-
times_used: Integer,
|
|
211
|
-
type: Dodopayments::Models::discount_type,
|
|
212
|
-
cycles_remaining: Integer?,
|
|
213
|
-
expires_at: Time?,
|
|
214
|
-
name: String?,
|
|
215
|
-
subscription_cycles: Integer?,
|
|
216
|
-
usage_limit: Integer?
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
class Discount < Dodopayments::Internal::Type::BaseModel
|
|
220
|
-
attr_accessor amount: Integer
|
|
221
|
-
|
|
222
|
-
attr_accessor business_id: String
|
|
223
|
-
|
|
224
|
-
attr_accessor code: String
|
|
225
|
-
|
|
226
|
-
attr_accessor created_at: Time
|
|
227
|
-
|
|
228
|
-
attr_accessor discount_id: String
|
|
229
|
-
|
|
230
|
-
attr_accessor metadata: ::Hash[Symbol, String]
|
|
231
|
-
|
|
232
|
-
attr_accessor position: Integer
|
|
233
|
-
|
|
234
|
-
attr_accessor preserve_on_plan_change: bool
|
|
235
|
-
|
|
236
|
-
attr_accessor restricted_to: ::Array[String]
|
|
237
|
-
|
|
238
|
-
attr_accessor times_used: Integer
|
|
239
|
-
|
|
240
|
-
attr_accessor type: Dodopayments::Models::discount_type
|
|
241
|
-
|
|
242
|
-
attr_accessor cycles_remaining: Integer?
|
|
243
|
-
|
|
244
|
-
attr_accessor expires_at: Time?
|
|
245
|
-
|
|
246
|
-
attr_accessor name: String?
|
|
247
|
-
|
|
248
|
-
attr_accessor subscription_cycles: Integer?
|
|
249
|
-
|
|
250
|
-
attr_accessor usage_limit: Integer?
|
|
251
|
-
|
|
252
|
-
def initialize: (
|
|
253
|
-
amount: Integer,
|
|
254
|
-
business_id: String,
|
|
255
|
-
code: String,
|
|
256
|
-
created_at: Time,
|
|
257
|
-
discount_id: String,
|
|
258
|
-
metadata: ::Hash[Symbol, String],
|
|
259
|
-
position: Integer,
|
|
260
|
-
preserve_on_plan_change: bool,
|
|
261
|
-
restricted_to: ::Array[String],
|
|
262
|
-
times_used: Integer,
|
|
263
|
-
type: Dodopayments::Models::discount_type,
|
|
264
|
-
?cycles_remaining: Integer?,
|
|
265
|
-
?expires_at: Time?,
|
|
266
|
-
?name: String?,
|
|
267
|
-
?subscription_cycles: Integer?,
|
|
268
|
-
?usage_limit: Integer?
|
|
269
|
-
) -> void
|
|
270
|
-
|
|
271
|
-
def to_hash: -> {
|
|
272
|
-
amount: Integer,
|
|
273
|
-
business_id: String,
|
|
274
|
-
code: String,
|
|
275
|
-
created_at: Time,
|
|
276
|
-
discount_id: String,
|
|
277
|
-
metadata: ::Hash[Symbol, String],
|
|
278
|
-
position: Integer,
|
|
279
|
-
preserve_on_plan_change: bool,
|
|
280
|
-
restricted_to: ::Array[String],
|
|
281
|
-
times_used: Integer,
|
|
282
|
-
type: Dodopayments::Models::discount_type,
|
|
283
|
-
cycles_remaining: Integer?,
|
|
284
|
-
expires_at: Time?,
|
|
285
|
-
name: String?,
|
|
286
|
-
subscription_cycles: Integer?,
|
|
287
|
-
usage_limit: Integer?
|
|
288
|
-
}
|
|
289
|
-
end
|
|
290
|
-
|
|
291
199
|
type product_cart = { product_id: String, quantity: Integer }
|
|
292
200
|
|
|
293
201
|
class ProductCart < Dodopayments::Internal::Type::BaseModel
|
|
@@ -8,6 +8,7 @@ module Dodopayments
|
|
|
8
8
|
adaptive_currency_fees_inclusive: bool?,
|
|
9
9
|
allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
10
10
|
billing_currency: Dodopayments::Models::currency?,
|
|
11
|
+
customer_business_name: String?,
|
|
11
12
|
discount_code: String?,
|
|
12
13
|
discount_codes: ::Array[String]?,
|
|
13
14
|
:force_3ds => bool?,
|
|
@@ -39,6 +40,8 @@ module Dodopayments
|
|
|
39
40
|
|
|
40
41
|
attr_accessor billing_currency: Dodopayments::Models::currency?
|
|
41
42
|
|
|
43
|
+
attr_accessor customer_business_name: String?
|
|
44
|
+
|
|
42
45
|
attr_accessor discount_code: String?
|
|
43
46
|
|
|
44
47
|
attr_accessor discount_codes: ::Array[String]?
|
|
@@ -78,6 +81,7 @@ module Dodopayments
|
|
|
78
81
|
?adaptive_currency_fees_inclusive: bool?,
|
|
79
82
|
?allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
80
83
|
?billing_currency: Dodopayments::Models::currency?,
|
|
84
|
+
?customer_business_name: String?,
|
|
81
85
|
?discount_code: String?,
|
|
82
86
|
?discount_codes: ::Array[String]?,
|
|
83
87
|
?force_3ds: bool?,
|
|
@@ -100,6 +104,7 @@ module Dodopayments
|
|
|
100
104
|
adaptive_currency_fees_inclusive: bool?,
|
|
101
105
|
allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
102
106
|
billing_currency: Dodopayments::Models::currency?,
|
|
107
|
+
customer_business_name: String?,
|
|
103
108
|
discount_code: String?,
|
|
104
109
|
discount_codes: ::Array[String]?,
|
|
105
110
|
:force_3ds => bool?,
|
|
@@ -78,6 +78,7 @@ module Dodopayments
|
|
|
78
78
|
| :sepa
|
|
79
79
|
| :sepa_bank_transfer
|
|
80
80
|
| :sofort
|
|
81
|
+
| :sunbit
|
|
81
82
|
| :swish
|
|
82
83
|
| :touch_n_go
|
|
83
84
|
| :trustly
|
|
@@ -186,6 +187,7 @@ module Dodopayments
|
|
|
186
187
|
SEPA: :sepa
|
|
187
188
|
SEPA_BANK_TRANSFER: :sepa_bank_transfer
|
|
188
189
|
SOFORT: :sofort
|
|
190
|
+
SUNBIT: :sunbit
|
|
189
191
|
SWISH: :swish
|
|
190
192
|
TOUCH_N_GO: :touch_n_go
|
|
191
193
|
TRUSTLY: :trustly
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type product_collection =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
brand_id: String,
|
|
7
|
+
created_at: Time,
|
|
8
|
+
groups: ::Array[Dodopayments::ProductCollections::ProductCollectionGroupResponse],
|
|
9
|
+
name: String,
|
|
10
|
+
updated_at: Time,
|
|
11
|
+
description: String?,
|
|
12
|
+
image: String?
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
class ProductCollection < Dodopayments::Internal::Type::BaseModel
|
|
16
|
+
attr_accessor id: String
|
|
17
|
+
|
|
18
|
+
attr_accessor brand_id: String
|
|
19
|
+
|
|
20
|
+
attr_accessor created_at: Time
|
|
21
|
+
|
|
22
|
+
attr_accessor groups: ::Array[Dodopayments::ProductCollections::ProductCollectionGroupResponse]
|
|
23
|
+
|
|
24
|
+
attr_accessor name: String
|
|
25
|
+
|
|
26
|
+
attr_accessor updated_at: Time
|
|
27
|
+
|
|
28
|
+
attr_accessor description: String?
|
|
29
|
+
|
|
30
|
+
attr_accessor image: String?
|
|
31
|
+
|
|
32
|
+
def initialize: (
|
|
33
|
+
id: String,
|
|
34
|
+
brand_id: String,
|
|
35
|
+
created_at: Time,
|
|
36
|
+
groups: ::Array[Dodopayments::ProductCollections::ProductCollectionGroupResponse],
|
|
37
|
+
name: String,
|
|
38
|
+
updated_at: Time,
|
|
39
|
+
?description: String?,
|
|
40
|
+
?image: String?
|
|
41
|
+
) -> void
|
|
42
|
+
|
|
43
|
+
def to_hash: -> {
|
|
44
|
+
id: String,
|
|
45
|
+
brand_id: String,
|
|
46
|
+
created_at: Time,
|
|
47
|
+
groups: ::Array[Dodopayments::ProductCollections::ProductCollectionGroupResponse],
|
|
48
|
+
name: String,
|
|
49
|
+
updated_at: Time,
|
|
50
|
+
description: String?,
|
|
51
|
+
image: String?
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type product_collection_create_params =
|
|
4
|
+
{
|
|
5
|
+
groups: ::Array[Dodopayments::ProductCollections::ProductCollectionGroupDetails],
|
|
6
|
+
name: String,
|
|
7
|
+
brand_id: String?,
|
|
8
|
+
description: String?
|
|
9
|
+
}
|
|
10
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
11
|
+
|
|
12
|
+
class ProductCollectionCreateParams < Dodopayments::Internal::Type::BaseModel
|
|
13
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
14
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
15
|
+
|
|
16
|
+
attr_accessor groups: ::Array[Dodopayments::ProductCollections::ProductCollectionGroupDetails]
|
|
17
|
+
|
|
18
|
+
attr_accessor name: String
|
|
19
|
+
|
|
20
|
+
attr_accessor brand_id: String?
|
|
21
|
+
|
|
22
|
+
attr_accessor description: String?
|
|
23
|
+
|
|
24
|
+
def initialize: (
|
|
25
|
+
groups: ::Array[Dodopayments::ProductCollections::ProductCollectionGroupDetails],
|
|
26
|
+
name: String,
|
|
27
|
+
?brand_id: String?,
|
|
28
|
+
?description: String?,
|
|
29
|
+
?request_options: Dodopayments::request_opts
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
groups: ::Array[Dodopayments::ProductCollections::ProductCollectionGroupDetails],
|
|
34
|
+
name: String,
|
|
35
|
+
brand_id: String?,
|
|
36
|
+
description: String?,
|
|
37
|
+
request_options: Dodopayments::RequestOptions
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type product_collection_delete_params =
|
|
4
|
+
{ id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class ProductCollectionDeleteParams < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
id: String,
|
|
14
|
+
?request_options: Dodopayments::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
id: String,
|
|
19
|
+
request_options: Dodopayments::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type product_collection_list_params =
|
|
4
|
+
{
|
|
5
|
+
archived: bool,
|
|
6
|
+
brand_id: String,
|
|
7
|
+
page_number: Integer,
|
|
8
|
+
page_size: Integer
|
|
9
|
+
}
|
|
10
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
11
|
+
|
|
12
|
+
class ProductCollectionListParams < Dodopayments::Internal::Type::BaseModel
|
|
13
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
14
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
15
|
+
|
|
16
|
+
attr_reader archived: bool?
|
|
17
|
+
|
|
18
|
+
def archived=: (bool) -> bool
|
|
19
|
+
|
|
20
|
+
attr_reader brand_id: String?
|
|
21
|
+
|
|
22
|
+
def brand_id=: (String) -> String
|
|
23
|
+
|
|
24
|
+
attr_reader page_number: Integer?
|
|
25
|
+
|
|
26
|
+
def page_number=: (Integer) -> Integer
|
|
27
|
+
|
|
28
|
+
attr_reader page_size: Integer?
|
|
29
|
+
|
|
30
|
+
def page_size=: (Integer) -> Integer
|
|
31
|
+
|
|
32
|
+
def initialize: (
|
|
33
|
+
?archived: bool,
|
|
34
|
+
?brand_id: String,
|
|
35
|
+
?page_number: Integer,
|
|
36
|
+
?page_size: Integer,
|
|
37
|
+
?request_options: Dodopayments::request_opts
|
|
38
|
+
) -> void
|
|
39
|
+
|
|
40
|
+
def to_hash: -> {
|
|
41
|
+
archived: bool,
|
|
42
|
+
brand_id: String,
|
|
43
|
+
page_number: Integer,
|
|
44
|
+
page_size: Integer,
|
|
45
|
+
request_options: Dodopayments::RequestOptions
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type product_collection_list_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
created_at: Time,
|
|
7
|
+
name: String,
|
|
8
|
+
products_count: Integer,
|
|
9
|
+
updated_at: Time,
|
|
10
|
+
description: String?,
|
|
11
|
+
image: String?
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class ProductCollectionListResponse < Dodopayments::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor id: String
|
|
16
|
+
|
|
17
|
+
attr_accessor created_at: Time
|
|
18
|
+
|
|
19
|
+
attr_accessor name: String
|
|
20
|
+
|
|
21
|
+
attr_accessor products_count: Integer
|
|
22
|
+
|
|
23
|
+
attr_accessor updated_at: Time
|
|
24
|
+
|
|
25
|
+
attr_accessor description: String?
|
|
26
|
+
|
|
27
|
+
attr_accessor image: String?
|
|
28
|
+
|
|
29
|
+
def initialize: (
|
|
30
|
+
id: String,
|
|
31
|
+
created_at: Time,
|
|
32
|
+
name: String,
|
|
33
|
+
products_count: Integer,
|
|
34
|
+
updated_at: Time,
|
|
35
|
+
?description: String?,
|
|
36
|
+
?image: String?
|
|
37
|
+
) -> void
|
|
38
|
+
|
|
39
|
+
def to_hash: -> {
|
|
40
|
+
id: String,
|
|
41
|
+
created_at: Time,
|
|
42
|
+
name: String,
|
|
43
|
+
products_count: Integer,
|
|
44
|
+
updated_at: Time,
|
|
45
|
+
description: String?,
|
|
46
|
+
image: String?
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type product_collection_retrieve_params =
|
|
4
|
+
{ id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class ProductCollectionRetrieveParams < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
id: String,
|
|
14
|
+
?request_options: Dodopayments::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
id: String,
|
|
19
|
+
request_options: Dodopayments::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type product_collection_unarchive_params =
|
|
4
|
+
{ id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class ProductCollectionUnarchiveParams < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
id: String,
|
|
14
|
+
?request_options: Dodopayments::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
id: String,
|
|
19
|
+
request_options: Dodopayments::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type product_collection_unarchive_response =
|
|
4
|
+
{
|
|
5
|
+
collection_id: String,
|
|
6
|
+
excluded_product_ids: ::Array[String],
|
|
7
|
+
message: String
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class ProductCollectionUnarchiveResponse < Dodopayments::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor collection_id: String
|
|
12
|
+
|
|
13
|
+
attr_accessor excluded_product_ids: ::Array[String]
|
|
14
|
+
|
|
15
|
+
attr_accessor message: String
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
collection_id: String,
|
|
19
|
+
excluded_product_ids: ::Array[String],
|
|
20
|
+
message: String
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
collection_id: String,
|
|
25
|
+
excluded_product_ids: ::Array[String],
|
|
26
|
+
message: String
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type product_collection_update_images_params =
|
|
4
|
+
{ id: String, force_update: bool? }
|
|
5
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class ProductCollectionUpdateImagesParams < 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 force_update: bool?
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
id: String,
|
|
17
|
+
?force_update: bool?,
|
|
18
|
+
?request_options: Dodopayments::request_opts
|
|
19
|
+
) -> void
|
|
20
|
+
|
|
21
|
+
def to_hash: -> {
|
|
22
|
+
id: String,
|
|
23
|
+
force_update: bool?,
|
|
24
|
+
request_options: Dodopayments::RequestOptions
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type product_collection_update_images_response =
|
|
4
|
+
{ url: String, image_id: String? }
|
|
5
|
+
|
|
6
|
+
class ProductCollectionUpdateImagesResponse < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor url: String
|
|
8
|
+
|
|
9
|
+
attr_accessor image_id: String?
|
|
10
|
+
|
|
11
|
+
def initialize: (url: String, ?image_id: String?) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { url: String, image_id: String? }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type product_collection_update_params =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
brand_id: String?,
|
|
7
|
+
description: String?,
|
|
8
|
+
group_order: ::Array[String]?,
|
|
9
|
+
image_id: String?,
|
|
10
|
+
name: String?
|
|
11
|
+
}
|
|
12
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
13
|
+
|
|
14
|
+
class ProductCollectionUpdateParams < Dodopayments::Internal::Type::BaseModel
|
|
15
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
16
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
17
|
+
|
|
18
|
+
attr_accessor id: String
|
|
19
|
+
|
|
20
|
+
attr_accessor brand_id: String?
|
|
21
|
+
|
|
22
|
+
attr_accessor description: String?
|
|
23
|
+
|
|
24
|
+
attr_accessor group_order: ::Array[String]?
|
|
25
|
+
|
|
26
|
+
attr_accessor image_id: String?
|
|
27
|
+
|
|
28
|
+
attr_accessor name: String?
|
|
29
|
+
|
|
30
|
+
def initialize: (
|
|
31
|
+
id: String,
|
|
32
|
+
?brand_id: String?,
|
|
33
|
+
?description: String?,
|
|
34
|
+
?group_order: ::Array[String]?,
|
|
35
|
+
?image_id: String?,
|
|
36
|
+
?name: String?,
|
|
37
|
+
?request_options: Dodopayments::request_opts
|
|
38
|
+
) -> void
|
|
39
|
+
|
|
40
|
+
def to_hash: -> {
|
|
41
|
+
id: String,
|
|
42
|
+
brand_id: String?,
|
|
43
|
+
description: String?,
|
|
44
|
+
group_order: ::Array[String]?,
|
|
45
|
+
image_id: String?,
|
|
46
|
+
name: String?,
|
|
47
|
+
request_options: Dodopayments::RequestOptions
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module ProductCollections
|
|
4
|
+
type group_create_params =
|
|
5
|
+
{ id: String } & Dodopayments::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class GroupCreateParams < Dodopayments::Models::ProductCollections::ProductCollectionGroupDetails
|
|
8
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
def id: -> String
|
|
12
|
+
|
|
13
|
+
def id=: (String _) -> String
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
id: String,
|
|
17
|
+
?request_options: Dodopayments::request_opts
|
|
18
|
+
) -> void
|
|
19
|
+
|
|
20
|
+
def to_hash: -> {
|
|
21
|
+
id: String,
|
|
22
|
+
request_options: Dodopayments::RequestOptions
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module ProductCollections
|
|
4
|
+
type group_delete_params =
|
|
5
|
+
{ id: String, group_id: String }
|
|
6
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class GroupDeleteParams < Dodopayments::Internal::Type::BaseModel
|
|
9
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor id: String
|
|
13
|
+
|
|
14
|
+
attr_accessor group_id: String
|
|
15
|
+
|
|
16
|
+
def initialize: (
|
|
17
|
+
id: String,
|
|
18
|
+
group_id: String,
|
|
19
|
+
?request_options: Dodopayments::request_opts
|
|
20
|
+
) -> void
|
|
21
|
+
|
|
22
|
+
def to_hash: -> {
|
|
23
|
+
id: String,
|
|
24
|
+
group_id: String,
|
|
25
|
+
request_options: Dodopayments::RequestOptions
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module ProductCollections
|
|
4
|
+
type group_product = { product_id: String, status: bool? }
|
|
5
|
+
|
|
6
|
+
class GroupProduct < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor product_id: String
|
|
8
|
+
|
|
9
|
+
attr_accessor status: bool?
|
|
10
|
+
|
|
11
|
+
def initialize: (product_id: String, ?status: bool?) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { product_id: String, status: bool? }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|