dodopayments 2.1.0 → 2.1.2
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 +1 -1
- data/lib/dodopayments/client.rb +1 -1
- 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_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 +8 -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/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/subscriptions.rb +3 -7
- 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_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 +6 -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/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/subscriptions.rbi +6 -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_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 +5 -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/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/subscriptions.rbs +1 -3
- metadata +2 -2
|
@@ -14,16 +14,22 @@ module Dodopayments
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :id
|
|
19
|
+
|
|
17
20
|
sig do
|
|
18
|
-
params(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
params(
|
|
22
|
+
id: String,
|
|
23
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
24
|
+
).returns(T.attached_class)
|
|
21
25
|
end
|
|
22
|
-
def self.new(request_options: {})
|
|
26
|
+
def self.new(id:, request_options: {})
|
|
23
27
|
end
|
|
24
28
|
|
|
25
29
|
sig do
|
|
26
|
-
override.returns(
|
|
30
|
+
override.returns(
|
|
31
|
+
{ id: String, request_options: Dodopayments::RequestOptions }
|
|
32
|
+
)
|
|
27
33
|
end
|
|
28
34
|
def to_hash
|
|
29
35
|
end
|
|
@@ -14,16 +14,22 @@ module Dodopayments
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :id
|
|
19
|
+
|
|
17
20
|
sig do
|
|
18
|
-
params(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
params(
|
|
22
|
+
id: String,
|
|
23
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
24
|
+
).returns(T.attached_class)
|
|
21
25
|
end
|
|
22
|
-
def self.new(request_options: {})
|
|
26
|
+
def self.new(id:, request_options: {})
|
|
23
27
|
end
|
|
24
28
|
|
|
25
29
|
sig do
|
|
26
|
-
override.returns(
|
|
30
|
+
override.returns(
|
|
31
|
+
{ id: String, request_options: Dodopayments::RequestOptions }
|
|
32
|
+
)
|
|
27
33
|
end
|
|
28
34
|
def to_hash
|
|
29
35
|
end
|
|
@@ -14,21 +14,29 @@ module Dodopayments
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :id
|
|
19
|
+
|
|
17
20
|
sig { returns(String) }
|
|
18
21
|
attr_accessor :file_name
|
|
19
22
|
|
|
20
23
|
sig do
|
|
21
24
|
params(
|
|
25
|
+
id: String,
|
|
22
26
|
file_name: String,
|
|
23
27
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
24
28
|
).returns(T.attached_class)
|
|
25
29
|
end
|
|
26
|
-
def self.new(file_name:, request_options: {})
|
|
30
|
+
def self.new(id:, file_name:, request_options: {})
|
|
27
31
|
end
|
|
28
32
|
|
|
29
33
|
sig do
|
|
30
34
|
override.returns(
|
|
31
|
-
{
|
|
35
|
+
{
|
|
36
|
+
id: String,
|
|
37
|
+
file_name: String,
|
|
38
|
+
request_options: Dodopayments::RequestOptions
|
|
39
|
+
}
|
|
32
40
|
)
|
|
33
41
|
end
|
|
34
42
|
def to_hash
|
|
@@ -14,6 +14,9 @@ module Dodopayments
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :id
|
|
19
|
+
|
|
17
20
|
# Available Addons for subscription products
|
|
18
21
|
sig { returns(T.nilable(T::Array[String])) }
|
|
19
22
|
attr_accessor :addons
|
|
@@ -118,6 +121,7 @@ module Dodopayments
|
|
|
118
121
|
|
|
119
122
|
sig do
|
|
120
123
|
params(
|
|
124
|
+
id: String,
|
|
121
125
|
addons: T.nilable(T::Array[String]),
|
|
122
126
|
brand_id: T.nilable(String),
|
|
123
127
|
credit_entitlements:
|
|
@@ -148,6 +152,7 @@ module Dodopayments
|
|
|
148
152
|
).returns(T.attached_class)
|
|
149
153
|
end
|
|
150
154
|
def self.new(
|
|
155
|
+
id:,
|
|
151
156
|
# Available Addons for subscription products
|
|
152
157
|
addons: nil,
|
|
153
158
|
brand_id: nil,
|
|
@@ -195,6 +200,7 @@ module Dodopayments
|
|
|
195
200
|
sig do
|
|
196
201
|
override.returns(
|
|
197
202
|
{
|
|
203
|
+
id: String,
|
|
198
204
|
addons: T.nilable(T::Array[String]),
|
|
199
205
|
brand_id: T.nilable(String),
|
|
200
206
|
credit_entitlements:
|
|
@@ -15,6 +15,9 @@ module Dodopayments
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
18
21
|
sig { returns(T.nilable(T::Boolean)) }
|
|
19
22
|
attr_reader :force_update
|
|
20
23
|
|
|
@@ -23,16 +26,18 @@ module Dodopayments
|
|
|
23
26
|
|
|
24
27
|
sig do
|
|
25
28
|
params(
|
|
29
|
+
id: String,
|
|
26
30
|
force_update: T::Boolean,
|
|
27
31
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
28
32
|
).returns(T.attached_class)
|
|
29
33
|
end
|
|
30
|
-
def self.new(force_update: nil, request_options: {})
|
|
34
|
+
def self.new(id:, force_update: nil, request_options: {})
|
|
31
35
|
end
|
|
32
36
|
|
|
33
37
|
sig do
|
|
34
38
|
override.returns(
|
|
35
39
|
{
|
|
40
|
+
id: String,
|
|
36
41
|
force_update: T::Boolean,
|
|
37
42
|
request_options: Dodopayments::RequestOptions
|
|
38
43
|
}
|
|
@@ -15,6 +15,9 @@ module Dodopayments
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
18
21
|
# Slug for the short link.
|
|
19
22
|
sig { returns(String) }
|
|
20
23
|
attr_accessor :slug
|
|
@@ -25,12 +28,14 @@ module Dodopayments
|
|
|
25
28
|
|
|
26
29
|
sig do
|
|
27
30
|
params(
|
|
31
|
+
id: String,
|
|
28
32
|
slug: String,
|
|
29
33
|
static_checkout_params: T.nilable(T::Hash[Symbol, String]),
|
|
30
34
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
31
35
|
).returns(T.attached_class)
|
|
32
36
|
end
|
|
33
37
|
def self.new(
|
|
38
|
+
id:,
|
|
34
39
|
# Slug for the short link.
|
|
35
40
|
slug:,
|
|
36
41
|
# Static Checkout URL parameters to apply to the resulting short URL.
|
|
@@ -42,6 +47,7 @@ module Dodopayments
|
|
|
42
47
|
sig do
|
|
43
48
|
override.returns(
|
|
44
49
|
{
|
|
50
|
+
id: String,
|
|
45
51
|
slug: String,
|
|
46
52
|
static_checkout_params: T.nilable(T::Hash[Symbol, String]),
|
|
47
53
|
request_options: Dodopayments::RequestOptions
|
|
@@ -14,16 +14,22 @@ module Dodopayments
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :refund_id
|
|
19
|
+
|
|
17
20
|
sig do
|
|
18
|
-
params(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
params(
|
|
22
|
+
refund_id: String,
|
|
23
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
24
|
+
).returns(T.attached_class)
|
|
21
25
|
end
|
|
22
|
-
def self.new(request_options: {})
|
|
26
|
+
def self.new(refund_id:, request_options: {})
|
|
23
27
|
end
|
|
24
28
|
|
|
25
29
|
sig do
|
|
26
|
-
override.returns(
|
|
30
|
+
override.returns(
|
|
31
|
+
{ refund_id: String, request_options: Dodopayments::RequestOptions }
|
|
32
|
+
)
|
|
27
33
|
end
|
|
28
34
|
def to_hash
|
|
29
35
|
end
|
|
@@ -14,16 +14,25 @@ module Dodopayments
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :subscription_id
|
|
19
|
+
|
|
17
20
|
sig do
|
|
18
|
-
params(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
params(
|
|
22
|
+
subscription_id: String,
|
|
23
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
24
|
+
).returns(T.attached_class)
|
|
21
25
|
end
|
|
22
|
-
def self.new(request_options: {})
|
|
26
|
+
def self.new(subscription_id:, request_options: {})
|
|
23
27
|
end
|
|
24
28
|
|
|
25
29
|
sig do
|
|
26
|
-
override.returns(
|
|
30
|
+
override.returns(
|
|
31
|
+
{
|
|
32
|
+
subscription_id: String,
|
|
33
|
+
request_options: Dodopayments::RequestOptions
|
|
34
|
+
}
|
|
35
|
+
)
|
|
27
36
|
end
|
|
28
37
|
def to_hash
|
|
29
38
|
end
|
|
@@ -14,6 +14,9 @@ module Dodopayments
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :subscription_id
|
|
19
|
+
|
|
17
20
|
# The product price. Represented in the lowest denomination of the currency (e.g.,
|
|
18
21
|
# cents for USD). For example, to charge $1.00, pass `100`.
|
|
19
22
|
sig { returns(Integer) }
|
|
@@ -62,6 +65,7 @@ module Dodopayments
|
|
|
62
65
|
|
|
63
66
|
sig do
|
|
64
67
|
params(
|
|
68
|
+
subscription_id: String,
|
|
65
69
|
product_price: Integer,
|
|
66
70
|
adaptive_currency_fees_inclusive: T.nilable(T::Boolean),
|
|
67
71
|
customer_balance_config:
|
|
@@ -75,6 +79,7 @@ module Dodopayments
|
|
|
75
79
|
).returns(T.attached_class)
|
|
76
80
|
end
|
|
77
81
|
def self.new(
|
|
82
|
+
subscription_id:,
|
|
78
83
|
# The product price. Represented in the lowest denomination of the currency (e.g.,
|
|
79
84
|
# cents for USD). For example, to charge $1.00, pass `100`.
|
|
80
85
|
product_price:,
|
|
@@ -100,6 +105,7 @@ module Dodopayments
|
|
|
100
105
|
sig do
|
|
101
106
|
override.returns(
|
|
102
107
|
{
|
|
108
|
+
subscription_id: String,
|
|
103
109
|
product_price: Integer,
|
|
104
110
|
adaptive_currency_fees_inclusive: T.nilable(T::Boolean),
|
|
105
111
|
customer_balance_config:
|
|
@@ -14,16 +14,25 @@ module Dodopayments
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :subscription_id
|
|
19
|
+
|
|
17
20
|
sig do
|
|
18
|
-
params(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
params(
|
|
22
|
+
subscription_id: String,
|
|
23
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
24
|
+
).returns(T.attached_class)
|
|
21
25
|
end
|
|
22
|
-
def self.new(request_options: {})
|
|
26
|
+
def self.new(subscription_id:, request_options: {})
|
|
23
27
|
end
|
|
24
28
|
|
|
25
29
|
sig do
|
|
26
|
-
override.returns(
|
|
30
|
+
override.returns(
|
|
31
|
+
{
|
|
32
|
+
subscription_id: String,
|
|
33
|
+
request_options: Dodopayments::RequestOptions
|
|
34
|
+
}
|
|
35
|
+
)
|
|
27
36
|
end
|
|
28
37
|
def to_hash
|
|
29
38
|
end
|
|
@@ -14,16 +14,25 @@ module Dodopayments
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :subscription_id
|
|
19
|
+
|
|
17
20
|
sig do
|
|
18
|
-
params(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
params(
|
|
22
|
+
subscription_id: String,
|
|
23
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
24
|
+
).returns(T.attached_class)
|
|
21
25
|
end
|
|
22
|
-
def self.new(request_options: {})
|
|
26
|
+
def self.new(subscription_id:, request_options: {})
|
|
23
27
|
end
|
|
24
28
|
|
|
25
29
|
sig do
|
|
26
|
-
override.returns(
|
|
30
|
+
override.returns(
|
|
31
|
+
{
|
|
32
|
+
subscription_id: String,
|
|
33
|
+
request_options: Dodopayments::RequestOptions
|
|
34
|
+
}
|
|
35
|
+
)
|
|
27
36
|
end
|
|
28
37
|
def to_hash
|
|
29
38
|
end
|
|
@@ -14,16 +14,25 @@ module Dodopayments
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :subscription_id
|
|
19
|
+
|
|
17
20
|
sig do
|
|
18
|
-
params(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
params(
|
|
22
|
+
subscription_id: String,
|
|
23
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
24
|
+
).returns(T.attached_class)
|
|
21
25
|
end
|
|
22
|
-
def self.new(request_options: {})
|
|
26
|
+
def self.new(subscription_id:, request_options: {})
|
|
23
27
|
end
|
|
24
28
|
|
|
25
29
|
sig do
|
|
26
|
-
override.returns(
|
|
30
|
+
override.returns(
|
|
31
|
+
{
|
|
32
|
+
subscription_id: String,
|
|
33
|
+
request_options: Dodopayments::RequestOptions
|
|
34
|
+
}
|
|
35
|
+
)
|
|
27
36
|
end
|
|
28
37
|
def to_hash
|
|
29
38
|
end
|
|
@@ -14,6 +14,9 @@ module Dodopayments
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :subscription_id
|
|
19
|
+
|
|
17
20
|
# Filter by end date (inclusive)
|
|
18
21
|
sig { returns(T.nilable(Time)) }
|
|
19
22
|
attr_accessor :end_date
|
|
@@ -36,6 +39,7 @@ module Dodopayments
|
|
|
36
39
|
|
|
37
40
|
sig do
|
|
38
41
|
params(
|
|
42
|
+
subscription_id: String,
|
|
39
43
|
end_date: T.nilable(Time),
|
|
40
44
|
meter_id: T.nilable(String),
|
|
41
45
|
page_number: T.nilable(Integer),
|
|
@@ -45,6 +49,7 @@ module Dodopayments
|
|
|
45
49
|
).returns(T.attached_class)
|
|
46
50
|
end
|
|
47
51
|
def self.new(
|
|
52
|
+
subscription_id:,
|
|
48
53
|
# Filter by end date (inclusive)
|
|
49
54
|
end_date: nil,
|
|
50
55
|
# Filter by specific meter ID
|
|
@@ -62,6 +67,7 @@ module Dodopayments
|
|
|
62
67
|
sig do
|
|
63
68
|
override.returns(
|
|
64
69
|
{
|
|
70
|
+
subscription_id: String,
|
|
65
71
|
end_date: T.nilable(Time),
|
|
66
72
|
meter_id: T.nilable(String),
|
|
67
73
|
page_number: T.nilable(Integer),
|
|
@@ -14,6 +14,9 @@ module Dodopayments
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :subscription_id
|
|
19
|
+
|
|
17
20
|
sig { returns(T.nilable(Dodopayments::BillingAddress)) }
|
|
18
21
|
attr_reader :billing
|
|
19
22
|
|
|
@@ -72,6 +75,7 @@ module Dodopayments
|
|
|
72
75
|
|
|
73
76
|
sig do
|
|
74
77
|
params(
|
|
78
|
+
subscription_id: String,
|
|
75
79
|
billing: T.nilable(Dodopayments::BillingAddress::OrHash),
|
|
76
80
|
cancel_at_next_billing_date: T.nilable(T::Boolean),
|
|
77
81
|
credit_entitlement_cart:
|
|
@@ -93,6 +97,7 @@ module Dodopayments
|
|
|
93
97
|
).returns(T.attached_class)
|
|
94
98
|
end
|
|
95
99
|
def self.new(
|
|
100
|
+
subscription_id:,
|
|
96
101
|
billing: nil,
|
|
97
102
|
# When set, the subscription will remain active until the end of billing period
|
|
98
103
|
cancel_at_next_billing_date: nil,
|
|
@@ -111,6 +116,7 @@ module Dodopayments
|
|
|
111
116
|
sig do
|
|
112
117
|
override.returns(
|
|
113
118
|
{
|
|
119
|
+
subscription_id: String,
|
|
114
120
|
billing: T.nilable(Dodopayments::BillingAddress),
|
|
115
121
|
cancel_at_next_billing_date: T.nilable(T::Boolean),
|
|
116
122
|
credit_entitlement_cart:
|
|
@@ -14,43 +14,42 @@ module Dodopayments
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :subscription_id
|
|
19
|
+
|
|
17
20
|
sig do
|
|
18
21
|
returns(
|
|
19
|
-
|
|
22
|
+
T.any(
|
|
23
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::New,
|
|
24
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::Existing
|
|
25
|
+
)
|
|
20
26
|
)
|
|
21
27
|
end
|
|
22
|
-
attr_accessor :
|
|
23
|
-
|
|
24
|
-
sig { returns(T.nilable(String)) }
|
|
25
|
-
attr_accessor :return_url
|
|
26
|
-
|
|
27
|
-
sig { returns(String) }
|
|
28
|
-
attr_accessor :payment_method_id
|
|
28
|
+
attr_accessor :body
|
|
29
29
|
|
|
30
30
|
sig do
|
|
31
31
|
params(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
subscription_id: String,
|
|
33
|
+
body:
|
|
34
|
+
T.any(
|
|
35
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::New::OrHash,
|
|
36
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::Existing::OrHash
|
|
37
|
+
),
|
|
36
38
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
37
39
|
).returns(T.attached_class)
|
|
38
40
|
end
|
|
39
|
-
def self.new(
|
|
40
|
-
type:,
|
|
41
|
-
payment_method_id:,
|
|
42
|
-
return_url: nil,
|
|
43
|
-
request_options: {}
|
|
44
|
-
)
|
|
41
|
+
def self.new(subscription_id:, body:, request_options: {})
|
|
45
42
|
end
|
|
46
43
|
|
|
47
44
|
sig do
|
|
48
45
|
override.returns(
|
|
49
46
|
{
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
47
|
+
subscription_id: String,
|
|
48
|
+
body:
|
|
49
|
+
T.any(
|
|
50
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::New,
|
|
51
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::Existing
|
|
52
|
+
),
|
|
54
53
|
request_options: Dodopayments::RequestOptions
|
|
55
54
|
}
|
|
56
55
|
)
|
|
@@ -58,32 +57,167 @@ module Dodopayments
|
|
|
58
57
|
def to_hash
|
|
59
58
|
end
|
|
60
59
|
|
|
61
|
-
module
|
|
62
|
-
extend Dodopayments::Internal::Type::
|
|
60
|
+
module Body
|
|
61
|
+
extend Dodopayments::Internal::Type::Union
|
|
63
62
|
|
|
64
|
-
|
|
63
|
+
Variants =
|
|
65
64
|
T.type_alias do
|
|
66
|
-
T.
|
|
67
|
-
|
|
68
|
-
Dodopayments::SubscriptionUpdatePaymentMethodParams::
|
|
65
|
+
T.any(
|
|
66
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::New,
|
|
67
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::Existing
|
|
69
68
|
)
|
|
70
69
|
end
|
|
71
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
72
70
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
71
|
+
class New < Dodopayments::Internal::Type::BaseModel
|
|
72
|
+
OrHash =
|
|
73
|
+
T.type_alias do
|
|
74
|
+
T.any(
|
|
75
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::New,
|
|
76
|
+
Dodopayments::Internal::AnyHash
|
|
77
|
+
)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
sig do
|
|
81
|
+
returns(
|
|
82
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::New::Type::OrSymbol
|
|
83
|
+
)
|
|
84
|
+
end
|
|
85
|
+
attr_accessor :type
|
|
86
|
+
|
|
87
|
+
sig { returns(T.nilable(String)) }
|
|
88
|
+
attr_accessor :return_url
|
|
89
|
+
|
|
90
|
+
sig do
|
|
91
|
+
params(
|
|
92
|
+
type:
|
|
93
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::New::Type::OrSymbol,
|
|
94
|
+
return_url: T.nilable(String)
|
|
95
|
+
).returns(T.attached_class)
|
|
96
|
+
end
|
|
97
|
+
def self.new(type:, return_url: nil)
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
sig do
|
|
101
|
+
override.returns(
|
|
102
|
+
{
|
|
103
|
+
type:
|
|
104
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::New::Type::OrSymbol,
|
|
105
|
+
return_url: T.nilable(String)
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
end
|
|
109
|
+
def to_hash
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
module Type
|
|
113
|
+
extend Dodopayments::Internal::Type::Enum
|
|
114
|
+
|
|
115
|
+
TaggedSymbol =
|
|
116
|
+
T.type_alias do
|
|
117
|
+
T.all(
|
|
118
|
+
Symbol,
|
|
119
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::New::Type
|
|
120
|
+
)
|
|
121
|
+
end
|
|
122
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
123
|
+
|
|
124
|
+
NEW =
|
|
125
|
+
T.let(
|
|
126
|
+
:new,
|
|
127
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::New::Type::TaggedSymbol
|
|
128
|
+
)
|
|
129
|
+
|
|
130
|
+
sig do
|
|
131
|
+
override.returns(
|
|
132
|
+
T::Array[
|
|
133
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::New::Type::TaggedSymbol
|
|
134
|
+
]
|
|
135
|
+
)
|
|
136
|
+
end
|
|
137
|
+
def self.values
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
class Existing < Dodopayments::Internal::Type::BaseModel
|
|
143
|
+
OrHash =
|
|
144
|
+
T.type_alias do
|
|
145
|
+
T.any(
|
|
146
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::Existing,
|
|
147
|
+
Dodopayments::Internal::AnyHash
|
|
148
|
+
)
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
sig { returns(String) }
|
|
152
|
+
attr_accessor :payment_method_id
|
|
153
|
+
|
|
154
|
+
sig do
|
|
155
|
+
returns(
|
|
156
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::Existing::Type::OrSymbol
|
|
157
|
+
)
|
|
158
|
+
end
|
|
159
|
+
attr_accessor :type
|
|
160
|
+
|
|
161
|
+
sig do
|
|
162
|
+
params(
|
|
163
|
+
payment_method_id: String,
|
|
164
|
+
type:
|
|
165
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::Existing::Type::OrSymbol
|
|
166
|
+
).returns(T.attached_class)
|
|
167
|
+
end
|
|
168
|
+
def self.new(payment_method_id:, type:)
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
sig do
|
|
172
|
+
override.returns(
|
|
173
|
+
{
|
|
174
|
+
payment_method_id: String,
|
|
175
|
+
type:
|
|
176
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::Existing::Type::OrSymbol
|
|
177
|
+
}
|
|
178
|
+
)
|
|
179
|
+
end
|
|
180
|
+
def to_hash
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
module Type
|
|
184
|
+
extend Dodopayments::Internal::Type::Enum
|
|
185
|
+
|
|
186
|
+
TaggedSymbol =
|
|
187
|
+
T.type_alias do
|
|
188
|
+
T.all(
|
|
189
|
+
Symbol,
|
|
190
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::Existing::Type
|
|
191
|
+
)
|
|
192
|
+
end
|
|
193
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
194
|
+
|
|
195
|
+
EXISTING =
|
|
196
|
+
T.let(
|
|
197
|
+
:existing,
|
|
198
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::Existing::Type::TaggedSymbol
|
|
199
|
+
)
|
|
200
|
+
|
|
201
|
+
sig do
|
|
202
|
+
override.returns(
|
|
203
|
+
T::Array[
|
|
204
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::Existing::Type::TaggedSymbol
|
|
205
|
+
]
|
|
206
|
+
)
|
|
207
|
+
end
|
|
208
|
+
def self.values
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
end
|
|
78
212
|
|
|
79
213
|
sig do
|
|
80
214
|
override.returns(
|
|
81
215
|
T::Array[
|
|
82
|
-
Dodopayments::SubscriptionUpdatePaymentMethodParams::
|
|
216
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::Variants
|
|
83
217
|
]
|
|
84
218
|
)
|
|
85
219
|
end
|
|
86
|
-
def self.
|
|
220
|
+
def self.variants
|
|
87
221
|
end
|
|
88
222
|
end
|
|
89
223
|
end
|