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
|
@@ -11,6 +11,25 @@ module Dodopayments
|
|
|
11
11
|
T.any(Dodopayments::AddonListParams, Dodopayments::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# List archived addons. The default is false.
|
|
15
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
16
|
+
attr_reader :archived
|
|
17
|
+
|
|
18
|
+
sig { params(archived: T::Boolean).void }
|
|
19
|
+
attr_writer :archived
|
|
20
|
+
|
|
21
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
22
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
23
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
24
|
+
#
|
|
25
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
26
|
+
# The base text then changes to the translated text.
|
|
27
|
+
sig { returns(T.nilable(String)) }
|
|
28
|
+
attr_reader :locale
|
|
29
|
+
|
|
30
|
+
sig { params(locale: String).void }
|
|
31
|
+
attr_writer :locale
|
|
32
|
+
|
|
14
33
|
# Page number default is 0
|
|
15
34
|
sig { returns(T.nilable(Integer)) }
|
|
16
35
|
attr_reader :page_number
|
|
@@ -27,12 +46,23 @@ module Dodopayments
|
|
|
27
46
|
|
|
28
47
|
sig do
|
|
29
48
|
params(
|
|
49
|
+
archived: T::Boolean,
|
|
50
|
+
locale: String,
|
|
30
51
|
page_number: Integer,
|
|
31
52
|
page_size: Integer,
|
|
32
53
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
33
54
|
).returns(T.attached_class)
|
|
34
55
|
end
|
|
35
56
|
def self.new(
|
|
57
|
+
# List archived addons. The default is false.
|
|
58
|
+
archived: nil,
|
|
59
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
60
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
61
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
62
|
+
#
|
|
63
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
64
|
+
# The base text then changes to the translated text.
|
|
65
|
+
locale: nil,
|
|
36
66
|
# Page number default is 0
|
|
37
67
|
page_number: nil,
|
|
38
68
|
# Page size default is 10 max is 100
|
|
@@ -44,6 +74,8 @@ module Dodopayments
|
|
|
44
74
|
sig do
|
|
45
75
|
override.returns(
|
|
46
76
|
{
|
|
77
|
+
archived: T::Boolean,
|
|
78
|
+
locale: String,
|
|
47
79
|
page_number: Integer,
|
|
48
80
|
page_size: Integer,
|
|
49
81
|
request_options: Dodopayments::RequestOptions
|
|
@@ -17,18 +17,45 @@ module Dodopayments
|
|
|
17
17
|
sig { returns(String) }
|
|
18
18
|
attr_accessor :id
|
|
19
19
|
|
|
20
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
21
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
22
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
23
|
+
#
|
|
24
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
25
|
+
# The base text then changes to the translated text.
|
|
26
|
+
sig { returns(T.nilable(String)) }
|
|
27
|
+
attr_reader :locale
|
|
28
|
+
|
|
29
|
+
sig { params(locale: String).void }
|
|
30
|
+
attr_writer :locale
|
|
31
|
+
|
|
20
32
|
sig do
|
|
21
33
|
params(
|
|
22
34
|
id: String,
|
|
35
|
+
locale: String,
|
|
23
36
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
24
37
|
).returns(T.attached_class)
|
|
25
38
|
end
|
|
26
|
-
def self.new(
|
|
39
|
+
def self.new(
|
|
40
|
+
id:,
|
|
41
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
42
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
43
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
44
|
+
#
|
|
45
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
46
|
+
# The base text then changes to the translated text.
|
|
47
|
+
locale: nil,
|
|
48
|
+
request_options: {}
|
|
49
|
+
)
|
|
27
50
|
end
|
|
28
51
|
|
|
29
52
|
sig do
|
|
30
53
|
override.returns(
|
|
31
|
-
{
|
|
54
|
+
{
|
|
55
|
+
id: String,
|
|
56
|
+
locale: String,
|
|
57
|
+
request_options: Dodopayments::RequestOptions
|
|
58
|
+
}
|
|
32
59
|
)
|
|
33
60
|
end
|
|
34
61
|
def to_hash
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
class AddonUnarchiveParams < Dodopayments::Internal::Type::BaseModel
|
|
6
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Dodopayments::AddonUnarchiveParams,
|
|
13
|
+
Dodopayments::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :id
|
|
19
|
+
|
|
20
|
+
sig do
|
|
21
|
+
params(
|
|
22
|
+
id: String,
|
|
23
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
24
|
+
).returns(T.attached_class)
|
|
25
|
+
end
|
|
26
|
+
def self.new(id:, request_options: {})
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
sig do
|
|
30
|
+
override.returns(
|
|
31
|
+
{ id: String, request_options: Dodopayments::RequestOptions }
|
|
32
|
+
)
|
|
33
|
+
end
|
|
34
|
+
def to_hash
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
module Addons
|
|
6
|
+
class TranslationDeleteParams < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Dodopayments::Addons::TranslationDeleteParams,
|
|
14
|
+
Dodopayments::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
21
|
+
# A locale that the checkout and the customer portal can show.
|
|
22
|
+
#
|
|
23
|
+
# The codes are a copy of the checkout locales. `GET /locales` lists them.
|
|
24
|
+
sig { returns(Dodopayments::Locale::OrSymbol) }
|
|
25
|
+
attr_accessor :locale
|
|
26
|
+
|
|
27
|
+
sig do
|
|
28
|
+
params(
|
|
29
|
+
id: String,
|
|
30
|
+
locale: Dodopayments::Locale::OrSymbol,
|
|
31
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
32
|
+
).returns(T.attached_class)
|
|
33
|
+
end
|
|
34
|
+
def self.new(
|
|
35
|
+
id:,
|
|
36
|
+
# A locale that the checkout and the customer portal can show.
|
|
37
|
+
#
|
|
38
|
+
# The codes are a copy of the checkout locales. `GET /locales` lists them.
|
|
39
|
+
locale:,
|
|
40
|
+
request_options: {}
|
|
41
|
+
)
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
sig do
|
|
45
|
+
override.returns(
|
|
46
|
+
{
|
|
47
|
+
id: String,
|
|
48
|
+
locale: Dodopayments::Locale::OrSymbol,
|
|
49
|
+
request_options: Dodopayments::RequestOptions
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
end
|
|
53
|
+
def to_hash
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
module Addons
|
|
6
|
+
class TranslationListParams < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Dodopayments::Addons::TranslationListParams,
|
|
14
|
+
Dodopayments::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
21
|
+
# Returns only these locales, for example `?locale=fr&locale=de`. With no value,
|
|
22
|
+
# the response has all the locales.
|
|
23
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
24
|
+
attr_reader :locale
|
|
25
|
+
|
|
26
|
+
sig { params(locale: T::Array[String]).void }
|
|
27
|
+
attr_writer :locale
|
|
28
|
+
|
|
29
|
+
sig do
|
|
30
|
+
params(
|
|
31
|
+
id: String,
|
|
32
|
+
locale: T::Array[String],
|
|
33
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
34
|
+
).returns(T.attached_class)
|
|
35
|
+
end
|
|
36
|
+
def self.new(
|
|
37
|
+
id:,
|
|
38
|
+
# Returns only these locales, for example `?locale=fr&locale=de`. With no value,
|
|
39
|
+
# the response has all the locales.
|
|
40
|
+
locale: nil,
|
|
41
|
+
request_options: {}
|
|
42
|
+
)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
sig do
|
|
46
|
+
override.returns(
|
|
47
|
+
{
|
|
48
|
+
id: String,
|
|
49
|
+
locale: T::Array[String],
|
|
50
|
+
request_options: Dodopayments::RequestOptions
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
def to_hash
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
module Addons
|
|
6
|
+
class TranslationUpdateParams < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Dodopayments::Addons::TranslationUpdateParams,
|
|
14
|
+
Dodopayments::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
21
|
+
# A locale that the checkout and the customer portal can show.
|
|
22
|
+
#
|
|
23
|
+
# The codes are a copy of the checkout locales. `GET /locales` lists them.
|
|
24
|
+
sig { returns(Dodopayments::Locale::OrSymbol) }
|
|
25
|
+
attr_accessor :locale
|
|
26
|
+
|
|
27
|
+
# The translated description.
|
|
28
|
+
sig { returns(T.nilable(String)) }
|
|
29
|
+
attr_accessor :description
|
|
30
|
+
|
|
31
|
+
# The translated name.
|
|
32
|
+
sig { returns(T.nilable(String)) }
|
|
33
|
+
attr_accessor :name
|
|
34
|
+
|
|
35
|
+
sig do
|
|
36
|
+
params(
|
|
37
|
+
id: String,
|
|
38
|
+
locale: Dodopayments::Locale::OrSymbol,
|
|
39
|
+
description: T.nilable(String),
|
|
40
|
+
name: T.nilable(String),
|
|
41
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
42
|
+
).returns(T.attached_class)
|
|
43
|
+
end
|
|
44
|
+
def self.new(
|
|
45
|
+
id:,
|
|
46
|
+
# A locale that the checkout and the customer portal can show.
|
|
47
|
+
#
|
|
48
|
+
# The codes are a copy of the checkout locales. `GET /locales` lists them.
|
|
49
|
+
locale:,
|
|
50
|
+
# The translated description.
|
|
51
|
+
description: nil,
|
|
52
|
+
# The translated name.
|
|
53
|
+
name: nil,
|
|
54
|
+
request_options: {}
|
|
55
|
+
)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
sig do
|
|
59
|
+
override.returns(
|
|
60
|
+
{
|
|
61
|
+
id: String,
|
|
62
|
+
locale: Dodopayments::Locale::OrSymbol,
|
|
63
|
+
description: T.nilable(String),
|
|
64
|
+
name: T.nilable(String),
|
|
65
|
+
request_options: Dodopayments::RequestOptions
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
end
|
|
69
|
+
def to_hash
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -283,6 +283,11 @@ module Dodopayments
|
|
|
283
283
|
:scheme_fee,
|
|
284
284
|
Dodopayments::BalanceLedgerEntry::EventType::TaggedSymbol
|
|
285
285
|
)
|
|
286
|
+
OPENING_BALANCE =
|
|
287
|
+
T.let(
|
|
288
|
+
:opening_balance,
|
|
289
|
+
Dodopayments::BalanceLedgerEntry::EventType::TaggedSymbol
|
|
290
|
+
)
|
|
286
291
|
|
|
287
292
|
sig do
|
|
288
293
|
override.returns(
|
|
@@ -1075,6 +1075,11 @@ module Dodopayments
|
|
|
1075
1075
|
:scheme_fee,
|
|
1076
1076
|
Dodopayments::BalanceRetrieveLedgerParams::EventType::TaggedSymbol
|
|
1077
1077
|
)
|
|
1078
|
+
OPENING_BALANCE =
|
|
1079
|
+
T.let(
|
|
1080
|
+
:opening_balance,
|
|
1081
|
+
Dodopayments::BalanceRetrieveLedgerParams::EventType::TaggedSymbol
|
|
1082
|
+
)
|
|
1078
1083
|
|
|
1079
1084
|
sig do
|
|
1080
1085
|
override.returns(
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
# The type of subscription charge that a payment is for.
|
|
6
|
+
#
|
|
7
|
+
# A payment has one invoice, and the invoice has one type. Thus each payment has
|
|
8
|
+
# one charge type. A payment that charges no subscription has no charge type.
|
|
9
|
+
#
|
|
10
|
+
# - `new`: the first payment of one or more subscriptions. A retry of that payment
|
|
11
|
+
# is also `new`. A cart with new subscriptions and one-time products is `new`.
|
|
12
|
+
# Read the one-time products from `product_cart`.
|
|
13
|
+
# - `renewal`: a charge at the billing date. A dunning retry and a manual retry of
|
|
14
|
+
# that charge are also `renewal`. A `renewal` does not always extend the service
|
|
15
|
+
# period. For example, the usage settlement of a paused subscription is a
|
|
16
|
+
# `renewal` with `includes_usage` true and no entry in `service_periods`.
|
|
17
|
+
# Examine `service_periods` before you extend access.
|
|
18
|
+
# - `plan_change`: a charge for a plan change. The change applies now or at the
|
|
19
|
+
# next billing date.
|
|
20
|
+
# - `on_demand`: an on-demand charge of an on-demand subscription.
|
|
21
|
+
module ChargeType
|
|
22
|
+
extend Dodopayments::Internal::Type::Enum
|
|
23
|
+
|
|
24
|
+
TaggedSymbol = T.type_alias { T.all(Symbol, Dodopayments::ChargeType) }
|
|
25
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
26
|
+
|
|
27
|
+
NEW = T.let(:new, Dodopayments::ChargeType::TaggedSymbol)
|
|
28
|
+
RENEWAL = T.let(:renewal, Dodopayments::ChargeType::TaggedSymbol)
|
|
29
|
+
PLAN_CHANGE = T.let(:plan_change, Dodopayments::ChargeType::TaggedSymbol)
|
|
30
|
+
ON_DEMAND = T.let(:on_demand, Dodopayments::ChargeType::TaggedSymbol)
|
|
31
|
+
|
|
32
|
+
sig { override.returns(T::Array[Dodopayments::ChargeType::TaggedSymbol]) }
|
|
33
|
+
def self.values
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -14,16 +14,40 @@ module Dodopayments
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
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
|
+
sig { returns(T.nilable(String)) }
|
|
24
|
+
attr_reader :locale
|
|
25
|
+
|
|
26
|
+
sig { params(locale: String).void }
|
|
27
|
+
attr_writer :locale
|
|
28
|
+
|
|
17
29
|
sig do
|
|
18
|
-
params(
|
|
19
|
-
|
|
20
|
-
|
|
30
|
+
params(
|
|
31
|
+
locale: String,
|
|
32
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
33
|
+
).returns(T.attached_class)
|
|
21
34
|
end
|
|
22
|
-
def self.new(
|
|
35
|
+
def self.new(
|
|
36
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
37
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
38
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
39
|
+
#
|
|
40
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
41
|
+
# The base text then changes to the translated text.
|
|
42
|
+
locale: nil,
|
|
43
|
+
request_options: {}
|
|
44
|
+
)
|
|
23
45
|
end
|
|
24
46
|
|
|
25
47
|
sig do
|
|
26
|
-
override.returns(
|
|
48
|
+
override.returns(
|
|
49
|
+
{ locale: String, request_options: Dodopayments::RequestOptions }
|
|
50
|
+
)
|
|
27
51
|
end
|
|
28
52
|
def to_hash
|
|
29
53
|
end
|
|
@@ -409,6 +409,13 @@ module Dodopayments
|
|
|
409
409
|
sig { returns(T.nilable(Integer)) }
|
|
410
410
|
attr_accessor :discount_cycle
|
|
411
411
|
|
|
412
|
+
# The monthly equivalent of the yearly unit price after discounts, in minor units
|
|
413
|
+
# of `currency`. Only the hosted checkout sets it, when the business shows yearly
|
|
414
|
+
# plans as monthly. The value is only for display. The order summary shows the
|
|
415
|
+
# amounts that we charge.
|
|
416
|
+
sig { returns(T.nilable(Integer)) }
|
|
417
|
+
attr_accessor :monthly_equivalent
|
|
418
|
+
|
|
412
419
|
# name of the product
|
|
413
420
|
sig { returns(T.nilable(String)) }
|
|
414
421
|
attr_accessor :name
|
|
@@ -447,6 +454,7 @@ module Dodopayments
|
|
|
447
454
|
description: T.nilable(String),
|
|
448
455
|
discount_amount: T.nilable(Integer),
|
|
449
456
|
discount_cycle: T.nilable(Integer),
|
|
457
|
+
monthly_equivalent: T.nilable(Integer),
|
|
450
458
|
name: T.nilable(String),
|
|
451
459
|
tax: T.nilable(Integer)
|
|
452
460
|
).returns(T.attached_class)
|
|
@@ -483,6 +491,11 @@ module Dodopayments
|
|
|
483
491
|
discount_amount: nil,
|
|
484
492
|
# number of cycles the discount will apply
|
|
485
493
|
discount_cycle: nil,
|
|
494
|
+
# The monthly equivalent of the yearly unit price after discounts, in minor units
|
|
495
|
+
# of `currency`. Only the hosted checkout sets it, when the business shows yearly
|
|
496
|
+
# plans as monthly. The value is only for display. The order summary shows the
|
|
497
|
+
# amounts that we charge.
|
|
498
|
+
monthly_equivalent: nil,
|
|
486
499
|
# name of the product
|
|
487
500
|
name: nil,
|
|
488
501
|
# total tax
|
|
@@ -521,6 +534,7 @@ module Dodopayments
|
|
|
521
534
|
description: T.nilable(String),
|
|
522
535
|
discount_amount: T.nilable(Integer),
|
|
523
536
|
discount_cycle: T.nilable(Integer),
|
|
537
|
+
monthly_equivalent: T.nilable(Integer),
|
|
524
538
|
name: T.nilable(String),
|
|
525
539
|
tax: T.nilable(Integer)
|
|
526
540
|
}
|
|
@@ -29,12 +29,20 @@ module Dodopayments
|
|
|
29
29
|
sig { returns(T.nilable(String)) }
|
|
30
30
|
attr_accessor :phone_number
|
|
31
31
|
|
|
32
|
+
# The language of the customer emails, a code from `GET /locales`. A value
|
|
33
|
+
# replaces the stored language of the customer, also for an existing customer.
|
|
34
|
+
# Send a value only to change that language on purpose. With no value, the stored
|
|
35
|
+
# language stays.
|
|
36
|
+
sig { returns(T.nilable(Dodopayments::Locale::OrSymbol)) }
|
|
37
|
+
attr_accessor :preferred_locale
|
|
38
|
+
|
|
32
39
|
sig do
|
|
33
40
|
params(
|
|
34
41
|
email: String,
|
|
35
42
|
name: String,
|
|
36
43
|
create_new_customer: T::Boolean,
|
|
37
|
-
phone_number: T.nilable(String)
|
|
44
|
+
phone_number: T.nilable(String),
|
|
45
|
+
preferred_locale: T.nilable(Dodopayments::Locale::OrSymbol)
|
|
38
46
|
).returns(T.attached_class)
|
|
39
47
|
end
|
|
40
48
|
def self.new(
|
|
@@ -44,7 +52,12 @@ module Dodopayments
|
|
|
44
52
|
# used if exists. When true, a new customer object is always created False by
|
|
45
53
|
# default
|
|
46
54
|
create_new_customer: nil,
|
|
47
|
-
phone_number: nil
|
|
55
|
+
phone_number: nil,
|
|
56
|
+
# The language of the customer emails, a code from `GET /locales`. A value
|
|
57
|
+
# replaces the stored language of the customer, also for an existing customer.
|
|
58
|
+
# Send a value only to change that language on purpose. With no value, the stored
|
|
59
|
+
# language stays.
|
|
60
|
+
preferred_locale: nil
|
|
48
61
|
)
|
|
49
62
|
end
|
|
50
63
|
|
|
@@ -54,7 +67,8 @@ module Dodopayments
|
|
|
54
67
|
email: String,
|
|
55
68
|
name: String,
|
|
56
69
|
create_new_customer: T::Boolean,
|
|
57
|
-
phone_number: T.nilable(String)
|
|
70
|
+
phone_number: T.nilable(String),
|
|
71
|
+
preferred_locale: T.nilable(Dodopayments::Locale::OrSymbol)
|
|
58
72
|
}
|
|
59
73
|
)
|
|
60
74
|
end
|
|
@@ -21,6 +21,18 @@ module Dodopayments
|
|
|
21
21
|
sig { params(deleted: T::Boolean).void }
|
|
22
22
|
attr_writer :deleted
|
|
23
23
|
|
|
24
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
25
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
26
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
27
|
+
#
|
|
28
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
29
|
+
# The base text then changes to the translated text.
|
|
30
|
+
sig { returns(T.nilable(String)) }
|
|
31
|
+
attr_reader :locale
|
|
32
|
+
|
|
33
|
+
sig { params(locale: String).void }
|
|
34
|
+
attr_writer :locale
|
|
35
|
+
|
|
24
36
|
# Page number default is 0
|
|
25
37
|
sig { returns(T.nilable(Integer)) }
|
|
26
38
|
attr_reader :page_number
|
|
@@ -38,6 +50,7 @@ module Dodopayments
|
|
|
38
50
|
sig do
|
|
39
51
|
params(
|
|
40
52
|
deleted: T::Boolean,
|
|
53
|
+
locale: String,
|
|
41
54
|
page_number: Integer,
|
|
42
55
|
page_size: Integer,
|
|
43
56
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
@@ -46,6 +59,13 @@ module Dodopayments
|
|
|
46
59
|
def self.new(
|
|
47
60
|
# List deleted credit entitlements
|
|
48
61
|
deleted: nil,
|
|
62
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
63
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
64
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
65
|
+
#
|
|
66
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
67
|
+
# The base text then changes to the translated text.
|
|
68
|
+
locale: nil,
|
|
49
69
|
# Page number default is 0
|
|
50
70
|
page_number: nil,
|
|
51
71
|
# Page size default is 10 max is 100
|
|
@@ -58,6 +78,7 @@ module Dodopayments
|
|
|
58
78
|
override.returns(
|
|
59
79
|
{
|
|
60
80
|
deleted: T::Boolean,
|
|
81
|
+
locale: String,
|
|
61
82
|
page_number: Integer,
|
|
62
83
|
page_size: Integer,
|
|
63
84
|
request_options: Dodopayments::RequestOptions
|
|
@@ -17,18 +17,45 @@ module Dodopayments
|
|
|
17
17
|
sig { returns(String) }
|
|
18
18
|
attr_accessor :id
|
|
19
19
|
|
|
20
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
21
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
22
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
23
|
+
#
|
|
24
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
25
|
+
# The base text then changes to the translated text.
|
|
26
|
+
sig { returns(T.nilable(String)) }
|
|
27
|
+
attr_reader :locale
|
|
28
|
+
|
|
29
|
+
sig { params(locale: String).void }
|
|
30
|
+
attr_writer :locale
|
|
31
|
+
|
|
20
32
|
sig do
|
|
21
33
|
params(
|
|
22
34
|
id: String,
|
|
35
|
+
locale: String,
|
|
23
36
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
24
37
|
).returns(T.attached_class)
|
|
25
38
|
end
|
|
26
|
-
def self.new(
|
|
39
|
+
def self.new(
|
|
40
|
+
id:,
|
|
41
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
42
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
43
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
44
|
+
#
|
|
45
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
46
|
+
# The base text then changes to the translated text.
|
|
47
|
+
locale: nil,
|
|
48
|
+
request_options: {}
|
|
49
|
+
)
|
|
27
50
|
end
|
|
28
51
|
|
|
29
52
|
sig do
|
|
30
53
|
override.returns(
|
|
31
|
-
{
|
|
54
|
+
{
|
|
55
|
+
id: String,
|
|
56
|
+
locale: String,
|
|
57
|
+
request_options: Dodopayments::RequestOptions
|
|
58
|
+
}
|
|
32
59
|
)
|
|
33
60
|
end
|
|
34
61
|
def to_hash
|