dodopayments 2.34.0 → 2.36.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 +17 -0
- data/README.md +21 -1
- data/lib/dodopayments/client.rb +133 -4
- 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/workload_identity.rb +351 -0
- data/lib/dodopayments.rb +40 -0
- data/rbi/dodopayments/client.rbi +15 -2
- 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/rbi/dodopayments/workload_identity.rbi +219 -0
- data/sig/dodopayments/client.rbs +6 -1
- 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
- data/sig/dodopayments/workload_identity.rbs +89 -0
- metadata +122 -2
|
@@ -4,6 +4,7 @@ module Dodopayments
|
|
|
4
4
|
{
|
|
5
5
|
archived: bool,
|
|
6
6
|
brand_id: String,
|
|
7
|
+
locale: String,
|
|
7
8
|
page_number: Integer,
|
|
8
9
|
page_size: Integer
|
|
9
10
|
}
|
|
@@ -21,6 +22,10 @@ module Dodopayments
|
|
|
21
22
|
|
|
22
23
|
def brand_id=: (String) -> String
|
|
23
24
|
|
|
25
|
+
attr_reader locale: String?
|
|
26
|
+
|
|
27
|
+
def locale=: (String) -> String
|
|
28
|
+
|
|
24
29
|
attr_reader page_number: Integer?
|
|
25
30
|
|
|
26
31
|
def page_number=: (Integer) -> Integer
|
|
@@ -32,6 +37,7 @@ module Dodopayments
|
|
|
32
37
|
def initialize: (
|
|
33
38
|
?archived: bool,
|
|
34
39
|
?brand_id: String,
|
|
40
|
+
?locale: String,
|
|
35
41
|
?page_number: Integer,
|
|
36
42
|
?page_size: Integer,
|
|
37
43
|
?request_options: Dodopayments::request_opts
|
|
@@ -40,6 +46,7 @@ module Dodopayments
|
|
|
40
46
|
def to_hash: -> {
|
|
41
47
|
archived: bool,
|
|
42
48
|
brand_id: String,
|
|
49
|
+
locale: String,
|
|
43
50
|
page_number: Integer,
|
|
44
51
|
page_size: Integer,
|
|
45
52
|
request_options: Dodopayments::RequestOptions
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type product_collection_retrieve_params =
|
|
4
|
-
{ id: String
|
|
4
|
+
{ id: String, locale: String }
|
|
5
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class ProductCollectionRetrieveParams < Dodopayments::Internal::Type::BaseModel
|
|
7
8
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
@@ -9,13 +10,19 @@ module Dodopayments
|
|
|
9
10
|
|
|
10
11
|
attr_accessor id: String
|
|
11
12
|
|
|
13
|
+
attr_reader locale: String?
|
|
14
|
+
|
|
15
|
+
def locale=: (String) -> String
|
|
16
|
+
|
|
12
17
|
def initialize: (
|
|
13
18
|
id: String,
|
|
19
|
+
?locale: String,
|
|
14
20
|
?request_options: Dodopayments::request_opts
|
|
15
21
|
) -> void
|
|
16
22
|
|
|
17
23
|
def to_hash: -> {
|
|
18
24
|
id: String,
|
|
25
|
+
locale: String,
|
|
19
26
|
request_options: Dodopayments::RequestOptions
|
|
20
27
|
}
|
|
21
28
|
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module ProductCollections
|
|
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 ProductCollections
|
|
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 ProductCollections
|
|
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
|
|
@@ -4,6 +4,7 @@ module Dodopayments
|
|
|
4
4
|
{
|
|
5
5
|
archived: bool,
|
|
6
6
|
brand_id: String,
|
|
7
|
+
locale: String,
|
|
7
8
|
page_number: Integer,
|
|
8
9
|
page_size: Integer,
|
|
9
10
|
recurring: bool
|
|
@@ -22,6 +23,10 @@ module Dodopayments
|
|
|
22
23
|
|
|
23
24
|
def brand_id=: (String) -> String
|
|
24
25
|
|
|
26
|
+
attr_reader locale: String?
|
|
27
|
+
|
|
28
|
+
def locale=: (String) -> String
|
|
29
|
+
|
|
25
30
|
attr_reader page_number: Integer?
|
|
26
31
|
|
|
27
32
|
def page_number=: (Integer) -> Integer
|
|
@@ -37,6 +42,7 @@ module Dodopayments
|
|
|
37
42
|
def initialize: (
|
|
38
43
|
?archived: bool,
|
|
39
44
|
?brand_id: String,
|
|
45
|
+
?locale: String,
|
|
40
46
|
?page_number: Integer,
|
|
41
47
|
?page_size: Integer,
|
|
42
48
|
?recurring: bool,
|
|
@@ -46,6 +52,7 @@ module Dodopayments
|
|
|
46
52
|
def to_hash: -> {
|
|
47
53
|
archived: bool,
|
|
48
54
|
brand_id: String,
|
|
55
|
+
locale: String,
|
|
49
56
|
page_number: Integer,
|
|
50
57
|
page_size: Integer,
|
|
51
58
|
recurring: bool,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type product_retrieve_params =
|
|
4
|
-
{ id: String
|
|
4
|
+
{ id: String, locale: String }
|
|
5
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class ProductRetrieveParams < Dodopayments::Internal::Type::BaseModel
|
|
7
8
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
@@ -9,13 +10,19 @@ module Dodopayments
|
|
|
9
10
|
|
|
10
11
|
attr_accessor id: String
|
|
11
12
|
|
|
13
|
+
attr_reader locale: String?
|
|
14
|
+
|
|
15
|
+
def locale=: (String) -> String
|
|
16
|
+
|
|
12
17
|
def initialize: (
|
|
13
18
|
id: String,
|
|
19
|
+
?locale: String,
|
|
14
20
|
?request_options: Dodopayments::request_opts
|
|
15
21
|
) -> void
|
|
16
22
|
|
|
17
23
|
def to_hash: -> {
|
|
18
24
|
id: String,
|
|
25
|
+
locale: String,
|
|
19
26
|
request_options: Dodopayments::RequestOptions
|
|
20
27
|
}
|
|
21
28
|
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module Products
|
|
4
|
+
type translation =
|
|
5
|
+
{
|
|
6
|
+
locale: Dodopayments::Models::locale,
|
|
7
|
+
updated_at: Time,
|
|
8
|
+
description: String?,
|
|
9
|
+
name: String?
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class Translation < Dodopayments::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor locale: Dodopayments::Models::locale
|
|
14
|
+
|
|
15
|
+
attr_accessor updated_at: Time
|
|
16
|
+
|
|
17
|
+
attr_accessor description: String?
|
|
18
|
+
|
|
19
|
+
attr_accessor name: String?
|
|
20
|
+
|
|
21
|
+
def initialize: (
|
|
22
|
+
locale: Dodopayments::Models::locale,
|
|
23
|
+
updated_at: Time,
|
|
24
|
+
?description: String?,
|
|
25
|
+
?name: String?
|
|
26
|
+
) -> void
|
|
27
|
+
|
|
28
|
+
def to_hash: -> {
|
|
29
|
+
locale: Dodopayments::Models::locale,
|
|
30
|
+
updated_at: Time,
|
|
31
|
+
description: String?,
|
|
32
|
+
name: String?
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -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?,
|