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,92 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
module Entitlements
|
|
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::Entitlements::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 activation message. Only a `license_key` entitlement has it.
|
|
28
|
+
sig { returns(T.nilable(String)) }
|
|
29
|
+
attr_accessor :activation_message
|
|
30
|
+
|
|
31
|
+
# The translated description.
|
|
32
|
+
sig { returns(T.nilable(String)) }
|
|
33
|
+
attr_accessor :description
|
|
34
|
+
|
|
35
|
+
# The translated delivery instructions. Only a `digital_files` entitlement has
|
|
36
|
+
# them.
|
|
37
|
+
sig { returns(T.nilable(String)) }
|
|
38
|
+
attr_accessor :instructions
|
|
39
|
+
|
|
40
|
+
# The translated name.
|
|
41
|
+
sig { returns(T.nilable(String)) }
|
|
42
|
+
attr_accessor :name
|
|
43
|
+
|
|
44
|
+
sig do
|
|
45
|
+
params(
|
|
46
|
+
id: String,
|
|
47
|
+
locale: Dodopayments::Locale::OrSymbol,
|
|
48
|
+
activation_message: T.nilable(String),
|
|
49
|
+
description: T.nilable(String),
|
|
50
|
+
instructions: T.nilable(String),
|
|
51
|
+
name: T.nilable(String),
|
|
52
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
53
|
+
).returns(T.attached_class)
|
|
54
|
+
end
|
|
55
|
+
def self.new(
|
|
56
|
+
id:,
|
|
57
|
+
# A locale that the checkout and the customer portal can show.
|
|
58
|
+
#
|
|
59
|
+
# The codes are a copy of the checkout locales. `GET /locales` lists them.
|
|
60
|
+
locale:,
|
|
61
|
+
# The translated activation message. Only a `license_key` entitlement has it.
|
|
62
|
+
activation_message: nil,
|
|
63
|
+
# The translated description.
|
|
64
|
+
description: nil,
|
|
65
|
+
# The translated delivery instructions. Only a `digital_files` entitlement has
|
|
66
|
+
# them.
|
|
67
|
+
instructions: nil,
|
|
68
|
+
# The translated name.
|
|
69
|
+
name: nil,
|
|
70
|
+
request_options: {}
|
|
71
|
+
)
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
sig do
|
|
75
|
+
override.returns(
|
|
76
|
+
{
|
|
77
|
+
id: String,
|
|
78
|
+
locale: Dodopayments::Locale::OrSymbol,
|
|
79
|
+
activation_message: T.nilable(String),
|
|
80
|
+
description: T.nilable(String),
|
|
81
|
+
instructions: T.nilable(String),
|
|
82
|
+
name: T.nilable(String),
|
|
83
|
+
request_options: Dodopayments::RequestOptions
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
end
|
|
87
|
+
def to_hash
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
# A locale that the checkout and the customer portal can show.
|
|
6
|
+
#
|
|
7
|
+
# The codes are a copy of the checkout locales. `GET /locales` lists them.
|
|
8
|
+
module Locale
|
|
9
|
+
extend Dodopayments::Internal::Type::Enum
|
|
10
|
+
|
|
11
|
+
TaggedSymbol = T.type_alias { T.all(Symbol, Dodopayments::Locale) }
|
|
12
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
13
|
+
|
|
14
|
+
AR = T.let(:ar, Dodopayments::Locale::TaggedSymbol)
|
|
15
|
+
CA = T.let(:ca, Dodopayments::Locale::TaggedSymbol)
|
|
16
|
+
ZH = T.let(:zh, Dodopayments::Locale::TaggedSymbol)
|
|
17
|
+
NL = T.let(:nl, Dodopayments::Locale::TaggedSymbol)
|
|
18
|
+
EN = T.let(:en, Dodopayments::Locale::TaggedSymbol)
|
|
19
|
+
FR = T.let(:fr, Dodopayments::Locale::TaggedSymbol)
|
|
20
|
+
DE = T.let(:de, Dodopayments::Locale::TaggedSymbol)
|
|
21
|
+
HE = T.let(:he, Dodopayments::Locale::TaggedSymbol)
|
|
22
|
+
ID = T.let(:id, Dodopayments::Locale::TaggedSymbol)
|
|
23
|
+
IT = T.let(:it, Dodopayments::Locale::TaggedSymbol)
|
|
24
|
+
JA = T.let(:ja, Dodopayments::Locale::TaggedSymbol)
|
|
25
|
+
KA = T.let(:ka, Dodopayments::Locale::TaggedSymbol)
|
|
26
|
+
KO = T.let(:ko, Dodopayments::Locale::TaggedSymbol)
|
|
27
|
+
MS = T.let(:ms, Dodopayments::Locale::TaggedSymbol)
|
|
28
|
+
PL = T.let(:pl, Dodopayments::Locale::TaggedSymbol)
|
|
29
|
+
PT = T.let(:pt, Dodopayments::Locale::TaggedSymbol)
|
|
30
|
+
RO = T.let(:ro, Dodopayments::Locale::TaggedSymbol)
|
|
31
|
+
RU = T.let(:ru, Dodopayments::Locale::TaggedSymbol)
|
|
32
|
+
ES = T.let(:es, Dodopayments::Locale::TaggedSymbol)
|
|
33
|
+
SV = T.let(:sv, Dodopayments::Locale::TaggedSymbol)
|
|
34
|
+
TH = T.let(:th, Dodopayments::Locale::TaggedSymbol)
|
|
35
|
+
TR = T.let(:tr, Dodopayments::Locale::TaggedSymbol)
|
|
36
|
+
|
|
37
|
+
sig { override.returns(T::Array[Dodopayments::Locale::TaggedSymbol]) }
|
|
38
|
+
def self.values
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
class LocaleInfo < Dodopayments::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Dodopayments::LocaleInfo, Dodopayments::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The code to send in the `locale` parameter.
|
|
12
|
+
sig { returns(Dodopayments::Locale::TaggedSymbol) }
|
|
13
|
+
attr_accessor :code
|
|
14
|
+
|
|
15
|
+
# The English name of the language.
|
|
16
|
+
sig { returns(String) }
|
|
17
|
+
attr_accessor :name
|
|
18
|
+
|
|
19
|
+
# The name of the language in that language.
|
|
20
|
+
sig { returns(String) }
|
|
21
|
+
attr_accessor :native_name
|
|
22
|
+
|
|
23
|
+
# A locale that the checkout and the customer portal can show.
|
|
24
|
+
sig do
|
|
25
|
+
params(
|
|
26
|
+
code: Dodopayments::Locale::OrSymbol,
|
|
27
|
+
name: String,
|
|
28
|
+
native_name: String
|
|
29
|
+
).returns(T.attached_class)
|
|
30
|
+
end
|
|
31
|
+
def self.new(
|
|
32
|
+
# The code to send in the `locale` parameter.
|
|
33
|
+
code:,
|
|
34
|
+
# The English name of the language.
|
|
35
|
+
name:,
|
|
36
|
+
# The name of the language in that language.
|
|
37
|
+
native_name:
|
|
38
|
+
)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
sig do
|
|
42
|
+
override.returns(
|
|
43
|
+
{
|
|
44
|
+
code: Dodopayments::Locale::TaggedSymbol,
|
|
45
|
+
name: String,
|
|
46
|
+
native_name: String
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
end
|
|
50
|
+
def to_hash
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -18,6 +18,18 @@ module Dodopayments
|
|
|
18
18
|
sig { params(archived: T::Boolean).void }
|
|
19
19
|
attr_writer :archived
|
|
20
20
|
|
|
21
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
22
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
23
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
24
|
+
#
|
|
25
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
26
|
+
# The base text then changes to the translated text.
|
|
27
|
+
sig { returns(T.nilable(String)) }
|
|
28
|
+
attr_reader :locale
|
|
29
|
+
|
|
30
|
+
sig { params(locale: String).void }
|
|
31
|
+
attr_writer :locale
|
|
32
|
+
|
|
21
33
|
# Page number default is 0
|
|
22
34
|
sig { returns(T.nilable(Integer)) }
|
|
23
35
|
attr_reader :page_number
|
|
@@ -35,6 +47,7 @@ module Dodopayments
|
|
|
35
47
|
sig do
|
|
36
48
|
params(
|
|
37
49
|
archived: T::Boolean,
|
|
50
|
+
locale: String,
|
|
38
51
|
page_number: Integer,
|
|
39
52
|
page_size: Integer,
|
|
40
53
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
@@ -43,6 +56,13 @@ module Dodopayments
|
|
|
43
56
|
def self.new(
|
|
44
57
|
# List archived meters
|
|
45
58
|
archived: nil,
|
|
59
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
60
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
61
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
62
|
+
#
|
|
63
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
64
|
+
# The base text then changes to the translated text.
|
|
65
|
+
locale: nil,
|
|
46
66
|
# Page number default is 0
|
|
47
67
|
page_number: nil,
|
|
48
68
|
# Page size default is 10 max is 100
|
|
@@ -55,6 +75,7 @@ module Dodopayments
|
|
|
55
75
|
override.returns(
|
|
56
76
|
{
|
|
57
77
|
archived: T::Boolean,
|
|
78
|
+
locale: String,
|
|
58
79
|
page_number: Integer,
|
|
59
80
|
page_size: Integer,
|
|
60
81
|
request_options: Dodopayments::RequestOptions
|
|
@@ -17,18 +17,45 @@ module Dodopayments
|
|
|
17
17
|
sig { returns(String) }
|
|
18
18
|
attr_accessor :id
|
|
19
19
|
|
|
20
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
21
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
22
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
23
|
+
#
|
|
24
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
25
|
+
# The base text then changes to the translated text.
|
|
26
|
+
sig { returns(T.nilable(String)) }
|
|
27
|
+
attr_reader :locale
|
|
28
|
+
|
|
29
|
+
sig { params(locale: String).void }
|
|
30
|
+
attr_writer :locale
|
|
31
|
+
|
|
20
32
|
sig do
|
|
21
33
|
params(
|
|
22
34
|
id: String,
|
|
35
|
+
locale: String,
|
|
23
36
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
24
37
|
).returns(T.attached_class)
|
|
25
38
|
end
|
|
26
|
-
def self.new(
|
|
39
|
+
def self.new(
|
|
40
|
+
id:,
|
|
41
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
42
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
43
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
44
|
+
#
|
|
45
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
46
|
+
# The base text then changes to the translated text.
|
|
47
|
+
locale: nil,
|
|
48
|
+
request_options: {}
|
|
49
|
+
)
|
|
27
50
|
end
|
|
28
51
|
|
|
29
52
|
sig do
|
|
30
53
|
override.returns(
|
|
31
|
-
{
|
|
54
|
+
{
|
|
55
|
+
id: String,
|
|
56
|
+
locale: String,
|
|
57
|
+
request_options: Dodopayments::RequestOptions
|
|
58
|
+
}
|
|
32
59
|
)
|
|
33
60
|
end
|
|
34
61
|
def to_hash
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
class MeterUpdateParams < Dodopayments::Internal::Type::BaseModel
|
|
6
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Dodopayments::MeterUpdateParams,
|
|
13
|
+
Dodopayments::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :id
|
|
19
|
+
|
|
20
|
+
# Description of the meter. Send `null` to remove the description. Omit it to keep
|
|
21
|
+
# it.
|
|
22
|
+
sig { returns(T.nilable(String)) }
|
|
23
|
+
attr_accessor :description
|
|
24
|
+
|
|
25
|
+
# Measurement unit
|
|
26
|
+
sig { returns(T.nilable(String)) }
|
|
27
|
+
attr_accessor :measurement_unit
|
|
28
|
+
|
|
29
|
+
# Name of the meter
|
|
30
|
+
sig { returns(T.nilable(String)) }
|
|
31
|
+
attr_accessor :name
|
|
32
|
+
|
|
33
|
+
sig do
|
|
34
|
+
params(
|
|
35
|
+
id: String,
|
|
36
|
+
description: T.nilable(String),
|
|
37
|
+
measurement_unit: T.nilable(String),
|
|
38
|
+
name: T.nilable(String),
|
|
39
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
40
|
+
).returns(T.attached_class)
|
|
41
|
+
end
|
|
42
|
+
def self.new(
|
|
43
|
+
id:,
|
|
44
|
+
# Description of the meter. Send `null` to remove the description. Omit it to keep
|
|
45
|
+
# it.
|
|
46
|
+
description: nil,
|
|
47
|
+
# Measurement unit
|
|
48
|
+
measurement_unit: nil,
|
|
49
|
+
# Name of the meter
|
|
50
|
+
name: nil,
|
|
51
|
+
request_options: {}
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
sig do
|
|
56
|
+
override.returns(
|
|
57
|
+
{
|
|
58
|
+
id: String,
|
|
59
|
+
description: T.nilable(String),
|
|
60
|
+
measurement_unit: T.nilable(String),
|
|
61
|
+
name: T.nilable(String),
|
|
62
|
+
request_options: Dodopayments::RequestOptions
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
end
|
|
66
|
+
def to_hash
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
module Meters
|
|
6
|
+
class TranslationDeleteParams < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Dodopayments::Meters::TranslationDeleteParams,
|
|
14
|
+
Dodopayments::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
21
|
+
# A locale that the checkout and the customer portal can show.
|
|
22
|
+
#
|
|
23
|
+
# The codes are a copy of the checkout locales. `GET /locales` lists them.
|
|
24
|
+
sig { returns(Dodopayments::Locale::OrSymbol) }
|
|
25
|
+
attr_accessor :locale
|
|
26
|
+
|
|
27
|
+
sig do
|
|
28
|
+
params(
|
|
29
|
+
id: String,
|
|
30
|
+
locale: Dodopayments::Locale::OrSymbol,
|
|
31
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
32
|
+
).returns(T.attached_class)
|
|
33
|
+
end
|
|
34
|
+
def self.new(
|
|
35
|
+
id:,
|
|
36
|
+
# A locale that the checkout and the customer portal can show.
|
|
37
|
+
#
|
|
38
|
+
# The codes are a copy of the checkout locales. `GET /locales` lists them.
|
|
39
|
+
locale:,
|
|
40
|
+
request_options: {}
|
|
41
|
+
)
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
sig do
|
|
45
|
+
override.returns(
|
|
46
|
+
{
|
|
47
|
+
id: String,
|
|
48
|
+
locale: Dodopayments::Locale::OrSymbol,
|
|
49
|
+
request_options: Dodopayments::RequestOptions
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
end
|
|
53
|
+
def to_hash
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
module Meters
|
|
6
|
+
class TranslationListParams < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Dodopayments::Meters::TranslationListParams,
|
|
14
|
+
Dodopayments::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
21
|
+
# Returns only these locales, for example `?locale=fr&locale=de`. With no value,
|
|
22
|
+
# the response has all the locales.
|
|
23
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
24
|
+
attr_reader :locale
|
|
25
|
+
|
|
26
|
+
sig { params(locale: T::Array[String]).void }
|
|
27
|
+
attr_writer :locale
|
|
28
|
+
|
|
29
|
+
sig do
|
|
30
|
+
params(
|
|
31
|
+
id: String,
|
|
32
|
+
locale: T::Array[String],
|
|
33
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
|
34
|
+
).returns(T.attached_class)
|
|
35
|
+
end
|
|
36
|
+
def self.new(
|
|
37
|
+
id:,
|
|
38
|
+
# Returns only these locales, for example `?locale=fr&locale=de`. With no value,
|
|
39
|
+
# the response has all the locales.
|
|
40
|
+
locale: nil,
|
|
41
|
+
request_options: {}
|
|
42
|
+
)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
sig do
|
|
46
|
+
override.returns(
|
|
47
|
+
{
|
|
48
|
+
id: String,
|
|
49
|
+
locale: T::Array[String],
|
|
50
|
+
request_options: Dodopayments::RequestOptions
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
def to_hash
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
module Meters
|
|
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::Meters::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,32 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
class MiscListLocalesParams < Dodopayments::Internal::Type::BaseModel
|
|
6
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Dodopayments::MiscListLocalesParams,
|
|
13
|
+
Dodopayments::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
sig do
|
|
18
|
+
params(request_options: Dodopayments::RequestOptions::OrHash).returns(
|
|
19
|
+
T.attached_class
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
def self.new(request_options: {})
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig do
|
|
26
|
+
override.returns({ request_options: Dodopayments::RequestOptions })
|
|
27
|
+
end
|
|
28
|
+
def to_hash
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -248,6 +248,22 @@ module Dodopayments
|
|
|
248
248
|
sig { returns(T.nilable(Integer)) }
|
|
249
249
|
attr_accessor :tax
|
|
250
250
|
|
|
251
|
+
# How the cardholder completed the 3DS authentication. The value is null when the
|
|
252
|
+
# processor does not report it.
|
|
253
|
+
sig { returns(T.nilable(Dodopayments::ThreeDSFlow::TaggedSymbol)) }
|
|
254
|
+
attr_accessor :three_ds_flow
|
|
255
|
+
|
|
256
|
+
# The result of the 3DS authentication, as the processor reports it. The value is
|
|
257
|
+
# null when the processor reports no 3DS data, for example when the payment did
|
|
258
|
+
# not use 3DS.
|
|
259
|
+
sig { returns(T.nilable(Dodopayments::ThreeDSStatus::TaggedSymbol)) }
|
|
260
|
+
attr_accessor :three_ds_status
|
|
261
|
+
|
|
262
|
+
# The 3DS protocol version, for example `2.2.0`. The value is null when the
|
|
263
|
+
# processor does not report it.
|
|
264
|
+
sig { returns(T.nilable(String)) }
|
|
265
|
+
attr_accessor :three_ds_version
|
|
266
|
+
|
|
251
267
|
# Timestamp when the payment was last updated
|
|
252
268
|
sig { returns(T.nilable(Time)) }
|
|
253
269
|
attr_accessor :updated_at
|
|
@@ -304,6 +320,9 @@ module Dodopayments
|
|
|
304
320
|
status: T.nilable(Dodopayments::IntentStatus::OrSymbol),
|
|
305
321
|
subscription_id: T.nilable(String),
|
|
306
322
|
tax: T.nilable(Integer),
|
|
323
|
+
three_ds_flow: T.nilable(Dodopayments::ThreeDSFlow::OrSymbol),
|
|
324
|
+
three_ds_status: T.nilable(Dodopayments::ThreeDSStatus::OrSymbol),
|
|
325
|
+
three_ds_version: T.nilable(String),
|
|
307
326
|
updated_at: T.nilable(Time)
|
|
308
327
|
).returns(T.attached_class)
|
|
309
328
|
end
|
|
@@ -444,6 +463,16 @@ module Dodopayments
|
|
|
444
463
|
# Amount of tax collected in the currency's smallest unit (e.g. cents for USD, yen
|
|
445
464
|
# for JPY, fils for KWD)
|
|
446
465
|
tax: nil,
|
|
466
|
+
# How the cardholder completed the 3DS authentication. The value is null when the
|
|
467
|
+
# processor does not report it.
|
|
468
|
+
three_ds_flow: nil,
|
|
469
|
+
# The result of the 3DS authentication, as the processor reports it. The value is
|
|
470
|
+
# null when the processor reports no 3DS data, for example when the payment did
|
|
471
|
+
# not use 3DS.
|
|
472
|
+
three_ds_status: nil,
|
|
473
|
+
# The 3DS protocol version, for example `2.2.0`. The value is null when the
|
|
474
|
+
# processor does not report it.
|
|
475
|
+
three_ds_version: nil,
|
|
447
476
|
# Timestamp when the payment was last updated
|
|
448
477
|
updated_at: nil
|
|
449
478
|
)
|
|
@@ -504,6 +533,10 @@ module Dodopayments
|
|
|
504
533
|
status: T.nilable(Dodopayments::IntentStatus::TaggedSymbol),
|
|
505
534
|
subscription_id: T.nilable(String),
|
|
506
535
|
tax: T.nilable(Integer),
|
|
536
|
+
three_ds_flow: T.nilable(Dodopayments::ThreeDSFlow::TaggedSymbol),
|
|
537
|
+
three_ds_status:
|
|
538
|
+
T.nilable(Dodopayments::ThreeDSStatus::TaggedSymbol),
|
|
539
|
+
three_ds_version: T.nilable(String),
|
|
507
540
|
updated_at: T.nilable(Time)
|
|
508
541
|
}
|
|
509
542
|
)
|