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
|
@@ -2,13 +2,20 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
module CreditEntitlements
|
|
4
4
|
type balance_list_params =
|
|
5
|
-
{
|
|
5
|
+
{
|
|
6
|
+
credit_entitlement_id: String,
|
|
7
|
+
customer_id: String,
|
|
8
|
+
page_number: Integer,
|
|
9
|
+
page_size: Integer
|
|
10
|
+
}
|
|
6
11
|
& Dodopayments::Internal::Type::request_parameters
|
|
7
12
|
|
|
8
13
|
class BalanceListParams < Dodopayments::Internal::Type::BaseModel
|
|
9
14
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
10
15
|
include Dodopayments::Internal::Type::RequestParameters
|
|
11
16
|
|
|
17
|
+
attr_accessor credit_entitlement_id: String
|
|
18
|
+
|
|
12
19
|
attr_reader customer_id: String?
|
|
13
20
|
|
|
14
21
|
def customer_id=: (String) -> String
|
|
@@ -22,6 +29,7 @@ module Dodopayments
|
|
|
22
29
|
def page_size=: (Integer) -> Integer
|
|
23
30
|
|
|
24
31
|
def initialize: (
|
|
32
|
+
credit_entitlement_id: String,
|
|
25
33
|
?customer_id: String,
|
|
26
34
|
?page_number: Integer,
|
|
27
35
|
?page_size: Integer,
|
|
@@ -29,6 +37,7 @@ module Dodopayments
|
|
|
29
37
|
) -> void
|
|
30
38
|
|
|
31
39
|
def to_hash: -> {
|
|
40
|
+
credit_entitlement_id: String,
|
|
32
41
|
customer_id: String,
|
|
33
42
|
page_number: Integer,
|
|
34
43
|
page_size: Integer,
|
|
@@ -2,7 +2,7 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
module CreditEntitlements
|
|
4
4
|
type balance_retrieve_params =
|
|
5
|
-
{ credit_entitlement_id: String }
|
|
5
|
+
{ credit_entitlement_id: String, customer_id: String }
|
|
6
6
|
& Dodopayments::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class BalanceRetrieveParams < Dodopayments::Internal::Type::BaseModel
|
|
@@ -11,13 +11,17 @@ module Dodopayments
|
|
|
11
11
|
|
|
12
12
|
attr_accessor credit_entitlement_id: String
|
|
13
13
|
|
|
14
|
+
attr_accessor customer_id: String
|
|
15
|
+
|
|
14
16
|
def initialize: (
|
|
15
17
|
credit_entitlement_id: String,
|
|
18
|
+
customer_id: String,
|
|
16
19
|
?request_options: Dodopayments::request_opts
|
|
17
20
|
) -> void
|
|
18
21
|
|
|
19
22
|
def to_hash: -> {
|
|
20
23
|
credit_entitlement_id: String,
|
|
24
|
+
customer_id: String,
|
|
21
25
|
request_options: Dodopayments::RequestOptions
|
|
22
26
|
}
|
|
23
27
|
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type customer_list_credit_entitlements_params =
|
|
4
|
-
{
|
|
4
|
+
{ customer_id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class CustomerListCreditEntitlementsParams < Dodopayments::Internal::Type::BaseModel
|
|
7
7
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Dodopayments::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor customer_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
customer_id: String,
|
|
14
|
+
?request_options: Dodopayments::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
customer_id: String,
|
|
19
|
+
request_options: Dodopayments::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type customer_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ customer_id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class CustomerRetrieveParams < Dodopayments::Internal::Type::BaseModel
|
|
7
7
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Dodopayments::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor customer_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
customer_id: String,
|
|
14
|
+
?request_options: Dodopayments::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
customer_id: String,
|
|
19
|
+
request_options: Dodopayments::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type customer_retrieve_payment_methods_params =
|
|
4
|
-
{
|
|
4
|
+
{ customer_id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class CustomerRetrievePaymentMethodsParams < Dodopayments::Internal::Type::BaseModel
|
|
7
7
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Dodopayments::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor customer_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
customer_id: String,
|
|
14
|
+
?request_options: Dodopayments::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
customer_id: String,
|
|
19
|
+
request_options: Dodopayments::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -2,6 +2,7 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
type customer_update_params =
|
|
4
4
|
{
|
|
5
|
+
customer_id: String,
|
|
5
6
|
email: String?,
|
|
6
7
|
metadata: ::Hash[Symbol, String]?,
|
|
7
8
|
name: String?,
|
|
@@ -13,6 +14,8 @@ module Dodopayments
|
|
|
13
14
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
14
15
|
include Dodopayments::Internal::Type::RequestParameters
|
|
15
16
|
|
|
17
|
+
attr_accessor customer_id: String
|
|
18
|
+
|
|
16
19
|
attr_accessor email: String?
|
|
17
20
|
|
|
18
21
|
attr_accessor metadata: ::Hash[Symbol, String]?
|
|
@@ -22,6 +25,7 @@ module Dodopayments
|
|
|
22
25
|
attr_accessor phone_number: String?
|
|
23
26
|
|
|
24
27
|
def initialize: (
|
|
28
|
+
customer_id: String,
|
|
25
29
|
?email: String?,
|
|
26
30
|
?metadata: ::Hash[Symbol, String]?,
|
|
27
31
|
?name: String?,
|
|
@@ -30,6 +34,7 @@ module Dodopayments
|
|
|
30
34
|
) -> void
|
|
31
35
|
|
|
32
36
|
def to_hash: -> {
|
|
37
|
+
customer_id: String,
|
|
33
38
|
email: String?,
|
|
34
39
|
metadata: ::Hash[Symbol, String]?,
|
|
35
40
|
name: String?,
|
|
@@ -2,22 +2,27 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
module Customers
|
|
4
4
|
type customer_portal_create_params =
|
|
5
|
-
{ send_email: bool }
|
|
5
|
+
{ customer_id: String, send_email: bool }
|
|
6
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
6
7
|
|
|
7
8
|
class CustomerPortalCreateParams < Dodopayments::Internal::Type::BaseModel
|
|
8
9
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
10
|
include Dodopayments::Internal::Type::RequestParameters
|
|
10
11
|
|
|
12
|
+
attr_accessor customer_id: String
|
|
13
|
+
|
|
11
14
|
attr_reader send_email: bool?
|
|
12
15
|
|
|
13
16
|
def send_email=: (bool) -> bool
|
|
14
17
|
|
|
15
18
|
def initialize: (
|
|
19
|
+
customer_id: String,
|
|
16
20
|
?send_email: bool,
|
|
17
21
|
?request_options: Dodopayments::request_opts
|
|
18
22
|
) -> void
|
|
19
23
|
|
|
20
24
|
def to_hash: -> {
|
|
25
|
+
customer_id: String,
|
|
21
26
|
send_email: bool,
|
|
22
27
|
request_options: Dodopayments::RequestOptions
|
|
23
28
|
}
|
|
@@ -2,15 +2,24 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
module Customers
|
|
4
4
|
type wallet_list_params =
|
|
5
|
-
{
|
|
5
|
+
{ customer_id: String }
|
|
6
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
6
7
|
|
|
7
8
|
class WalletListParams < Dodopayments::Internal::Type::BaseModel
|
|
8
9
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
10
|
include Dodopayments::Internal::Type::RequestParameters
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
attr_accessor customer_id: String
|
|
12
13
|
|
|
13
|
-
def
|
|
14
|
+
def initialize: (
|
|
15
|
+
customer_id: String,
|
|
16
|
+
?request_options: Dodopayments::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
customer_id: String,
|
|
21
|
+
request_options: Dodopayments::RequestOptions
|
|
22
|
+
}
|
|
14
23
|
end
|
|
15
24
|
end
|
|
16
25
|
end
|
|
@@ -4,6 +4,7 @@ module Dodopayments
|
|
|
4
4
|
module Wallets
|
|
5
5
|
type ledger_entry_create_params =
|
|
6
6
|
{
|
|
7
|
+
customer_id: String,
|
|
7
8
|
amount: Integer,
|
|
8
9
|
currency: Dodopayments::Models::currency,
|
|
9
10
|
entry_type: Dodopayments::Models::Customers::Wallets::LedgerEntryCreateParams::entry_type,
|
|
@@ -16,6 +17,8 @@ module Dodopayments
|
|
|
16
17
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
17
18
|
include Dodopayments::Internal::Type::RequestParameters
|
|
18
19
|
|
|
20
|
+
attr_accessor customer_id: String
|
|
21
|
+
|
|
19
22
|
attr_accessor amount: Integer
|
|
20
23
|
|
|
21
24
|
attr_accessor currency: Dodopayments::Models::currency
|
|
@@ -27,6 +30,7 @@ module Dodopayments
|
|
|
27
30
|
attr_accessor reason: String?
|
|
28
31
|
|
|
29
32
|
def initialize: (
|
|
33
|
+
customer_id: String,
|
|
30
34
|
amount: Integer,
|
|
31
35
|
currency: Dodopayments::Models::currency,
|
|
32
36
|
entry_type: Dodopayments::Models::Customers::Wallets::LedgerEntryCreateParams::entry_type,
|
|
@@ -36,6 +40,7 @@ module Dodopayments
|
|
|
36
40
|
) -> void
|
|
37
41
|
|
|
38
42
|
def to_hash: -> {
|
|
43
|
+
customer_id: String,
|
|
39
44
|
amount: Integer,
|
|
40
45
|
currency: Dodopayments::Models::currency,
|
|
41
46
|
entry_type: Dodopayments::Models::Customers::Wallets::LedgerEntryCreateParams::entry_type,
|
|
@@ -4,6 +4,7 @@ module Dodopayments
|
|
|
4
4
|
module Wallets
|
|
5
5
|
type ledger_entry_list_params =
|
|
6
6
|
{
|
|
7
|
+
customer_id: String,
|
|
7
8
|
currency: Dodopayments::Models::currency,
|
|
8
9
|
page_number: Integer,
|
|
9
10
|
page_size: 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 customer_id: String
|
|
19
|
+
|
|
17
20
|
attr_reader currency: Dodopayments::Models::currency?
|
|
18
21
|
|
|
19
22
|
def currency=: (
|
|
@@ -29,6 +32,7 @@ module Dodopayments
|
|
|
29
32
|
def page_size=: (Integer) -> Integer
|
|
30
33
|
|
|
31
34
|
def initialize: (
|
|
35
|
+
customer_id: String,
|
|
32
36
|
?currency: Dodopayments::Models::currency,
|
|
33
37
|
?page_number: Integer,
|
|
34
38
|
?page_size: Integer,
|
|
@@ -36,6 +40,7 @@ module Dodopayments
|
|
|
36
40
|
) -> void
|
|
37
41
|
|
|
38
42
|
def to_hash: -> {
|
|
43
|
+
customer_id: String,
|
|
39
44
|
currency: Dodopayments::Models::currency,
|
|
40
45
|
page_number: Integer,
|
|
41
46
|
page_size: Integer,
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type discount_delete_params =
|
|
4
|
-
{
|
|
4
|
+
{ discount_id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class DiscountDeleteParams < 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 discount_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
discount_id: String,
|
|
14
|
+
?request_options: Dodopayments::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
discount_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 discount_retrieve_by_code_params =
|
|
4
|
-
{
|
|
4
|
+
{ code: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class DiscountRetrieveByCodeParams < 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 code: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
code: String,
|
|
14
|
+
?request_options: Dodopayments::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
code: 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 discount_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ discount_id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class DiscountRetrieveParams < 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 discount_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
discount_id: String,
|
|
14
|
+
?request_options: Dodopayments::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
discount_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 discount_update_params =
|
|
4
4
|
{
|
|
5
|
+
discount_id: String,
|
|
5
6
|
amount: Integer?,
|
|
6
7
|
code: String?,
|
|
7
8
|
expires_at: Time?,
|
|
@@ -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 discount_id: String
|
|
23
|
+
|
|
21
24
|
attr_accessor amount: Integer?
|
|
22
25
|
|
|
23
26
|
attr_accessor code: String?
|
|
@@ -37,6 +40,7 @@ module Dodopayments
|
|
|
37
40
|
attr_accessor usage_limit: Integer?
|
|
38
41
|
|
|
39
42
|
def initialize: (
|
|
43
|
+
discount_id: String,
|
|
40
44
|
?amount: Integer?,
|
|
41
45
|
?code: String?,
|
|
42
46
|
?expires_at: Time?,
|
|
@@ -50,6 +54,7 @@ module Dodopayments
|
|
|
50
54
|
) -> void
|
|
51
55
|
|
|
52
56
|
def to_hash: -> {
|
|
57
|
+
discount_id: String,
|
|
53
58
|
amount: Integer?,
|
|
54
59
|
code: String?,
|
|
55
60
|
expires_at: Time?,
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type dispute_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ dispute_id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class DisputeRetrieveParams < 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 dispute_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
dispute_id: String,
|
|
14
|
+
?request_options: Dodopayments::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
dispute_id: String,
|
|
19
|
+
request_options: Dodopayments::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -2,15 +2,24 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
module Invoices
|
|
4
4
|
type payment_retrieve_params =
|
|
5
|
-
{
|
|
5
|
+
{ payment_id: String }
|
|
6
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
6
7
|
|
|
7
8
|
class PaymentRetrieveParams < Dodopayments::Internal::Type::BaseModel
|
|
8
9
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
10
|
include Dodopayments::Internal::Type::RequestParameters
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
attr_accessor payment_id: String
|
|
12
13
|
|
|
13
|
-
def
|
|
14
|
+
def initialize: (
|
|
15
|
+
payment_id: String,
|
|
16
|
+
?request_options: Dodopayments::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
payment_id: String,
|
|
21
|
+
request_options: Dodopayments::RequestOptions
|
|
22
|
+
}
|
|
14
23
|
end
|
|
15
24
|
end
|
|
16
25
|
end
|
|
@@ -2,15 +2,23 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
module Invoices
|
|
4
4
|
type payment_retrieve_refund_params =
|
|
5
|
-
{
|
|
5
|
+
{ refund_id: String } & Dodopayments::Internal::Type::request_parameters
|
|
6
6
|
|
|
7
7
|
class PaymentRetrieveRefundParams < Dodopayments::Internal::Type::BaseModel
|
|
8
8
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Dodopayments::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
attr_accessor refund_id: String
|
|
12
12
|
|
|
13
|
-
def
|
|
13
|
+
def initialize: (
|
|
14
|
+
refund_id: String,
|
|
15
|
+
?request_options: Dodopayments::request_opts
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
refund_id: String,
|
|
20
|
+
request_options: Dodopayments::RequestOptions
|
|
21
|
+
}
|
|
14
22
|
end
|
|
15
23
|
end
|
|
16
24
|
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type license_key_instance_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class LicenseKeyInstanceRetrieveParams < 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 license_key_instance_update_params =
|
|
4
|
-
{ name: String }
|
|
4
|
+
{ id: String, name: String }
|
|
5
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class LicenseKeyInstanceUpdateParams < 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 name: String
|
|
11
14
|
|
|
12
15
|
def initialize: (
|
|
16
|
+
id: String,
|
|
13
17
|
name: String,
|
|
14
18
|
?request_options: Dodopayments::request_opts
|
|
15
19
|
) -> void
|
|
16
20
|
|
|
17
21
|
def to_hash: -> {
|
|
22
|
+
id: String,
|
|
18
23
|
name: String,
|
|
19
24
|
request_options: Dodopayments::RequestOptions
|
|
20
25
|
}
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type license_key_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class LicenseKeyRetrieveParams < 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,13 +1,20 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type license_key_update_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
activations_limit: Integer?,
|
|
7
|
+
disabled: bool?,
|
|
8
|
+
expires_at: Time?
|
|
9
|
+
}
|
|
5
10
|
& Dodopayments::Internal::Type::request_parameters
|
|
6
11
|
|
|
7
12
|
class LicenseKeyUpdateParams < Dodopayments::Internal::Type::BaseModel
|
|
8
13
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
14
|
include Dodopayments::Internal::Type::RequestParameters
|
|
10
15
|
|
|
16
|
+
attr_accessor id: String
|
|
17
|
+
|
|
11
18
|
attr_accessor activations_limit: Integer?
|
|
12
19
|
|
|
13
20
|
attr_accessor disabled: bool?
|
|
@@ -15,6 +22,7 @@ module Dodopayments
|
|
|
15
22
|
attr_accessor expires_at: Time?
|
|
16
23
|
|
|
17
24
|
def initialize: (
|
|
25
|
+
id: String,
|
|
18
26
|
?activations_limit: Integer?,
|
|
19
27
|
?disabled: bool?,
|
|
20
28
|
?expires_at: Time?,
|
|
@@ -22,6 +30,7 @@ module Dodopayments
|
|
|
22
30
|
) -> void
|
|
23
31
|
|
|
24
32
|
def to_hash: -> {
|
|
33
|
+
id: String,
|
|
25
34
|
activations_limit: Integer?,
|
|
26
35
|
disabled: bool?,
|
|
27
36
|
expires_at: Time?,
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type meter_archive_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class MeterArchiveParams < 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
|