dodopayments 2.33.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 +16 -0
- data/README.md +1 -1
- data/lib/dodopayments/internal/type/enum.rb +11 -11
- 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/charge_type.rb +33 -0
- data/lib/dodopayments/models/checkout_session_preview_params.rb +17 -1
- data/lib/dodopayments/models/checkout_session_preview_response.rb +12 -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/invoices/payment_retrieve_params.rb +14 -1
- data/lib/dodopayments/models/invoices/payment_retrieve_payout_params.rb +14 -1
- data/lib/dodopayments/models/invoices/payment_retrieve_refund_params.rb +14 -1
- 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 +85 -8
- data/lib/dodopayments/models/payment_list_response.rb +91 -6
- 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/price.rb +56 -20
- 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/group_update_params.rb +2 -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/subscription_service_period.rb +12 -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 +22 -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/invoices/payments.rb +30 -6
- 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 +40 -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/charge_type.rbi +37 -0
- data/rbi/dodopayments/models/checkout_session_preview_params.rbi +29 -5
- data/rbi/dodopayments/models/checkout_session_preview_response.rbi +14 -0
- 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/invoices/payment_retrieve_params.rbi +17 -1
- data/rbi/dodopayments/models/invoices/payment_retrieve_payout_params.rbi +21 -2
- data/rbi/dodopayments/models/invoices/payment_retrieve_refund_params.rbi +21 -2
- 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 +103 -8
- data/rbi/dodopayments/models/payment_list_response.rbi +112 -9
- 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/price.rbi +96 -24
- 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/group_update_params.rbi +4 -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/subscription_service_period.rbi +24 -4
- 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 +22 -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/invoices/payments.rbi +12 -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/groups.rbi +2 -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/charge_type.rbs +16 -0
- data/sig/dodopayments/models/checkout_session_preview_params.rbs +13 -3
- data/sig/dodopayments/models/checkout_session_preview_response.rbs +5 -0
- 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/invoices/payment_retrieve_params.rbs +7 -1
- data/sig/dodopayments/models/invoices/payment_retrieve_payout_params.rbs +8 -1
- data/sig/dodopayments/models/invoices/payment_retrieve_refund_params.rbs +8 -1
- 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 +35 -0
- data/sig/dodopayments/models/payment_list_response.rbs +43 -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/subscription_service_period.rbs +10 -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 +22 -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/invoices/payments.rbs +3 -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 +122 -2
|
@@ -10,6 +10,7 @@ module Dodopayments
|
|
|
10
10
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
11
11
|
digital_products_delivered: bool,
|
|
12
12
|
disputes: ::Array[Dodopayments::Dispute],
|
|
13
|
+
includes_usage: bool,
|
|
13
14
|
is_multi_subscription: bool,
|
|
14
15
|
is_update_payment_method: bool,
|
|
15
16
|
metadata: Dodopayments::Models::metadata,
|
|
@@ -22,11 +23,14 @@ module Dodopayments
|
|
|
22
23
|
settlement_currency: Dodopayments::Models::currency,
|
|
23
24
|
subscription_ids: ::Array[String],
|
|
24
25
|
total_amount: Integer,
|
|
26
|
+
card_exp_month: String?,
|
|
27
|
+
card_exp_year: String?,
|
|
25
28
|
card_holder_name: String?,
|
|
26
29
|
card_issuing_country: Dodopayments::Models::country_code?,
|
|
27
30
|
card_last_four: String?,
|
|
28
31
|
card_network: String?,
|
|
29
32
|
card_type: String?,
|
|
33
|
+
charge_type: Dodopayments::Models::charge_type?,
|
|
30
34
|
checkout_session_id: String?,
|
|
31
35
|
custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
32
36
|
discount_id: String?,
|
|
@@ -45,6 +49,9 @@ module Dodopayments
|
|
|
45
49
|
status: Dodopayments::Models::intent_status?,
|
|
46
50
|
subscription_id: String?,
|
|
47
51
|
tax: Integer?,
|
|
52
|
+
three_ds_flow: Dodopayments::Models::three_ds_flow?,
|
|
53
|
+
three_ds_status: Dodopayments::Models::three_ds_status?,
|
|
54
|
+
three_ds_version: String?,
|
|
48
55
|
updated_at: Time?
|
|
49
56
|
}
|
|
50
57
|
|
|
@@ -65,6 +72,8 @@ module Dodopayments
|
|
|
65
72
|
|
|
66
73
|
attr_accessor disputes: ::Array[Dodopayments::Dispute]
|
|
67
74
|
|
|
75
|
+
attr_accessor includes_usage: bool
|
|
76
|
+
|
|
68
77
|
attr_accessor is_multi_subscription: bool
|
|
69
78
|
|
|
70
79
|
attr_accessor is_update_payment_method: bool
|
|
@@ -89,6 +98,10 @@ module Dodopayments
|
|
|
89
98
|
|
|
90
99
|
attr_accessor total_amount: Integer
|
|
91
100
|
|
|
101
|
+
attr_accessor card_exp_month: String?
|
|
102
|
+
|
|
103
|
+
attr_accessor card_exp_year: String?
|
|
104
|
+
|
|
92
105
|
attr_accessor card_holder_name: String?
|
|
93
106
|
|
|
94
107
|
attr_accessor card_issuing_country: Dodopayments::Models::country_code?
|
|
@@ -99,6 +112,8 @@ module Dodopayments
|
|
|
99
112
|
|
|
100
113
|
attr_accessor card_type: String?
|
|
101
114
|
|
|
115
|
+
attr_accessor charge_type: Dodopayments::Models::charge_type?
|
|
116
|
+
|
|
102
117
|
attr_accessor checkout_session_id: String?
|
|
103
118
|
|
|
104
119
|
attr_accessor custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?
|
|
@@ -135,6 +150,12 @@ module Dodopayments
|
|
|
135
150
|
|
|
136
151
|
attr_accessor tax: Integer?
|
|
137
152
|
|
|
153
|
+
attr_accessor three_ds_flow: Dodopayments::Models::three_ds_flow?
|
|
154
|
+
|
|
155
|
+
attr_accessor three_ds_status: Dodopayments::Models::three_ds_status?
|
|
156
|
+
|
|
157
|
+
attr_accessor three_ds_version: String?
|
|
158
|
+
|
|
138
159
|
attr_accessor updated_at: Time?
|
|
139
160
|
|
|
140
161
|
def initialize: (
|
|
@@ -146,6 +167,7 @@ module Dodopayments
|
|
|
146
167
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
147
168
|
digital_products_delivered: bool,
|
|
148
169
|
disputes: ::Array[Dodopayments::Dispute],
|
|
170
|
+
includes_usage: bool,
|
|
149
171
|
is_multi_subscription: bool,
|
|
150
172
|
is_update_payment_method: bool,
|
|
151
173
|
metadata: Dodopayments::Models::metadata,
|
|
@@ -158,11 +180,14 @@ module Dodopayments
|
|
|
158
180
|
settlement_currency: Dodopayments::Models::currency,
|
|
159
181
|
subscription_ids: ::Array[String],
|
|
160
182
|
total_amount: Integer,
|
|
183
|
+
?card_exp_month: String?,
|
|
184
|
+
?card_exp_year: String?,
|
|
161
185
|
?card_holder_name: String?,
|
|
162
186
|
?card_issuing_country: Dodopayments::Models::country_code?,
|
|
163
187
|
?card_last_four: String?,
|
|
164
188
|
?card_network: String?,
|
|
165
189
|
?card_type: String?,
|
|
190
|
+
?charge_type: Dodopayments::Models::charge_type?,
|
|
166
191
|
?checkout_session_id: String?,
|
|
167
192
|
?custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
168
193
|
?discount_id: String?,
|
|
@@ -181,6 +206,9 @@ module Dodopayments
|
|
|
181
206
|
?status: Dodopayments::Models::intent_status?,
|
|
182
207
|
?subscription_id: String?,
|
|
183
208
|
?tax: Integer?,
|
|
209
|
+
?three_ds_flow: Dodopayments::Models::three_ds_flow?,
|
|
210
|
+
?three_ds_status: Dodopayments::Models::three_ds_status?,
|
|
211
|
+
?three_ds_version: String?,
|
|
184
212
|
?updated_at: Time?
|
|
185
213
|
) -> void
|
|
186
214
|
|
|
@@ -193,6 +221,7 @@ module Dodopayments
|
|
|
193
221
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
194
222
|
digital_products_delivered: bool,
|
|
195
223
|
disputes: ::Array[Dodopayments::Dispute],
|
|
224
|
+
includes_usage: bool,
|
|
196
225
|
is_multi_subscription: bool,
|
|
197
226
|
is_update_payment_method: bool,
|
|
198
227
|
metadata: Dodopayments::Models::metadata,
|
|
@@ -205,11 +234,14 @@ module Dodopayments
|
|
|
205
234
|
settlement_currency: Dodopayments::Models::currency,
|
|
206
235
|
subscription_ids: ::Array[String],
|
|
207
236
|
total_amount: Integer,
|
|
237
|
+
card_exp_month: String?,
|
|
238
|
+
card_exp_year: String?,
|
|
208
239
|
card_holder_name: String?,
|
|
209
240
|
card_issuing_country: Dodopayments::Models::country_code?,
|
|
210
241
|
card_last_four: String?,
|
|
211
242
|
card_network: String?,
|
|
212
243
|
card_type: String?,
|
|
244
|
+
charge_type: Dodopayments::Models::charge_type?,
|
|
213
245
|
checkout_session_id: String?,
|
|
214
246
|
custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
215
247
|
discount_id: String?,
|
|
@@ -228,6 +260,9 @@ module Dodopayments
|
|
|
228
260
|
status: Dodopayments::Models::intent_status?,
|
|
229
261
|
subscription_id: String?,
|
|
230
262
|
tax: Integer?,
|
|
263
|
+
three_ds_flow: Dodopayments::Models::three_ds_flow?,
|
|
264
|
+
three_ds_status: Dodopayments::Models::three_ds_status?,
|
|
265
|
+
three_ds_version: String?,
|
|
231
266
|
updated_at: Time?
|
|
232
267
|
}
|
|
233
268
|
|
|
@@ -8,6 +8,7 @@ module Dodopayments
|
|
|
8
8
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
9
9
|
digital_products_delivered: bool,
|
|
10
10
|
has_license_key: bool,
|
|
11
|
+
includes_usage: bool,
|
|
11
12
|
is_multi_subscription: bool,
|
|
12
13
|
metadata: Dodopayments::Models::metadata,
|
|
13
14
|
payment_id: String,
|
|
@@ -16,8 +17,12 @@ module Dodopayments
|
|
|
16
17
|
service_periods: ::Array[Dodopayments::SubscriptionServicePeriod],
|
|
17
18
|
subscription_ids: ::Array[String],
|
|
18
19
|
total_amount: Integer,
|
|
20
|
+
card_exp_month: String?,
|
|
21
|
+
card_exp_year: String?,
|
|
19
22
|
card_last_four: String?,
|
|
20
23
|
card_network: String?,
|
|
24
|
+
card_type: String?,
|
|
25
|
+
charge_type: Dodopayments::Models::charge_type?,
|
|
21
26
|
checkout_session_id: String?,
|
|
22
27
|
dispute_status: Dodopayments::Models::dispute_status?,
|
|
23
28
|
invoice_id: String?,
|
|
@@ -26,7 +31,10 @@ module Dodopayments
|
|
|
26
31
|
payment_method_type: String?,
|
|
27
32
|
refund_status: Dodopayments::Models::payment_refund_status?,
|
|
28
33
|
status: Dodopayments::Models::intent_status?,
|
|
29
|
-
subscription_id: String
|
|
34
|
+
subscription_id: String?,
|
|
35
|
+
three_ds_flow: Dodopayments::Models::three_ds_flow?,
|
|
36
|
+
three_ds_status: Dodopayments::Models::three_ds_status?,
|
|
37
|
+
three_ds_version: String?
|
|
30
38
|
}
|
|
31
39
|
|
|
32
40
|
class PaymentListResponse < Dodopayments::Internal::Type::BaseModel
|
|
@@ -42,6 +50,8 @@ module Dodopayments
|
|
|
42
50
|
|
|
43
51
|
attr_accessor has_license_key: bool
|
|
44
52
|
|
|
53
|
+
attr_accessor includes_usage: bool
|
|
54
|
+
|
|
45
55
|
attr_accessor is_multi_subscription: bool
|
|
46
56
|
|
|
47
57
|
attr_accessor metadata: Dodopayments::Models::metadata
|
|
@@ -58,10 +68,18 @@ module Dodopayments
|
|
|
58
68
|
|
|
59
69
|
attr_accessor total_amount: Integer
|
|
60
70
|
|
|
71
|
+
attr_accessor card_exp_month: String?
|
|
72
|
+
|
|
73
|
+
attr_accessor card_exp_year: String?
|
|
74
|
+
|
|
61
75
|
attr_accessor card_last_four: String?
|
|
62
76
|
|
|
63
77
|
attr_accessor card_network: String?
|
|
64
78
|
|
|
79
|
+
attr_accessor card_type: String?
|
|
80
|
+
|
|
81
|
+
attr_accessor charge_type: Dodopayments::Models::charge_type?
|
|
82
|
+
|
|
65
83
|
attr_accessor checkout_session_id: String?
|
|
66
84
|
|
|
67
85
|
attr_accessor dispute_status: Dodopayments::Models::dispute_status?
|
|
@@ -80,6 +98,12 @@ module Dodopayments
|
|
|
80
98
|
|
|
81
99
|
attr_accessor subscription_id: String?
|
|
82
100
|
|
|
101
|
+
attr_accessor three_ds_flow: Dodopayments::Models::three_ds_flow?
|
|
102
|
+
|
|
103
|
+
attr_accessor three_ds_status: Dodopayments::Models::three_ds_status?
|
|
104
|
+
|
|
105
|
+
attr_accessor three_ds_version: String?
|
|
106
|
+
|
|
83
107
|
def initialize: (
|
|
84
108
|
brand_id: String,
|
|
85
109
|
created_at: Time,
|
|
@@ -87,6 +111,7 @@ module Dodopayments
|
|
|
87
111
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
88
112
|
digital_products_delivered: bool,
|
|
89
113
|
has_license_key: bool,
|
|
114
|
+
includes_usage: bool,
|
|
90
115
|
is_multi_subscription: bool,
|
|
91
116
|
metadata: Dodopayments::Models::metadata,
|
|
92
117
|
payment_id: String,
|
|
@@ -95,8 +120,12 @@ module Dodopayments
|
|
|
95
120
|
service_periods: ::Array[Dodopayments::SubscriptionServicePeriod],
|
|
96
121
|
subscription_ids: ::Array[String],
|
|
97
122
|
total_amount: Integer,
|
|
123
|
+
?card_exp_month: String?,
|
|
124
|
+
?card_exp_year: String?,
|
|
98
125
|
?card_last_four: String?,
|
|
99
126
|
?card_network: String?,
|
|
127
|
+
?card_type: String?,
|
|
128
|
+
?charge_type: Dodopayments::Models::charge_type?,
|
|
100
129
|
?checkout_session_id: String?,
|
|
101
130
|
?dispute_status: Dodopayments::Models::dispute_status?,
|
|
102
131
|
?invoice_id: String?,
|
|
@@ -105,7 +134,10 @@ module Dodopayments
|
|
|
105
134
|
?payment_method_type: String?,
|
|
106
135
|
?refund_status: Dodopayments::Models::payment_refund_status?,
|
|
107
136
|
?status: Dodopayments::Models::intent_status?,
|
|
108
|
-
?subscription_id: String
|
|
137
|
+
?subscription_id: String?,
|
|
138
|
+
?three_ds_flow: Dodopayments::Models::three_ds_flow?,
|
|
139
|
+
?three_ds_status: Dodopayments::Models::three_ds_status?,
|
|
140
|
+
?three_ds_version: String?
|
|
109
141
|
) -> void
|
|
110
142
|
|
|
111
143
|
def to_hash: -> {
|
|
@@ -115,6 +147,7 @@ module Dodopayments
|
|
|
115
147
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
116
148
|
digital_products_delivered: bool,
|
|
117
149
|
has_license_key: bool,
|
|
150
|
+
includes_usage: bool,
|
|
118
151
|
is_multi_subscription: bool,
|
|
119
152
|
metadata: Dodopayments::Models::metadata,
|
|
120
153
|
payment_id: String,
|
|
@@ -123,8 +156,12 @@ module Dodopayments
|
|
|
123
156
|
service_periods: ::Array[Dodopayments::SubscriptionServicePeriod],
|
|
124
157
|
subscription_ids: ::Array[String],
|
|
125
158
|
total_amount: Integer,
|
|
159
|
+
card_exp_month: String?,
|
|
160
|
+
card_exp_year: String?,
|
|
126
161
|
card_last_four: String?,
|
|
127
162
|
card_network: String?,
|
|
163
|
+
card_type: String?,
|
|
164
|
+
charge_type: Dodopayments::Models::charge_type?,
|
|
128
165
|
checkout_session_id: String?,
|
|
129
166
|
dispute_status: Dodopayments::Models::dispute_status?,
|
|
130
167
|
invoice_id: String?,
|
|
@@ -133,7 +170,10 @@ module Dodopayments
|
|
|
133
170
|
payment_method_type: String?,
|
|
134
171
|
refund_status: Dodopayments::Models::payment_refund_status?,
|
|
135
172
|
status: Dodopayments::Models::intent_status?,
|
|
136
|
-
subscription_id: String
|
|
173
|
+
subscription_id: String?,
|
|
174
|
+
three_ds_flow: Dodopayments::Models::three_ds_flow?,
|
|
175
|
+
three_ds_status: Dodopayments::Models::three_ds_status?,
|
|
176
|
+
three_ds_version: String?
|
|
137
177
|
}
|
|
138
178
|
|
|
139
179
|
type payment_provider = :stripe | :adyen | :dodo
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type payment_retrieve_line_items_params =
|
|
4
|
-
{ payment_id: String
|
|
4
|
+
{ payment_id: String, currency: Dodopayments::Models::currency }
|
|
5
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class PaymentRetrieveLineItemsParams < Dodopayments::Internal::Type::BaseModel
|
|
7
8
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
@@ -9,13 +10,21 @@ module Dodopayments
|
|
|
9
10
|
|
|
10
11
|
attr_accessor payment_id: String
|
|
11
12
|
|
|
13
|
+
attr_reader currency: Dodopayments::Models::currency?
|
|
14
|
+
|
|
15
|
+
def currency=: (
|
|
16
|
+
Dodopayments::Models::currency
|
|
17
|
+
) -> Dodopayments::Models::currency
|
|
18
|
+
|
|
12
19
|
def initialize: (
|
|
13
20
|
payment_id: String,
|
|
21
|
+
?currency: Dodopayments::Models::currency,
|
|
14
22
|
?request_options: Dodopayments::request_opts
|
|
15
23
|
) -> void
|
|
16
24
|
|
|
17
25
|
def to_hash: -> {
|
|
18
26
|
payment_id: String,
|
|
27
|
+
currency: Dodopayments::Models::currency,
|
|
19
28
|
request_options: Dodopayments::RequestOptions
|
|
20
29
|
}
|
|
21
30
|
end
|
|
@@ -3,7 +3,8 @@ module Dodopayments
|
|
|
3
3
|
type payment_retrieve_line_items_response =
|
|
4
4
|
{
|
|
5
5
|
currency: Dodopayments::Models::currency,
|
|
6
|
-
items: ::Array[Dodopayments::Models::PaymentRetrieveLineItemsResponse::Item]
|
|
6
|
+
items: ::Array[Dodopayments::Models::PaymentRetrieveLineItemsResponse::Item],
|
|
7
|
+
partial_refund_allowed: bool
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
class PaymentRetrieveLineItemsResponse < Dodopayments::Internal::Type::BaseModel
|
|
@@ -11,14 +12,18 @@ module Dodopayments
|
|
|
11
12
|
|
|
12
13
|
attr_accessor items: ::Array[Dodopayments::Models::PaymentRetrieveLineItemsResponse::Item]
|
|
13
14
|
|
|
15
|
+
attr_accessor partial_refund_allowed: bool
|
|
16
|
+
|
|
14
17
|
def initialize: (
|
|
15
18
|
currency: Dodopayments::Models::currency,
|
|
16
|
-
items: ::Array[Dodopayments::Models::PaymentRetrieveLineItemsResponse::Item]
|
|
19
|
+
items: ::Array[Dodopayments::Models::PaymentRetrieveLineItemsResponse::Item],
|
|
20
|
+
partial_refund_allowed: bool
|
|
17
21
|
) -> void
|
|
18
22
|
|
|
19
23
|
def to_hash: -> {
|
|
20
24
|
currency: Dodopayments::Models::currency,
|
|
21
|
-
items: ::Array[Dodopayments::Models::PaymentRetrieveLineItemsResponse::Item]
|
|
25
|
+
items: ::Array[Dodopayments::Models::PaymentRetrieveLineItemsResponse::Item],
|
|
26
|
+
partial_refund_allowed: bool
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
type item =
|
|
@@ -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
|