dodopayments 2.0.0 → 2.1.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 +17 -0
- data/README.md +3 -3
- data/lib/dodopayments/models/addon_retrieve_params.rb +7 -1
- data/lib/dodopayments/models/addon_update_images_params.rb +7 -1
- data/lib/dodopayments/models/addon_update_params.rb +8 -1
- data/lib/dodopayments/models/brand_retrieve_params.rb +7 -1
- data/lib/dodopayments/models/brand_update_images_params.rb +7 -1
- data/lib/dodopayments/models/brand_update_params.rb +8 -1
- data/lib/dodopayments/models/checkout_session_retrieve_params.rb +7 -1
- data/lib/dodopayments/models/credit_entitlement_delete_params.rb +7 -1
- data/lib/dodopayments/models/credit_entitlement_retrieve_params.rb +7 -1
- data/lib/dodopayments/models/credit_entitlement_undelete_params.rb +7 -1
- data/lib/dodopayments/models/credit_entitlement_update_params.rb +8 -1
- data/lib/dodopayments/models/credit_entitlements/balance_create_ledger_entry_params.rb +8 -1
- data/lib/dodopayments/models/credit_entitlements/balance_list_grants_params.rb +8 -1
- data/lib/dodopayments/models/credit_entitlements/balance_list_ledger_params.rb +8 -1
- data/lib/dodopayments/models/credit_entitlements/balance_list_params.rb +8 -1
- data/lib/dodopayments/models/credit_entitlements/balance_retrieve_params.rb +7 -1
- data/lib/dodopayments/models/customer_list_credit_entitlements_params.rb +7 -1
- data/lib/dodopayments/models/customer_retrieve_params.rb +7 -1
- data/lib/dodopayments/models/customer_retrieve_payment_methods_params.rb +7 -1
- data/lib/dodopayments/models/customer_update_params.rb +8 -1
- data/lib/dodopayments/models/customers/customer_portal_create_params.rb +8 -1
- data/lib/dodopayments/models/customers/wallet_list_params.rb +7 -1
- data/lib/dodopayments/models/customers/wallets/ledger_entry_create_params.rb +8 -1
- data/lib/dodopayments/models/customers/wallets/ledger_entry_list_params.rb +8 -1
- data/lib/dodopayments/models/discount.rb +10 -1
- data/lib/dodopayments/models/discount_create_params.rb +10 -1
- data/lib/dodopayments/models/discount_delete_params.rb +7 -1
- data/lib/dodopayments/models/discount_retrieve_by_code_params.rb +7 -1
- data/lib/dodopayments/models/discount_retrieve_params.rb +7 -1
- data/lib/dodopayments/models/discount_update_params.rb +17 -1
- data/lib/dodopayments/models/dispute_retrieve_params.rb +7 -1
- data/lib/dodopayments/models/invoices/payment_retrieve_params.rb +7 -1
- data/lib/dodopayments/models/invoices/payment_retrieve_refund_params.rb +7 -1
- data/lib/dodopayments/models/license_key_instance_retrieve_params.rb +7 -1
- data/lib/dodopayments/models/license_key_instance_update_params.rb +7 -1
- data/lib/dodopayments/models/license_key_retrieve_params.rb +7 -1
- data/lib/dodopayments/models/license_key_update_params.rb +8 -1
- data/lib/dodopayments/models/meter_archive_params.rb +7 -1
- data/lib/dodopayments/models/meter_retrieve_params.rb +7 -1
- data/lib/dodopayments/models/meter_unarchive_params.rb +7 -1
- data/lib/dodopayments/models/payment_retrieve_line_items_params.rb +7 -1
- data/lib/dodopayments/models/payment_retrieve_params.rb +7 -1
- data/lib/dodopayments/models/product_archive_params.rb +7 -1
- data/lib/dodopayments/models/product_retrieve_params.rb +7 -1
- data/lib/dodopayments/models/product_unarchive_params.rb +7 -1
- data/lib/dodopayments/models/product_update_files_params.rb +7 -1
- data/lib/dodopayments/models/product_update_params.rb +8 -1
- data/lib/dodopayments/models/products/image_update_params.rb +7 -1
- data/lib/dodopayments/models/products/short_link_create_params.rb +8 -1
- data/lib/dodopayments/models/refund_retrieve_params.rb +7 -1
- data/lib/dodopayments/models/subscription_change_plan_params.rb +7 -1
- data/lib/dodopayments/models/subscription_charge_params.rb +8 -1
- data/lib/dodopayments/models/subscription_preview_change_plan_params.rb +7 -1
- data/lib/dodopayments/models/subscription_retrieve_credit_usage_params.rb +7 -1
- data/lib/dodopayments/models/subscription_retrieve_params.rb +7 -1
- data/lib/dodopayments/models/subscription_retrieve_usage_history_params.rb +8 -1
- data/lib/dodopayments/models/subscription_update_params.rb +8 -1
- data/lib/dodopayments/models/subscription_update_payment_method_params.rb +68 -20
- data/lib/dodopayments/models/update_subscription_plan_req.rb +12 -1
- data/lib/dodopayments/models/usage_event_retrieve_params.rb +7 -1
- data/lib/dodopayments/models/webhook_delete_params.rb +7 -1
- data/lib/dodopayments/models/webhook_retrieve_params.rb +7 -1
- data/lib/dodopayments/models/webhook_retrieve_secret_params.rb +7 -1
- data/lib/dodopayments/models/webhook_update_params.rb +8 -1
- data/lib/dodopayments/models/webhooks/header_retrieve_params.rb +7 -1
- data/lib/dodopayments/models/webhooks/header_update_params.rb +8 -1
- data/lib/dodopayments/resources/discounts.rb +6 -2
- data/lib/dodopayments/resources/subscriptions.rb +9 -9
- data/lib/dodopayments/version.rb +1 -1
- data/rbi/dodopayments/models/addon_retrieve_params.rbi +11 -5
- data/rbi/dodopayments/models/addon_update_images_params.rbi +11 -5
- data/rbi/dodopayments/models/addon_update_params.rbi +6 -0
- data/rbi/dodopayments/models/brand_retrieve_params.rbi +11 -5
- data/rbi/dodopayments/models/brand_update_images_params.rbi +11 -5
- data/rbi/dodopayments/models/brand_update_params.rbi +6 -0
- data/rbi/dodopayments/models/checkout_session_retrieve_params.rbi +11 -5
- data/rbi/dodopayments/models/credit_entitlement_delete_params.rbi +11 -5
- data/rbi/dodopayments/models/credit_entitlement_retrieve_params.rbi +11 -5
- data/rbi/dodopayments/models/credit_entitlement_undelete_params.rbi +11 -5
- data/rbi/dodopayments/models/credit_entitlement_update_params.rbi +6 -0
- data/rbi/dodopayments/models/credit_entitlements/balance_create_ledger_entry_params.rbi +6 -0
- data/rbi/dodopayments/models/credit_entitlements/balance_list_grants_params.rbi +6 -0
- data/rbi/dodopayments/models/credit_entitlements/balance_list_ledger_params.rbi +6 -0
- data/rbi/dodopayments/models/credit_entitlements/balance_list_params.rbi +6 -0
- data/rbi/dodopayments/models/credit_entitlements/balance_retrieve_params.rbi +6 -1
- data/rbi/dodopayments/models/customer_list_credit_entitlements_params.rbi +11 -5
- data/rbi/dodopayments/models/customer_retrieve_params.rbi +11 -5
- data/rbi/dodopayments/models/customer_retrieve_payment_methods_params.rbi +11 -5
- data/rbi/dodopayments/models/customer_update_params.rbi +6 -0
- data/rbi/dodopayments/models/customers/customer_portal_create_params.rbi +6 -0
- data/rbi/dodopayments/models/customers/wallet_list_params.rbi +14 -5
- data/rbi/dodopayments/models/customers/wallets/ledger_entry_create_params.rbi +6 -0
- data/rbi/dodopayments/models/customers/wallets/ledger_entry_list_params.rbi +6 -0
- data/rbi/dodopayments/models/discount.rbi +10 -0
- data/rbi/dodopayments/models/discount_create_params.rbi +13 -0
- data/rbi/dodopayments/models/discount_delete_params.rbi +11 -5
- data/rbi/dodopayments/models/discount_retrieve_by_code_params.rbi +11 -5
- data/rbi/dodopayments/models/discount_retrieve_params.rbi +11 -5
- data/rbi/dodopayments/models/discount_update_params.rbi +16 -0
- data/rbi/dodopayments/models/dispute_retrieve_params.rbi +11 -5
- data/rbi/dodopayments/models/invoices/payment_retrieve_params.rbi +14 -5
- data/rbi/dodopayments/models/invoices/payment_retrieve_refund_params.rbi +11 -5
- data/rbi/dodopayments/models/license_key_instance_retrieve_params.rbi +11 -5
- data/rbi/dodopayments/models/license_key_instance_update_params.rbi +10 -2
- data/rbi/dodopayments/models/license_key_retrieve_params.rbi +11 -5
- data/rbi/dodopayments/models/license_key_update_params.rbi +6 -0
- data/rbi/dodopayments/models/meter_archive_params.rbi +11 -5
- data/rbi/dodopayments/models/meter_retrieve_params.rbi +11 -5
- data/rbi/dodopayments/models/meter_unarchive_params.rbi +11 -5
- data/rbi/dodopayments/models/payment_retrieve_line_items_params.rbi +11 -5
- data/rbi/dodopayments/models/payment_retrieve_params.rbi +11 -5
- data/rbi/dodopayments/models/product_archive_params.rbi +11 -5
- data/rbi/dodopayments/models/product_retrieve_params.rbi +11 -5
- data/rbi/dodopayments/models/product_unarchive_params.rbi +11 -5
- data/rbi/dodopayments/models/product_update_files_params.rbi +10 -2
- data/rbi/dodopayments/models/product_update_params.rbi +6 -0
- data/rbi/dodopayments/models/products/image_update_params.rbi +6 -1
- data/rbi/dodopayments/models/products/short_link_create_params.rbi +6 -0
- data/rbi/dodopayments/models/refund_retrieve_params.rbi +11 -5
- data/rbi/dodopayments/models/subscription_change_plan_params.rbi +14 -5
- data/rbi/dodopayments/models/subscription_charge_params.rbi +6 -0
- data/rbi/dodopayments/models/subscription_preview_change_plan_params.rbi +14 -5
- data/rbi/dodopayments/models/subscription_retrieve_credit_usage_params.rbi +14 -5
- data/rbi/dodopayments/models/subscription_retrieve_params.rbi +14 -5
- data/rbi/dodopayments/models/subscription_retrieve_usage_history_params.rbi +6 -0
- data/rbi/dodopayments/models/subscription_update_params.rbi +6 -0
- data/rbi/dodopayments/models/subscription_update_payment_method_params.rbi +170 -36
- data/rbi/dodopayments/models/update_subscription_plan_req.rbi +14 -0
- data/rbi/dodopayments/models/usage_event_retrieve_params.rbi +11 -5
- data/rbi/dodopayments/models/webhook_delete_params.rbi +11 -5
- data/rbi/dodopayments/models/webhook_retrieve_params.rbi +11 -5
- data/rbi/dodopayments/models/webhook_retrieve_secret_params.rbi +11 -5
- data/rbi/dodopayments/models/webhook_update_params.rbi +6 -0
- data/rbi/dodopayments/models/webhooks/header_retrieve_params.rbi +14 -5
- data/rbi/dodopayments/models/webhooks/header_update_params.rbi +6 -0
- data/rbi/dodopayments/resources/discounts.rbi +8 -0
- data/rbi/dodopayments/resources/subscriptions.rbi +18 -7
- data/sig/dodopayments/models/addon_retrieve_params.rbs +11 -3
- data/sig/dodopayments/models/addon_update_images_params.rbs +11 -3
- data/sig/dodopayments/models/addon_update_params.rbs +5 -0
- data/sig/dodopayments/models/brand_retrieve_params.rbs +11 -3
- data/sig/dodopayments/models/brand_update_images_params.rbs +11 -3
- data/sig/dodopayments/models/brand_update_params.rbs +5 -0
- data/sig/dodopayments/models/checkout_session_retrieve_params.rbs +11 -3
- data/sig/dodopayments/models/credit_entitlement_delete_params.rbs +11 -3
- data/sig/dodopayments/models/credit_entitlement_retrieve_params.rbs +11 -3
- data/sig/dodopayments/models/credit_entitlement_undelete_params.rbs +11 -3
- data/sig/dodopayments/models/credit_entitlement_update_params.rbs +5 -0
- data/sig/dodopayments/models/credit_entitlements/balance_create_ledger_entry_params.rbs +5 -0
- data/sig/dodopayments/models/credit_entitlements/balance_list_grants_params.rbs +5 -0
- data/sig/dodopayments/models/credit_entitlements/balance_list_ledger_params.rbs +5 -0
- data/sig/dodopayments/models/credit_entitlements/balance_list_params.rbs +10 -1
- data/sig/dodopayments/models/credit_entitlements/balance_retrieve_params.rbs +5 -1
- data/sig/dodopayments/models/customer_list_credit_entitlements_params.rbs +11 -3
- data/sig/dodopayments/models/customer_retrieve_params.rbs +11 -3
- data/sig/dodopayments/models/customer_retrieve_payment_methods_params.rbs +11 -3
- data/sig/dodopayments/models/customer_update_params.rbs +5 -0
- data/sig/dodopayments/models/customers/customer_portal_create_params.rbs +6 -1
- data/sig/dodopayments/models/customers/wallet_list_params.rbs +12 -3
- data/sig/dodopayments/models/customers/wallets/ledger_entry_create_params.rbs +5 -0
- data/sig/dodopayments/models/customers/wallets/ledger_entry_list_params.rbs +5 -0
- data/sig/dodopayments/models/discount.rbs +5 -0
- data/sig/dodopayments/models/discount_create_params.rbs +7 -0
- data/sig/dodopayments/models/discount_delete_params.rbs +11 -3
- data/sig/dodopayments/models/discount_retrieve_by_code_params.rbs +11 -3
- data/sig/dodopayments/models/discount_retrieve_params.rbs +11 -3
- data/sig/dodopayments/models/discount_update_params.rbs +10 -0
- data/sig/dodopayments/models/dispute_retrieve_params.rbs +11 -3
- data/sig/dodopayments/models/invoices/payment_retrieve_params.rbs +12 -3
- data/sig/dodopayments/models/invoices/payment_retrieve_refund_params.rbs +11 -3
- data/sig/dodopayments/models/license_key_instance_retrieve_params.rbs +11 -3
- data/sig/dodopayments/models/license_key_instance_update_params.rbs +6 -1
- data/sig/dodopayments/models/license_key_retrieve_params.rbs +11 -3
- data/sig/dodopayments/models/license_key_update_params.rbs +10 -1
- data/sig/dodopayments/models/meter_archive_params.rbs +11 -3
- data/sig/dodopayments/models/meter_retrieve_params.rbs +11 -3
- data/sig/dodopayments/models/meter_unarchive_params.rbs +11 -3
- data/sig/dodopayments/models/payment_retrieve_line_items_params.rbs +11 -3
- data/sig/dodopayments/models/payment_retrieve_params.rbs +11 -3
- data/sig/dodopayments/models/product_archive_params.rbs +11 -3
- data/sig/dodopayments/models/product_retrieve_params.rbs +11 -3
- data/sig/dodopayments/models/product_unarchive_params.rbs +11 -3
- data/sig/dodopayments/models/product_update_files_params.rbs +6 -1
- data/sig/dodopayments/models/product_update_params.rbs +5 -0
- data/sig/dodopayments/models/products/image_update_params.rbs +5 -1
- data/sig/dodopayments/models/products/short_link_create_params.rbs +9 -1
- data/sig/dodopayments/models/refund_retrieve_params.rbs +11 -3
- data/sig/dodopayments/models/subscription_change_plan_params.rbs +14 -3
- data/sig/dodopayments/models/subscription_charge_params.rbs +5 -0
- data/sig/dodopayments/models/subscription_preview_change_plan_params.rbs +14 -3
- data/sig/dodopayments/models/subscription_retrieve_credit_usage_params.rbs +12 -3
- data/sig/dodopayments/models/subscription_retrieve_params.rbs +12 -3
- data/sig/dodopayments/models/subscription_retrieve_usage_history_params.rbs +5 -0
- data/sig/dodopayments/models/subscription_update_params.rbs +5 -0
- data/sig/dodopayments/models/subscription_update_payment_method_params.rbs +77 -18
- data/sig/dodopayments/models/update_subscription_plan_req.rbs +5 -0
- data/sig/dodopayments/models/usage_event_retrieve_params.rbs +11 -3
- data/sig/dodopayments/models/webhook_delete_params.rbs +11 -3
- data/sig/dodopayments/models/webhook_retrieve_params.rbs +11 -3
- data/sig/dodopayments/models/webhook_retrieve_secret_params.rbs +11 -3
- data/sig/dodopayments/models/webhook_update_params.rbs +5 -0
- data/sig/dodopayments/models/webhooks/header_retrieve_params.rbs +12 -3
- data/sig/dodopayments/models/webhooks/header_update_params.rbs +5 -1
- data/sig/dodopayments/resources/discounts.rbs +2 -0
- data/sig/dodopayments/resources/subscriptions.rbs +3 -3
- metadata +2 -2
|
@@ -12,6 +12,7 @@ module Dodopayments
|
|
|
12
12
|
code: T.nilable(String),
|
|
13
13
|
expires_at: T.nilable(Time),
|
|
14
14
|
name: T.nilable(String),
|
|
15
|
+
preserve_on_plan_change: T::Boolean,
|
|
15
16
|
restricted_to: T.nilable(T::Array[String]),
|
|
16
17
|
subscription_cycles: T.nilable(Integer),
|
|
17
18
|
usage_limit: T.nilable(Integer),
|
|
@@ -38,6 +39,9 @@ module Dodopayments
|
|
|
38
39
|
# When the discount expires, if ever.
|
|
39
40
|
expires_at: nil,
|
|
40
41
|
name: nil,
|
|
42
|
+
# Whether this discount should be preserved when a subscription changes plans.
|
|
43
|
+
# Default: false (discount is removed on plan change)
|
|
44
|
+
preserve_on_plan_change: nil,
|
|
41
45
|
# List of product IDs to restrict usage (if any).
|
|
42
46
|
restricted_to: nil,
|
|
43
47
|
# Number of subscription billing cycles this discount is valid for. If not
|
|
@@ -72,6 +76,7 @@ module Dodopayments
|
|
|
72
76
|
code: T.nilable(String),
|
|
73
77
|
expires_at: T.nilable(Time),
|
|
74
78
|
name: T.nilable(String),
|
|
79
|
+
preserve_on_plan_change: T.nilable(T::Boolean),
|
|
75
80
|
restricted_to: T.nilable(T::Array[String]),
|
|
76
81
|
subscription_cycles: T.nilable(Integer),
|
|
77
82
|
type: T.nilable(Dodopayments::DiscountType::OrSymbol),
|
|
@@ -94,6 +99,9 @@ module Dodopayments
|
|
|
94
99
|
code: nil,
|
|
95
100
|
expires_at: nil,
|
|
96
101
|
name: nil,
|
|
102
|
+
# Whether this discount should be preserved when a subscription changes plans. If
|
|
103
|
+
# not provided, the existing value is kept.
|
|
104
|
+
preserve_on_plan_change: nil,
|
|
97
105
|
# If present, replaces all restricted product IDs with this new set. To remove all
|
|
98
106
|
# restrictions, send empty array
|
|
99
107
|
restricted_to: nil,
|
|
@@ -194,6 +194,7 @@ module Dodopayments
|
|
|
194
194
|
Dodopayments::UpdateSubscriptionPlanReq::ProrationBillingMode::OrSymbol,
|
|
195
195
|
quantity: Integer,
|
|
196
196
|
addons: T.nilable(T::Array[Dodopayments::AttachAddon::OrHash]),
|
|
197
|
+
discount_code: T.nilable(String),
|
|
197
198
|
metadata: T.nilable(T::Hash[Symbol, String]),
|
|
198
199
|
on_payment_failure:
|
|
199
200
|
T.nilable(
|
|
@@ -214,6 +215,11 @@ module Dodopayments
|
|
|
214
215
|
# Addons for the new plan. Note : Leaving this empty would remove any existing
|
|
215
216
|
# addons
|
|
216
217
|
addons: nil,
|
|
218
|
+
# Optional discount code to apply to the new plan. If provided, validates and
|
|
219
|
+
# applies the discount to the plan change. If not provided and the subscription
|
|
220
|
+
# has an existing discount with `preserve_on_plan_change=true`, the existing
|
|
221
|
+
# discount will be preserved (if applicable to the new product).
|
|
222
|
+
discount_code: nil,
|
|
217
223
|
# Metadata for the payment. If not passed, the metadata of the subscription will
|
|
218
224
|
# be taken
|
|
219
225
|
metadata: nil,
|
|
@@ -277,6 +283,7 @@ module Dodopayments
|
|
|
277
283
|
Dodopayments::UpdateSubscriptionPlanReq::ProrationBillingMode::OrSymbol,
|
|
278
284
|
quantity: Integer,
|
|
279
285
|
addons: T.nilable(T::Array[Dodopayments::AttachAddon::OrHash]),
|
|
286
|
+
discount_code: T.nilable(String),
|
|
280
287
|
metadata: T.nilable(T::Hash[Symbol, String]),
|
|
281
288
|
on_payment_failure:
|
|
282
289
|
T.nilable(
|
|
@@ -297,6 +304,11 @@ module Dodopayments
|
|
|
297
304
|
# Addons for the new plan. Note : Leaving this empty would remove any existing
|
|
298
305
|
# addons
|
|
299
306
|
addons: nil,
|
|
307
|
+
# Optional discount code to apply to the new plan. If provided, validates and
|
|
308
|
+
# applies the discount to the plan change. If not provided and the subscription
|
|
309
|
+
# has an existing discount with `preserve_on_plan_change=true`, the existing
|
|
310
|
+
# discount will be preserved (if applicable to the new product).
|
|
311
|
+
discount_code: nil,
|
|
300
312
|
# Metadata for the payment. If not passed, the metadata of the subscription will
|
|
301
313
|
# be taken
|
|
302
314
|
metadata: nil,
|
|
@@ -402,19 +414,18 @@ module Dodopayments
|
|
|
402
414
|
sig do
|
|
403
415
|
params(
|
|
404
416
|
subscription_id: String,
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
417
|
+
body:
|
|
418
|
+
T.any(
|
|
419
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::New::OrHash,
|
|
420
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::Existing::OrHash
|
|
421
|
+
),
|
|
409
422
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
410
423
|
).returns(Dodopayments::Models::SubscriptionUpdatePaymentMethodResponse)
|
|
411
424
|
end
|
|
412
425
|
def update_payment_method(
|
|
413
426
|
# Subscription Id
|
|
414
427
|
subscription_id,
|
|
415
|
-
|
|
416
|
-
payment_method_id:,
|
|
417
|
-
return_url: nil,
|
|
428
|
+
body:,
|
|
418
429
|
request_options: {}
|
|
419
430
|
)
|
|
420
431
|
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type addon_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class AddonRetrieveParams < Dodopayments::Internal::Type::BaseModel
|
|
7
7
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Dodopayments::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
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
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type addon_update_images_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class AddonUpdateImagesParams < Dodopayments::Internal::Type::BaseModel
|
|
7
7
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Dodopayments::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
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
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -2,6 +2,7 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
type addon_update_params =
|
|
4
4
|
{
|
|
5
|
+
id: String,
|
|
5
6
|
currency: Dodopayments::Models::currency?,
|
|
6
7
|
description: String?,
|
|
7
8
|
image_id: String?,
|
|
@@ -15,6 +16,8 @@ module Dodopayments
|
|
|
15
16
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
16
17
|
include Dodopayments::Internal::Type::RequestParameters
|
|
17
18
|
|
|
19
|
+
attr_accessor id: String
|
|
20
|
+
|
|
18
21
|
attr_accessor currency: Dodopayments::Models::currency?
|
|
19
22
|
|
|
20
23
|
attr_accessor description: String?
|
|
@@ -28,6 +31,7 @@ module Dodopayments
|
|
|
28
31
|
attr_accessor tax_category: Dodopayments::Models::tax_category?
|
|
29
32
|
|
|
30
33
|
def initialize: (
|
|
34
|
+
id: String,
|
|
31
35
|
?currency: Dodopayments::Models::currency?,
|
|
32
36
|
?description: String?,
|
|
33
37
|
?image_id: String?,
|
|
@@ -38,6 +42,7 @@ module Dodopayments
|
|
|
38
42
|
) -> void
|
|
39
43
|
|
|
40
44
|
def to_hash: -> {
|
|
45
|
+
id: String,
|
|
41
46
|
currency: Dodopayments::Models::currency?,
|
|
42
47
|
description: String?,
|
|
43
48
|
image_id: String?,
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type brand_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class BrandRetrieveParams < Dodopayments::Internal::Type::BaseModel
|
|
7
7
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Dodopayments::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
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
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type brand_update_images_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class BrandUpdateImagesParams < Dodopayments::Internal::Type::BaseModel
|
|
7
7
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Dodopayments::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
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
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -2,6 +2,7 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
type brand_update_params =
|
|
4
4
|
{
|
|
5
|
+
id: String,
|
|
5
6
|
description: String?,
|
|
6
7
|
image_id: String?,
|
|
7
8
|
name: String?,
|
|
@@ -15,6 +16,8 @@ module Dodopayments
|
|
|
15
16
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
16
17
|
include Dodopayments::Internal::Type::RequestParameters
|
|
17
18
|
|
|
19
|
+
attr_accessor id: String
|
|
20
|
+
|
|
18
21
|
attr_accessor description: String?
|
|
19
22
|
|
|
20
23
|
attr_accessor image_id: String?
|
|
@@ -28,6 +31,7 @@ module Dodopayments
|
|
|
28
31
|
attr_accessor url: String?
|
|
29
32
|
|
|
30
33
|
def initialize: (
|
|
34
|
+
id: String,
|
|
31
35
|
?description: String?,
|
|
32
36
|
?image_id: String?,
|
|
33
37
|
?name: String?,
|
|
@@ -38,6 +42,7 @@ module Dodopayments
|
|
|
38
42
|
) -> void
|
|
39
43
|
|
|
40
44
|
def to_hash: -> {
|
|
45
|
+
id: String,
|
|
41
46
|
description: String?,
|
|
42
47
|
image_id: String?,
|
|
43
48
|
name: String?,
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type checkout_session_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class CheckoutSessionRetrieveParams < Dodopayments::Internal::Type::BaseModel
|
|
7
7
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Dodopayments::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
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
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type credit_entitlement_delete_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class CreditEntitlementDeleteParams < Dodopayments::Internal::Type::BaseModel
|
|
7
7
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Dodopayments::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
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
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type credit_entitlement_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class CreditEntitlementRetrieveParams < Dodopayments::Internal::Type::BaseModel
|
|
7
7
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Dodopayments::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
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
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type credit_entitlement_undelete_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class CreditEntitlementUndeleteParams < Dodopayments::Internal::Type::BaseModel
|
|
7
7
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Dodopayments::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
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
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -2,6 +2,7 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
type credit_entitlement_update_params =
|
|
4
4
|
{
|
|
5
|
+
id: String,
|
|
5
6
|
currency: Dodopayments::Models::currency?,
|
|
6
7
|
description: String?,
|
|
7
8
|
expires_after_days: Integer?,
|
|
@@ -23,6 +24,8 @@ module Dodopayments
|
|
|
23
24
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
24
25
|
include Dodopayments::Internal::Type::RequestParameters
|
|
25
26
|
|
|
27
|
+
attr_accessor id: String
|
|
28
|
+
|
|
26
29
|
attr_accessor currency: Dodopayments::Models::currency?
|
|
27
30
|
|
|
28
31
|
attr_accessor description: String?
|
|
@@ -52,6 +55,7 @@ module Dodopayments
|
|
|
52
55
|
attr_accessor unit: String?
|
|
53
56
|
|
|
54
57
|
def initialize: (
|
|
58
|
+
id: String,
|
|
55
59
|
?currency: Dodopayments::Models::currency?,
|
|
56
60
|
?description: String?,
|
|
57
61
|
?expires_after_days: Integer?,
|
|
@@ -70,6 +74,7 @@ module Dodopayments
|
|
|
70
74
|
) -> void
|
|
71
75
|
|
|
72
76
|
def to_hash: -> {
|
|
77
|
+
id: String,
|
|
73
78
|
currency: Dodopayments::Models::currency?,
|
|
74
79
|
description: String?,
|
|
75
80
|
expires_after_days: Integer?,
|
|
@@ -4,6 +4,7 @@ module Dodopayments
|
|
|
4
4
|
type balance_create_ledger_entry_params =
|
|
5
5
|
{
|
|
6
6
|
credit_entitlement_id: String,
|
|
7
|
+
customer_id: String,
|
|
7
8
|
amount: String,
|
|
8
9
|
entry_type: Dodopayments::Models::CreditEntitlements::ledger_entry_type,
|
|
9
10
|
expires_at: Time?,
|
|
@@ -19,6 +20,8 @@ module Dodopayments
|
|
|
19
20
|
|
|
20
21
|
attr_accessor credit_entitlement_id: String
|
|
21
22
|
|
|
23
|
+
attr_accessor customer_id: String
|
|
24
|
+
|
|
22
25
|
attr_accessor amount: String
|
|
23
26
|
|
|
24
27
|
attr_accessor entry_type: Dodopayments::Models::CreditEntitlements::ledger_entry_type
|
|
@@ -33,6 +36,7 @@ module Dodopayments
|
|
|
33
36
|
|
|
34
37
|
def initialize: (
|
|
35
38
|
credit_entitlement_id: String,
|
|
39
|
+
customer_id: String,
|
|
36
40
|
amount: String,
|
|
37
41
|
entry_type: Dodopayments::Models::CreditEntitlements::ledger_entry_type,
|
|
38
42
|
?expires_at: Time?,
|
|
@@ -44,6 +48,7 @@ module Dodopayments
|
|
|
44
48
|
|
|
45
49
|
def to_hash: -> {
|
|
46
50
|
credit_entitlement_id: String,
|
|
51
|
+
customer_id: String,
|
|
47
52
|
amount: String,
|
|
48
53
|
entry_type: Dodopayments::Models::CreditEntitlements::ledger_entry_type,
|
|
49
54
|
expires_at: Time?,
|
|
@@ -4,6 +4,7 @@ module Dodopayments
|
|
|
4
4
|
type balance_list_grants_params =
|
|
5
5
|
{
|
|
6
6
|
credit_entitlement_id: String,
|
|
7
|
+
customer_id: String,
|
|
7
8
|
page_number: Integer,
|
|
8
9
|
page_size: Integer,
|
|
9
10
|
status: Dodopayments::Models::CreditEntitlements::BalanceListGrantsParams::status
|
|
@@ -16,6 +17,8 @@ module Dodopayments
|
|
|
16
17
|
|
|
17
18
|
attr_accessor credit_entitlement_id: String
|
|
18
19
|
|
|
20
|
+
attr_accessor customer_id: String
|
|
21
|
+
|
|
19
22
|
attr_reader page_number: Integer?
|
|
20
23
|
|
|
21
24
|
def page_number=: (Integer) -> Integer
|
|
@@ -32,6 +35,7 @@ module Dodopayments
|
|
|
32
35
|
|
|
33
36
|
def initialize: (
|
|
34
37
|
credit_entitlement_id: String,
|
|
38
|
+
customer_id: String,
|
|
35
39
|
?page_number: Integer,
|
|
36
40
|
?page_size: Integer,
|
|
37
41
|
?status: Dodopayments::Models::CreditEntitlements::BalanceListGrantsParams::status,
|
|
@@ -40,6 +44,7 @@ module Dodopayments
|
|
|
40
44
|
|
|
41
45
|
def to_hash: -> {
|
|
42
46
|
credit_entitlement_id: String,
|
|
47
|
+
customer_id: String,
|
|
43
48
|
page_number: Integer,
|
|
44
49
|
page_size: Integer,
|
|
45
50
|
status: Dodopayments::Models::CreditEntitlements::BalanceListGrantsParams::status,
|
|
@@ -4,6 +4,7 @@ module Dodopayments
|
|
|
4
4
|
type balance_list_ledger_params =
|
|
5
5
|
{
|
|
6
6
|
credit_entitlement_id: String,
|
|
7
|
+
customer_id: String,
|
|
7
8
|
end_date: Time,
|
|
8
9
|
page_number: Integer,
|
|
9
10
|
page_size: Integer,
|
|
@@ -18,6 +19,8 @@ module Dodopayments
|
|
|
18
19
|
|
|
19
20
|
attr_accessor credit_entitlement_id: String
|
|
20
21
|
|
|
22
|
+
attr_accessor customer_id: String
|
|
23
|
+
|
|
21
24
|
attr_reader end_date: Time?
|
|
22
25
|
|
|
23
26
|
def end_date=: (Time) -> Time
|
|
@@ -40,6 +43,7 @@ module Dodopayments
|
|
|
40
43
|
|
|
41
44
|
def initialize: (
|
|
42
45
|
credit_entitlement_id: String,
|
|
46
|
+
customer_id: String,
|
|
43
47
|
?end_date: Time,
|
|
44
48
|
?page_number: Integer,
|
|
45
49
|
?page_size: Integer,
|
|
@@ -50,6 +54,7 @@ module Dodopayments
|
|
|
50
54
|
|
|
51
55
|
def to_hash: -> {
|
|
52
56
|
credit_entitlement_id: String,
|
|
57
|
+
customer_id: String,
|
|
53
58
|
end_date: Time,
|
|
54
59
|
page_number: Integer,
|
|
55
60
|
page_size: Integer,
|
|
@@ -2,13 +2,20 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
module CreditEntitlements
|
|
4
4
|
type balance_list_params =
|
|
5
|
-
{
|
|
5
|
+
{
|
|
6
|
+
credit_entitlement_id: String,
|
|
7
|
+
customer_id: String,
|
|
8
|
+
page_number: Integer,
|
|
9
|
+
page_size: Integer
|
|
10
|
+
}
|
|
6
11
|
& Dodopayments::Internal::Type::request_parameters
|
|
7
12
|
|
|
8
13
|
class BalanceListParams < Dodopayments::Internal::Type::BaseModel
|
|
9
14
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
10
15
|
include Dodopayments::Internal::Type::RequestParameters
|
|
11
16
|
|
|
17
|
+
attr_accessor credit_entitlement_id: String
|
|
18
|
+
|
|
12
19
|
attr_reader customer_id: String?
|
|
13
20
|
|
|
14
21
|
def customer_id=: (String) -> String
|
|
@@ -22,6 +29,7 @@ module Dodopayments
|
|
|
22
29
|
def page_size=: (Integer) -> Integer
|
|
23
30
|
|
|
24
31
|
def initialize: (
|
|
32
|
+
credit_entitlement_id: String,
|
|
25
33
|
?customer_id: String,
|
|
26
34
|
?page_number: Integer,
|
|
27
35
|
?page_size: Integer,
|
|
@@ -29,6 +37,7 @@ module Dodopayments
|
|
|
29
37
|
) -> void
|
|
30
38
|
|
|
31
39
|
def to_hash: -> {
|
|
40
|
+
credit_entitlement_id: String,
|
|
32
41
|
customer_id: String,
|
|
33
42
|
page_number: Integer,
|
|
34
43
|
page_size: Integer,
|
|
@@ -2,7 +2,7 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
module CreditEntitlements
|
|
4
4
|
type balance_retrieve_params =
|
|
5
|
-
{ credit_entitlement_id: String }
|
|
5
|
+
{ credit_entitlement_id: String, customer_id: String }
|
|
6
6
|
& Dodopayments::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class BalanceRetrieveParams < Dodopayments::Internal::Type::BaseModel
|
|
@@ -11,13 +11,17 @@ module Dodopayments
|
|
|
11
11
|
|
|
12
12
|
attr_accessor credit_entitlement_id: String
|
|
13
13
|
|
|
14
|
+
attr_accessor customer_id: String
|
|
15
|
+
|
|
14
16
|
def initialize: (
|
|
15
17
|
credit_entitlement_id: String,
|
|
18
|
+
customer_id: String,
|
|
16
19
|
?request_options: Dodopayments::request_opts
|
|
17
20
|
) -> void
|
|
18
21
|
|
|
19
22
|
def to_hash: -> {
|
|
20
23
|
credit_entitlement_id: String,
|
|
24
|
+
customer_id: String,
|
|
21
25
|
request_options: Dodopayments::RequestOptions
|
|
22
26
|
}
|
|
23
27
|
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type customer_list_credit_entitlements_params =
|
|
4
|
-
{
|
|
4
|
+
{ customer_id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class CustomerListCreditEntitlementsParams < Dodopayments::Internal::Type::BaseModel
|
|
7
7
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Dodopayments::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor customer_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
customer_id: String,
|
|
14
|
+
?request_options: Dodopayments::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
customer_id: String,
|
|
19
|
+
request_options: Dodopayments::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type customer_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ customer_id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class CustomerRetrieveParams < Dodopayments::Internal::Type::BaseModel
|
|
7
7
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Dodopayments::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor customer_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
customer_id: String,
|
|
14
|
+
?request_options: Dodopayments::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
customer_id: String,
|
|
19
|
+
request_options: Dodopayments::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type customer_retrieve_payment_methods_params =
|
|
4
|
-
{
|
|
4
|
+
{ customer_id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class CustomerRetrievePaymentMethodsParams < Dodopayments::Internal::Type::BaseModel
|
|
7
7
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Dodopayments::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor customer_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
customer_id: String,
|
|
14
|
+
?request_options: Dodopayments::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
customer_id: String,
|
|
19
|
+
request_options: Dodopayments::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|