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
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
module Products
|
|
6
|
+
class TranslationUpdateParams < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Dodopayments::Products::TranslationUpdateParams,
|
|
14
|
+
Dodopayments::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
21
|
+
# A locale that the checkout and the customer portal can show.
|
|
22
|
+
#
|
|
23
|
+
# The codes are a copy of the checkout locales. `GET /locales` lists them.
|
|
24
|
+
sig { returns(Dodopayments::Locale::OrSymbol) }
|
|
25
|
+
attr_accessor :locale
|
|
26
|
+
|
|
27
|
+
# The translated description.
|
|
28
|
+
sig { returns(T.nilable(String)) }
|
|
29
|
+
attr_accessor :description
|
|
30
|
+
|
|
31
|
+
# The translated name.
|
|
32
|
+
sig { returns(T.nilable(String)) }
|
|
33
|
+
attr_accessor :name
|
|
34
|
+
|
|
35
|
+
sig do
|
|
36
|
+
params(
|
|
37
|
+
id: String,
|
|
38
|
+
locale: Dodopayments::Locale::OrSymbol,
|
|
39
|
+
description: T.nilable(String),
|
|
40
|
+
name: T.nilable(String),
|
|
41
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
42
|
+
).returns(T.attached_class)
|
|
43
|
+
end
|
|
44
|
+
def self.new(
|
|
45
|
+
id:,
|
|
46
|
+
# A locale that the checkout and the customer portal can show.
|
|
47
|
+
#
|
|
48
|
+
# The codes are a copy of the checkout locales. `GET /locales` lists them.
|
|
49
|
+
locale:,
|
|
50
|
+
# The translated description.
|
|
51
|
+
description: nil,
|
|
52
|
+
# The translated name.
|
|
53
|
+
name: nil,
|
|
54
|
+
request_options: {}
|
|
55
|
+
)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
sig do
|
|
59
|
+
override.returns(
|
|
60
|
+
{
|
|
61
|
+
id: String,
|
|
62
|
+
locale: Dodopayments::Locale::OrSymbol,
|
|
63
|
+
description: T.nilable(String),
|
|
64
|
+
name: T.nilable(String),
|
|
65
|
+
request_options: Dodopayments::RequestOptions
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
end
|
|
69
|
+
def to_hash
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
module Products
|
|
6
|
+
class TranslationsListResponse < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Dodopayments::Products::TranslationsListResponse,
|
|
11
|
+
Dodopayments::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
sig { returns(T::Array[Dodopayments::Products::Translation]) }
|
|
16
|
+
attr_accessor :items
|
|
17
|
+
|
|
18
|
+
# The translations of a product, an add-on, a product collection or a meter.
|
|
19
|
+
sig do
|
|
20
|
+
params(
|
|
21
|
+
items: T::Array[Dodopayments::Products::Translation::OrHash]
|
|
22
|
+
).returns(T.attached_class)
|
|
23
|
+
end
|
|
24
|
+
def self.new(items:)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
sig do
|
|
28
|
+
override.returns(
|
|
29
|
+
{ items: T::Array[Dodopayments::Products::Translation] }
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
def to_hash
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -18,6 +18,11 @@ module Dodopayments
|
|
|
18
18
|
sig { returns(String) }
|
|
19
19
|
attr_accessor :payment_id
|
|
20
20
|
|
|
21
|
+
# The currency of every `items[].amount`. It must be the currency the customer
|
|
22
|
+
# paid in. Without it, the amounts are in the settlement currency.
|
|
23
|
+
sig { returns(T.nilable(Dodopayments::Currency::OrSymbol)) }
|
|
24
|
+
attr_accessor :currency
|
|
25
|
+
|
|
21
26
|
# Partially Refund an Individual Item
|
|
22
27
|
sig do
|
|
23
28
|
returns(T.nilable(T::Array[Dodopayments::RefundCreateParams::Item]))
|
|
@@ -46,6 +51,7 @@ module Dodopayments
|
|
|
46
51
|
sig do
|
|
47
52
|
params(
|
|
48
53
|
payment_id: String,
|
|
54
|
+
currency: T.nilable(Dodopayments::Currency::OrSymbol),
|
|
49
55
|
items:
|
|
50
56
|
T.nilable(T::Array[Dodopayments::RefundCreateParams::Item::OrHash]),
|
|
51
57
|
metadata: T::Hash[Symbol, Dodopayments::MetadataItem::Variants],
|
|
@@ -56,6 +62,9 @@ module Dodopayments
|
|
|
56
62
|
def self.new(
|
|
57
63
|
# The unique identifier of the payment to be refunded.
|
|
58
64
|
payment_id:,
|
|
65
|
+
# The currency of every `items[].amount`. It must be the currency the customer
|
|
66
|
+
# paid in. Without it, the amounts are in the settlement currency.
|
|
67
|
+
currency: nil,
|
|
59
68
|
# Partially Refund an Individual Item
|
|
60
69
|
items: nil,
|
|
61
70
|
# Additional metadata associated with the refund.
|
|
@@ -70,6 +79,7 @@ module Dodopayments
|
|
|
70
79
|
override.returns(
|
|
71
80
|
{
|
|
72
81
|
payment_id: String,
|
|
82
|
+
currency: T.nilable(Dodopayments::Currency::OrSymbol),
|
|
73
83
|
items: T.nilable(T::Array[Dodopayments::RefundCreateParams::Item]),
|
|
74
84
|
metadata: T::Hash[Symbol, Dodopayments::MetadataItem::Variants],
|
|
75
85
|
reason: T.nilable(String),
|
|
@@ -49,6 +49,18 @@ module Dodopayments
|
|
|
49
49
|
sig { params(customer_id: String).void }
|
|
50
50
|
attr_writer :customer_id
|
|
51
51
|
|
|
52
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
53
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
54
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
55
|
+
#
|
|
56
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
57
|
+
# The base text then changes to the translated text.
|
|
58
|
+
sig { returns(T.nilable(String)) }
|
|
59
|
+
attr_reader :locale
|
|
60
|
+
|
|
61
|
+
sig { params(locale: String).void }
|
|
62
|
+
attr_writer :locale
|
|
63
|
+
|
|
52
64
|
# Page number default is 0
|
|
53
65
|
sig { returns(T.nilable(Integer)) }
|
|
54
66
|
attr_reader :page_number
|
|
@@ -92,6 +104,7 @@ module Dodopayments
|
|
|
92
104
|
created_at_gte: Time,
|
|
93
105
|
created_at_lte: Time,
|
|
94
106
|
customer_id: String,
|
|
107
|
+
locale: String,
|
|
95
108
|
page_number: Integer,
|
|
96
109
|
page_size: Integer,
|
|
97
110
|
product_id: String,
|
|
@@ -110,6 +123,13 @@ module Dodopayments
|
|
|
110
123
|
created_at_lte: nil,
|
|
111
124
|
# Filter by customer id
|
|
112
125
|
customer_id: nil,
|
|
126
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
127
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
128
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
129
|
+
#
|
|
130
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
131
|
+
# The base text then changes to the translated text.
|
|
132
|
+
locale: nil,
|
|
113
133
|
# Page number default is 0
|
|
114
134
|
page_number: nil,
|
|
115
135
|
# Page size default is 10 max is 100
|
|
@@ -130,6 +150,7 @@ module Dodopayments
|
|
|
130
150
|
created_at_gte: Time,
|
|
131
151
|
created_at_lte: Time,
|
|
132
152
|
customer_id: String,
|
|
153
|
+
locale: String,
|
|
133
154
|
page_number: Integer,
|
|
134
155
|
page_size: Integer,
|
|
135
156
|
product_id: String,
|
|
@@ -17,19 +17,43 @@ module Dodopayments
|
|
|
17
17
|
sig { returns(String) }
|
|
18
18
|
attr_accessor :subscription_id
|
|
19
19
|
|
|
20
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
21
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
22
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
23
|
+
#
|
|
24
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
25
|
+
# The base text then changes to the translated text.
|
|
26
|
+
sig { returns(T.nilable(String)) }
|
|
27
|
+
attr_reader :locale
|
|
28
|
+
|
|
29
|
+
sig { params(locale: String).void }
|
|
30
|
+
attr_writer :locale
|
|
31
|
+
|
|
20
32
|
sig do
|
|
21
33
|
params(
|
|
22
34
|
subscription_id: String,
|
|
35
|
+
locale: String,
|
|
23
36
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
24
37
|
).returns(T.attached_class)
|
|
25
38
|
end
|
|
26
|
-
def self.new(
|
|
39
|
+
def self.new(
|
|
40
|
+
subscription_id:,
|
|
41
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
42
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
43
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
44
|
+
#
|
|
45
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
46
|
+
# The base text then changes to the translated text.
|
|
47
|
+
locale: nil,
|
|
48
|
+
request_options: {}
|
|
49
|
+
)
|
|
27
50
|
end
|
|
28
51
|
|
|
29
52
|
sig do
|
|
30
53
|
override.returns(
|
|
31
54
|
{
|
|
32
55
|
subscription_id: String,
|
|
56
|
+
locale: String,
|
|
33
57
|
request_options: Dodopayments::RequestOptions
|
|
34
58
|
}
|
|
35
59
|
)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
# How the cardholder completed the 3DS authentication.
|
|
6
|
+
module ThreeDSFlow
|
|
7
|
+
extend Dodopayments::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
TaggedSymbol = T.type_alias { T.all(Symbol, Dodopayments::ThreeDSFlow) }
|
|
10
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
11
|
+
|
|
12
|
+
CHALLENGE = T.let(:challenge, Dodopayments::ThreeDSFlow::TaggedSymbol)
|
|
13
|
+
FRICTIONLESS =
|
|
14
|
+
T.let(:frictionless, Dodopayments::ThreeDSFlow::TaggedSymbol)
|
|
15
|
+
|
|
16
|
+
sig do
|
|
17
|
+
override.returns(T::Array[Dodopayments::ThreeDSFlow::TaggedSymbol])
|
|
18
|
+
end
|
|
19
|
+
def self.values
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
# The result of the 3DS authentication of a card payment, as the processor reports
|
|
6
|
+
# it.
|
|
7
|
+
module ThreeDSStatus
|
|
8
|
+
extend Dodopayments::Internal::Type::Enum
|
|
9
|
+
|
|
10
|
+
TaggedSymbol = T.type_alias { T.all(Symbol, Dodopayments::ThreeDSStatus) }
|
|
11
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
12
|
+
|
|
13
|
+
AUTHENTICATED =
|
|
14
|
+
T.let(:authenticated, Dodopayments::ThreeDSStatus::TaggedSymbol)
|
|
15
|
+
ATTEMPT_ACKNOWLEDGED =
|
|
16
|
+
T.let(:attempt_acknowledged, Dodopayments::ThreeDSStatus::TaggedSymbol)
|
|
17
|
+
EXEMPTED = T.let(:exempted, Dodopayments::ThreeDSStatus::TaggedSymbol)
|
|
18
|
+
FAILED = T.let(:failed, Dodopayments::ThreeDSStatus::TaggedSymbol)
|
|
19
|
+
NOT_SUPPORTED =
|
|
20
|
+
T.let(:not_supported, Dodopayments::ThreeDSStatus::TaggedSymbol)
|
|
21
|
+
PROCESSING_ERROR =
|
|
22
|
+
T.let(:processing_error, Dodopayments::ThreeDSStatus::TaggedSymbol)
|
|
23
|
+
|
|
24
|
+
sig do
|
|
25
|
+
override.returns(T::Array[Dodopayments::ThreeDSStatus::TaggedSymbol])
|
|
26
|
+
end
|
|
27
|
+
def self.values
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -135,6 +135,11 @@ module Dodopayments
|
|
|
135
135
|
# - `apply_change` (default): Apply plan change immediately regardless of payment
|
|
136
136
|
# outcome
|
|
137
137
|
#
|
|
138
|
+
# With `effective_at: next_billing_date`, the plan change payment replaces the
|
|
139
|
+
# renewal payment. If that payment fails with `prevent_change`, the plan change is
|
|
140
|
+
# cancelled. The subscription then renews on the current plan, with the usual
|
|
141
|
+
# payment retries.
|
|
142
|
+
#
|
|
138
143
|
# If not specified, uses the business-level default setting.
|
|
139
144
|
sig do
|
|
140
145
|
returns(
|
|
@@ -252,6 +257,11 @@ module Dodopayments
|
|
|
252
257
|
# - `apply_change` (default): Apply plan change immediately regardless of payment
|
|
253
258
|
# outcome
|
|
254
259
|
#
|
|
260
|
+
# With `effective_at: next_billing_date`, the plan change payment replaces the
|
|
261
|
+
# renewal payment. If that payment fails with `prevent_change`, the plan change is
|
|
262
|
+
# cancelled. The subscription then renews on the current plan, with the usual
|
|
263
|
+
# payment retries.
|
|
264
|
+
#
|
|
255
265
|
# If not specified, uses the business-level default setting.
|
|
256
266
|
on_payment_failure: nil,
|
|
257
267
|
# The URL that receives the customer after they pay the payment link. Needs
|
|
@@ -388,6 +398,11 @@ module Dodopayments
|
|
|
388
398
|
# - `apply_change` (default): Apply plan change immediately regardless of payment
|
|
389
399
|
# outcome
|
|
390
400
|
#
|
|
401
|
+
# With `effective_at: next_billing_date`, the plan change payment replaces the
|
|
402
|
+
# renewal payment. If that payment fails with `prevent_change`, the plan change is
|
|
403
|
+
# cancelled. The subscription then renews on the current plan, with the usual
|
|
404
|
+
# payment retries.
|
|
405
|
+
#
|
|
391
406
|
# If not specified, uses the business-level default setting.
|
|
392
407
|
module OnPaymentFailure
|
|
393
408
|
extend Dodopayments::Internal::Type::Enum
|
data/rbi/dodopayments/models.rbi
CHANGED
|
@@ -13,12 +13,18 @@ module Dodopayments
|
|
|
13
13
|
|
|
14
14
|
AddonCreateParams = Dodopayments::Models::AddonCreateParams
|
|
15
15
|
|
|
16
|
+
AddonDeleteParams = Dodopayments::Models::AddonDeleteParams
|
|
17
|
+
|
|
16
18
|
AddonListParams = Dodopayments::Models::AddonListParams
|
|
17
19
|
|
|
18
20
|
AddonResponse = Dodopayments::Models::AddonResponse
|
|
19
21
|
|
|
20
22
|
AddonRetrieveParams = Dodopayments::Models::AddonRetrieveParams
|
|
21
23
|
|
|
24
|
+
Addons = Dodopayments::Models::Addons
|
|
25
|
+
|
|
26
|
+
AddonUnarchiveParams = Dodopayments::Models::AddonUnarchiveParams
|
|
27
|
+
|
|
22
28
|
AddonUpdateImagesParams = Dodopayments::Models::AddonUpdateImagesParams
|
|
23
29
|
|
|
24
30
|
AddonUpdateParams = Dodopayments::Models::AddonUpdateParams
|
|
@@ -323,6 +329,10 @@ module Dodopayments
|
|
|
323
329
|
|
|
324
330
|
LicenseValidateParams = Dodopayments::Models::LicenseValidateParams
|
|
325
331
|
|
|
332
|
+
Locale = Dodopayments::Models::Locale
|
|
333
|
+
|
|
334
|
+
LocaleInfo = Dodopayments::Models::LocaleInfo
|
|
335
|
+
|
|
326
336
|
ManualRetry = Dodopayments::Models::ManualRetry
|
|
327
337
|
|
|
328
338
|
ManualRetryState = Dodopayments::Models::ManualRetryState
|
|
@@ -354,8 +364,14 @@ module Dodopayments
|
|
|
354
364
|
|
|
355
365
|
MeterRetrieveParams = Dodopayments::Models::MeterRetrieveParams
|
|
356
366
|
|
|
367
|
+
Meters = Dodopayments::Models::Meters
|
|
368
|
+
|
|
357
369
|
MeterUnarchiveParams = Dodopayments::Models::MeterUnarchiveParams
|
|
358
370
|
|
|
371
|
+
MeterUpdateParams = Dodopayments::Models::MeterUpdateParams
|
|
372
|
+
|
|
373
|
+
MiscListLocalesParams = Dodopayments::Models::MiscListLocalesParams
|
|
374
|
+
|
|
359
375
|
MiscListSupportedCountriesParams =
|
|
360
376
|
Dodopayments::Models::MiscListSupportedCountriesParams
|
|
361
377
|
|
|
@@ -577,6 +593,10 @@ module Dodopayments
|
|
|
577
593
|
|
|
578
594
|
ThemeModeConfig = Dodopayments::Models::ThemeModeConfig
|
|
579
595
|
|
|
596
|
+
ThreeDSFlow = Dodopayments::Models::ThreeDSFlow
|
|
597
|
+
|
|
598
|
+
ThreeDSStatus = Dodopayments::Models::ThreeDSStatus
|
|
599
|
+
|
|
580
600
|
TimeInterval = Dodopayments::Models::TimeInterval
|
|
581
601
|
|
|
582
602
|
UnsafeUnwrapWebhookEvent = Dodopayments::Models::UnsafeUnwrapWebhookEvent
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Resources
|
|
5
|
+
class Addons
|
|
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: Addon 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
|
+
# Addon 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
|
+
# Addon 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 Addons
|
|
6
|
+
sig { returns(Dodopayments::Resources::Addons::Translations) }
|
|
7
|
+
attr_reader :translations
|
|
8
|
+
|
|
6
9
|
sig do
|
|
7
10
|
params(
|
|
8
11
|
currency: Dodopayments::Currency::OrSymbol,
|
|
@@ -31,12 +34,20 @@ module Dodopayments
|
|
|
31
34
|
sig do
|
|
32
35
|
params(
|
|
33
36
|
id: String,
|
|
37
|
+
locale: String,
|
|
34
38
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
35
39
|
).returns(Dodopayments::AddonResponse)
|
|
36
40
|
end
|
|
37
41
|
def retrieve(
|
|
38
42
|
# Addon Id
|
|
39
43
|
id,
|
|
44
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
45
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
46
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
47
|
+
#
|
|
48
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
49
|
+
# The base text then changes to the translated text.
|
|
50
|
+
locale: nil,
|
|
40
51
|
request_options: {}
|
|
41
52
|
)
|
|
42
53
|
end
|
|
@@ -75,6 +86,8 @@ module Dodopayments
|
|
|
75
86
|
|
|
76
87
|
sig do
|
|
77
88
|
params(
|
|
89
|
+
archived: T::Boolean,
|
|
90
|
+
locale: String,
|
|
78
91
|
page_number: Integer,
|
|
79
92
|
page_size: Integer,
|
|
80
93
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
@@ -85,6 +98,15 @@ module Dodopayments
|
|
|
85
98
|
)
|
|
86
99
|
end
|
|
87
100
|
def list(
|
|
101
|
+
# List archived addons. The default is false.
|
|
102
|
+
archived: nil,
|
|
103
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
104
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
105
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
106
|
+
#
|
|
107
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
108
|
+
# The base text then changes to the translated text.
|
|
109
|
+
locale: nil,
|
|
88
110
|
# Page number default is 0
|
|
89
111
|
page_number: nil,
|
|
90
112
|
# Page size default is 10 max is 100
|
|
@@ -93,6 +115,32 @@ module Dodopayments
|
|
|
93
115
|
)
|
|
94
116
|
end
|
|
95
117
|
|
|
118
|
+
sig do
|
|
119
|
+
params(
|
|
120
|
+
id: String,
|
|
121
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
122
|
+
).void
|
|
123
|
+
end
|
|
124
|
+
def delete(
|
|
125
|
+
# Addon Id
|
|
126
|
+
id,
|
|
127
|
+
request_options: {}
|
|
128
|
+
)
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
sig do
|
|
132
|
+
params(
|
|
133
|
+
id: String,
|
|
134
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
135
|
+
).void
|
|
136
|
+
end
|
|
137
|
+
def unarchive(
|
|
138
|
+
# Addon Id
|
|
139
|
+
id,
|
|
140
|
+
request_options: {}
|
|
141
|
+
)
|
|
142
|
+
end
|
|
143
|
+
|
|
96
144
|
sig do
|
|
97
145
|
params(
|
|
98
146
|
id: String,
|