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
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module Products
|
|
4
|
+
type translation_delete_params =
|
|
5
|
+
{ id: String, locale: Dodopayments::Models::locale }
|
|
6
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class TranslationDeleteParams < Dodopayments::Internal::Type::BaseModel
|
|
9
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor id: String
|
|
13
|
+
|
|
14
|
+
attr_accessor locale: Dodopayments::Models::locale
|
|
15
|
+
|
|
16
|
+
def initialize: (
|
|
17
|
+
id: String,
|
|
18
|
+
locale: Dodopayments::Models::locale,
|
|
19
|
+
?request_options: Dodopayments::request_opts
|
|
20
|
+
) -> void
|
|
21
|
+
|
|
22
|
+
def to_hash: -> {
|
|
23
|
+
id: String,
|
|
24
|
+
locale: Dodopayments::Models::locale,
|
|
25
|
+
request_options: Dodopayments::RequestOptions
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module Products
|
|
4
|
+
type translation_list_params =
|
|
5
|
+
{ id: String, locale: ::Array[String] }
|
|
6
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class TranslationListParams < Dodopayments::Internal::Type::BaseModel
|
|
9
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor id: String
|
|
13
|
+
|
|
14
|
+
attr_reader locale: ::Array[String]?
|
|
15
|
+
|
|
16
|
+
def locale=: (::Array[String]) -> ::Array[String]
|
|
17
|
+
|
|
18
|
+
def initialize: (
|
|
19
|
+
id: String,
|
|
20
|
+
?locale: ::Array[String],
|
|
21
|
+
?request_options: Dodopayments::request_opts
|
|
22
|
+
) -> void
|
|
23
|
+
|
|
24
|
+
def to_hash: -> {
|
|
25
|
+
id: String,
|
|
26
|
+
locale: ::Array[String],
|
|
27
|
+
request_options: Dodopayments::RequestOptions
|
|
28
|
+
}
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module Products
|
|
4
|
+
type translation_update_params =
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
locale: Dodopayments::Models::locale,
|
|
8
|
+
description: String?,
|
|
9
|
+
name: String?
|
|
10
|
+
}
|
|
11
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class TranslationUpdateParams < Dodopayments::Internal::Type::BaseModel
|
|
14
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_accessor id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor locale: Dodopayments::Models::locale
|
|
20
|
+
|
|
21
|
+
attr_accessor description: String?
|
|
22
|
+
|
|
23
|
+
attr_accessor name: String?
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
id: String,
|
|
27
|
+
locale: Dodopayments::Models::locale,
|
|
28
|
+
?description: String?,
|
|
29
|
+
?name: String?,
|
|
30
|
+
?request_options: Dodopayments::request_opts
|
|
31
|
+
) -> void
|
|
32
|
+
|
|
33
|
+
def to_hash: -> {
|
|
34
|
+
id: String,
|
|
35
|
+
locale: Dodopayments::Models::locale,
|
|
36
|
+
description: String?,
|
|
37
|
+
name: String?,
|
|
38
|
+
request_options: Dodopayments::RequestOptions
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module Products
|
|
4
|
+
type translations_list_response =
|
|
5
|
+
{ items: ::Array[Dodopayments::Products::Translation] }
|
|
6
|
+
|
|
7
|
+
class TranslationsListResponse < Dodopayments::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor items: ::Array[Dodopayments::Products::Translation]
|
|
9
|
+
|
|
10
|
+
def initialize: (
|
|
11
|
+
items: ::Array[Dodopayments::Products::Translation]
|
|
12
|
+
) -> void
|
|
13
|
+
|
|
14
|
+
def to_hash: -> { items: ::Array[Dodopayments::Products::Translation] }
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -3,6 +3,7 @@ module Dodopayments
|
|
|
3
3
|
type refund_create_params =
|
|
4
4
|
{
|
|
5
5
|
payment_id: String,
|
|
6
|
+
currency: Dodopayments::Models::currency?,
|
|
6
7
|
items: ::Array[Dodopayments::RefundCreateParams::Item]?,
|
|
7
8
|
metadata: Dodopayments::Models::metadata,
|
|
8
9
|
reason: String?
|
|
@@ -15,6 +16,8 @@ module Dodopayments
|
|
|
15
16
|
|
|
16
17
|
attr_accessor payment_id: String
|
|
17
18
|
|
|
19
|
+
attr_accessor currency: Dodopayments::Models::currency?
|
|
20
|
+
|
|
18
21
|
attr_accessor items: ::Array[Dodopayments::RefundCreateParams::Item]?
|
|
19
22
|
|
|
20
23
|
attr_reader metadata: Dodopayments::Models::metadata?
|
|
@@ -27,6 +30,7 @@ module Dodopayments
|
|
|
27
30
|
|
|
28
31
|
def initialize: (
|
|
29
32
|
payment_id: String,
|
|
33
|
+
?currency: Dodopayments::Models::currency?,
|
|
30
34
|
?items: ::Array[Dodopayments::RefundCreateParams::Item]?,
|
|
31
35
|
?metadata: Dodopayments::Models::metadata,
|
|
32
36
|
?reason: String?,
|
|
@@ -35,6 +39,7 @@ module Dodopayments
|
|
|
35
39
|
|
|
36
40
|
def to_hash: -> {
|
|
37
41
|
payment_id: String,
|
|
42
|
+
currency: Dodopayments::Models::currency?,
|
|
38
43
|
items: ::Array[Dodopayments::RefundCreateParams::Item]?,
|
|
39
44
|
metadata: Dodopayments::Models::metadata,
|
|
40
45
|
reason: String?,
|
|
@@ -7,6 +7,7 @@ module Dodopayments
|
|
|
7
7
|
created_at_gte: Time,
|
|
8
8
|
created_at_lte: Time,
|
|
9
9
|
customer_id: String,
|
|
10
|
+
locale: String,
|
|
10
11
|
page_number: Integer,
|
|
11
12
|
page_size: Integer,
|
|
12
13
|
product_id: String,
|
|
@@ -38,6 +39,10 @@ module Dodopayments
|
|
|
38
39
|
|
|
39
40
|
def customer_id=: (String) -> String
|
|
40
41
|
|
|
42
|
+
attr_reader locale: String?
|
|
43
|
+
|
|
44
|
+
def locale=: (String) -> String
|
|
45
|
+
|
|
41
46
|
attr_reader page_number: Integer?
|
|
42
47
|
|
|
43
48
|
def page_number=: (Integer) -> Integer
|
|
@@ -62,6 +67,7 @@ module Dodopayments
|
|
|
62
67
|
?created_at_gte: Time,
|
|
63
68
|
?created_at_lte: Time,
|
|
64
69
|
?customer_id: String,
|
|
70
|
+
?locale: String,
|
|
65
71
|
?page_number: Integer,
|
|
66
72
|
?page_size: Integer,
|
|
67
73
|
?product_id: String,
|
|
@@ -75,6 +81,7 @@ module Dodopayments
|
|
|
75
81
|
created_at_gte: Time,
|
|
76
82
|
created_at_lte: Time,
|
|
77
83
|
customer_id: String,
|
|
84
|
+
locale: String,
|
|
78
85
|
page_number: Integer,
|
|
79
86
|
page_size: Integer,
|
|
80
87
|
product_id: String,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type subscription_retrieve_params =
|
|
4
|
-
{ subscription_id: String }
|
|
4
|
+
{ subscription_id: String, locale: String }
|
|
5
5
|
& Dodopayments::Internal::Type::request_parameters
|
|
6
6
|
|
|
7
7
|
class SubscriptionRetrieveParams < Dodopayments::Internal::Type::BaseModel
|
|
@@ -10,13 +10,19 @@ module Dodopayments
|
|
|
10
10
|
|
|
11
11
|
attr_accessor subscription_id: String
|
|
12
12
|
|
|
13
|
+
attr_reader locale: String?
|
|
14
|
+
|
|
15
|
+
def locale=: (String) -> String
|
|
16
|
+
|
|
13
17
|
def initialize: (
|
|
14
18
|
subscription_id: String,
|
|
19
|
+
?locale: String,
|
|
15
20
|
?request_options: Dodopayments::request_opts
|
|
16
21
|
) -> void
|
|
17
22
|
|
|
18
23
|
def to_hash: -> {
|
|
19
24
|
subscription_id: String,
|
|
25
|
+
locale: String,
|
|
20
26
|
request_options: Dodopayments::RequestOptions
|
|
21
27
|
}
|
|
22
28
|
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type three_ds_flow = :challenge | :frictionless
|
|
4
|
+
|
|
5
|
+
module ThreeDSFlow
|
|
6
|
+
extend Dodopayments::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
CHALLENGE: :challenge
|
|
9
|
+
FRICTIONLESS: :frictionless
|
|
10
|
+
|
|
11
|
+
def self?.values: -> ::Array[Dodopayments::Models::three_ds_flow]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type three_ds_status =
|
|
4
|
+
:authenticated
|
|
5
|
+
| :attempt_acknowledged
|
|
6
|
+
| :exempted
|
|
7
|
+
| :failed
|
|
8
|
+
| :not_supported
|
|
9
|
+
| :processing_error
|
|
10
|
+
|
|
11
|
+
module ThreeDSStatus
|
|
12
|
+
extend Dodopayments::Internal::Type::Enum
|
|
13
|
+
|
|
14
|
+
AUTHENTICATED: :authenticated
|
|
15
|
+
ATTEMPT_ACKNOWLEDGED: :attempt_acknowledged
|
|
16
|
+
EXEMPTED: :exempted
|
|
17
|
+
FAILED: :failed
|
|
18
|
+
NOT_SUPPORTED: :not_supported
|
|
19
|
+
PROCESSING_ERROR: :processing_error
|
|
20
|
+
|
|
21
|
+
def self?.values: -> ::Array[Dodopayments::Models::three_ds_status]
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
data/sig/dodopayments/models.rbs
CHANGED
|
@@ -9,12 +9,18 @@ module Dodopayments
|
|
|
9
9
|
|
|
10
10
|
class AddonCreateParams = Dodopayments::Models::AddonCreateParams
|
|
11
11
|
|
|
12
|
+
class AddonDeleteParams = Dodopayments::Models::AddonDeleteParams
|
|
13
|
+
|
|
12
14
|
class AddonListParams = Dodopayments::Models::AddonListParams
|
|
13
15
|
|
|
14
16
|
class AddonResponse = Dodopayments::Models::AddonResponse
|
|
15
17
|
|
|
16
18
|
class AddonRetrieveParams = Dodopayments::Models::AddonRetrieveParams
|
|
17
19
|
|
|
20
|
+
module Addons = Dodopayments::Models::Addons
|
|
21
|
+
|
|
22
|
+
class AddonUnarchiveParams = Dodopayments::Models::AddonUnarchiveParams
|
|
23
|
+
|
|
18
24
|
class AddonUpdateImagesParams = Dodopayments::Models::AddonUpdateImagesParams
|
|
19
25
|
|
|
20
26
|
class AddonUpdateParams = Dodopayments::Models::AddonUpdateParams
|
|
@@ -281,6 +287,10 @@ module Dodopayments
|
|
|
281
287
|
|
|
282
288
|
class LicenseValidateParams = Dodopayments::Models::LicenseValidateParams
|
|
283
289
|
|
|
290
|
+
module Locale = Dodopayments::Models::Locale
|
|
291
|
+
|
|
292
|
+
class LocaleInfo = Dodopayments::Models::LocaleInfo
|
|
293
|
+
|
|
284
294
|
class ManualRetry = Dodopayments::Models::ManualRetry
|
|
285
295
|
|
|
286
296
|
class ManualRetryState = Dodopayments::Models::ManualRetryState
|
|
@@ -307,8 +317,14 @@ module Dodopayments
|
|
|
307
317
|
|
|
308
318
|
class MeterRetrieveParams = Dodopayments::Models::MeterRetrieveParams
|
|
309
319
|
|
|
320
|
+
module Meters = Dodopayments::Models::Meters
|
|
321
|
+
|
|
310
322
|
class MeterUnarchiveParams = Dodopayments::Models::MeterUnarchiveParams
|
|
311
323
|
|
|
324
|
+
class MeterUpdateParams = Dodopayments::Models::MeterUpdateParams
|
|
325
|
+
|
|
326
|
+
class MiscListLocalesParams = Dodopayments::Models::MiscListLocalesParams
|
|
327
|
+
|
|
312
328
|
class MiscListSupportedCountriesParams = Dodopayments::Models::MiscListSupportedCountriesParams
|
|
313
329
|
|
|
314
330
|
module ModerationCategory = Dodopayments::Models::ModerationCategory
|
|
@@ -495,6 +511,10 @@ module Dodopayments
|
|
|
495
511
|
|
|
496
512
|
class ThemeModeConfig = Dodopayments::Models::ThemeModeConfig
|
|
497
513
|
|
|
514
|
+
module ThreeDSFlow = Dodopayments::Models::ThreeDSFlow
|
|
515
|
+
|
|
516
|
+
module ThreeDSStatus = Dodopayments::Models::ThreeDSStatus
|
|
517
|
+
|
|
498
518
|
module TimeInterval = Dodopayments::Models::TimeInterval
|
|
499
519
|
|
|
500
520
|
module UnsafeUnwrapWebhookEvent = Dodopayments::Models::UnsafeUnwrapWebhookEvent
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Resources
|
|
3
|
+
class Addons
|
|
4
|
+
class Translations
|
|
5
|
+
def update: (
|
|
6
|
+
Dodopayments::Models::locale locale,
|
|
7
|
+
id: String,
|
|
8
|
+
?description: String?,
|
|
9
|
+
?name: String?,
|
|
10
|
+
?request_options: Dodopayments::request_opts
|
|
11
|
+
) -> Dodopayments::Products::Translation
|
|
12
|
+
|
|
13
|
+
def list: (
|
|
14
|
+
String id,
|
|
15
|
+
?locale: ::Array[String],
|
|
16
|
+
?request_options: Dodopayments::request_opts
|
|
17
|
+
) -> Dodopayments::Products::TranslationsListResponse
|
|
18
|
+
|
|
19
|
+
def delete: (
|
|
20
|
+
Dodopayments::Models::locale locale,
|
|
21
|
+
id: String,
|
|
22
|
+
?request_options: Dodopayments::request_opts
|
|
23
|
+
) -> nil
|
|
24
|
+
|
|
25
|
+
def initialize: (client: Dodopayments::Client) -> void
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Resources
|
|
3
3
|
class Addons
|
|
4
|
+
attr_reader translations: Dodopayments::Resources::Addons::Translations
|
|
5
|
+
|
|
4
6
|
def create: (
|
|
5
7
|
currency: Dodopayments::Models::currency,
|
|
6
8
|
name: String,
|
|
@@ -12,6 +14,7 @@ module Dodopayments
|
|
|
12
14
|
|
|
13
15
|
def retrieve: (
|
|
14
16
|
String id,
|
|
17
|
+
?locale: String,
|
|
15
18
|
?request_options: Dodopayments::request_opts
|
|
16
19
|
) -> Dodopayments::AddonResponse
|
|
17
20
|
|
|
@@ -27,11 +30,23 @@ module Dodopayments
|
|
|
27
30
|
) -> Dodopayments::AddonResponse
|
|
28
31
|
|
|
29
32
|
def list: (
|
|
33
|
+
?archived: bool,
|
|
34
|
+
?locale: String,
|
|
30
35
|
?page_number: Integer,
|
|
31
36
|
?page_size: Integer,
|
|
32
37
|
?request_options: Dodopayments::request_opts
|
|
33
38
|
) -> Dodopayments::Internal::DefaultPageNumberPagination[Dodopayments::AddonResponse]
|
|
34
39
|
|
|
40
|
+
def delete: (
|
|
41
|
+
String id,
|
|
42
|
+
?request_options: Dodopayments::request_opts
|
|
43
|
+
) -> nil
|
|
44
|
+
|
|
45
|
+
def unarchive: (
|
|
46
|
+
String id,
|
|
47
|
+
?request_options: Dodopayments::request_opts
|
|
48
|
+
) -> nil
|
|
49
|
+
|
|
35
50
|
def update_images: (
|
|
36
51
|
String id,
|
|
37
52
|
?request_options: Dodopayments::request_opts
|
|
@@ -36,6 +36,7 @@ module Dodopayments
|
|
|
36
36
|
|
|
37
37
|
def preview: (
|
|
38
38
|
product_cart: ::Array[Dodopayments::ProductItemReq],
|
|
39
|
+
?locale: String,
|
|
39
40
|
?allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
40
41
|
?billing_address: Dodopayments::CheckoutSessionBillingAddress?,
|
|
41
42
|
?billing_currency: Dodopayments::Models::currency?,
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Resources
|
|
3
|
+
class CreditEntitlements
|
|
4
|
+
class Translations
|
|
5
|
+
def update: (
|
|
6
|
+
Dodopayments::Models::locale locale,
|
|
7
|
+
id: String,
|
|
8
|
+
?name: String?,
|
|
9
|
+
?unit: String?,
|
|
10
|
+
?request_options: Dodopayments::request_opts
|
|
11
|
+
) -> Dodopayments::CreditEntitlements::CreditEntitlementTranslation
|
|
12
|
+
|
|
13
|
+
def list: (
|
|
14
|
+
String id,
|
|
15
|
+
?locale: ::Array[String],
|
|
16
|
+
?request_options: Dodopayments::request_opts
|
|
17
|
+
) -> Dodopayments::CreditEntitlements::CreditEntitlementTranslationsListResponse
|
|
18
|
+
|
|
19
|
+
def delete: (
|
|
20
|
+
Dodopayments::Models::locale locale,
|
|
21
|
+
id: String,
|
|
22
|
+
?request_options: Dodopayments::request_opts
|
|
23
|
+
) -> nil
|
|
24
|
+
|
|
25
|
+
def initialize: (client: Dodopayments::Client) -> void
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Resources
|
|
3
3
|
class CreditEntitlements
|
|
4
|
+
attr_reader translations: Dodopayments::Resources::CreditEntitlements::Translations
|
|
5
|
+
|
|
4
6
|
attr_reader balances: Dodopayments::Resources::CreditEntitlements::Balances
|
|
5
7
|
|
|
6
8
|
def create: (
|
|
@@ -24,6 +26,7 @@ module Dodopayments
|
|
|
24
26
|
|
|
25
27
|
def retrieve: (
|
|
26
28
|
String id,
|
|
29
|
+
?locale: String,
|
|
27
30
|
?request_options: Dodopayments::request_opts
|
|
28
31
|
) -> Dodopayments::CreditEntitlement
|
|
29
32
|
|
|
@@ -48,6 +51,7 @@ module Dodopayments
|
|
|
48
51
|
|
|
49
52
|
def list: (
|
|
50
53
|
?deleted: bool,
|
|
54
|
+
?locale: String,
|
|
51
55
|
?page_number: Integer,
|
|
52
56
|
?page_size: Integer,
|
|
53
57
|
?request_options: Dodopayments::request_opts
|
|
@@ -12,6 +12,7 @@ module Dodopayments
|
|
|
12
12
|
name: String,
|
|
13
13
|
?metadata: Dodopayments::Models::metadata,
|
|
14
14
|
?phone_number: String?,
|
|
15
|
+
?preferred_locale: Dodopayments::Models::locale?,
|
|
15
16
|
?request_options: Dodopayments::request_opts
|
|
16
17
|
) -> Dodopayments::Customer
|
|
17
18
|
|
|
@@ -26,6 +27,7 @@ module Dodopayments
|
|
|
26
27
|
?metadata: Dodopayments::Models::metadata?,
|
|
27
28
|
?name: String?,
|
|
28
29
|
?phone_number: String?,
|
|
30
|
+
?preferred_locale: Dodopayments::Models::locale?,
|
|
29
31
|
?request_options: Dodopayments::request_opts
|
|
30
32
|
) -> Dodopayments::Customer
|
|
31
33
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Resources
|
|
3
|
+
class Entitlements
|
|
4
|
+
class Translations
|
|
5
|
+
def update: (
|
|
6
|
+
Dodopayments::Models::locale locale,
|
|
7
|
+
id: String,
|
|
8
|
+
?activation_message: String?,
|
|
9
|
+
?description: String?,
|
|
10
|
+
?instructions: String?,
|
|
11
|
+
?name: String?,
|
|
12
|
+
?request_options: Dodopayments::request_opts
|
|
13
|
+
) -> Dodopayments::Entitlements::EntitlementTranslation
|
|
14
|
+
|
|
15
|
+
def list: (
|
|
16
|
+
String id,
|
|
17
|
+
?locale: ::Array[String],
|
|
18
|
+
?request_options: Dodopayments::request_opts
|
|
19
|
+
) -> Dodopayments::Entitlements::EntitlementTranslationsListResponse
|
|
20
|
+
|
|
21
|
+
def delete: (
|
|
22
|
+
Dodopayments::Models::locale locale,
|
|
23
|
+
id: String,
|
|
24
|
+
?request_options: Dodopayments::request_opts
|
|
25
|
+
) -> nil
|
|
26
|
+
|
|
27
|
+
def initialize: (client: Dodopayments::Client) -> void
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Resources
|
|
3
3
|
class Entitlements
|
|
4
|
+
attr_reader translations: Dodopayments::Resources::Entitlements::Translations
|
|
5
|
+
|
|
4
6
|
attr_reader files: Dodopayments::Resources::Entitlements::Files
|
|
5
7
|
|
|
6
8
|
attr_reader grants: Dodopayments::Resources::Entitlements::Grants
|
|
@@ -16,6 +18,7 @@ module Dodopayments
|
|
|
16
18
|
|
|
17
19
|
def retrieve: (
|
|
18
20
|
String id,
|
|
21
|
+
?locale: String,
|
|
19
22
|
?request_options: Dodopayments::request_opts
|
|
20
23
|
) -> Dodopayments::Entitlement
|
|
21
24
|
|
|
@@ -30,6 +33,7 @@ module Dodopayments
|
|
|
30
33
|
|
|
31
34
|
def list: (
|
|
32
35
|
?integration_type: Dodopayments::Models::EntitlementListParams::integration_type,
|
|
36
|
+
?locale: String,
|
|
33
37
|
?page_number: Integer,
|
|
34
38
|
?page_size: Integer,
|
|
35
39
|
?request_options: Dodopayments::request_opts
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Resources
|
|
3
|
+
class Meters
|
|
4
|
+
class Translations
|
|
5
|
+
def update: (
|
|
6
|
+
Dodopayments::Models::locale locale,
|
|
7
|
+
id: String,
|
|
8
|
+
?description: String?,
|
|
9
|
+
?name: String?,
|
|
10
|
+
?request_options: Dodopayments::request_opts
|
|
11
|
+
) -> Dodopayments::Products::Translation
|
|
12
|
+
|
|
13
|
+
def list: (
|
|
14
|
+
String id,
|
|
15
|
+
?locale: ::Array[String],
|
|
16
|
+
?request_options: Dodopayments::request_opts
|
|
17
|
+
) -> Dodopayments::Products::TranslationsListResponse
|
|
18
|
+
|
|
19
|
+
def delete: (
|
|
20
|
+
Dodopayments::Models::locale locale,
|
|
21
|
+
id: String,
|
|
22
|
+
?request_options: Dodopayments::request_opts
|
|
23
|
+
) -> nil
|
|
24
|
+
|
|
25
|
+
def initialize: (client: Dodopayments::Client) -> void
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Resources
|
|
3
3
|
class Meters
|
|
4
|
+
attr_reader translations: Dodopayments::Resources::Meters::Translations
|
|
5
|
+
|
|
4
6
|
def create: (
|
|
5
7
|
aggregation: Dodopayments::MeterAggregation,
|
|
6
8
|
event_name: String,
|
|
@@ -13,11 +15,21 @@ module Dodopayments
|
|
|
13
15
|
|
|
14
16
|
def retrieve: (
|
|
15
17
|
String id,
|
|
18
|
+
?locale: String,
|
|
19
|
+
?request_options: Dodopayments::request_opts
|
|
20
|
+
) -> Dodopayments::Meter
|
|
21
|
+
|
|
22
|
+
def update: (
|
|
23
|
+
String id,
|
|
24
|
+
?description: String?,
|
|
25
|
+
?measurement_unit: String?,
|
|
26
|
+
?name: String?,
|
|
16
27
|
?request_options: Dodopayments::request_opts
|
|
17
28
|
) -> Dodopayments::Meter
|
|
18
29
|
|
|
19
30
|
def list: (
|
|
20
31
|
?archived: bool,
|
|
32
|
+
?locale: String,
|
|
21
33
|
?page_number: Integer,
|
|
22
34
|
?page_size: Integer,
|
|
23
35
|
?request_options: Dodopayments::request_opts
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Resources
|
|
3
3
|
class Misc
|
|
4
|
+
def list_locales: (
|
|
5
|
+
?request_options: Dodopayments::request_opts
|
|
6
|
+
) -> Dodopayments::Models::misc_list_locales_response
|
|
7
|
+
|
|
4
8
|
def list_supported_countries: (
|
|
5
9
|
?request_options: Dodopayments::request_opts
|
|
6
10
|
) -> Dodopayments::Models::misc_list_supported_countries_response
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Resources
|
|
3
|
+
class ProductCollections
|
|
4
|
+
class Translations
|
|
5
|
+
def update: (
|
|
6
|
+
Dodopayments::Models::locale locale,
|
|
7
|
+
id: String,
|
|
8
|
+
?description: String?,
|
|
9
|
+
?name: String?,
|
|
10
|
+
?request_options: Dodopayments::request_opts
|
|
11
|
+
) -> Dodopayments::Products::Translation
|
|
12
|
+
|
|
13
|
+
def list: (
|
|
14
|
+
String id,
|
|
15
|
+
?locale: ::Array[String],
|
|
16
|
+
?request_options: Dodopayments::request_opts
|
|
17
|
+
) -> Dodopayments::Products::TranslationsListResponse
|
|
18
|
+
|
|
19
|
+
def delete: (
|
|
20
|
+
Dodopayments::Models::locale locale,
|
|
21
|
+
id: String,
|
|
22
|
+
?request_options: Dodopayments::request_opts
|
|
23
|
+
) -> nil
|
|
24
|
+
|
|
25
|
+
def initialize: (client: Dodopayments::Client) -> void
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Resources
|
|
3
3
|
class ProductCollections
|
|
4
|
+
attr_reader translations: Dodopayments::Resources::ProductCollections::Translations
|
|
5
|
+
|
|
4
6
|
attr_reader groups: Dodopayments::Resources::ProductCollections::Groups
|
|
5
7
|
|
|
6
8
|
def create: (
|
|
@@ -18,6 +20,7 @@ module Dodopayments
|
|
|
18
20
|
|
|
19
21
|
def retrieve: (
|
|
20
22
|
String id,
|
|
23
|
+
?locale: String,
|
|
21
24
|
?request_options: Dodopayments::request_opts
|
|
22
25
|
) -> Dodopayments::ProductCollection
|
|
23
26
|
|
|
@@ -39,6 +42,7 @@ module Dodopayments
|
|
|
39
42
|
def list: (
|
|
40
43
|
?archived: bool,
|
|
41
44
|
?brand_id: String,
|
|
45
|
+
?locale: String,
|
|
42
46
|
?page_number: Integer,
|
|
43
47
|
?page_size: Integer,
|
|
44
48
|
?request_options: Dodopayments::request_opts
|