dodopayments 2.33.0 → 2.35.0
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 +16 -0
- data/README.md +1 -1
- data/lib/dodopayments/internal/type/enum.rb +11 -11
- data/lib/dodopayments/models/addon_delete_params.rb +20 -0
- data/lib/dodopayments/models/addon_list_params.rb +25 -1
- data/lib/dodopayments/models/addon_retrieve_params.rb +18 -1
- data/lib/dodopayments/models/addon_unarchive_params.rb +20 -0
- data/lib/dodopayments/models/addons/translation_delete_params.rb +36 -0
- data/lib/dodopayments/models/addons/translation_list_params.rb +35 -0
- data/lib/dodopayments/models/addons/translation_update_params.rb +52 -0
- data/lib/dodopayments/models/balance_ledger_entry.rb +1 -0
- data/lib/dodopayments/models/balance_retrieve_ledger_params.rb +1 -0
- data/lib/dodopayments/models/charge_type.rb +33 -0
- data/lib/dodopayments/models/checkout_session_preview_params.rb +17 -1
- data/lib/dodopayments/models/checkout_session_preview_response.rb +12 -1
- data/lib/dodopayments/models/create_new_customer.rb +12 -1
- data/lib/dodopayments/models/credit_entitlement_list_params.rb +17 -1
- data/lib/dodopayments/models/credit_entitlement_retrieve_params.rb +18 -1
- data/lib/dodopayments/models/credit_entitlements/credit_entitlement_translation.rb +47 -0
- data/lib/dodopayments/models/credit_entitlements/credit_entitlement_translations_list_response.rb +23 -0
- data/lib/dodopayments/models/credit_entitlements/translation_delete_params.rb +37 -0
- data/lib/dodopayments/models/credit_entitlements/translation_list_params.rb +36 -0
- data/lib/dodopayments/models/credit_entitlements/translation_update_params.rb +53 -0
- data/lib/dodopayments/models/customer.rb +9 -1
- data/lib/dodopayments/models/customer_create_params.rb +14 -1
- data/lib/dodopayments/models/customer_update_params.rb +14 -1
- data/lib/dodopayments/models/entitlement_list_params.rb +17 -1
- data/lib/dodopayments/models/entitlement_retrieve_params.rb +18 -1
- data/lib/dodopayments/models/entitlements/entitlement_translation.rb +67 -0
- data/lib/dodopayments/models/entitlements/entitlement_translations_list_response.rb +23 -0
- data/lib/dodopayments/models/entitlements/translation_delete_params.rb +36 -0
- data/lib/dodopayments/models/entitlements/translation_list_params.rb +35 -0
- data/lib/dodopayments/models/entitlements/translation_update_params.rb +69 -0
- data/lib/dodopayments/models/invoices/payment_retrieve_params.rb +14 -1
- data/lib/dodopayments/models/invoices/payment_retrieve_payout_params.rb +14 -1
- data/lib/dodopayments/models/invoices/payment_retrieve_refund_params.rb +14 -1
- data/lib/dodopayments/models/locale.rb +38 -0
- data/lib/dodopayments/models/locale_info.rb +34 -0
- data/lib/dodopayments/models/meter_list_params.rb +17 -1
- data/lib/dodopayments/models/meter_retrieve_params.rb +18 -1
- data/lib/dodopayments/models/meter_update_params.rb +49 -0
- data/lib/dodopayments/models/meters/translation_delete_params.rb +36 -0
- data/lib/dodopayments/models/meters/translation_list_params.rb +35 -0
- data/lib/dodopayments/models/meters/translation_update_params.rb +52 -0
- data/lib/dodopayments/models/misc_list_locales_params.rb +14 -0
- data/lib/dodopayments/models/misc_list_locales_response.rb +8 -0
- data/lib/dodopayments/models/payment.rb +85 -8
- data/lib/dodopayments/models/payment_list_response.rb +91 -6
- data/lib/dodopayments/models/payment_retrieve_line_items_params.rb +14 -1
- data/lib/dodopayments/models/payment_retrieve_line_items_response.rb +10 -1
- data/lib/dodopayments/models/payouts/breakup/detail_list_response.rb +3 -1
- data/lib/dodopayments/models/payouts/breakup_retrieve_response.rb +2 -1
- data/lib/dodopayments/models/price.rb +56 -20
- data/lib/dodopayments/models/product_collection_list_params.rb +17 -1
- data/lib/dodopayments/models/product_collection_retrieve_params.rb +18 -1
- data/lib/dodopayments/models/product_collections/group_update_params.rb +2 -1
- data/lib/dodopayments/models/product_collections/translation_delete_params.rb +37 -0
- data/lib/dodopayments/models/product_collections/translation_list_params.rb +36 -0
- data/lib/dodopayments/models/product_collections/translation_update_params.rb +53 -0
- data/lib/dodopayments/models/product_list_params.rb +14 -1
- data/lib/dodopayments/models/product_retrieve_params.rb +18 -1
- data/lib/dodopayments/models/products/translation.rb +50 -0
- data/lib/dodopayments/models/products/translation_delete_params.rb +36 -0
- data/lib/dodopayments/models/products/translation_list_params.rb +35 -0
- data/lib/dodopayments/models/products/translation_update_params.rb +52 -0
- data/lib/dodopayments/models/products/translations_list_response.rb +20 -0
- data/lib/dodopayments/models/refund_create_params.rb +13 -1
- data/lib/dodopayments/models/subscription_list_params.rb +14 -1
- data/lib/dodopayments/models/subscription_retrieve_params.rb +18 -1
- data/lib/dodopayments/models/subscription_service_period.rb +12 -1
- data/lib/dodopayments/models/three_ds_flow.rb +16 -0
- data/lib/dodopayments/models/three_ds_status.rb +21 -0
- data/lib/dodopayments/models/update_subscription_plan_req.rb +10 -0
- data/lib/dodopayments/models.rb +22 -0
- data/lib/dodopayments/resources/addons/translations.rb +110 -0
- data/lib/dodopayments/resources/addons.rb +58 -3
- data/lib/dodopayments/resources/checkout_sessions.rb +31 -26
- data/lib/dodopayments/resources/credit_entitlements/translations.rb +113 -0
- data/lib/dodopayments/resources/credit_entitlements.rb +20 -3
- data/lib/dodopayments/resources/customers.rb +12 -2
- data/lib/dodopayments/resources/entitlements/translations.rb +114 -0
- data/lib/dodopayments/resources/entitlements.rb +20 -3
- data/lib/dodopayments/resources/invoices/payments.rb +30 -6
- data/lib/dodopayments/resources/meters/translations.rb +110 -0
- data/lib/dodopayments/resources/meters.rb +49 -3
- data/lib/dodopayments/resources/misc.rb +18 -0
- data/lib/dodopayments/resources/payments.rb +10 -2
- data/lib/dodopayments/resources/payouts/breakup/details.rb +5 -2
- data/lib/dodopayments/resources/payouts/breakup.rb +4 -1
- data/lib/dodopayments/resources/product_collections/translations.rb +113 -0
- data/lib/dodopayments/resources/product_collections.rb +20 -3
- data/lib/dodopayments/resources/products/translations.rb +110 -0
- data/lib/dodopayments/resources/products.rb +17 -3
- data/lib/dodopayments/resources/refunds.rb +6 -1
- data/lib/dodopayments/resources/subscriptions.rb +13 -3
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +40 -0
- data/rbi/dodopayments/models/addon_delete_params.rbi +38 -0
- data/rbi/dodopayments/models/addon_list_params.rbi +32 -0
- data/rbi/dodopayments/models/addon_retrieve_params.rbi +29 -2
- data/rbi/dodopayments/models/addon_unarchive_params.rbi +38 -0
- data/rbi/dodopayments/models/addons/translation_delete_params.rbi +58 -0
- data/rbi/dodopayments/models/addons/translation_list_params.rbi +59 -0
- data/rbi/dodopayments/models/addons/translation_update_params.rbi +74 -0
- data/rbi/dodopayments/models/balance_ledger_entry.rbi +5 -0
- data/rbi/dodopayments/models/balance_retrieve_ledger_params.rbi +5 -0
- data/rbi/dodopayments/models/charge_type.rbi +37 -0
- data/rbi/dodopayments/models/checkout_session_preview_params.rbi +29 -5
- data/rbi/dodopayments/models/checkout_session_preview_response.rbi +14 -0
- data/rbi/dodopayments/models/create_new_customer.rbi +17 -3
- data/rbi/dodopayments/models/credit_entitlement_list_params.rbi +21 -0
- data/rbi/dodopayments/models/credit_entitlement_retrieve_params.rbi +29 -2
- data/rbi/dodopayments/models/credit_entitlements/credit_entitlement_translation.rbi +70 -0
- data/rbi/dodopayments/models/credit_entitlements/credit_entitlement_translations_list_response.rbi +54 -0
- data/rbi/dodopayments/models/credit_entitlements/translation_delete_params.rbi +58 -0
- data/rbi/dodopayments/models/credit_entitlements/translation_list_params.rbi +59 -0
- data/rbi/dodopayments/models/credit_entitlements/translation_update_params.rbi +74 -0
- data/rbi/dodopayments/models/customer.rbi +11 -3
- data/rbi/dodopayments/models/customer_create_params.rbi +12 -0
- data/rbi/dodopayments/models/customer_update_params.rbi +12 -0
- data/rbi/dodopayments/models/entitlement_list_params.rbi +21 -0
- data/rbi/dodopayments/models/entitlement_retrieve_params.rbi +29 -2
- data/rbi/dodopayments/models/entitlements/entitlement_translation.rbi +87 -0
- data/rbi/dodopayments/models/entitlements/entitlement_translations_list_response.rbi +48 -0
- data/rbi/dodopayments/models/entitlements/translation_delete_params.rbi +58 -0
- data/rbi/dodopayments/models/entitlements/translation_list_params.rbi +59 -0
- data/rbi/dodopayments/models/entitlements/translation_update_params.rbi +92 -0
- data/rbi/dodopayments/models/invoices/payment_retrieve_params.rbi +17 -1
- data/rbi/dodopayments/models/invoices/payment_retrieve_payout_params.rbi +21 -2
- data/rbi/dodopayments/models/invoices/payment_retrieve_refund_params.rbi +21 -2
- data/rbi/dodopayments/models/locale.rbi +42 -0
- data/rbi/dodopayments/models/locale_info.rbi +54 -0
- data/rbi/dodopayments/models/meter_list_params.rbi +21 -0
- data/rbi/dodopayments/models/meter_retrieve_params.rbi +29 -2
- data/rbi/dodopayments/models/meter_update_params.rbi +70 -0
- data/rbi/dodopayments/models/meters/translation_delete_params.rbi +58 -0
- data/rbi/dodopayments/models/meters/translation_list_params.rbi +59 -0
- data/rbi/dodopayments/models/meters/translation_update_params.rbi +74 -0
- data/rbi/dodopayments/models/misc_list_locales_params.rbi +32 -0
- data/rbi/dodopayments/models/misc_list_locales_response.rbi +11 -0
- data/rbi/dodopayments/models/payment.rbi +103 -8
- data/rbi/dodopayments/models/payment_list_response.rbi +112 -9
- data/rbi/dodopayments/models/payment_retrieve_line_items_params.rbi +21 -2
- data/rbi/dodopayments/models/payment_retrieve_line_items_response.rbi +14 -3
- data/rbi/dodopayments/models/payouts/breakup/detail_list_response.rbi +6 -2
- data/rbi/dodopayments/models/payouts/breakup_retrieve_response.rbi +4 -2
- data/rbi/dodopayments/models/price.rbi +96 -24
- data/rbi/dodopayments/models/product_collection_list_params.rbi +21 -0
- data/rbi/dodopayments/models/product_collection_retrieve_params.rbi +29 -2
- data/rbi/dodopayments/models/product_collections/group_update_params.rbi +4 -2
- data/rbi/dodopayments/models/product_collections/translation_delete_params.rbi +58 -0
- data/rbi/dodopayments/models/product_collections/translation_list_params.rbi +59 -0
- data/rbi/dodopayments/models/product_collections/translation_update_params.rbi +74 -0
- data/rbi/dodopayments/models/product_list_params.rbi +21 -0
- data/rbi/dodopayments/models/product_retrieve_params.rbi +29 -2
- data/rbi/dodopayments/models/products/translation.rbi +70 -0
- data/rbi/dodopayments/models/products/translation_delete_params.rbi +58 -0
- data/rbi/dodopayments/models/products/translation_list_params.rbi +59 -0
- data/rbi/dodopayments/models/products/translation_update_params.rbi +74 -0
- data/rbi/dodopayments/models/products/translations_list_response.rbi +37 -0
- data/rbi/dodopayments/models/refund_create_params.rbi +10 -0
- data/rbi/dodopayments/models/subscription_list_params.rbi +21 -0
- data/rbi/dodopayments/models/subscription_retrieve_params.rbi +25 -1
- data/rbi/dodopayments/models/subscription_service_period.rbi +24 -4
- data/rbi/dodopayments/models/three_ds_flow.rbi +23 -0
- data/rbi/dodopayments/models/three_ds_status.rbi +31 -0
- data/rbi/dodopayments/models/update_subscription_plan_req.rbi +15 -0
- data/rbi/dodopayments/models.rbi +22 -0
- data/rbi/dodopayments/resources/addons/translations.rbi +77 -0
- data/rbi/dodopayments/resources/addons.rbi +48 -0
- data/rbi/dodopayments/resources/checkout_sessions.rbi +55 -39
- data/rbi/dodopayments/resources/credit_entitlements/translations.rbi +81 -0
- data/rbi/dodopayments/resources/credit_entitlements.rbi +19 -0
- data/rbi/dodopayments/resources/customers.rbi +10 -0
- data/rbi/dodopayments/resources/entitlements/translations.rbi +87 -0
- data/rbi/dodopayments/resources/entitlements.rbi +19 -0
- data/rbi/dodopayments/resources/invoices/payments.rbi +12 -0
- data/rbi/dodopayments/resources/meters/translations.rbi +77 -0
- data/rbi/dodopayments/resources/meters.rbi +42 -0
- data/rbi/dodopayments/resources/misc.rbi +9 -0
- data/rbi/dodopayments/resources/payments.rbi +4 -0
- data/rbi/dodopayments/resources/payouts/breakup/details.rbi +5 -2
- data/rbi/dodopayments/resources/payouts/breakup.rbi +4 -1
- data/rbi/dodopayments/resources/product_collections/groups.rbi +2 -1
- data/rbi/dodopayments/resources/product_collections/translations.rbi +77 -0
- data/rbi/dodopayments/resources/product_collections.rbi +19 -0
- data/rbi/dodopayments/resources/products/translations.rbi +77 -0
- data/rbi/dodopayments/resources/products.rbi +19 -0
- data/rbi/dodopayments/resources/refunds.rbi +4 -0
- data/rbi/dodopayments/resources/subscriptions.rbi +26 -0
- data/sig/dodopayments/models/addon_delete_params.rbs +23 -0
- data/sig/dodopayments/models/addon_list_params.rbs +18 -1
- data/sig/dodopayments/models/addon_retrieve_params.rbs +8 -1
- data/sig/dodopayments/models/addon_unarchive_params.rbs +23 -0
- data/sig/dodopayments/models/addons/translation_delete_params.rbs +30 -0
- data/sig/dodopayments/models/addons/translation_list_params.rbs +32 -0
- data/sig/dodopayments/models/addons/translation_update_params.rbs +43 -0
- data/sig/dodopayments/models/balance_ledger_entry.rbs +2 -0
- data/sig/dodopayments/models/balance_retrieve_ledger_params.rbs +2 -0
- data/sig/dodopayments/models/charge_type.rbs +16 -0
- data/sig/dodopayments/models/checkout_session_preview_params.rbs +13 -3
- data/sig/dodopayments/models/checkout_session_preview_response.rbs +5 -0
- data/sig/dodopayments/models/create_new_customer.rbs +8 -3
- data/sig/dodopayments/models/credit_entitlement_list_params.rbs +12 -1
- data/sig/dodopayments/models/credit_entitlement_retrieve_params.rbs +8 -1
- data/sig/dodopayments/models/credit_entitlements/credit_entitlement_translation.rbs +39 -0
- data/sig/dodopayments/models/credit_entitlements/credit_entitlement_translations_list_response.rbs +24 -0
- data/sig/dodopayments/models/credit_entitlements/translation_delete_params.rbs +30 -0
- data/sig/dodopayments/models/credit_entitlements/translation_list_params.rbs +32 -0
- data/sig/dodopayments/models/credit_entitlements/translation_update_params.rbs +43 -0
- data/sig/dodopayments/models/customer.rbs +8 -3
- data/sig/dodopayments/models/customer_create_params.rbs +6 -1
- data/sig/dodopayments/models/customer_update_params.rbs +6 -1
- data/sig/dodopayments/models/entitlement_list_params.rbs +7 -0
- data/sig/dodopayments/models/entitlement_retrieve_params.rbs +8 -1
- data/sig/dodopayments/models/entitlements/entitlement_translation.rbs +49 -0
- data/sig/dodopayments/models/entitlements/entitlement_translations_list_response.rbs +22 -0
- data/sig/dodopayments/models/entitlements/translation_delete_params.rbs +30 -0
- data/sig/dodopayments/models/entitlements/translation_list_params.rbs +32 -0
- data/sig/dodopayments/models/entitlements/translation_update_params.rbs +53 -0
- data/sig/dodopayments/models/invoices/payment_retrieve_params.rbs +7 -1
- data/sig/dodopayments/models/invoices/payment_retrieve_payout_params.rbs +8 -1
- data/sig/dodopayments/models/invoices/payment_retrieve_refund_params.rbs +8 -1
- data/sig/dodopayments/models/locale.rbs +56 -0
- data/sig/dodopayments/models/locale_info.rbs +26 -0
- data/sig/dodopayments/models/meter_list_params.rbs +12 -1
- data/sig/dodopayments/models/meter_retrieve_params.rbs +8 -1
- data/sig/dodopayments/models/meter_update_params.rbs +41 -0
- data/sig/dodopayments/models/meters/translation_delete_params.rbs +30 -0
- data/sig/dodopayments/models/meters/translation_list_params.rbs +32 -0
- data/sig/dodopayments/models/meters/translation_update_params.rbs +43 -0
- data/sig/dodopayments/models/misc_list_locales_params.rbs +15 -0
- data/sig/dodopayments/models/misc_list_locales_response.rbs +7 -0
- data/sig/dodopayments/models/payment.rbs +35 -0
- data/sig/dodopayments/models/payment_list_response.rbs +43 -3
- data/sig/dodopayments/models/payment_retrieve_line_items_params.rbs +10 -1
- data/sig/dodopayments/models/payment_retrieve_line_items_response.rbs +8 -3
- data/sig/dodopayments/models/product_collection_list_params.rbs +7 -0
- data/sig/dodopayments/models/product_collection_retrieve_params.rbs +8 -1
- data/sig/dodopayments/models/product_collections/translation_delete_params.rbs +30 -0
- data/sig/dodopayments/models/product_collections/translation_list_params.rbs +32 -0
- data/sig/dodopayments/models/product_collections/translation_update_params.rbs +43 -0
- data/sig/dodopayments/models/product_list_params.rbs +7 -0
- data/sig/dodopayments/models/product_retrieve_params.rbs +8 -1
- data/sig/dodopayments/models/products/translation.rbs +37 -0
- data/sig/dodopayments/models/products/translation_delete_params.rbs +30 -0
- data/sig/dodopayments/models/products/translation_list_params.rbs +32 -0
- data/sig/dodopayments/models/products/translation_update_params.rbs +43 -0
- data/sig/dodopayments/models/products/translations_list_response.rbs +18 -0
- data/sig/dodopayments/models/refund_create_params.rbs +5 -0
- data/sig/dodopayments/models/subscription_list_params.rbs +7 -0
- data/sig/dodopayments/models/subscription_retrieve_params.rbs +7 -1
- data/sig/dodopayments/models/subscription_service_period.rbs +10 -1
- data/sig/dodopayments/models/three_ds_flow.rbs +14 -0
- data/sig/dodopayments/models/three_ds_status.rbs +24 -0
- data/sig/dodopayments/models.rbs +22 -0
- data/sig/dodopayments/resources/addons/translations.rbs +29 -0
- data/sig/dodopayments/resources/addons.rbs +15 -0
- data/sig/dodopayments/resources/checkout_sessions.rbs +1 -0
- data/sig/dodopayments/resources/credit_entitlements/translations.rbs +29 -0
- data/sig/dodopayments/resources/credit_entitlements.rbs +4 -0
- data/sig/dodopayments/resources/customers.rbs +2 -0
- data/sig/dodopayments/resources/entitlements/translations.rbs +31 -0
- data/sig/dodopayments/resources/entitlements.rbs +4 -0
- data/sig/dodopayments/resources/invoices/payments.rbs +3 -0
- data/sig/dodopayments/resources/meters/translations.rbs +29 -0
- data/sig/dodopayments/resources/meters.rbs +12 -0
- data/sig/dodopayments/resources/misc.rbs +4 -0
- data/sig/dodopayments/resources/payments.rbs +1 -0
- data/sig/dodopayments/resources/product_collections/translations.rbs +29 -0
- data/sig/dodopayments/resources/product_collections.rbs +4 -0
- data/sig/dodopayments/resources/products/translations.rbs +29 -0
- data/sig/dodopayments/resources/products.rbs +4 -0
- data/sig/dodopayments/resources/refunds.rbs +1 -0
- data/sig/dodopayments/resources/subscriptions.rbs +2 -0
- metadata +122 -2
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type addon_unarchive_params =
|
|
4
|
+
{ id: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class AddonUnarchiveParams < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor id: String
|
|
11
|
+
|
|
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
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module Addons
|
|
4
|
+
type translation_delete_params =
|
|
5
|
+
{ id: String, locale: Dodopayments::Models::locale }
|
|
6
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class TranslationDeleteParams < Dodopayments::Internal::Type::BaseModel
|
|
9
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor id: String
|
|
13
|
+
|
|
14
|
+
attr_accessor locale: Dodopayments::Models::locale
|
|
15
|
+
|
|
16
|
+
def initialize: (
|
|
17
|
+
id: String,
|
|
18
|
+
locale: Dodopayments::Models::locale,
|
|
19
|
+
?request_options: Dodopayments::request_opts
|
|
20
|
+
) -> void
|
|
21
|
+
|
|
22
|
+
def to_hash: -> {
|
|
23
|
+
id: String,
|
|
24
|
+
locale: Dodopayments::Models::locale,
|
|
25
|
+
request_options: Dodopayments::RequestOptions
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module Addons
|
|
4
|
+
type translation_list_params =
|
|
5
|
+
{ id: String, locale: ::Array[String] }
|
|
6
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class TranslationListParams < Dodopayments::Internal::Type::BaseModel
|
|
9
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor id: String
|
|
13
|
+
|
|
14
|
+
attr_reader locale: ::Array[String]?
|
|
15
|
+
|
|
16
|
+
def locale=: (::Array[String]) -> ::Array[String]
|
|
17
|
+
|
|
18
|
+
def initialize: (
|
|
19
|
+
id: String,
|
|
20
|
+
?locale: ::Array[String],
|
|
21
|
+
?request_options: Dodopayments::request_opts
|
|
22
|
+
) -> void
|
|
23
|
+
|
|
24
|
+
def to_hash: -> {
|
|
25
|
+
id: String,
|
|
26
|
+
locale: ::Array[String],
|
|
27
|
+
request_options: Dodopayments::RequestOptions
|
|
28
|
+
}
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module Addons
|
|
4
|
+
type translation_update_params =
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
locale: Dodopayments::Models::locale,
|
|
8
|
+
description: String?,
|
|
9
|
+
name: String?
|
|
10
|
+
}
|
|
11
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class TranslationUpdateParams < Dodopayments::Internal::Type::BaseModel
|
|
14
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_accessor id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor locale: Dodopayments::Models::locale
|
|
20
|
+
|
|
21
|
+
attr_accessor description: String?
|
|
22
|
+
|
|
23
|
+
attr_accessor name: String?
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
id: String,
|
|
27
|
+
locale: Dodopayments::Models::locale,
|
|
28
|
+
?description: String?,
|
|
29
|
+
?name: String?,
|
|
30
|
+
?request_options: Dodopayments::request_opts
|
|
31
|
+
) -> void
|
|
32
|
+
|
|
33
|
+
def to_hash: -> {
|
|
34
|
+
id: String,
|
|
35
|
+
locale: Dodopayments::Models::locale,
|
|
36
|
+
description: String?,
|
|
37
|
+
name: String?,
|
|
38
|
+
request_options: Dodopayments::RequestOptions
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -111,6 +111,7 @@ module Dodopayments
|
|
|
111
111
|
| :dodo_fixed_fee
|
|
112
112
|
| :interchange_fee
|
|
113
113
|
| :scheme_fee
|
|
114
|
+
| :opening_balance
|
|
114
115
|
|
|
115
116
|
module EventType
|
|
116
117
|
extend Dodopayments::Internal::Type::Enum
|
|
@@ -149,6 +150,7 @@ module Dodopayments
|
|
|
149
150
|
DODO_FIXED_FEE: :dodo_fixed_fee
|
|
150
151
|
INTERCHANGE_FEE: :interchange_fee
|
|
151
152
|
SCHEME_FEE: :scheme_fee
|
|
153
|
+
OPENING_BALANCE: :opening_balance
|
|
152
154
|
|
|
153
155
|
def self?.values: -> ::Array[Dodopayments::Models::BalanceLedgerEntry::event_type]
|
|
154
156
|
end
|
|
@@ -411,6 +411,7 @@ module Dodopayments
|
|
|
411
411
|
| :dodo_fixed_fee
|
|
412
412
|
| :interchange_fee
|
|
413
413
|
| :scheme_fee
|
|
414
|
+
| :opening_balance
|
|
414
415
|
|
|
415
416
|
module EventType
|
|
416
417
|
extend Dodopayments::Internal::Type::Enum
|
|
@@ -449,6 +450,7 @@ module Dodopayments
|
|
|
449
450
|
DODO_FIXED_FEE: :dodo_fixed_fee
|
|
450
451
|
INTERCHANGE_FEE: :interchange_fee
|
|
451
452
|
SCHEME_FEE: :scheme_fee
|
|
453
|
+
OPENING_BALANCE: :opening_balance
|
|
452
454
|
|
|
453
455
|
def self?.values: -> ::Array[Dodopayments::Models::BalanceRetrieveLedgerParams::event_type]
|
|
454
456
|
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type charge_type = :new | :renewal | :plan_change | :on_demand
|
|
4
|
+
|
|
5
|
+
module ChargeType
|
|
6
|
+
extend Dodopayments::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
NEW: :new
|
|
9
|
+
RENEWAL: :renewal
|
|
10
|
+
PLAN_CHANGE: :plan_change
|
|
11
|
+
ON_DEMAND: :on_demand
|
|
12
|
+
|
|
13
|
+
def self?.values: -> ::Array[Dodopayments::Models::charge_type]
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type checkout_session_preview_params =
|
|
4
|
-
{
|
|
4
|
+
{ locale: String } & Dodopayments::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class CheckoutSessionPreviewParams < Dodopayments::Models::CheckoutSessionRequest
|
|
7
7
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Dodopayments::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
def
|
|
10
|
+
def locale: -> String?
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def locale=: (String _) -> String
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
?locale: String,
|
|
16
|
+
?request_options: Dodopayments::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
locale: String,
|
|
21
|
+
request_options: Dodopayments::RequestOptions
|
|
22
|
+
}
|
|
13
23
|
end
|
|
14
24
|
end
|
|
15
25
|
end
|
|
@@ -142,6 +142,7 @@ module Dodopayments
|
|
|
142
142
|
description: String?,
|
|
143
143
|
discount_amount: Integer?,
|
|
144
144
|
discount_cycle: Integer?,
|
|
145
|
+
monthly_equivalent: Integer?,
|
|
145
146
|
name: String?,
|
|
146
147
|
tax: Integer?
|
|
147
148
|
}
|
|
@@ -181,6 +182,8 @@ module Dodopayments
|
|
|
181
182
|
|
|
182
183
|
attr_accessor discount_cycle: Integer?
|
|
183
184
|
|
|
185
|
+
attr_accessor monthly_equivalent: Integer?
|
|
186
|
+
|
|
184
187
|
attr_accessor name: String?
|
|
185
188
|
|
|
186
189
|
attr_accessor tax: Integer?
|
|
@@ -203,6 +206,7 @@ module Dodopayments
|
|
|
203
206
|
?description: String?,
|
|
204
207
|
?discount_amount: Integer?,
|
|
205
208
|
?discount_cycle: Integer?,
|
|
209
|
+
?monthly_equivalent: Integer?,
|
|
206
210
|
?name: String?,
|
|
207
211
|
?tax: Integer?
|
|
208
212
|
) -> void
|
|
@@ -225,6 +229,7 @@ module Dodopayments
|
|
|
225
229
|
description: String?,
|
|
226
230
|
discount_amount: Integer?,
|
|
227
231
|
discount_cycle: Integer?,
|
|
232
|
+
monthly_equivalent: Integer?,
|
|
228
233
|
name: String?,
|
|
229
234
|
tax: Integer?
|
|
230
235
|
}
|
|
@@ -5,7 +5,8 @@ module Dodopayments
|
|
|
5
5
|
email: String,
|
|
6
6
|
name: String,
|
|
7
7
|
create_new_customer: bool,
|
|
8
|
-
phone_number: String
|
|
8
|
+
phone_number: String?,
|
|
9
|
+
preferred_locale: Dodopayments::Models::locale?
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
class CreateNewCustomer < Dodopayments::Internal::Type::BaseModel
|
|
@@ -19,18 +20,22 @@ module Dodopayments
|
|
|
19
20
|
|
|
20
21
|
attr_accessor phone_number: String?
|
|
21
22
|
|
|
23
|
+
attr_accessor preferred_locale: Dodopayments::Models::locale?
|
|
24
|
+
|
|
22
25
|
def initialize: (
|
|
23
26
|
email: String,
|
|
24
27
|
name: String,
|
|
25
28
|
?create_new_customer: bool,
|
|
26
|
-
?phone_number: String
|
|
29
|
+
?phone_number: String?,
|
|
30
|
+
?preferred_locale: Dodopayments::Models::locale?
|
|
27
31
|
) -> void
|
|
28
32
|
|
|
29
33
|
def to_hash: -> {
|
|
30
34
|
email: String,
|
|
31
35
|
name: String,
|
|
32
36
|
create_new_customer: bool,
|
|
33
|
-
phone_number: String
|
|
37
|
+
phone_number: String?,
|
|
38
|
+
preferred_locale: Dodopayments::Models::locale?
|
|
34
39
|
}
|
|
35
40
|
end
|
|
36
41
|
end
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type credit_entitlement_list_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
deleted: bool,
|
|
6
|
+
locale: String,
|
|
7
|
+
page_number: Integer,
|
|
8
|
+
page_size: Integer
|
|
9
|
+
}
|
|
5
10
|
& Dodopayments::Internal::Type::request_parameters
|
|
6
11
|
|
|
7
12
|
class CreditEntitlementListParams < Dodopayments::Internal::Type::BaseModel
|
|
@@ -12,6 +17,10 @@ module Dodopayments
|
|
|
12
17
|
|
|
13
18
|
def deleted=: (bool) -> bool
|
|
14
19
|
|
|
20
|
+
attr_reader locale: String?
|
|
21
|
+
|
|
22
|
+
def locale=: (String) -> String
|
|
23
|
+
|
|
15
24
|
attr_reader page_number: Integer?
|
|
16
25
|
|
|
17
26
|
def page_number=: (Integer) -> Integer
|
|
@@ -22,6 +31,7 @@ module Dodopayments
|
|
|
22
31
|
|
|
23
32
|
def initialize: (
|
|
24
33
|
?deleted: bool,
|
|
34
|
+
?locale: String,
|
|
25
35
|
?page_number: Integer,
|
|
26
36
|
?page_size: Integer,
|
|
27
37
|
?request_options: Dodopayments::request_opts
|
|
@@ -29,6 +39,7 @@ module Dodopayments
|
|
|
29
39
|
|
|
30
40
|
def to_hash: -> {
|
|
31
41
|
deleted: bool,
|
|
42
|
+
locale: String,
|
|
32
43
|
page_number: Integer,
|
|
33
44
|
page_size: Integer,
|
|
34
45
|
request_options: Dodopayments::RequestOptions
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type credit_entitlement_retrieve_params =
|
|
4
|
-
{ id: String
|
|
4
|
+
{ id: String, locale: String }
|
|
5
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class CreditEntitlementRetrieveParams < Dodopayments::Internal::Type::BaseModel
|
|
7
8
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
@@ -9,13 +10,19 @@ module Dodopayments
|
|
|
9
10
|
|
|
10
11
|
attr_accessor id: String
|
|
11
12
|
|
|
13
|
+
attr_reader locale: String?
|
|
14
|
+
|
|
15
|
+
def locale=: (String) -> String
|
|
16
|
+
|
|
12
17
|
def initialize: (
|
|
13
18
|
id: String,
|
|
19
|
+
?locale: String,
|
|
14
20
|
?request_options: Dodopayments::request_opts
|
|
15
21
|
) -> void
|
|
16
22
|
|
|
17
23
|
def to_hash: -> {
|
|
18
24
|
id: String,
|
|
25
|
+
locale: String,
|
|
19
26
|
request_options: Dodopayments::RequestOptions
|
|
20
27
|
}
|
|
21
28
|
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
class CreditEntitlementTranslation = CreditEntitlements::CreditEntitlementTranslation
|
|
4
|
+
|
|
5
|
+
module CreditEntitlements
|
|
6
|
+
type credit_entitlement_translation =
|
|
7
|
+
{
|
|
8
|
+
locale: Dodopayments::Models::locale,
|
|
9
|
+
updated_at: Time,
|
|
10
|
+
name: String?,
|
|
11
|
+
unit: String?
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class CreditEntitlementTranslation < Dodopayments::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor locale: Dodopayments::Models::locale
|
|
16
|
+
|
|
17
|
+
attr_accessor updated_at: Time
|
|
18
|
+
|
|
19
|
+
attr_accessor name: String?
|
|
20
|
+
|
|
21
|
+
attr_accessor unit: String?
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
locale: Dodopayments::Models::locale,
|
|
25
|
+
updated_at: Time,
|
|
26
|
+
?name: String?,
|
|
27
|
+
?unit: String?
|
|
28
|
+
) -> void
|
|
29
|
+
|
|
30
|
+
def to_hash: -> {
|
|
31
|
+
locale: Dodopayments::Models::locale,
|
|
32
|
+
updated_at: Time,
|
|
33
|
+
name: String?,
|
|
34
|
+
unit: String?
|
|
35
|
+
}
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
data/sig/dodopayments/models/credit_entitlements/credit_entitlement_translations_list_response.rbs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
class CreditEntitlementTranslationsListResponse = CreditEntitlements::CreditEntitlementTranslationsListResponse
|
|
4
|
+
|
|
5
|
+
module CreditEntitlements
|
|
6
|
+
type credit_entitlement_translations_list_response =
|
|
7
|
+
{
|
|
8
|
+
items: ::Array[Dodopayments::CreditEntitlements::CreditEntitlementTranslation]
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class CreditEntitlementTranslationsListResponse < Dodopayments::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor items: ::Array[Dodopayments::CreditEntitlements::CreditEntitlementTranslation]
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
items: ::Array[Dodopayments::CreditEntitlements::CreditEntitlementTranslation]
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
items: ::Array[Dodopayments::CreditEntitlements::CreditEntitlementTranslation]
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module CreditEntitlements
|
|
4
|
+
type translation_delete_params =
|
|
5
|
+
{ id: String, locale: Dodopayments::Models::locale }
|
|
6
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class TranslationDeleteParams < Dodopayments::Internal::Type::BaseModel
|
|
9
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor id: String
|
|
13
|
+
|
|
14
|
+
attr_accessor locale: Dodopayments::Models::locale
|
|
15
|
+
|
|
16
|
+
def initialize: (
|
|
17
|
+
id: String,
|
|
18
|
+
locale: Dodopayments::Models::locale,
|
|
19
|
+
?request_options: Dodopayments::request_opts
|
|
20
|
+
) -> void
|
|
21
|
+
|
|
22
|
+
def to_hash: -> {
|
|
23
|
+
id: String,
|
|
24
|
+
locale: Dodopayments::Models::locale,
|
|
25
|
+
request_options: Dodopayments::RequestOptions
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module CreditEntitlements
|
|
4
|
+
type translation_list_params =
|
|
5
|
+
{ id: String, locale: ::Array[String] }
|
|
6
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class TranslationListParams < Dodopayments::Internal::Type::BaseModel
|
|
9
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor id: String
|
|
13
|
+
|
|
14
|
+
attr_reader locale: ::Array[String]?
|
|
15
|
+
|
|
16
|
+
def locale=: (::Array[String]) -> ::Array[String]
|
|
17
|
+
|
|
18
|
+
def initialize: (
|
|
19
|
+
id: String,
|
|
20
|
+
?locale: ::Array[String],
|
|
21
|
+
?request_options: Dodopayments::request_opts
|
|
22
|
+
) -> void
|
|
23
|
+
|
|
24
|
+
def to_hash: -> {
|
|
25
|
+
id: String,
|
|
26
|
+
locale: ::Array[String],
|
|
27
|
+
request_options: Dodopayments::RequestOptions
|
|
28
|
+
}
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module CreditEntitlements
|
|
4
|
+
type translation_update_params =
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
locale: Dodopayments::Models::locale,
|
|
8
|
+
name: String?,
|
|
9
|
+
unit: String?
|
|
10
|
+
}
|
|
11
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class TranslationUpdateParams < Dodopayments::Internal::Type::BaseModel
|
|
14
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_accessor id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor locale: Dodopayments::Models::locale
|
|
20
|
+
|
|
21
|
+
attr_accessor name: String?
|
|
22
|
+
|
|
23
|
+
attr_accessor unit: String?
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
id: String,
|
|
27
|
+
locale: Dodopayments::Models::locale,
|
|
28
|
+
?name: String?,
|
|
29
|
+
?unit: String?,
|
|
30
|
+
?request_options: Dodopayments::request_opts
|
|
31
|
+
) -> void
|
|
32
|
+
|
|
33
|
+
def to_hash: -> {
|
|
34
|
+
id: String,
|
|
35
|
+
locale: Dodopayments::Models::locale,
|
|
36
|
+
name: String?,
|
|
37
|
+
unit: String?,
|
|
38
|
+
request_options: Dodopayments::RequestOptions
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -10,7 +10,8 @@ module Dodopayments
|
|
|
10
10
|
blocked_at: Time?,
|
|
11
11
|
blocklist_entry_id: String?,
|
|
12
12
|
metadata: Dodopayments::Models::metadata,
|
|
13
|
-
phone_number: String
|
|
13
|
+
phone_number: String?,
|
|
14
|
+
preferred_locale: Dodopayments::Models::locale?
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
class Customer < Dodopayments::Internal::Type::BaseModel
|
|
@@ -36,6 +37,8 @@ module Dodopayments
|
|
|
36
37
|
|
|
37
38
|
attr_accessor phone_number: String?
|
|
38
39
|
|
|
40
|
+
attr_accessor preferred_locale: Dodopayments::Models::locale?
|
|
41
|
+
|
|
39
42
|
def initialize: (
|
|
40
43
|
business_id: String,
|
|
41
44
|
created_at: Time,
|
|
@@ -45,7 +48,8 @@ module Dodopayments
|
|
|
45
48
|
?blocked_at: Time?,
|
|
46
49
|
?blocklist_entry_id: String?,
|
|
47
50
|
?metadata: Dodopayments::Models::metadata,
|
|
48
|
-
?phone_number: String
|
|
51
|
+
?phone_number: String?,
|
|
52
|
+
?preferred_locale: Dodopayments::Models::locale?
|
|
49
53
|
) -> void
|
|
50
54
|
|
|
51
55
|
def to_hash: -> {
|
|
@@ -57,7 +61,8 @@ module Dodopayments
|
|
|
57
61
|
blocked_at: Time?,
|
|
58
62
|
blocklist_entry_id: String?,
|
|
59
63
|
metadata: Dodopayments::Models::metadata,
|
|
60
|
-
phone_number: String
|
|
64
|
+
phone_number: String?,
|
|
65
|
+
preferred_locale: Dodopayments::Models::locale?
|
|
61
66
|
}
|
|
62
67
|
end
|
|
63
68
|
end
|
|
@@ -5,7 +5,8 @@ module Dodopayments
|
|
|
5
5
|
email: String,
|
|
6
6
|
name: String,
|
|
7
7
|
metadata: Dodopayments::Models::metadata,
|
|
8
|
-
phone_number: String
|
|
8
|
+
phone_number: String?,
|
|
9
|
+
preferred_locale: Dodopayments::Models::locale?
|
|
9
10
|
}
|
|
10
11
|
& Dodopayments::Internal::Type::request_parameters
|
|
11
12
|
|
|
@@ -25,11 +26,14 @@ module Dodopayments
|
|
|
25
26
|
|
|
26
27
|
attr_accessor phone_number: String?
|
|
27
28
|
|
|
29
|
+
attr_accessor preferred_locale: Dodopayments::Models::locale?
|
|
30
|
+
|
|
28
31
|
def initialize: (
|
|
29
32
|
email: String,
|
|
30
33
|
name: String,
|
|
31
34
|
?metadata: Dodopayments::Models::metadata,
|
|
32
35
|
?phone_number: String?,
|
|
36
|
+
?preferred_locale: Dodopayments::Models::locale?,
|
|
33
37
|
?request_options: Dodopayments::request_opts
|
|
34
38
|
) -> void
|
|
35
39
|
|
|
@@ -38,6 +42,7 @@ module Dodopayments
|
|
|
38
42
|
name: String,
|
|
39
43
|
metadata: Dodopayments::Models::metadata,
|
|
40
44
|
phone_number: String?,
|
|
45
|
+
preferred_locale: Dodopayments::Models::locale?,
|
|
41
46
|
request_options: Dodopayments::RequestOptions
|
|
42
47
|
}
|
|
43
48
|
end
|
|
@@ -6,7 +6,8 @@ module Dodopayments
|
|
|
6
6
|
email: String?,
|
|
7
7
|
metadata: Dodopayments::Models::metadata?,
|
|
8
8
|
name: String?,
|
|
9
|
-
phone_number: String
|
|
9
|
+
phone_number: String?,
|
|
10
|
+
preferred_locale: Dodopayments::Models::locale?
|
|
10
11
|
}
|
|
11
12
|
& Dodopayments::Internal::Type::request_parameters
|
|
12
13
|
|
|
@@ -24,12 +25,15 @@ module Dodopayments
|
|
|
24
25
|
|
|
25
26
|
attr_accessor phone_number: String?
|
|
26
27
|
|
|
28
|
+
attr_accessor preferred_locale: Dodopayments::Models::locale?
|
|
29
|
+
|
|
27
30
|
def initialize: (
|
|
28
31
|
customer_id: String,
|
|
29
32
|
?email: String?,
|
|
30
33
|
?metadata: Dodopayments::Models::metadata?,
|
|
31
34
|
?name: String?,
|
|
32
35
|
?phone_number: String?,
|
|
36
|
+
?preferred_locale: Dodopayments::Models::locale?,
|
|
33
37
|
?request_options: Dodopayments::request_opts
|
|
34
38
|
) -> void
|
|
35
39
|
|
|
@@ -39,6 +43,7 @@ module Dodopayments
|
|
|
39
43
|
metadata: Dodopayments::Models::metadata?,
|
|
40
44
|
name: String?,
|
|
41
45
|
phone_number: String?,
|
|
46
|
+
preferred_locale: Dodopayments::Models::locale?,
|
|
42
47
|
request_options: Dodopayments::RequestOptions
|
|
43
48
|
}
|
|
44
49
|
end
|
|
@@ -3,6 +3,7 @@ module Dodopayments
|
|
|
3
3
|
type entitlement_list_params =
|
|
4
4
|
{
|
|
5
5
|
integration_type: Dodopayments::Models::EntitlementListParams::integration_type,
|
|
6
|
+
locale: String,
|
|
6
7
|
page_number: Integer,
|
|
7
8
|
page_size: Integer
|
|
8
9
|
}
|
|
@@ -18,6 +19,10 @@ module Dodopayments
|
|
|
18
19
|
Dodopayments::Models::EntitlementListParams::integration_type
|
|
19
20
|
) -> Dodopayments::Models::EntitlementListParams::integration_type
|
|
20
21
|
|
|
22
|
+
attr_reader locale: String?
|
|
23
|
+
|
|
24
|
+
def locale=: (String) -> String
|
|
25
|
+
|
|
21
26
|
attr_reader page_number: Integer?
|
|
22
27
|
|
|
23
28
|
def page_number=: (Integer) -> Integer
|
|
@@ -28,6 +33,7 @@ module Dodopayments
|
|
|
28
33
|
|
|
29
34
|
def initialize: (
|
|
30
35
|
?integration_type: Dodopayments::Models::EntitlementListParams::integration_type,
|
|
36
|
+
?locale: String,
|
|
31
37
|
?page_number: Integer,
|
|
32
38
|
?page_size: Integer,
|
|
33
39
|
?request_options: Dodopayments::request_opts
|
|
@@ -35,6 +41,7 @@ module Dodopayments
|
|
|
35
41
|
|
|
36
42
|
def to_hash: -> {
|
|
37
43
|
integration_type: Dodopayments::Models::EntitlementListParams::integration_type,
|
|
44
|
+
locale: String,
|
|
38
45
|
page_number: Integer,
|
|
39
46
|
page_size: Integer,
|
|
40
47
|
request_options: Dodopayments::RequestOptions
|