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
|
@@ -140,6 +140,7 @@ module Dodopayments
|
|
|
140
140
|
sig do
|
|
141
141
|
params(
|
|
142
142
|
product_cart: T::Array[Dodopayments::ProductItemReq::OrHash],
|
|
143
|
+
locale: String,
|
|
143
144
|
allowed_payment_method_types:
|
|
144
145
|
T.nilable(T::Array[Dodopayments::PaymentMethodTypes::OrSymbol]),
|
|
145
146
|
billing_address:
|
|
@@ -176,20 +177,29 @@ module Dodopayments
|
|
|
176
177
|
).returns(Dodopayments::Models::CheckoutSessionPreviewResponse)
|
|
177
178
|
end
|
|
178
179
|
def preview(
|
|
179
|
-
# The products of the checkout. A cart holds at most 20 of them,
|
|
180
|
-
# subscription products together. An empty cart is valid for the
|
|
180
|
+
# Body param: The products of the checkout. A cart holds at most 20 of them,
|
|
181
|
+
# one-time and subscription products together. An empty cart is valid for the
|
|
181
182
|
# product-collection flow, where the customer chooses the product later.
|
|
182
183
|
product_cart:,
|
|
183
|
-
#
|
|
184
|
-
#
|
|
185
|
-
#
|
|
184
|
+
# Query param: Shows the translated name, description and unit of the catalog
|
|
185
|
+
# entities in this locale. The value must be a code from `GET /locales`, for
|
|
186
|
+
# example `fr`. A field with no translation, an unknown code, or no code shows the
|
|
187
|
+
# base text.
|
|
188
|
+
#
|
|
189
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
190
|
+
# The base text then changes to the translated text.
|
|
191
|
+
locale: nil,
|
|
192
|
+
# Body param: Customers will never see payment methods that are not in this list.
|
|
193
|
+
# However, adding a method here does not guarantee customers will see it.
|
|
194
|
+
# Availability still depends on other factors (e.g., customer location, merchant
|
|
195
|
+
# settings).
|
|
186
196
|
#
|
|
187
197
|
# Disclaimar: Always provide 'credit' and 'debit' as a fallback. If all payment
|
|
188
198
|
# methods are unavailable, checkout session will fail.
|
|
189
199
|
allowed_payment_method_types: nil,
|
|
190
|
-
# Billing address information for the session
|
|
200
|
+
# Body param: Billing address information for the session
|
|
191
201
|
billing_address: nil,
|
|
192
|
-
# The currency to charge the customer in.
|
|
202
|
+
# Body param: The currency to charge the customer in.
|
|
193
203
|
#
|
|
194
204
|
# Adaptive pricing must be enabled for the business. The customer then pays in
|
|
195
205
|
# this currency. If you do not set it, the currency comes from the billing
|
|
@@ -198,61 +208,67 @@ module Dodopayments
|
|
|
198
208
|
# If adaptive pricing is disabled, the API discards this field. The currency then
|
|
199
209
|
# comes from the product price, or from the billing country.
|
|
200
210
|
billing_currency: nil,
|
|
201
|
-
# The URL to redirect the customer if they cancel or go back from the
|
|
202
|
-
# not provided, the back button will not be displayed.
|
|
211
|
+
# Body param: The URL to redirect the customer if they cancel or go back from the
|
|
212
|
+
# checkout. If not provided, the back button will not be displayed.
|
|
203
213
|
cancel_url: nil,
|
|
204
|
-
# If confirm is true, all the details will be finalized. If required
|
|
205
|
-
# missing, an API error is thrown.
|
|
214
|
+
# Body param: If confirm is true, all the details will be finalized. If required
|
|
215
|
+
# data is missing, an API error is thrown.
|
|
206
216
|
confirm: nil,
|
|
207
|
-
# Custom fields to collect from customer during checkout (max 5
|
|
217
|
+
# Body param: Custom fields to collect from customer during checkout (max 5
|
|
218
|
+
# fields)
|
|
208
219
|
custom_fields: nil,
|
|
209
|
-
# Customer details for the session
|
|
220
|
+
# Body param: Customer details for the session
|
|
210
221
|
customer: nil,
|
|
211
|
-
# Optional business / legal name associated with the tax id. When
|
|
212
|
-
# together with a valid tax id for a B2B purchase, this name is rendered
|
|
213
|
-
# invoice instead of the customer's personal name.
|
|
222
|
+
# Body param: Optional business / legal name associated with the tax id. When
|
|
223
|
+
# provided together with a valid tax id for a B2B purchase, this name is rendered
|
|
224
|
+
# on the invoice instead of the customer's personal name.
|
|
214
225
|
customer_business_name: nil,
|
|
215
|
-
# Customization for the checkout session page
|
|
226
|
+
# Body param: Customization for the checkout session page
|
|
216
227
|
customization: nil,
|
|
217
|
-
# DEPRECATED: Use discount_codes instead. Cannot be used together with
|
|
228
|
+
# Body param: DEPRECATED: Use discount_codes instead. Cannot be used together with
|
|
218
229
|
# discount_codes.
|
|
219
230
|
discount_code: nil,
|
|
220
|
-
# Stacked discount codes to apply, in order. Max 20. Cannot be used
|
|
221
|
-
# discount_code.
|
|
231
|
+
# Body param: Stacked discount codes to apply, in order. Max 20. Cannot be used
|
|
232
|
+
# together with discount_code.
|
|
222
233
|
discount_codes: nil,
|
|
234
|
+
# Body param
|
|
223
235
|
feature_flags: nil,
|
|
224
|
-
# Override merchant default 3DS behaviour for this session
|
|
236
|
+
# Body param: Override merchant default 3DS behaviour for this session
|
|
225
237
|
force_3ds: nil,
|
|
226
|
-
# Override the merchant-level mandate floor (in INR paise) for INR
|
|
227
|
-
# Indian-card recurring payments. The mandate amount sent to the
|
|
228
|
-
# `max(this_floor, actual_billing_amount)`, so this is effectively
|
|
229
|
-
# customer-facing authorization ceiling whenever billing is lower. When unset,
|
|
230
|
-
# merchant setting applies; when that's also unset, the system default of
|
|
231
|
-
# applies.
|
|
238
|
+
# Body param: Override the merchant-level mandate floor (in INR paise) for INR
|
|
239
|
+
# e-mandates on Indian-card recurring payments. The mandate amount sent to the
|
|
240
|
+
# processor is `max(this_floor, actual_billing_amount)`, so this is effectively
|
|
241
|
+
# the customer-facing authorization ceiling whenever billing is lower. When unset,
|
|
242
|
+
# the merchant setting applies; when that's also unset, the system default of
|
|
243
|
+
# ₹15,000 applies.
|
|
232
244
|
mandate_min_amount_inr_paise: nil,
|
|
233
|
-
# Additional metadata associated with the payment. Defaults to empty
|
|
234
|
-
# provided.
|
|
245
|
+
# Body param: Additional metadata associated with the payment. Defaults to empty
|
|
246
|
+
# if not provided.
|
|
235
247
|
metadata: nil,
|
|
236
|
-
# If true, only zipcode is required when confirm is true; other
|
|
237
|
-
# remain optional
|
|
248
|
+
# Body param: If true, only zipcode is required when confirm is true; other
|
|
249
|
+
# address fields remain optional
|
|
238
250
|
#
|
|
239
251
|
# Default is true when `feature_flags.single_page` is true. Otherwise, default is
|
|
240
252
|
# false.
|
|
241
253
|
minimal_address: nil,
|
|
242
|
-
# Optional payment method ID to use for this checkout session. Only
|
|
243
|
-
# `confirm` is true. If provided, existing customer id must also be
|
|
254
|
+
# Body param: Optional payment method ID to use for this checkout session. Only
|
|
255
|
+
# allowed when `confirm` is true. If provided, existing customer id must also be
|
|
256
|
+
# provided.
|
|
244
257
|
payment_method_id: nil,
|
|
245
|
-
# Product collection ID for collection-based checkout flow
|
|
258
|
+
# Body param: Product collection ID for collection-based checkout flow
|
|
246
259
|
product_collection_id: nil,
|
|
247
|
-
# The url to redirect after payment failure or success.
|
|
260
|
+
# Body param: The url to redirect after payment failure or success.
|
|
248
261
|
return_url: nil,
|
|
249
|
-
# If true, returns a shortened checkout URL. Defaults to false if not
|
|
262
|
+
# Body param: If true, returns a shortened checkout URL. Defaults to false if not
|
|
263
|
+
# specified.
|
|
250
264
|
short_link: nil,
|
|
251
|
-
# Display saved payment methods of a returning customer False by
|
|
265
|
+
# Body param: Display saved payment methods of a returning customer False by
|
|
266
|
+
# default
|
|
252
267
|
show_saved_payment_methods: nil,
|
|
268
|
+
# Body param
|
|
253
269
|
subscription_data: nil,
|
|
254
|
-
# Tax ID for the customer (e.g. VAT number). Requires billing_address
|
|
255
|
-
# country.
|
|
270
|
+
# Body param: Tax ID for the customer (e.g. VAT number). Requires billing_address
|
|
271
|
+
# with country.
|
|
256
272
|
tax_id: nil,
|
|
257
273
|
request_options: {}
|
|
258
274
|
)
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Resources
|
|
5
|
+
class CreditEntitlements
|
|
6
|
+
class Translations
|
|
7
|
+
# Creates or replaces the translation of one locale. The response is 201 for a new
|
|
8
|
+
# locale and 200 for a replaced locale.
|
|
9
|
+
sig do
|
|
10
|
+
params(
|
|
11
|
+
locale: Dodopayments::Locale::OrSymbol,
|
|
12
|
+
id: String,
|
|
13
|
+
name: T.nilable(String),
|
|
14
|
+
unit: T.nilable(String),
|
|
15
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
16
|
+
).returns(
|
|
17
|
+
Dodopayments::CreditEntitlements::CreditEntitlementTranslation
|
|
18
|
+
)
|
|
19
|
+
end
|
|
20
|
+
def update(
|
|
21
|
+
# Path param: 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
|
+
locale,
|
|
25
|
+
# Path param: Credit Entitlement Id
|
|
26
|
+
id:,
|
|
27
|
+
# Body param: The translated name.
|
|
28
|
+
name: nil,
|
|
29
|
+
# Body param: The translated unit.
|
|
30
|
+
unit: nil,
|
|
31
|
+
request_options: {}
|
|
32
|
+
)
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Lists the translations, for all the locales or for the locales of the filter.
|
|
36
|
+
sig do
|
|
37
|
+
params(
|
|
38
|
+
id: String,
|
|
39
|
+
locale: T::Array[String],
|
|
40
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
41
|
+
).returns(
|
|
42
|
+
Dodopayments::CreditEntitlements::CreditEntitlementTranslationsListResponse
|
|
43
|
+
)
|
|
44
|
+
end
|
|
45
|
+
def list(
|
|
46
|
+
# Credit Entitlement Id
|
|
47
|
+
id,
|
|
48
|
+
# Returns only these locales, for example `?locale=fr&locale=de`. With no value,
|
|
49
|
+
# the response has all the locales.
|
|
50
|
+
locale: nil,
|
|
51
|
+
request_options: {}
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Deletes the translation of one locale.
|
|
56
|
+
sig do
|
|
57
|
+
params(
|
|
58
|
+
locale: Dodopayments::Locale::OrSymbol,
|
|
59
|
+
id: String,
|
|
60
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
61
|
+
).void
|
|
62
|
+
end
|
|
63
|
+
def delete(
|
|
64
|
+
# A locale that the checkout and the customer portal can show.
|
|
65
|
+
#
|
|
66
|
+
# The codes are a copy of the checkout locales. `GET /locales` lists them.
|
|
67
|
+
locale,
|
|
68
|
+
# Credit Entitlement Id
|
|
69
|
+
id:,
|
|
70
|
+
request_options: {}
|
|
71
|
+
)
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# @api private
|
|
75
|
+
sig { params(client: Dodopayments::Client).returns(T.attached_class) }
|
|
76
|
+
def self.new(client:)
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
module Dodopayments
|
|
4
4
|
module Resources
|
|
5
5
|
class CreditEntitlements
|
|
6
|
+
sig { returns(Dodopayments::Resources::CreditEntitlements::Translations) }
|
|
7
|
+
attr_reader :translations
|
|
8
|
+
|
|
6
9
|
sig { returns(Dodopayments::Resources::CreditEntitlements::Balances) }
|
|
7
10
|
attr_reader :balances
|
|
8
11
|
|
|
@@ -134,12 +137,20 @@ module Dodopayments
|
|
|
134
137
|
sig do
|
|
135
138
|
params(
|
|
136
139
|
id: String,
|
|
140
|
+
locale: String,
|
|
137
141
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
138
142
|
).returns(Dodopayments::CreditEntitlement)
|
|
139
143
|
end
|
|
140
144
|
def retrieve(
|
|
141
145
|
# Credit Entitlement ID
|
|
142
146
|
id,
|
|
147
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
148
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
149
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
150
|
+
#
|
|
151
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
152
|
+
# The base text then changes to the translated text.
|
|
153
|
+
locale: nil,
|
|
143
154
|
request_options: {}
|
|
144
155
|
)
|
|
145
156
|
end
|
|
@@ -286,6 +297,7 @@ module Dodopayments
|
|
|
286
297
|
sig do
|
|
287
298
|
params(
|
|
288
299
|
deleted: T::Boolean,
|
|
300
|
+
locale: String,
|
|
289
301
|
page_number: Integer,
|
|
290
302
|
page_size: Integer,
|
|
291
303
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
@@ -298,6 +310,13 @@ module Dodopayments
|
|
|
298
310
|
def list(
|
|
299
311
|
# List deleted credit entitlements
|
|
300
312
|
deleted: nil,
|
|
313
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
314
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
315
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
316
|
+
#
|
|
317
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
318
|
+
# The base text then changes to the translated text.
|
|
319
|
+
locale: nil,
|
|
301
320
|
# Page number default is 0
|
|
302
321
|
page_number: nil,
|
|
303
322
|
# Page size default is 10 max is 100
|
|
@@ -18,6 +18,7 @@ module Dodopayments
|
|
|
18
18
|
name: String,
|
|
19
19
|
metadata: T::Hash[Symbol, Dodopayments::MetadataItem::Variants],
|
|
20
20
|
phone_number: T.nilable(String),
|
|
21
|
+
preferred_locale: T.nilable(Dodopayments::Locale::OrSymbol),
|
|
21
22
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
22
23
|
).returns(Dodopayments::Customer)
|
|
23
24
|
end
|
|
@@ -27,6 +28,10 @@ module Dodopayments
|
|
|
27
28
|
# Additional metadata for the customer
|
|
28
29
|
metadata: nil,
|
|
29
30
|
phone_number: nil,
|
|
31
|
+
# The language of the customer emails, a code from `GET /locales`. With no value,
|
|
32
|
+
# the emails are in English until a checkout or the customer portal sets a
|
|
33
|
+
# language.
|
|
34
|
+
preferred_locale: nil,
|
|
30
35
|
request_options: {}
|
|
31
36
|
)
|
|
32
37
|
end
|
|
@@ -52,6 +57,7 @@ module Dodopayments
|
|
|
52
57
|
T.nilable(T::Hash[Symbol, Dodopayments::MetadataItem::Variants]),
|
|
53
58
|
name: T.nilable(String),
|
|
54
59
|
phone_number: T.nilable(String),
|
|
60
|
+
preferred_locale: T.nilable(Dodopayments::Locale::OrSymbol),
|
|
55
61
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
56
62
|
).returns(Dodopayments::Customer)
|
|
57
63
|
end
|
|
@@ -63,6 +69,10 @@ module Dodopayments
|
|
|
63
69
|
metadata: nil,
|
|
64
70
|
name: nil,
|
|
65
71
|
phone_number: nil,
|
|
72
|
+
# The language of the customer emails, a code from `GET /locales`. A value
|
|
73
|
+
# replaces the current language, and `null` removes it. Send this field only to
|
|
74
|
+
# change the language on purpose. With no language, the emails are in English.
|
|
75
|
+
preferred_locale: nil,
|
|
66
76
|
request_options: {}
|
|
67
77
|
)
|
|
68
78
|
end
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Resources
|
|
5
|
+
class Entitlements
|
|
6
|
+
class Translations
|
|
7
|
+
# Creates or replaces the translation of one locale. The response is 201 for a new
|
|
8
|
+
# locale and 200 for a replaced locale.
|
|
9
|
+
sig do
|
|
10
|
+
params(
|
|
11
|
+
locale: Dodopayments::Locale::OrSymbol,
|
|
12
|
+
id: String,
|
|
13
|
+
activation_message: T.nilable(String),
|
|
14
|
+
description: T.nilable(String),
|
|
15
|
+
instructions: T.nilable(String),
|
|
16
|
+
name: T.nilable(String),
|
|
17
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
18
|
+
).returns(Dodopayments::Entitlements::EntitlementTranslation)
|
|
19
|
+
end
|
|
20
|
+
def update(
|
|
21
|
+
# Path param: 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
|
+
locale,
|
|
25
|
+
# Path param: Entitlement Id
|
|
26
|
+
id:,
|
|
27
|
+
# Body param: The translated activation message. Only a `license_key` entitlement
|
|
28
|
+
# has it.
|
|
29
|
+
activation_message: nil,
|
|
30
|
+
# Body param: The translated description.
|
|
31
|
+
description: nil,
|
|
32
|
+
# Body param: The translated delivery instructions. Only a `digital_files`
|
|
33
|
+
# entitlement has them.
|
|
34
|
+
instructions: nil,
|
|
35
|
+
# Body param: The translated name.
|
|
36
|
+
name: nil,
|
|
37
|
+
request_options: {}
|
|
38
|
+
)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Lists the translations, for all the locales or for the locales of the filter.
|
|
42
|
+
sig do
|
|
43
|
+
params(
|
|
44
|
+
id: String,
|
|
45
|
+
locale: T::Array[String],
|
|
46
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
47
|
+
).returns(
|
|
48
|
+
Dodopayments::Entitlements::EntitlementTranslationsListResponse
|
|
49
|
+
)
|
|
50
|
+
end
|
|
51
|
+
def list(
|
|
52
|
+
# Entitlement Id
|
|
53
|
+
id,
|
|
54
|
+
# Returns only these locales, for example `?locale=fr&locale=de`. With no value,
|
|
55
|
+
# the response has all the locales.
|
|
56
|
+
locale: nil,
|
|
57
|
+
request_options: {}
|
|
58
|
+
)
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Deletes the translation of one locale.
|
|
62
|
+
sig do
|
|
63
|
+
params(
|
|
64
|
+
locale: Dodopayments::Locale::OrSymbol,
|
|
65
|
+
id: String,
|
|
66
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
67
|
+
).void
|
|
68
|
+
end
|
|
69
|
+
def delete(
|
|
70
|
+
# A locale that the checkout and the customer portal can show.
|
|
71
|
+
#
|
|
72
|
+
# The codes are a copy of the checkout locales. `GET /locales` lists them.
|
|
73
|
+
locale,
|
|
74
|
+
# Entitlement Id
|
|
75
|
+
id:,
|
|
76
|
+
request_options: {}
|
|
77
|
+
)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# @api private
|
|
81
|
+
sig { params(client: Dodopayments::Client).returns(T.attached_class) }
|
|
82
|
+
def self.new(client:)
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
module Dodopayments
|
|
4
4
|
module Resources
|
|
5
5
|
class Entitlements
|
|
6
|
+
sig { returns(Dodopayments::Resources::Entitlements::Translations) }
|
|
7
|
+
attr_reader :translations
|
|
8
|
+
|
|
6
9
|
sig { returns(Dodopayments::Resources::Entitlements::Files) }
|
|
7
10
|
attr_reader :files
|
|
8
11
|
|
|
@@ -50,12 +53,20 @@ module Dodopayments
|
|
|
50
53
|
sig do
|
|
51
54
|
params(
|
|
52
55
|
id: String,
|
|
56
|
+
locale: String,
|
|
53
57
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
54
58
|
).returns(Dodopayments::Entitlement)
|
|
55
59
|
end
|
|
56
60
|
def retrieve(
|
|
57
61
|
# Entitlement ID
|
|
58
62
|
id,
|
|
63
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
64
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
65
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
66
|
+
#
|
|
67
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
68
|
+
# The base text then changes to the translated text.
|
|
69
|
+
locale: nil,
|
|
59
70
|
request_options: {}
|
|
60
71
|
)
|
|
61
72
|
end
|
|
@@ -108,6 +119,7 @@ module Dodopayments
|
|
|
108
119
|
params(
|
|
109
120
|
integration_type:
|
|
110
121
|
Dodopayments::EntitlementListParams::IntegrationType::OrSymbol,
|
|
122
|
+
locale: String,
|
|
111
123
|
page_number: Integer,
|
|
112
124
|
page_size: Integer,
|
|
113
125
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
@@ -120,6 +132,13 @@ module Dodopayments
|
|
|
120
132
|
def list(
|
|
121
133
|
# Filter by integration type
|
|
122
134
|
integration_type: nil,
|
|
135
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
136
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
137
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
138
|
+
#
|
|
139
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
140
|
+
# The base text then changes to the translated text.
|
|
141
|
+
locale: nil,
|
|
123
142
|
# Page number (default 0)
|
|
124
143
|
page_number: nil,
|
|
125
144
|
# Page size (default 10, max 100)
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Resources
|
|
5
|
+
class Meters
|
|
6
|
+
class Translations
|
|
7
|
+
# Creates or replaces the translation of one locale. The response is 201 for a new
|
|
8
|
+
# locale and 200 for a replaced locale.
|
|
9
|
+
sig do
|
|
10
|
+
params(
|
|
11
|
+
locale: Dodopayments::Locale::OrSymbol,
|
|
12
|
+
id: String,
|
|
13
|
+
description: T.nilable(String),
|
|
14
|
+
name: T.nilable(String),
|
|
15
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
16
|
+
).returns(Dodopayments::Products::Translation)
|
|
17
|
+
end
|
|
18
|
+
def update(
|
|
19
|
+
# Path param: A locale that the checkout and the customer portal can show.
|
|
20
|
+
#
|
|
21
|
+
# The codes are a copy of the checkout locales. `GET /locales` lists them.
|
|
22
|
+
locale,
|
|
23
|
+
# Path param: Meter Id
|
|
24
|
+
id:,
|
|
25
|
+
# Body param: The translated description.
|
|
26
|
+
description: nil,
|
|
27
|
+
# Body param: The translated name.
|
|
28
|
+
name: nil,
|
|
29
|
+
request_options: {}
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Lists the translations, for all the locales or for the locales of the filter.
|
|
34
|
+
sig do
|
|
35
|
+
params(
|
|
36
|
+
id: String,
|
|
37
|
+
locale: T::Array[String],
|
|
38
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
39
|
+
).returns(Dodopayments::Products::TranslationsListResponse)
|
|
40
|
+
end
|
|
41
|
+
def list(
|
|
42
|
+
# Meter Id
|
|
43
|
+
id,
|
|
44
|
+
# Returns only these locales, for example `?locale=fr&locale=de`. With no value,
|
|
45
|
+
# the response has all the locales.
|
|
46
|
+
locale: nil,
|
|
47
|
+
request_options: {}
|
|
48
|
+
)
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Deletes the translation of one locale.
|
|
52
|
+
sig do
|
|
53
|
+
params(
|
|
54
|
+
locale: Dodopayments::Locale::OrSymbol,
|
|
55
|
+
id: String,
|
|
56
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
57
|
+
).void
|
|
58
|
+
end
|
|
59
|
+
def delete(
|
|
60
|
+
# A locale that the checkout and the customer portal can show.
|
|
61
|
+
#
|
|
62
|
+
# The codes are a copy of the checkout locales. `GET /locales` lists them.
|
|
63
|
+
locale,
|
|
64
|
+
# Meter Id
|
|
65
|
+
id:,
|
|
66
|
+
request_options: {}
|
|
67
|
+
)
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# @api private
|
|
71
|
+
sig { params(client: Dodopayments::Client).returns(T.attached_class) }
|
|
72
|
+
def self.new(client:)
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
module Dodopayments
|
|
4
4
|
module Resources
|
|
5
5
|
class Meters
|
|
6
|
+
sig { returns(Dodopayments::Resources::Meters::Translations) }
|
|
7
|
+
attr_reader :translations
|
|
8
|
+
|
|
6
9
|
sig do
|
|
7
10
|
params(
|
|
8
11
|
aggregation: Dodopayments::MeterAggregation::OrHash,
|
|
@@ -34,12 +37,43 @@ module Dodopayments
|
|
|
34
37
|
sig do
|
|
35
38
|
params(
|
|
36
39
|
id: String,
|
|
40
|
+
locale: String,
|
|
37
41
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
38
42
|
).returns(Dodopayments::Meter)
|
|
39
43
|
end
|
|
40
44
|
def retrieve(
|
|
41
45
|
# Meter ID
|
|
42
46
|
id,
|
|
47
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
48
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
49
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
50
|
+
#
|
|
51
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
52
|
+
# The base text then changes to the translated text.
|
|
53
|
+
locale: nil,
|
|
54
|
+
request_options: {}
|
|
55
|
+
)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
sig do
|
|
59
|
+
params(
|
|
60
|
+
id: String,
|
|
61
|
+
description: T.nilable(String),
|
|
62
|
+
measurement_unit: T.nilable(String),
|
|
63
|
+
name: T.nilable(String),
|
|
64
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
65
|
+
).returns(Dodopayments::Meter)
|
|
66
|
+
end
|
|
67
|
+
def update(
|
|
68
|
+
# Meter ID
|
|
69
|
+
id,
|
|
70
|
+
# Description of the meter. Send `null` to remove the description. Omit it to keep
|
|
71
|
+
# it.
|
|
72
|
+
description: nil,
|
|
73
|
+
# Measurement unit
|
|
74
|
+
measurement_unit: nil,
|
|
75
|
+
# Name of the meter
|
|
76
|
+
name: nil,
|
|
43
77
|
request_options: {}
|
|
44
78
|
)
|
|
45
79
|
end
|
|
@@ -47,6 +81,7 @@ module Dodopayments
|
|
|
47
81
|
sig do
|
|
48
82
|
params(
|
|
49
83
|
archived: T::Boolean,
|
|
84
|
+
locale: String,
|
|
50
85
|
page_number: Integer,
|
|
51
86
|
page_size: Integer,
|
|
52
87
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
@@ -59,6 +94,13 @@ module Dodopayments
|
|
|
59
94
|
def list(
|
|
60
95
|
# List archived meters
|
|
61
96
|
archived: nil,
|
|
97
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
98
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
99
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
100
|
+
#
|
|
101
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
102
|
+
# The base text then changes to the translated text.
|
|
103
|
+
locale: nil,
|
|
62
104
|
# Page number default is 0
|
|
63
105
|
page_number: nil,
|
|
64
106
|
# Page size default is 10 max is 100
|
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
module Dodopayments
|
|
4
4
|
module Resources
|
|
5
5
|
class Misc
|
|
6
|
+
# Lists the locales that a translation can have.
|
|
7
|
+
sig do
|
|
8
|
+
params(request_options: Dodopayments::RequestOptions::OrHash).returns(
|
|
9
|
+
T::Array[Dodopayments::LocaleInfo]
|
|
10
|
+
)
|
|
11
|
+
end
|
|
12
|
+
def list_locales(request_options: {})
|
|
13
|
+
end
|
|
14
|
+
|
|
6
15
|
sig do
|
|
7
16
|
params(request_options: Dodopayments::RequestOptions::OrHash).returns(
|
|
8
17
|
T::Array[Dodopayments::CountryCode::TaggedSymbol]
|
|
@@ -155,12 +155,16 @@ module Dodopayments
|
|
|
155
155
|
sig do
|
|
156
156
|
params(
|
|
157
157
|
payment_id: String,
|
|
158
|
+
currency: Dodopayments::Currency::OrSymbol,
|
|
158
159
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
159
160
|
).returns(Dodopayments::Models::PaymentRetrieveLineItemsResponse)
|
|
160
161
|
end
|
|
161
162
|
def retrieve_line_items(
|
|
162
163
|
# Payment Id
|
|
163
164
|
payment_id,
|
|
165
|
+
# The currency of the amounts. It must be the currency that the customer paid in.
|
|
166
|
+
# Without it, the amounts are in the settlement currency.
|
|
167
|
+
currency: nil,
|
|
164
168
|
request_options: {}
|
|
165
169
|
)
|
|
166
170
|
end
|
|
@@ -8,7 +8,9 @@ module Dodopayments
|
|
|
8
8
|
# Returns paginated individual balance ledger entries for a payout. Each entry is
|
|
9
9
|
# converted into the payout's currency at the rate the payout settled at. Supports
|
|
10
10
|
# pagination via `page_size` (default 10, max 100) and `page_number` (default 0)
|
|
11
|
-
# query parameters.
|
|
11
|
+
# query parameters. A settlement batch payout shows its rows in native amounts.
|
|
12
|
+
# `unattributed` is the payout amount less the sum of its rows in the payout
|
|
13
|
+
# currency.
|
|
12
14
|
sig do
|
|
13
15
|
params(
|
|
14
16
|
payout_id: String,
|
|
@@ -35,7 +37,8 @@ module Dodopayments
|
|
|
35
37
|
# Downloads the complete payout breakup as a CSV file. Each row represents a
|
|
36
38
|
# balance ledger entry with columns: Ledger ID, Event Type, Original Amount,
|
|
37
39
|
# Original Currency, Reference Object ID, Description, Created At, USD Equivalent
|
|
38
|
-
# Amount, and Payout Currency Amount.
|
|
40
|
+
# Amount, and Payout Currency Amount. A settlement batch payout shows its rows in
|
|
41
|
+
# native amounts.
|
|
39
42
|
sig do
|
|
40
43
|
params(
|
|
41
44
|
payout_id: String,
|
|
@@ -10,7 +10,10 @@ module Dodopayments
|
|
|
10
10
|
# Returns the breakdown of a payout by event type (payments, refunds, disputes,
|
|
11
11
|
# fees, etc.) in the payout's currency. Each amount is proportionally allocated
|
|
12
12
|
# based on USD equivalent values, ensuring the total sums exactly to the payout
|
|
13
|
-
# amount.
|
|
13
|
+
# amount. A settlement batch payout shows its rows in native amounts. The
|
|
14
|
+
# `carried_over` line holds the opening balance from the switch to settlement
|
|
15
|
+
# batches and the rows dated before that opening balance. The `unattributed` line
|
|
16
|
+
# shows the payout amount that the rows do not account for.
|
|
14
17
|
sig do
|
|
15
18
|
params(
|
|
16
19
|
payout_id: String,
|