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 :event_id
|
|
19
|
+
|
|
17
20
|
sig do
|
|
18
|
-
params(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
params(
|
|
22
|
+
event_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(event_id:, request_options: {})
|
|
23
27
|
end
|
|
24
28
|
|
|
25
29
|
sig do
|
|
26
|
-
override.returns(
|
|
30
|
+
override.returns(
|
|
31
|
+
{ event_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 :webhook_id
|
|
19
|
+
|
|
17
20
|
sig do
|
|
18
|
-
params(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
params(
|
|
22
|
+
webhook_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(webhook_id:, request_options: {})
|
|
23
27
|
end
|
|
24
28
|
|
|
25
29
|
sig do
|
|
26
|
-
override.returns(
|
|
30
|
+
override.returns(
|
|
31
|
+
{ webhook_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 :webhook_id
|
|
19
|
+
|
|
17
20
|
sig do
|
|
18
|
-
params(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
params(
|
|
22
|
+
webhook_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(webhook_id:, request_options: {})
|
|
23
27
|
end
|
|
24
28
|
|
|
25
29
|
sig do
|
|
26
|
-
override.returns(
|
|
30
|
+
override.returns(
|
|
31
|
+
{ webhook_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 :webhook_id
|
|
19
|
+
|
|
17
20
|
sig do
|
|
18
|
-
params(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
params(
|
|
22
|
+
webhook_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(webhook_id:, request_options: {})
|
|
23
27
|
end
|
|
24
28
|
|
|
25
29
|
sig do
|
|
26
|
-
override.returns(
|
|
30
|
+
override.returns(
|
|
31
|
+
{ webhook_id: String, request_options: Dodopayments::RequestOptions }
|
|
32
|
+
)
|
|
27
33
|
end
|
|
28
34
|
def to_hash
|
|
29
35
|
end
|
|
@@ -14,6 +14,9 @@ module Dodopayments
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :webhook_id
|
|
19
|
+
|
|
17
20
|
# Description of the webhook
|
|
18
21
|
sig { returns(T.nilable(String)) }
|
|
19
22
|
attr_accessor :description
|
|
@@ -44,6 +47,7 @@ module Dodopayments
|
|
|
44
47
|
|
|
45
48
|
sig do
|
|
46
49
|
params(
|
|
50
|
+
webhook_id: String,
|
|
47
51
|
description: T.nilable(String),
|
|
48
52
|
disabled: T.nilable(T::Boolean),
|
|
49
53
|
filter_types:
|
|
@@ -55,6 +59,7 @@ module Dodopayments
|
|
|
55
59
|
).returns(T.attached_class)
|
|
56
60
|
end
|
|
57
61
|
def self.new(
|
|
62
|
+
webhook_id:,
|
|
58
63
|
# Description of the webhook
|
|
59
64
|
description: nil,
|
|
60
65
|
# To Disable the endpoint, set it to true.
|
|
@@ -76,6 +81,7 @@ module Dodopayments
|
|
|
76
81
|
sig do
|
|
77
82
|
override.returns(
|
|
78
83
|
{
|
|
84
|
+
webhook_id: String,
|
|
79
85
|
description: T.nilable(String),
|
|
80
86
|
disabled: T.nilable(T::Boolean),
|
|
81
87
|
filter_types:
|
|
@@ -15,16 +15,25 @@ module Dodopayments
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :webhook_id
|
|
20
|
+
|
|
18
21
|
sig do
|
|
19
|
-
params(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
params(
|
|
23
|
+
webhook_id: String,
|
|
24
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
25
|
+
).returns(T.attached_class)
|
|
22
26
|
end
|
|
23
|
-
def self.new(request_options: {})
|
|
27
|
+
def self.new(webhook_id:, request_options: {})
|
|
24
28
|
end
|
|
25
29
|
|
|
26
30
|
sig do
|
|
27
|
-
override.returns(
|
|
31
|
+
override.returns(
|
|
32
|
+
{
|
|
33
|
+
webhook_id: String,
|
|
34
|
+
request_options: Dodopayments::RequestOptions
|
|
35
|
+
}
|
|
36
|
+
)
|
|
28
37
|
end
|
|
29
38
|
def to_hash
|
|
30
39
|
end
|
|
@@ -15,17 +15,22 @@ module Dodopayments
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :webhook_id
|
|
20
|
+
|
|
18
21
|
# Object of header-value pair to update or add
|
|
19
22
|
sig { returns(T::Hash[Symbol, String]) }
|
|
20
23
|
attr_accessor :headers
|
|
21
24
|
|
|
22
25
|
sig do
|
|
23
26
|
params(
|
|
27
|
+
webhook_id: String,
|
|
24
28
|
headers: T::Hash[Symbol, String],
|
|
25
29
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
26
30
|
).returns(T.attached_class)
|
|
27
31
|
end
|
|
28
32
|
def self.new(
|
|
33
|
+
webhook_id:,
|
|
29
34
|
# Object of header-value pair to update or add
|
|
30
35
|
headers:,
|
|
31
36
|
request_options: {}
|
|
@@ -35,6 +40,7 @@ module Dodopayments
|
|
|
35
40
|
sig do
|
|
36
41
|
override.returns(
|
|
37
42
|
{
|
|
43
|
+
webhook_id: String,
|
|
38
44
|
headers: T::Hash[Symbol, String],
|
|
39
45
|
request_options: Dodopayments::RequestOptions
|
|
40
46
|
}
|
|
@@ -414,19 +414,18 @@ module Dodopayments
|
|
|
414
414
|
sig do
|
|
415
415
|
params(
|
|
416
416
|
subscription_id: String,
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
417
|
+
body:
|
|
418
|
+
T.any(
|
|
419
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::New::OrHash,
|
|
420
|
+
Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::Existing::OrHash
|
|
421
|
+
),
|
|
421
422
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
422
423
|
).returns(Dodopayments::Models::SubscriptionUpdatePaymentMethodResponse)
|
|
423
424
|
end
|
|
424
425
|
def update_payment_method(
|
|
425
426
|
# Subscription Id
|
|
426
427
|
subscription_id,
|
|
427
|
-
|
|
428
|
-
payment_method_id:,
|
|
429
|
-
return_url: nil,
|
|
428
|
+
body:,
|
|
430
429
|
request_options: {}
|
|
431
430
|
)
|
|
432
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,
|