dodopayments 2.34.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 +8 -0
- data/README.md +1 -1
- 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/checkout_session_preview_params.rb +17 -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/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 +29 -1
- data/lib/dodopayments/models/payment_list_response.rb +29 -1
- 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/product_collection_list_params.rb +17 -1
- data/lib/dodopayments/models/product_collection_retrieve_params.rb +18 -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/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 +20 -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/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 +39 -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/checkout_session_preview_params.rbi +29 -5
- 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/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 +33 -0
- data/rbi/dodopayments/models/payment_list_response.rbi +36 -3
- 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/product_collection_list_params.rbi +21 -0
- data/rbi/dodopayments/models/product_collection_retrieve_params.rbi +29 -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/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 +20 -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/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/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/checkout_session_preview_params.rbs +13 -3
- 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/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 +15 -0
- data/sig/dodopayments/models/payment_list_response.rbs +18 -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/three_ds_flow.rbs +14 -0
- data/sig/dodopayments/models/three_ds_status.rbs +24 -0
- data/sig/dodopayments/models.rbs +20 -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/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 +119 -2
|
@@ -35,7 +35,18 @@ module Dodopayments
|
|
|
35
35
|
# @return [String, nil]
|
|
36
36
|
optional :phone_number, String, nil?: true
|
|
37
37
|
|
|
38
|
-
# @!
|
|
38
|
+
# @!attribute preferred_locale
|
|
39
|
+
# The language of the customer emails, a code from `GET /locales`. A value
|
|
40
|
+
# replaces the current language, and `null` removes it. Send this field only to
|
|
41
|
+
# change the language on purpose. With no language, the emails are in English.
|
|
42
|
+
#
|
|
43
|
+
# @return [Symbol, Dodopayments::Models::Locale, nil]
|
|
44
|
+
optional :preferred_locale, enum: -> { Dodopayments::Locale }, nil?: true
|
|
45
|
+
|
|
46
|
+
# @!method initialize(customer_id:, email: nil, metadata: nil, name: nil, phone_number: nil, preferred_locale: nil, request_options: {})
|
|
47
|
+
# Some parameter documentations has been truncated, see
|
|
48
|
+
# {Dodopayments::Models::CustomerUpdateParams} for more details.
|
|
49
|
+
#
|
|
39
50
|
# @param customer_id [String]
|
|
40
51
|
#
|
|
41
52
|
# @param email [String, nil]
|
|
@@ -46,6 +57,8 @@ module Dodopayments
|
|
|
46
57
|
#
|
|
47
58
|
# @param phone_number [String, nil]
|
|
48
59
|
#
|
|
60
|
+
# @param preferred_locale [Symbol, Dodopayments::Models::Locale, nil] The language of the customer emails, a code from `GET /locales`. A value replace
|
|
61
|
+
#
|
|
49
62
|
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
|
50
63
|
end
|
|
51
64
|
end
|
|
@@ -13,6 +13,17 @@ module Dodopayments
|
|
|
13
13
|
# @return [Symbol, Dodopayments::Models::EntitlementListParams::IntegrationType, nil]
|
|
14
14
|
optional :integration_type, enum: -> { Dodopayments::EntitlementListParams::IntegrationType }
|
|
15
15
|
|
|
16
|
+
# @!attribute locale
|
|
17
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
18
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
19
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
20
|
+
#
|
|
21
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
22
|
+
# The base text then changes to the translated text.
|
|
23
|
+
#
|
|
24
|
+
# @return [String, nil]
|
|
25
|
+
optional :locale, String
|
|
26
|
+
|
|
16
27
|
# @!attribute page_number
|
|
17
28
|
# Page number (default 0)
|
|
18
29
|
#
|
|
@@ -25,9 +36,14 @@ module Dodopayments
|
|
|
25
36
|
# @return [Integer, nil]
|
|
26
37
|
optional :page_size, Integer
|
|
27
38
|
|
|
28
|
-
# @!method initialize(integration_type: nil, page_number: nil, page_size: nil, request_options: {})
|
|
39
|
+
# @!method initialize(integration_type: nil, locale: nil, page_number: nil, page_size: nil, request_options: {})
|
|
40
|
+
# Some parameter documentations has been truncated, see
|
|
41
|
+
# {Dodopayments::Models::EntitlementListParams} for more details.
|
|
42
|
+
#
|
|
29
43
|
# @param integration_type [Symbol, Dodopayments::Models::EntitlementListParams::IntegrationType] Filter by integration type
|
|
30
44
|
#
|
|
45
|
+
# @param locale [String] Shows the translated name, description and unit of the catalog entities in this
|
|
46
|
+
#
|
|
31
47
|
# @param page_number [Integer] Page number (default 0)
|
|
32
48
|
#
|
|
33
49
|
# @param page_size [Integer] Page size (default 10, max 100)
|
|
@@ -12,8 +12,25 @@ module Dodopayments
|
|
|
12
12
|
# @return [String]
|
|
13
13
|
required :id, String
|
|
14
14
|
|
|
15
|
-
# @!
|
|
15
|
+
# @!attribute locale
|
|
16
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
17
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
18
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
19
|
+
#
|
|
20
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
21
|
+
# The base text then changes to the translated text.
|
|
22
|
+
#
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
optional :locale, String
|
|
25
|
+
|
|
26
|
+
# @!method initialize(id:, locale: nil, request_options: {})
|
|
27
|
+
# Some parameter documentations has been truncated, see
|
|
28
|
+
# {Dodopayments::Models::EntitlementRetrieveParams} for more details.
|
|
29
|
+
#
|
|
16
30
|
# @param id [String]
|
|
31
|
+
#
|
|
32
|
+
# @param locale [String] Shows the translated name, description and unit of the catalog entities in this
|
|
33
|
+
#
|
|
17
34
|
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
|
18
35
|
end
|
|
19
36
|
end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
module Entitlements
|
|
6
|
+
# @see Dodopayments::Resources::Entitlements::Translations#update
|
|
7
|
+
class EntitlementTranslation < Dodopayments::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute locale
|
|
9
|
+
# The locale of the translation.
|
|
10
|
+
#
|
|
11
|
+
# @return [Symbol, Dodopayments::Models::Locale]
|
|
12
|
+
required :locale, enum: -> { Dodopayments::Locale }
|
|
13
|
+
|
|
14
|
+
# @!attribute updated_at
|
|
15
|
+
# The time of the last change.
|
|
16
|
+
#
|
|
17
|
+
# @return [Time]
|
|
18
|
+
required :updated_at, Time
|
|
19
|
+
|
|
20
|
+
# @!attribute activation_message
|
|
21
|
+
# The translated activation message of a `license_key` entitlement.
|
|
22
|
+
#
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
optional :activation_message, String, nil?: true
|
|
25
|
+
|
|
26
|
+
# @!attribute description
|
|
27
|
+
# The translated description. `null` shows that the description has no
|
|
28
|
+
# translation.
|
|
29
|
+
#
|
|
30
|
+
# @return [String, nil]
|
|
31
|
+
optional :description, String, nil?: true
|
|
32
|
+
|
|
33
|
+
# @!attribute instructions
|
|
34
|
+
# The translated delivery instructions of a `digital_files` entitlement.
|
|
35
|
+
#
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
optional :instructions, String, nil?: true
|
|
38
|
+
|
|
39
|
+
# @!attribute name
|
|
40
|
+
# The translated name. `null` shows that the name has no translation.
|
|
41
|
+
#
|
|
42
|
+
# @return [String, nil]
|
|
43
|
+
optional :name, String, nil?: true
|
|
44
|
+
|
|
45
|
+
# @!method initialize(locale:, updated_at:, activation_message: nil, description: nil, instructions: nil, name: nil)
|
|
46
|
+
# Some parameter documentations has been truncated, see
|
|
47
|
+
# {Dodopayments::Models::Entitlements::EntitlementTranslation} for more details.
|
|
48
|
+
#
|
|
49
|
+
# The translation of an entitlement in one locale.
|
|
50
|
+
#
|
|
51
|
+
# @param locale [Symbol, Dodopayments::Models::Locale] The locale of the translation.
|
|
52
|
+
#
|
|
53
|
+
# @param updated_at [Time] The time of the last change.
|
|
54
|
+
#
|
|
55
|
+
# @param activation_message [String, nil] The translated activation message of a `license_key` entitlement.
|
|
56
|
+
#
|
|
57
|
+
# @param description [String, nil] The translated description. `null` shows that the description has no translation
|
|
58
|
+
#
|
|
59
|
+
# @param instructions [String, nil] The translated delivery instructions of a `digital_files` entitlement.
|
|
60
|
+
#
|
|
61
|
+
# @param name [String, nil] The translated name. `null` shows that the name has no translation.
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
EntitlementTranslation = Entitlements::EntitlementTranslation
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
module Entitlements
|
|
6
|
+
# @see Dodopayments::Resources::Entitlements::Translations#list
|
|
7
|
+
class EntitlementTranslationsListResponse < Dodopayments::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute items
|
|
9
|
+
#
|
|
10
|
+
# @return [Array<Dodopayments::Models::Entitlements::EntitlementTranslation>]
|
|
11
|
+
required :items,
|
|
12
|
+
-> { Dodopayments::Internal::Type::ArrayOf[Dodopayments::Entitlements::EntitlementTranslation] }
|
|
13
|
+
|
|
14
|
+
# @!method initialize(items:)
|
|
15
|
+
# The translations of an entitlement.
|
|
16
|
+
#
|
|
17
|
+
# @param items [Array<Dodopayments::Models::Entitlements::EntitlementTranslation>]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
EntitlementTranslationsListResponse = Entitlements::EntitlementTranslationsListResponse
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
module Entitlements
|
|
6
|
+
# @see Dodopayments::Resources::Entitlements::Translations#delete
|
|
7
|
+
class TranslationDeleteParams < Dodopayments::Internal::Type::BaseModel
|
|
8
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute locale
|
|
17
|
+
# A locale that the checkout and the customer portal can show.
|
|
18
|
+
#
|
|
19
|
+
# The codes are a copy of the checkout locales. `GET /locales` lists them.
|
|
20
|
+
#
|
|
21
|
+
# @return [Symbol, Dodopayments::Models::Locale]
|
|
22
|
+
required :locale, enum: -> { Dodopayments::Locale }
|
|
23
|
+
|
|
24
|
+
# @!method initialize(id:, locale:, request_options: {})
|
|
25
|
+
# Some parameter documentations has been truncated, see
|
|
26
|
+
# {Dodopayments::Models::Entitlements::TranslationDeleteParams} for more details.
|
|
27
|
+
#
|
|
28
|
+
# @param id [String]
|
|
29
|
+
#
|
|
30
|
+
# @param locale [Symbol, Dodopayments::Models::Locale] A locale that the checkout and the customer portal can show.
|
|
31
|
+
#
|
|
32
|
+
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
module Entitlements
|
|
6
|
+
# @see Dodopayments::Resources::Entitlements::Translations#list
|
|
7
|
+
class TranslationListParams < Dodopayments::Internal::Type::BaseModel
|
|
8
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute locale
|
|
17
|
+
# Returns only these locales, for example `?locale=fr&locale=de`. With no value,
|
|
18
|
+
# the response has all the locales.
|
|
19
|
+
#
|
|
20
|
+
# @return [Array<String>, nil]
|
|
21
|
+
optional :locale, Dodopayments::Internal::Type::ArrayOf[String]
|
|
22
|
+
|
|
23
|
+
# @!method initialize(id:, locale: nil, request_options: {})
|
|
24
|
+
# Some parameter documentations has been truncated, see
|
|
25
|
+
# {Dodopayments::Models::Entitlements::TranslationListParams} for more details.
|
|
26
|
+
#
|
|
27
|
+
# @param id [String]
|
|
28
|
+
#
|
|
29
|
+
# @param locale [Array<String>] Returns only these locales, for example `?locale=fr&locale=de`. With no value, t
|
|
30
|
+
#
|
|
31
|
+
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
module Entitlements
|
|
6
|
+
# @see Dodopayments::Resources::Entitlements::Translations#update
|
|
7
|
+
class TranslationUpdateParams < Dodopayments::Internal::Type::BaseModel
|
|
8
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute locale
|
|
17
|
+
# A locale that the checkout and the customer portal can show.
|
|
18
|
+
#
|
|
19
|
+
# The codes are a copy of the checkout locales. `GET /locales` lists them.
|
|
20
|
+
#
|
|
21
|
+
# @return [Symbol, Dodopayments::Models::Locale]
|
|
22
|
+
required :locale, enum: -> { Dodopayments::Locale }
|
|
23
|
+
|
|
24
|
+
# @!attribute activation_message
|
|
25
|
+
# The translated activation message. Only a `license_key` entitlement has it.
|
|
26
|
+
#
|
|
27
|
+
# @return [String, nil]
|
|
28
|
+
optional :activation_message, String, nil?: true
|
|
29
|
+
|
|
30
|
+
# @!attribute description
|
|
31
|
+
# The translated description.
|
|
32
|
+
#
|
|
33
|
+
# @return [String, nil]
|
|
34
|
+
optional :description, String, nil?: true
|
|
35
|
+
|
|
36
|
+
# @!attribute instructions
|
|
37
|
+
# The translated delivery instructions. Only a `digital_files` entitlement has
|
|
38
|
+
# them.
|
|
39
|
+
#
|
|
40
|
+
# @return [String, nil]
|
|
41
|
+
optional :instructions, String, nil?: true
|
|
42
|
+
|
|
43
|
+
# @!attribute name
|
|
44
|
+
# The translated name.
|
|
45
|
+
#
|
|
46
|
+
# @return [String, nil]
|
|
47
|
+
optional :name, String, nil?: true
|
|
48
|
+
|
|
49
|
+
# @!method initialize(id:, locale:, activation_message: nil, description: nil, instructions: nil, name: nil, request_options: {})
|
|
50
|
+
# Some parameter documentations has been truncated, see
|
|
51
|
+
# {Dodopayments::Models::Entitlements::TranslationUpdateParams} for more details.
|
|
52
|
+
#
|
|
53
|
+
# @param id [String]
|
|
54
|
+
#
|
|
55
|
+
# @param locale [Symbol, Dodopayments::Models::Locale] A locale that the checkout and the customer portal can show.
|
|
56
|
+
#
|
|
57
|
+
# @param activation_message [String, nil] The translated activation message. Only a `license_key` entitlement has it.
|
|
58
|
+
#
|
|
59
|
+
# @param description [String, nil] The translated description.
|
|
60
|
+
#
|
|
61
|
+
# @param instructions [String, nil] The translated delivery instructions. Only a `digital_files` entitlement has the
|
|
62
|
+
#
|
|
63
|
+
# @param name [String, nil] The translated name.
|
|
64
|
+
#
|
|
65
|
+
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
# A locale that the checkout and the customer portal can show.
|
|
6
|
+
#
|
|
7
|
+
# The codes are a copy of the checkout locales. `GET /locales` lists them.
|
|
8
|
+
module Locale
|
|
9
|
+
extend Dodopayments::Internal::Type::Enum
|
|
10
|
+
|
|
11
|
+
AR = :ar
|
|
12
|
+
CA = :ca
|
|
13
|
+
ZH = :zh
|
|
14
|
+
NL = :nl
|
|
15
|
+
EN = :en
|
|
16
|
+
FR = :fr
|
|
17
|
+
DE = :de
|
|
18
|
+
HE = :he
|
|
19
|
+
ID = :id
|
|
20
|
+
IT = :it
|
|
21
|
+
JA = :ja
|
|
22
|
+
KA = :ka
|
|
23
|
+
KO = :ko
|
|
24
|
+
MS = :ms
|
|
25
|
+
PL = :pl
|
|
26
|
+
PT = :pt
|
|
27
|
+
RO = :ro
|
|
28
|
+
RU = :ru
|
|
29
|
+
ES = :es
|
|
30
|
+
SV = :sv
|
|
31
|
+
TH = :th
|
|
32
|
+
TR = :tr
|
|
33
|
+
|
|
34
|
+
# @!method self.values
|
|
35
|
+
# @return [Array<Symbol>]
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
class LocaleInfo < Dodopayments::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute code
|
|
7
|
+
# The code to send in the `locale` parameter.
|
|
8
|
+
#
|
|
9
|
+
# @return [Symbol, Dodopayments::Models::Locale]
|
|
10
|
+
required :code, enum: -> { Dodopayments::Locale }
|
|
11
|
+
|
|
12
|
+
# @!attribute name
|
|
13
|
+
# The English name of the language.
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :name, String
|
|
17
|
+
|
|
18
|
+
# @!attribute native_name
|
|
19
|
+
# The name of the language in that language.
|
|
20
|
+
#
|
|
21
|
+
# @return [String]
|
|
22
|
+
required :native_name, String
|
|
23
|
+
|
|
24
|
+
# @!method initialize(code:, name:, native_name:)
|
|
25
|
+
# A locale that the checkout and the customer portal can show.
|
|
26
|
+
#
|
|
27
|
+
# @param code [Symbol, Dodopayments::Models::Locale] The code to send in the `locale` parameter.
|
|
28
|
+
#
|
|
29
|
+
# @param name [String] The English name of the language.
|
|
30
|
+
#
|
|
31
|
+
# @param native_name [String] The name of the language in that language.
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -13,6 +13,17 @@ module Dodopayments
|
|
|
13
13
|
# @return [Boolean, nil]
|
|
14
14
|
optional :archived, Dodopayments::Internal::Type::Boolean
|
|
15
15
|
|
|
16
|
+
# @!attribute locale
|
|
17
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
18
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
19
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
20
|
+
#
|
|
21
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
22
|
+
# The base text then changes to the translated text.
|
|
23
|
+
#
|
|
24
|
+
# @return [String, nil]
|
|
25
|
+
optional :locale, String
|
|
26
|
+
|
|
16
27
|
# @!attribute page_number
|
|
17
28
|
# Page number default is 0
|
|
18
29
|
#
|
|
@@ -25,9 +36,14 @@ module Dodopayments
|
|
|
25
36
|
# @return [Integer, nil]
|
|
26
37
|
optional :page_size, Integer
|
|
27
38
|
|
|
28
|
-
# @!method initialize(archived: nil, page_number: nil, page_size: nil, request_options: {})
|
|
39
|
+
# @!method initialize(archived: nil, locale: nil, page_number: nil, page_size: nil, request_options: {})
|
|
40
|
+
# Some parameter documentations has been truncated, see
|
|
41
|
+
# {Dodopayments::Models::MeterListParams} for more details.
|
|
42
|
+
#
|
|
29
43
|
# @param archived [Boolean] List archived meters
|
|
30
44
|
#
|
|
45
|
+
# @param locale [String] Shows the translated name, description and unit of the catalog entities in this
|
|
46
|
+
#
|
|
31
47
|
# @param page_number [Integer] Page number default is 0
|
|
32
48
|
#
|
|
33
49
|
# @param page_size [Integer] Page size default is 10 max is 100
|
|
@@ -12,8 +12,25 @@ module Dodopayments
|
|
|
12
12
|
# @return [String]
|
|
13
13
|
required :id, String
|
|
14
14
|
|
|
15
|
-
# @!
|
|
15
|
+
# @!attribute locale
|
|
16
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
17
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
18
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
19
|
+
#
|
|
20
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
21
|
+
# The base text then changes to the translated text.
|
|
22
|
+
#
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
optional :locale, String
|
|
25
|
+
|
|
26
|
+
# @!method initialize(id:, locale: nil, request_options: {})
|
|
27
|
+
# Some parameter documentations has been truncated, see
|
|
28
|
+
# {Dodopayments::Models::MeterRetrieveParams} for more details.
|
|
29
|
+
#
|
|
16
30
|
# @param id [String]
|
|
31
|
+
#
|
|
32
|
+
# @param locale [String] Shows the translated name, description and unit of the catalog entities in this
|
|
33
|
+
#
|
|
17
34
|
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
|
18
35
|
end
|
|
19
36
|
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
# @see Dodopayments::Resources::Meters#update
|
|
6
|
+
class MeterUpdateParams < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
15
|
+
# @!attribute description
|
|
16
|
+
# Description of the meter. Send `null` to remove the description. Omit it to keep
|
|
17
|
+
# it.
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :description, String, nil?: true
|
|
21
|
+
|
|
22
|
+
# @!attribute measurement_unit
|
|
23
|
+
# Measurement unit
|
|
24
|
+
#
|
|
25
|
+
# @return [String, nil]
|
|
26
|
+
optional :measurement_unit, String, nil?: true
|
|
27
|
+
|
|
28
|
+
# @!attribute name
|
|
29
|
+
# Name of the meter
|
|
30
|
+
#
|
|
31
|
+
# @return [String, nil]
|
|
32
|
+
optional :name, String, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!method initialize(id:, description: nil, measurement_unit: nil, name: nil, request_options: {})
|
|
35
|
+
# Some parameter documentations has been truncated, see
|
|
36
|
+
# {Dodopayments::Models::MeterUpdateParams} for more details.
|
|
37
|
+
#
|
|
38
|
+
# @param id [String]
|
|
39
|
+
#
|
|
40
|
+
# @param description [String, nil] Description of the meter. Send `null` to remove the description. Omit it to keep
|
|
41
|
+
#
|
|
42
|
+
# @param measurement_unit [String, nil] Measurement unit
|
|
43
|
+
#
|
|
44
|
+
# @param name [String, nil] Name of the meter
|
|
45
|
+
#
|
|
46
|
+
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
module Meters
|
|
6
|
+
# @see Dodopayments::Resources::Meters::Translations#delete
|
|
7
|
+
class TranslationDeleteParams < Dodopayments::Internal::Type::BaseModel
|
|
8
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute locale
|
|
17
|
+
# A locale that the checkout and the customer portal can show.
|
|
18
|
+
#
|
|
19
|
+
# The codes are a copy of the checkout locales. `GET /locales` lists them.
|
|
20
|
+
#
|
|
21
|
+
# @return [Symbol, Dodopayments::Models::Locale]
|
|
22
|
+
required :locale, enum: -> { Dodopayments::Locale }
|
|
23
|
+
|
|
24
|
+
# @!method initialize(id:, locale:, request_options: {})
|
|
25
|
+
# Some parameter documentations has been truncated, see
|
|
26
|
+
# {Dodopayments::Models::Meters::TranslationDeleteParams} for more details.
|
|
27
|
+
#
|
|
28
|
+
# @param id [String]
|
|
29
|
+
#
|
|
30
|
+
# @param locale [Symbol, Dodopayments::Models::Locale] A locale that the checkout and the customer portal can show.
|
|
31
|
+
#
|
|
32
|
+
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
module Meters
|
|
6
|
+
# @see Dodopayments::Resources::Meters::Translations#list
|
|
7
|
+
class TranslationListParams < Dodopayments::Internal::Type::BaseModel
|
|
8
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute locale
|
|
17
|
+
# Returns only these locales, for example `?locale=fr&locale=de`. With no value,
|
|
18
|
+
# the response has all the locales.
|
|
19
|
+
#
|
|
20
|
+
# @return [Array<String>, nil]
|
|
21
|
+
optional :locale, Dodopayments::Internal::Type::ArrayOf[String]
|
|
22
|
+
|
|
23
|
+
# @!method initialize(id:, locale: nil, request_options: {})
|
|
24
|
+
# Some parameter documentations has been truncated, see
|
|
25
|
+
# {Dodopayments::Models::Meters::TranslationListParams} for more details.
|
|
26
|
+
#
|
|
27
|
+
# @param id [String]
|
|
28
|
+
#
|
|
29
|
+
# @param locale [Array<String>] Returns only these locales, for example `?locale=fr&locale=de`. With no value, t
|
|
30
|
+
#
|
|
31
|
+
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
module Meters
|
|
6
|
+
# @see Dodopayments::Resources::Meters::Translations#update
|
|
7
|
+
class TranslationUpdateParams < Dodopayments::Internal::Type::BaseModel
|
|
8
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute locale
|
|
17
|
+
# A locale that the checkout and the customer portal can show.
|
|
18
|
+
#
|
|
19
|
+
# The codes are a copy of the checkout locales. `GET /locales` lists them.
|
|
20
|
+
#
|
|
21
|
+
# @return [Symbol, Dodopayments::Models::Locale]
|
|
22
|
+
required :locale, enum: -> { Dodopayments::Locale }
|
|
23
|
+
|
|
24
|
+
# @!attribute description
|
|
25
|
+
# The translated description.
|
|
26
|
+
#
|
|
27
|
+
# @return [String, nil]
|
|
28
|
+
optional :description, String, nil?: true
|
|
29
|
+
|
|
30
|
+
# @!attribute name
|
|
31
|
+
# The translated name.
|
|
32
|
+
#
|
|
33
|
+
# @return [String, nil]
|
|
34
|
+
optional :name, String, nil?: true
|
|
35
|
+
|
|
36
|
+
# @!method initialize(id:, locale:, description: nil, name: nil, request_options: {})
|
|
37
|
+
# Some parameter documentations has been truncated, see
|
|
38
|
+
# {Dodopayments::Models::Meters::TranslationUpdateParams} for more details.
|
|
39
|
+
#
|
|
40
|
+
# @param id [String]
|
|
41
|
+
#
|
|
42
|
+
# @param locale [Symbol, Dodopayments::Models::Locale] A locale that the checkout and the customer portal can show.
|
|
43
|
+
#
|
|
44
|
+
# @param description [String, nil] The translated description.
|
|
45
|
+
#
|
|
46
|
+
# @param name [String, nil] The translated name.
|
|
47
|
+
#
|
|
48
|
+
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
# @see Dodopayments::Resources::Misc#list_locales
|
|
6
|
+
class MiscListLocalesParams < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|