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
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type meter_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class MeterRetrieveParams < 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 meter_unarchive_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class MeterUnarchiveParams < 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 payment_retrieve_line_items_params =
|
|
4
|
-
{
|
|
4
|
+
{ payment_id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class PaymentRetrieveLineItemsParams < 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 payment_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
payment_id: String,
|
|
14
|
+
?request_options: Dodopayments::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
payment_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 payment_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ payment_id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class PaymentRetrieveParams < 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 payment_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
payment_id: String,
|
|
14
|
+
?request_options: Dodopayments::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
payment_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 product_archive_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class ProductArchiveParams < 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 product_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class ProductRetrieveParams < 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 product_unarchive_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class ProductUnarchiveParams < 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,20 +1,25 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type product_update_files_params =
|
|
4
|
-
{ file_name: String }
|
|
4
|
+
{ id: String, file_name: String }
|
|
5
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class ProductUpdateFilesParams < Dodopayments::Internal::Type::BaseModel
|
|
7
8
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
9
|
include Dodopayments::Internal::Type::RequestParameters
|
|
9
10
|
|
|
11
|
+
attr_accessor id: String
|
|
12
|
+
|
|
10
13
|
attr_accessor file_name: String
|
|
11
14
|
|
|
12
15
|
def initialize: (
|
|
16
|
+
id: String,
|
|
13
17
|
file_name: String,
|
|
14
18
|
?request_options: Dodopayments::request_opts
|
|
15
19
|
) -> void
|
|
16
20
|
|
|
17
21
|
def to_hash: -> {
|
|
22
|
+
id: String,
|
|
18
23
|
file_name: String,
|
|
19
24
|
request_options: Dodopayments::RequestOptions
|
|
20
25
|
}
|
|
@@ -2,6 +2,7 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
type product_update_params =
|
|
4
4
|
{
|
|
5
|
+
id: String,
|
|
5
6
|
addons: ::Array[String]?,
|
|
6
7
|
brand_id: String?,
|
|
7
8
|
credit_entitlements: ::Array[Dodopayments::AttachCreditEntitlement]?,
|
|
@@ -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 addons: ::Array[String]?
|
|
27
30
|
|
|
28
31
|
attr_accessor brand_id: String?
|
|
@@ -52,6 +55,7 @@ module Dodopayments
|
|
|
52
55
|
attr_accessor tax_category: Dodopayments::Models::tax_category?
|
|
53
56
|
|
|
54
57
|
def initialize: (
|
|
58
|
+
id: String,
|
|
55
59
|
?addons: ::Array[String]?,
|
|
56
60
|
?brand_id: String?,
|
|
57
61
|
?credit_entitlements: ::Array[Dodopayments::AttachCreditEntitlement]?,
|
|
@@ -70,6 +74,7 @@ module Dodopayments
|
|
|
70
74
|
) -> void
|
|
71
75
|
|
|
72
76
|
def to_hash: -> {
|
|
77
|
+
id: String,
|
|
73
78
|
addons: ::Array[String]?,
|
|
74
79
|
brand_id: String?,
|
|
75
80
|
credit_entitlements: ::Array[Dodopayments::AttachCreditEntitlement]?,
|
|
@@ -2,23 +2,27 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
module Products
|
|
4
4
|
type image_update_params =
|
|
5
|
-
{ force_update: bool }
|
|
5
|
+
{ id: String, force_update: bool }
|
|
6
6
|
& Dodopayments::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class ImageUpdateParams < Dodopayments::Internal::Type::BaseModel
|
|
9
9
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include Dodopayments::Internal::Type::RequestParameters
|
|
11
11
|
|
|
12
|
+
attr_accessor id: String
|
|
13
|
+
|
|
12
14
|
attr_reader force_update: bool?
|
|
13
15
|
|
|
14
16
|
def force_update=: (bool) -> bool
|
|
15
17
|
|
|
16
18
|
def initialize: (
|
|
19
|
+
id: String,
|
|
17
20
|
?force_update: bool,
|
|
18
21
|
?request_options: Dodopayments::request_opts
|
|
19
22
|
) -> void
|
|
20
23
|
|
|
21
24
|
def to_hash: -> {
|
|
25
|
+
id: String,
|
|
22
26
|
force_update: bool,
|
|
23
27
|
request_options: Dodopayments::RequestOptions
|
|
24
28
|
}
|
|
@@ -2,24 +2,32 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
module Products
|
|
4
4
|
type short_link_create_params =
|
|
5
|
-
{
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
slug: String,
|
|
8
|
+
static_checkout_params: ::Hash[Symbol, String]?
|
|
9
|
+
}
|
|
6
10
|
& Dodopayments::Internal::Type::request_parameters
|
|
7
11
|
|
|
8
12
|
class ShortLinkCreateParams < Dodopayments::Internal::Type::BaseModel
|
|
9
13
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
10
14
|
include Dodopayments::Internal::Type::RequestParameters
|
|
11
15
|
|
|
16
|
+
attr_accessor id: String
|
|
17
|
+
|
|
12
18
|
attr_accessor slug: String
|
|
13
19
|
|
|
14
20
|
attr_accessor static_checkout_params: ::Hash[Symbol, String]?
|
|
15
21
|
|
|
16
22
|
def initialize: (
|
|
23
|
+
id: String,
|
|
17
24
|
slug: String,
|
|
18
25
|
?static_checkout_params: ::Hash[Symbol, String]?,
|
|
19
26
|
?request_options: Dodopayments::request_opts
|
|
20
27
|
) -> void
|
|
21
28
|
|
|
22
29
|
def to_hash: -> {
|
|
30
|
+
id: String,
|
|
23
31
|
slug: String,
|
|
24
32
|
static_checkout_params: ::Hash[Symbol, String]?,
|
|
25
33
|
request_options: Dodopayments::RequestOptions
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type refund_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ refund_id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class RefundRetrieveParams < 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 refund_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
refund_id: String,
|
|
14
|
+
?request_options: Dodopayments::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
refund_id: String,
|
|
19
|
+
request_options: Dodopayments::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type subscription_change_plan_params =
|
|
4
|
-
{
|
|
4
|
+
{ subscription_id: String }
|
|
5
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class SubscriptionChangePlanParams < Dodopayments::Models::UpdateSubscriptionPlanReq
|
|
7
8
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
9
|
include Dodopayments::Internal::Type::RequestParameters
|
|
9
10
|
|
|
10
|
-
def
|
|
11
|
+
def subscription_id: -> String
|
|
11
12
|
|
|
12
|
-
def
|
|
13
|
+
def subscription_id=: (String _) -> String
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
subscription_id: String,
|
|
17
|
+
?request_options: Dodopayments::request_opts
|
|
18
|
+
) -> void
|
|
19
|
+
|
|
20
|
+
def to_hash: -> {
|
|
21
|
+
subscription_id: String,
|
|
22
|
+
request_options: Dodopayments::RequestOptions
|
|
23
|
+
}
|
|
13
24
|
end
|
|
14
25
|
end
|
|
15
26
|
end
|
|
@@ -2,6 +2,7 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
type subscription_charge_params =
|
|
4
4
|
{
|
|
5
|
+
subscription_id: String,
|
|
5
6
|
product_price: Integer,
|
|
6
7
|
adaptive_currency_fees_inclusive: bool?,
|
|
7
8
|
customer_balance_config: Dodopayments::SubscriptionChargeParams::CustomerBalanceConfig?,
|
|
@@ -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 subscription_id: String
|
|
20
|
+
|
|
18
21
|
attr_accessor product_price: Integer
|
|
19
22
|
|
|
20
23
|
attr_accessor adaptive_currency_fees_inclusive: bool?
|
|
@@ -28,6 +31,7 @@ module Dodopayments
|
|
|
28
31
|
attr_accessor product_description: String?
|
|
29
32
|
|
|
30
33
|
def initialize: (
|
|
34
|
+
subscription_id: String,
|
|
31
35
|
product_price: Integer,
|
|
32
36
|
?adaptive_currency_fees_inclusive: bool?,
|
|
33
37
|
?customer_balance_config: Dodopayments::SubscriptionChargeParams::CustomerBalanceConfig?,
|
|
@@ -38,6 +42,7 @@ module Dodopayments
|
|
|
38
42
|
) -> void
|
|
39
43
|
|
|
40
44
|
def to_hash: -> {
|
|
45
|
+
subscription_id: String,
|
|
41
46
|
product_price: Integer,
|
|
42
47
|
adaptive_currency_fees_inclusive: bool?,
|
|
43
48
|
customer_balance_config: Dodopayments::SubscriptionChargeParams::CustomerBalanceConfig?,
|
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type subscription_preview_change_plan_params =
|
|
4
|
-
{
|
|
4
|
+
{ subscription_id: String }
|
|
5
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class SubscriptionPreviewChangePlanParams < Dodopayments::Models::UpdateSubscriptionPlanReq
|
|
7
8
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
9
|
include Dodopayments::Internal::Type::RequestParameters
|
|
9
10
|
|
|
10
|
-
def
|
|
11
|
+
def subscription_id: -> String
|
|
11
12
|
|
|
12
|
-
def
|
|
13
|
+
def subscription_id=: (String _) -> String
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
subscription_id: String,
|
|
17
|
+
?request_options: Dodopayments::request_opts
|
|
18
|
+
) -> void
|
|
19
|
+
|
|
20
|
+
def to_hash: -> {
|
|
21
|
+
subscription_id: String,
|
|
22
|
+
request_options: Dodopayments::RequestOptions
|
|
23
|
+
}
|
|
13
24
|
end
|
|
14
25
|
end
|
|
15
26
|
end
|
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type subscription_retrieve_credit_usage_params =
|
|
4
|
-
{
|
|
4
|
+
{ subscription_id: String }
|
|
5
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class SubscriptionRetrieveCreditUsageParams < Dodopayments::Internal::Type::BaseModel
|
|
7
8
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
9
|
include Dodopayments::Internal::Type::RequestParameters
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
attr_accessor subscription_id: String
|
|
11
12
|
|
|
12
|
-
def
|
|
13
|
+
def initialize: (
|
|
14
|
+
subscription_id: String,
|
|
15
|
+
?request_options: Dodopayments::request_opts
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
subscription_id: String,
|
|
20
|
+
request_options: Dodopayments::RequestOptions
|
|
21
|
+
}
|
|
13
22
|
end
|
|
14
23
|
end
|
|
15
24
|
end
|
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type subscription_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ subscription_id: String }
|
|
5
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class SubscriptionRetrieveParams < Dodopayments::Internal::Type::BaseModel
|
|
7
8
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
9
|
include Dodopayments::Internal::Type::RequestParameters
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
attr_accessor subscription_id: String
|
|
11
12
|
|
|
12
|
-
def
|
|
13
|
+
def initialize: (
|
|
14
|
+
subscription_id: String,
|
|
15
|
+
?request_options: Dodopayments::request_opts
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
subscription_id: String,
|
|
20
|
+
request_options: Dodopayments::RequestOptions
|
|
21
|
+
}
|
|
13
22
|
end
|
|
14
23
|
end
|
|
15
24
|
end
|
|
@@ -2,6 +2,7 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
type subscription_retrieve_usage_history_params =
|
|
4
4
|
{
|
|
5
|
+
subscription_id: String,
|
|
5
6
|
end_date: Time?,
|
|
6
7
|
meter_id: String?,
|
|
7
8
|
page_number: Integer?,
|
|
@@ -14,6 +15,8 @@ module Dodopayments
|
|
|
14
15
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
15
16
|
include Dodopayments::Internal::Type::RequestParameters
|
|
16
17
|
|
|
18
|
+
attr_accessor subscription_id: String
|
|
19
|
+
|
|
17
20
|
attr_accessor end_date: Time?
|
|
18
21
|
|
|
19
22
|
attr_accessor meter_id: String?
|
|
@@ -25,6 +28,7 @@ module Dodopayments
|
|
|
25
28
|
attr_accessor start_date: Time?
|
|
26
29
|
|
|
27
30
|
def initialize: (
|
|
31
|
+
subscription_id: String,
|
|
28
32
|
?end_date: Time?,
|
|
29
33
|
?meter_id: String?,
|
|
30
34
|
?page_number: Integer?,
|
|
@@ -34,6 +38,7 @@ module Dodopayments
|
|
|
34
38
|
) -> void
|
|
35
39
|
|
|
36
40
|
def to_hash: -> {
|
|
41
|
+
subscription_id: String,
|
|
37
42
|
end_date: Time?,
|
|
38
43
|
meter_id: String?,
|
|
39
44
|
page_number: Integer?,
|
|
@@ -2,6 +2,7 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
type subscription_update_params =
|
|
4
4
|
{
|
|
5
|
+
subscription_id: String,
|
|
5
6
|
billing: Dodopayments::BillingAddress?,
|
|
6
7
|
cancel_at_next_billing_date: bool?,
|
|
7
8
|
credit_entitlement_cart: ::Array[Dodopayments::SubscriptionUpdateParams::CreditEntitlementCart]?,
|
|
@@ -18,6 +19,8 @@ module Dodopayments
|
|
|
18
19
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
19
20
|
include Dodopayments::Internal::Type::RequestParameters
|
|
20
21
|
|
|
22
|
+
attr_accessor subscription_id: String
|
|
23
|
+
|
|
21
24
|
attr_accessor billing: Dodopayments::BillingAddress?
|
|
22
25
|
|
|
23
26
|
attr_accessor cancel_at_next_billing_date: bool?
|
|
@@ -37,6 +40,7 @@ module Dodopayments
|
|
|
37
40
|
attr_accessor tax_id: String?
|
|
38
41
|
|
|
39
42
|
def initialize: (
|
|
43
|
+
subscription_id: String,
|
|
40
44
|
?billing: Dodopayments::BillingAddress?,
|
|
41
45
|
?cancel_at_next_billing_date: bool?,
|
|
42
46
|
?credit_entitlement_cart: ::Array[Dodopayments::SubscriptionUpdateParams::CreditEntitlementCart]?,
|
|
@@ -50,6 +54,7 @@ module Dodopayments
|
|
|
50
54
|
) -> void
|
|
51
55
|
|
|
52
56
|
def to_hash: -> {
|
|
57
|
+
subscription_id: String,
|
|
53
58
|
billing: Dodopayments::BillingAddress?,
|
|
54
59
|
cancel_at_next_billing_date: bool?,
|
|
55
60
|
credit_entitlement_cart: ::Array[Dodopayments::SubscriptionUpdateParams::CreditEntitlementCart]?,
|