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
|
@@ -12,8 +12,25 @@ module Dodopayments
|
|
|
12
12
|
# @return [String]
|
|
13
13
|
required :id, String
|
|
14
14
|
|
|
15
|
-
# @!
|
|
15
|
+
# @!attribute locale
|
|
16
|
+
# Shows the translated name, description and unit of the catalog entities in this
|
|
17
|
+
# locale. The value must be a code from `GET /locales`, for example `fr`. A field
|
|
18
|
+
# with no translation, an unknown code, or no code shows the base text.
|
|
19
|
+
#
|
|
20
|
+
# Do not send a text from a localized response back in a create or update request.
|
|
21
|
+
# The base text then changes to the translated text.
|
|
22
|
+
#
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
optional :locale, String
|
|
25
|
+
|
|
26
|
+
# @!method initialize(id:, locale: nil, request_options: {})
|
|
27
|
+
# Some parameter documentations has been truncated, see
|
|
28
|
+
# {Dodopayments::Models::MeterRetrieveParams} for more details.
|
|
29
|
+
#
|
|
16
30
|
# @param id [String]
|
|
31
|
+
#
|
|
32
|
+
# @param locale [String] Shows the translated name, description and unit of the catalog entities in this
|
|
33
|
+
#
|
|
17
34
|
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
|
18
35
|
end
|
|
19
36
|
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
# @see Dodopayments::Resources::Meters#update
|
|
6
|
+
class MeterUpdateParams < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
15
|
+
# @!attribute description
|
|
16
|
+
# Description of the meter. Send `null` to remove the description. Omit it to keep
|
|
17
|
+
# it.
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :description, String, nil?: true
|
|
21
|
+
|
|
22
|
+
# @!attribute measurement_unit
|
|
23
|
+
# Measurement unit
|
|
24
|
+
#
|
|
25
|
+
# @return [String, nil]
|
|
26
|
+
optional :measurement_unit, String, nil?: true
|
|
27
|
+
|
|
28
|
+
# @!attribute name
|
|
29
|
+
# Name of the meter
|
|
30
|
+
#
|
|
31
|
+
# @return [String, nil]
|
|
32
|
+
optional :name, String, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!method initialize(id:, description: nil, measurement_unit: nil, name: nil, request_options: {})
|
|
35
|
+
# Some parameter documentations has been truncated, see
|
|
36
|
+
# {Dodopayments::Models::MeterUpdateParams} for more details.
|
|
37
|
+
#
|
|
38
|
+
# @param id [String]
|
|
39
|
+
#
|
|
40
|
+
# @param description [String, nil] Description of the meter. Send `null` to remove the description. Omit it to keep
|
|
41
|
+
#
|
|
42
|
+
# @param measurement_unit [String, nil] Measurement unit
|
|
43
|
+
#
|
|
44
|
+
# @param name [String, nil] Name of the meter
|
|
45
|
+
#
|
|
46
|
+
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
module Meters
|
|
6
|
+
# @see Dodopayments::Resources::Meters::Translations#delete
|
|
7
|
+
class TranslationDeleteParams < Dodopayments::Internal::Type::BaseModel
|
|
8
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute locale
|
|
17
|
+
# A locale that the checkout and the customer portal can show.
|
|
18
|
+
#
|
|
19
|
+
# The codes are a copy of the checkout locales. `GET /locales` lists them.
|
|
20
|
+
#
|
|
21
|
+
# @return [Symbol, Dodopayments::Models::Locale]
|
|
22
|
+
required :locale, enum: -> { Dodopayments::Locale }
|
|
23
|
+
|
|
24
|
+
# @!method initialize(id:, locale:, request_options: {})
|
|
25
|
+
# Some parameter documentations has been truncated, see
|
|
26
|
+
# {Dodopayments::Models::Meters::TranslationDeleteParams} for more details.
|
|
27
|
+
#
|
|
28
|
+
# @param id [String]
|
|
29
|
+
#
|
|
30
|
+
# @param locale [Symbol, Dodopayments::Models::Locale] A locale that the checkout and the customer portal can show.
|
|
31
|
+
#
|
|
32
|
+
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
module Meters
|
|
6
|
+
# @see Dodopayments::Resources::Meters::Translations#list
|
|
7
|
+
class TranslationListParams < Dodopayments::Internal::Type::BaseModel
|
|
8
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute locale
|
|
17
|
+
# Returns only these locales, for example `?locale=fr&locale=de`. With no value,
|
|
18
|
+
# the response has all the locales.
|
|
19
|
+
#
|
|
20
|
+
# @return [Array<String>, nil]
|
|
21
|
+
optional :locale, Dodopayments::Internal::Type::ArrayOf[String]
|
|
22
|
+
|
|
23
|
+
# @!method initialize(id:, locale: nil, request_options: {})
|
|
24
|
+
# Some parameter documentations has been truncated, see
|
|
25
|
+
# {Dodopayments::Models::Meters::TranslationListParams} for more details.
|
|
26
|
+
#
|
|
27
|
+
# @param id [String]
|
|
28
|
+
#
|
|
29
|
+
# @param locale [Array<String>] Returns only these locales, for example `?locale=fr&locale=de`. With no value, t
|
|
30
|
+
#
|
|
31
|
+
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
module Meters
|
|
6
|
+
# @see Dodopayments::Resources::Meters::Translations#update
|
|
7
|
+
class TranslationUpdateParams < Dodopayments::Internal::Type::BaseModel
|
|
8
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute locale
|
|
17
|
+
# A locale that the checkout and the customer portal can show.
|
|
18
|
+
#
|
|
19
|
+
# The codes are a copy of the checkout locales. `GET /locales` lists them.
|
|
20
|
+
#
|
|
21
|
+
# @return [Symbol, Dodopayments::Models::Locale]
|
|
22
|
+
required :locale, enum: -> { Dodopayments::Locale }
|
|
23
|
+
|
|
24
|
+
# @!attribute description
|
|
25
|
+
# The translated description.
|
|
26
|
+
#
|
|
27
|
+
# @return [String, nil]
|
|
28
|
+
optional :description, String, nil?: true
|
|
29
|
+
|
|
30
|
+
# @!attribute name
|
|
31
|
+
# The translated name.
|
|
32
|
+
#
|
|
33
|
+
# @return [String, nil]
|
|
34
|
+
optional :name, String, nil?: true
|
|
35
|
+
|
|
36
|
+
# @!method initialize(id:, locale:, description: nil, name: nil, request_options: {})
|
|
37
|
+
# Some parameter documentations has been truncated, see
|
|
38
|
+
# {Dodopayments::Models::Meters::TranslationUpdateParams} for more details.
|
|
39
|
+
#
|
|
40
|
+
# @param id [String]
|
|
41
|
+
#
|
|
42
|
+
# @param locale [Symbol, Dodopayments::Models::Locale] A locale that the checkout and the customer portal can show.
|
|
43
|
+
#
|
|
44
|
+
# @param description [String, nil] The translated description.
|
|
45
|
+
#
|
|
46
|
+
# @param name [String, nil] The translated name.
|
|
47
|
+
#
|
|
48
|
+
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
# @see Dodopayments::Resources::Misc#list_locales
|
|
6
|
+
class MiscListLocalesParams < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -52,6 +52,14 @@ module Dodopayments
|
|
|
52
52
|
# @return [Array<Dodopayments::Models::Dispute>]
|
|
53
53
|
required :disputes, -> { Dodopayments::Internal::Type::ArrayOf[Dodopayments::Dispute] }
|
|
54
54
|
|
|
55
|
+
# @!attribute includes_usage
|
|
56
|
+
# True when this payment also bills metered usage or credit overage. The usage is
|
|
57
|
+
# for the billing cycle before the service period, not for the service period. The
|
|
58
|
+
# value is set for each payment status. It is false when `charge_type` is null.
|
|
59
|
+
#
|
|
60
|
+
# @return [Boolean]
|
|
61
|
+
required :includes_usage, Dodopayments::Internal::Type::Boolean
|
|
62
|
+
|
|
55
63
|
# @!attribute is_multi_subscription
|
|
56
64
|
# True when one payment starts more than one subscription. Read this field to find
|
|
57
65
|
# the payment type. Do not read the length of `subscription_ids`. Do not read
|
|
@@ -105,7 +113,10 @@ module Dodopayments
|
|
|
105
113
|
# the same as `subscription_ids`. For a plan change charge, the period starts at
|
|
106
114
|
# the plan change and ends at the next billing date. The list is empty unless the
|
|
107
115
|
# payment status is `succeeded`. The list is also empty for a one-time payment, an
|
|
108
|
-
# on-demand charge, or a payment method update.
|
|
116
|
+
# on-demand charge, or a payment method update. The list is set for `new`,
|
|
117
|
+
# `renewal` and `plan_change` charges that succeeded. It can be empty for some
|
|
118
|
+
# zero-amount payments. A `renewal` with no entry for its subscription bills usage
|
|
119
|
+
# only. That payment does not extend the service period.
|
|
109
120
|
#
|
|
110
121
|
# @return [Array<Dodopayments::Models::SubscriptionServicePeriod>]
|
|
111
122
|
required :service_periods,
|
|
@@ -143,6 +154,22 @@ module Dodopayments
|
|
|
143
154
|
# @return [Integer]
|
|
144
155
|
required :total_amount, Integer
|
|
145
156
|
|
|
157
|
+
# @!attribute card_exp_month
|
|
158
|
+
# Expiry month of the card, as two digits from `01` to `12`. For Apple Pay and
|
|
159
|
+
# Google Pay, this is the expiry of the wallet token, which can differ from the
|
|
160
|
+
# expiry of the physical card.
|
|
161
|
+
#
|
|
162
|
+
# @return [String, nil]
|
|
163
|
+
optional :card_exp_month, String, nil?: true
|
|
164
|
+
|
|
165
|
+
# @!attribute card_exp_year
|
|
166
|
+
# Expiry year of the card, as four digits, for example `2029`. For Apple Pay and
|
|
167
|
+
# Google Pay, this is the expiry of the wallet token, which can differ from the
|
|
168
|
+
# expiry of the physical card.
|
|
169
|
+
#
|
|
170
|
+
# @return [String, nil]
|
|
171
|
+
optional :card_exp_year, String, nil?: true
|
|
172
|
+
|
|
146
173
|
# @!attribute card_holder_name
|
|
147
174
|
# Cardholder name
|
|
148
175
|
#
|
|
@@ -162,17 +189,27 @@ module Dodopayments
|
|
|
162
189
|
optional :card_last_four, String, nil?: true
|
|
163
190
|
|
|
164
191
|
# @!attribute card_network
|
|
165
|
-
# Card network
|
|
192
|
+
# Card network, in lowercase, for example `visa`, `mastercard` or `amex`. Older
|
|
193
|
+
# payments can carry other casing.
|
|
166
194
|
#
|
|
167
195
|
# @return [String, nil]
|
|
168
196
|
optional :card_network, String, nil?: true
|
|
169
197
|
|
|
170
198
|
# @!attribute card_type
|
|
171
|
-
# The type of card
|
|
199
|
+
# The type of card, in lowercase: `credit`, `debit` or `prepaid`. Older payments
|
|
200
|
+
# can carry other casing.
|
|
172
201
|
#
|
|
173
202
|
# @return [String, nil]
|
|
174
203
|
optional :card_type, String, nil?: true
|
|
175
204
|
|
|
205
|
+
# @!attribute charge_type
|
|
206
|
+
# The type of subscription charge that this payment is for. Refer to `ChargeType`.
|
|
207
|
+
# The value is set for each payment status, not only for `succeeded`. The value is
|
|
208
|
+
# null when this payment charges no subscription.
|
|
209
|
+
#
|
|
210
|
+
# @return [Symbol, Dodopayments::Models::ChargeType, nil]
|
|
211
|
+
optional :charge_type, enum: -> { Dodopayments::ChargeType }, nil?: true
|
|
212
|
+
|
|
176
213
|
# @!attribute checkout_session_id
|
|
177
214
|
# If payment is made using a checkout session, this field is set to the id of the
|
|
178
215
|
# session.
|
|
@@ -225,7 +262,11 @@ module Dodopayments
|
|
|
225
262
|
optional :invoice_id, String, nil?: true
|
|
226
263
|
|
|
227
264
|
# @!attribute invoice_url
|
|
228
|
-
#
|
|
265
|
+
# @deprecated Use `GET /invoices/payments/{payment_id}` with an API key.
|
|
266
|
+
#
|
|
267
|
+
# DEPRECATED: Use `GET /invoices/payments/{payment_id}` with an API key. URL to
|
|
268
|
+
# download the invoice PDF for this payment. The URL has no signed token. If the
|
|
269
|
+
# business asks for a credential on its invoice links, the URL needs an API key.
|
|
229
270
|
#
|
|
230
271
|
# @return [String, nil]
|
|
231
272
|
optional :invoice_url, String, nil?: true
|
|
@@ -298,13 +339,35 @@ module Dodopayments
|
|
|
298
339
|
# @return [Integer, nil]
|
|
299
340
|
optional :tax, Integer, nil?: true
|
|
300
341
|
|
|
342
|
+
# @!attribute three_ds_flow
|
|
343
|
+
# How the cardholder completed the 3DS authentication. The value is null when the
|
|
344
|
+
# processor does not report it.
|
|
345
|
+
#
|
|
346
|
+
# @return [Symbol, Dodopayments::Models::ThreeDSFlow, nil]
|
|
347
|
+
optional :three_ds_flow, enum: -> { Dodopayments::ThreeDSFlow }, nil?: true
|
|
348
|
+
|
|
349
|
+
# @!attribute three_ds_status
|
|
350
|
+
# The result of the 3DS authentication, as the processor reports it. The value is
|
|
351
|
+
# null when the processor reports no 3DS data, for example when the payment did
|
|
352
|
+
# not use 3DS.
|
|
353
|
+
#
|
|
354
|
+
# @return [Symbol, Dodopayments::Models::ThreeDSStatus, nil]
|
|
355
|
+
optional :three_ds_status, enum: -> { Dodopayments::ThreeDSStatus }, nil?: true
|
|
356
|
+
|
|
357
|
+
# @!attribute three_ds_version
|
|
358
|
+
# The 3DS protocol version, for example `2.2.0`. The value is null when the
|
|
359
|
+
# processor does not report it.
|
|
360
|
+
#
|
|
361
|
+
# @return [String, nil]
|
|
362
|
+
optional :three_ds_version, String, nil?: true
|
|
363
|
+
|
|
301
364
|
# @!attribute updated_at
|
|
302
365
|
# Timestamp when the payment was last updated
|
|
303
366
|
#
|
|
304
367
|
# @return [Time, nil]
|
|
305
368
|
optional :updated_at, Time, nil?: true
|
|
306
369
|
|
|
307
|
-
# @!method initialize(billing:, brand_id:, business_id:, created_at:, currency:, customer:, digital_products_delivered:, disputes:, is_multi_subscription:, is_update_payment_method:, metadata:, payment_id:, payment_provider:, refunds:, retry_attempt:, service_periods:, settlement_amount:, settlement_currency:, subscription_ids:, total_amount:, card_holder_name: nil, card_issuing_country: nil, card_last_four: nil, card_network: nil, card_type: nil, checkout_session_id: nil, custom_field_responses: nil, discount_id: nil, discounts: nil, error_code: nil, error_message: nil, invoice_id: nil, invoice_url: nil, payment_link: nil, payment_method: nil, payment_method_id: nil, payment_method_type: nil, product_cart: nil, refund_status: nil, settlement_tax: nil, status: nil, subscription_id: nil, tax: nil, updated_at: nil)
|
|
370
|
+
# @!method initialize(billing:, brand_id:, business_id:, created_at:, currency:, customer:, digital_products_delivered:, disputes:, includes_usage:, is_multi_subscription:, is_update_payment_method:, metadata:, payment_id:, payment_provider:, refunds:, retry_attempt:, service_periods:, settlement_amount:, settlement_currency:, subscription_ids:, total_amount:, card_exp_month: nil, card_exp_year: nil, card_holder_name: nil, card_issuing_country: nil, card_last_four: nil, card_network: nil, card_type: nil, charge_type: nil, checkout_session_id: nil, custom_field_responses: nil, discount_id: nil, discounts: nil, error_code: nil, error_message: nil, invoice_id: nil, invoice_url: nil, payment_link: nil, payment_method: nil, payment_method_id: nil, payment_method_type: nil, product_cart: nil, refund_status: nil, settlement_tax: nil, status: nil, subscription_id: nil, tax: nil, three_ds_flow: nil, three_ds_status: nil, three_ds_version: nil, updated_at: nil)
|
|
308
371
|
# Some parameter documentations has been truncated, see
|
|
309
372
|
# {Dodopayments::Models::Payment} for more details.
|
|
310
373
|
#
|
|
@@ -324,6 +387,8 @@ module Dodopayments
|
|
|
324
387
|
#
|
|
325
388
|
# @param disputes [Array<Dodopayments::Models::Dispute>] List of disputes associated with this payment
|
|
326
389
|
#
|
|
390
|
+
# @param includes_usage [Boolean] True when this payment also bills metered usage or credit overage. The usage is
|
|
391
|
+
#
|
|
327
392
|
# @param is_multi_subscription [Boolean] True when one payment starts more than one subscription. Read this field
|
|
328
393
|
#
|
|
329
394
|
# @param is_update_payment_method [Boolean] Whether this payment was created solely to update a subscription's
|
|
@@ -348,15 +413,21 @@ module Dodopayments
|
|
|
348
413
|
#
|
|
349
414
|
# @param total_amount [Integer] Total amount charged to the customer including tax, in the currency's smallest u
|
|
350
415
|
#
|
|
416
|
+
# @param card_exp_month [String, nil] Expiry month of the card, as two digits from `01` to `12`. For Apple Pay and
|
|
417
|
+
#
|
|
418
|
+
# @param card_exp_year [String, nil] Expiry year of the card, as four digits, for example `2029`. For Apple Pay and
|
|
419
|
+
#
|
|
351
420
|
# @param card_holder_name [String, nil] Cardholder name
|
|
352
421
|
#
|
|
353
422
|
# @param card_issuing_country [Symbol, Dodopayments::Models::CountryCode, nil] ISO2 country code of the card
|
|
354
423
|
#
|
|
355
424
|
# @param card_last_four [String, nil] The last four digits of the card
|
|
356
425
|
#
|
|
357
|
-
# @param card_network [String, nil] Card network
|
|
426
|
+
# @param card_network [String, nil] Card network, in lowercase, for example `visa`, `mastercard` or `amex`. Older pa
|
|
427
|
+
#
|
|
428
|
+
# @param card_type [String, nil] The type of card, in lowercase: `credit`, `debit` or `prepaid`. Older payments c
|
|
358
429
|
#
|
|
359
|
-
# @param
|
|
430
|
+
# @param charge_type [Symbol, Dodopayments::Models::ChargeType, nil] The type of subscription charge that this payment is for. Refer to `ChargeType`.
|
|
360
431
|
#
|
|
361
432
|
# @param checkout_session_id [String, nil] If payment is made using a checkout session,
|
|
362
433
|
#
|
|
@@ -372,7 +443,7 @@ module Dodopayments
|
|
|
372
443
|
#
|
|
373
444
|
# @param invoice_id [String, nil] Invoice ID for this payment. Uses India-specific invoice ID if available.
|
|
374
445
|
#
|
|
375
|
-
# @param invoice_url [String, nil]
|
|
446
|
+
# @param invoice_url [String, nil] DEPRECATED: Use `GET /invoices/payments/{payment_id}` with an API key.
|
|
376
447
|
#
|
|
377
448
|
# @param payment_link [String, nil] Checkout URL
|
|
378
449
|
#
|
|
@@ -394,6 +465,12 @@ module Dodopayments
|
|
|
394
465
|
#
|
|
395
466
|
# @param tax [Integer, nil] Amount of tax collected in the currency's smallest unit
|
|
396
467
|
#
|
|
468
|
+
# @param three_ds_flow [Symbol, Dodopayments::Models::ThreeDSFlow, nil] How the cardholder completed the 3DS authentication. The value is null when the
|
|
469
|
+
#
|
|
470
|
+
# @param three_ds_status [Symbol, Dodopayments::Models::ThreeDSStatus, nil] The result of the 3DS authentication, as the processor reports it. The value is
|
|
471
|
+
#
|
|
472
|
+
# @param three_ds_version [String, nil] The 3DS protocol version, for example `2.2.0`. The value is null when the proces
|
|
473
|
+
#
|
|
397
474
|
# @param updated_at [Time, nil] Timestamp when the payment was last updated
|
|
398
475
|
|
|
399
476
|
# Which processor handled this payment. `stripe` / `adyen` for BYOP routes (the
|
|
@@ -34,6 +34,14 @@ module Dodopayments
|
|
|
34
34
|
# @return [Boolean]
|
|
35
35
|
required :has_license_key, Dodopayments::Internal::Type::Boolean
|
|
36
36
|
|
|
37
|
+
# @!attribute includes_usage
|
|
38
|
+
# True when this payment also bills metered usage or credit overage. The usage is
|
|
39
|
+
# for the billing cycle before the service period, not for the service period. The
|
|
40
|
+
# value is set for each payment status. It is false when `charge_type` is null.
|
|
41
|
+
#
|
|
42
|
+
# @return [Boolean]
|
|
43
|
+
required :includes_usage, Dodopayments::Internal::Type::Boolean
|
|
44
|
+
|
|
37
45
|
# @!attribute is_multi_subscription
|
|
38
46
|
# True when one payment starts more than one subscription. Read this field to find
|
|
39
47
|
# the payment type. Do not read the length of `subscription_ids`. Do not read
|
|
@@ -73,7 +81,10 @@ module Dodopayments
|
|
|
73
81
|
# the same as `subscription_ids`. For a plan change charge, the period starts at
|
|
74
82
|
# the plan change and ends at the next billing date. The list is empty unless the
|
|
75
83
|
# payment status is `succeeded`. The list is also empty for a one-time payment, an
|
|
76
|
-
# on-demand charge, or a payment method update.
|
|
84
|
+
# on-demand charge, or a payment method update. The list is set for `new`,
|
|
85
|
+
# `renewal` and `plan_change` charges that succeeded. It can be empty for some
|
|
86
|
+
# zero-amount payments. A `renewal` with no entry for its subscription bills usage
|
|
87
|
+
# only. That payment does not extend the service period.
|
|
77
88
|
#
|
|
78
89
|
# @return [Array<Dodopayments::Models::SubscriptionServicePeriod>]
|
|
79
90
|
required :service_periods,
|
|
@@ -92,6 +103,22 @@ module Dodopayments
|
|
|
92
103
|
# @return [Integer]
|
|
93
104
|
required :total_amount, Integer
|
|
94
105
|
|
|
106
|
+
# @!attribute card_exp_month
|
|
107
|
+
# Expiry month of the card, as two digits from `01` to `12`. For Apple Pay and
|
|
108
|
+
# Google Pay, this is the expiry of the wallet token, which can differ from the
|
|
109
|
+
# expiry of the physical card.
|
|
110
|
+
#
|
|
111
|
+
# @return [String, nil]
|
|
112
|
+
optional :card_exp_month, String, nil?: true
|
|
113
|
+
|
|
114
|
+
# @!attribute card_exp_year
|
|
115
|
+
# Expiry year of the card, as four digits, for example `2029`. For Apple Pay and
|
|
116
|
+
# Google Pay, this is the expiry of the wallet token, which can differ from the
|
|
117
|
+
# expiry of the physical card.
|
|
118
|
+
#
|
|
119
|
+
# @return [String, nil]
|
|
120
|
+
optional :card_exp_year, String, nil?: true
|
|
121
|
+
|
|
95
122
|
# @!attribute card_last_four
|
|
96
123
|
# The last four digits of the card
|
|
97
124
|
#
|
|
@@ -99,11 +126,27 @@ module Dodopayments
|
|
|
99
126
|
optional :card_last_four, String, nil?: true
|
|
100
127
|
|
|
101
128
|
# @!attribute card_network
|
|
102
|
-
# Card network
|
|
129
|
+
# Card network, in lowercase, for example `visa`, `mastercard` or `amex`. Older
|
|
130
|
+
# payments can carry other casing.
|
|
103
131
|
#
|
|
104
132
|
# @return [String, nil]
|
|
105
133
|
optional :card_network, String, nil?: true
|
|
106
134
|
|
|
135
|
+
# @!attribute card_type
|
|
136
|
+
# The type of card, in lowercase: `credit`, `debit` or `prepaid`. Older payments
|
|
137
|
+
# can carry other casing.
|
|
138
|
+
#
|
|
139
|
+
# @return [String, nil]
|
|
140
|
+
optional :card_type, String, nil?: true
|
|
141
|
+
|
|
142
|
+
# @!attribute charge_type
|
|
143
|
+
# The type of subscription charge that this payment is for. Refer to `ChargeType`.
|
|
144
|
+
# The value is set for each payment status, not only for `succeeded`. The value is
|
|
145
|
+
# null when this payment charges no subscription.
|
|
146
|
+
#
|
|
147
|
+
# @return [Symbol, Dodopayments::Models::ChargeType, nil]
|
|
148
|
+
optional :charge_type, enum: -> { Dodopayments::ChargeType }, nil?: true
|
|
149
|
+
|
|
107
150
|
# @!attribute checkout_session_id
|
|
108
151
|
# The ID of the checkout session for this payment. The value is null when the
|
|
109
152
|
# payment does not use a checkout session.
|
|
@@ -124,7 +167,11 @@ module Dodopayments
|
|
|
124
167
|
optional :invoice_id, String, nil?: true
|
|
125
168
|
|
|
126
169
|
# @!attribute invoice_url
|
|
127
|
-
#
|
|
170
|
+
# @deprecated Use `GET /invoices/payments/{payment_id}` with an API key.
|
|
171
|
+
#
|
|
172
|
+
# DEPRECATED: Use `GET /invoices/payments/{payment_id}` with an API key. URL to
|
|
173
|
+
# download the invoice PDF for this payment. The URL has no signed token. If the
|
|
174
|
+
# business asks for a credential on its invoice links, the URL needs an API key.
|
|
128
175
|
#
|
|
129
176
|
# @return [String, nil]
|
|
130
177
|
optional :invoice_url, String, nil?: true
|
|
@@ -156,7 +203,29 @@ module Dodopayments
|
|
|
156
203
|
# @return [String, nil]
|
|
157
204
|
optional :subscription_id, String, nil?: true
|
|
158
205
|
|
|
159
|
-
# @!
|
|
206
|
+
# @!attribute three_ds_flow
|
|
207
|
+
# How the cardholder completed the 3DS authentication. The value is null when the
|
|
208
|
+
# processor does not report it.
|
|
209
|
+
#
|
|
210
|
+
# @return [Symbol, Dodopayments::Models::ThreeDSFlow, nil]
|
|
211
|
+
optional :three_ds_flow, enum: -> { Dodopayments::ThreeDSFlow }, nil?: true
|
|
212
|
+
|
|
213
|
+
# @!attribute three_ds_status
|
|
214
|
+
# The result of the 3DS authentication, as the processor reports it. The value is
|
|
215
|
+
# null when the processor reports no 3DS data, for example when the payment did
|
|
216
|
+
# not use 3DS.
|
|
217
|
+
#
|
|
218
|
+
# @return [Symbol, Dodopayments::Models::ThreeDSStatus, nil]
|
|
219
|
+
optional :three_ds_status, enum: -> { Dodopayments::ThreeDSStatus }, nil?: true
|
|
220
|
+
|
|
221
|
+
# @!attribute three_ds_version
|
|
222
|
+
# The 3DS protocol version, for example `2.2.0`. The value is null when the
|
|
223
|
+
# processor does not report it.
|
|
224
|
+
#
|
|
225
|
+
# @return [String, nil]
|
|
226
|
+
optional :three_ds_version, String, nil?: true
|
|
227
|
+
|
|
228
|
+
# @!method initialize(brand_id:, created_at:, currency:, customer:, digital_products_delivered:, has_license_key:, includes_usage:, is_multi_subscription:, metadata:, payment_id:, payment_provider:, retry_attempt:, service_periods:, subscription_ids:, total_amount:, card_exp_month: nil, card_exp_year: nil, card_last_four: nil, card_network: nil, card_type: nil, charge_type: nil, checkout_session_id: nil, dispute_status: nil, invoice_id: nil, invoice_url: nil, payment_method: nil, payment_method_type: nil, refund_status: nil, status: nil, subscription_id: nil, three_ds_flow: nil, three_ds_status: nil, three_ds_version: nil)
|
|
160
229
|
# Some parameter documentations has been truncated, see
|
|
161
230
|
# {Dodopayments::Models::PaymentListResponse} for more details.
|
|
162
231
|
#
|
|
@@ -172,6 +241,8 @@ module Dodopayments
|
|
|
172
241
|
#
|
|
173
242
|
# @param has_license_key [Boolean]
|
|
174
243
|
#
|
|
244
|
+
# @param includes_usage [Boolean] True when this payment also bills metered usage or credit overage. The usage is
|
|
245
|
+
#
|
|
175
246
|
# @param is_multi_subscription [Boolean] True when one payment starts more than one subscription. Read this field
|
|
176
247
|
#
|
|
177
248
|
# @param metadata [Hash{Symbol=>String, Float, Boolean}] Arbitrary key-value metadata. Values can be string, integer, number, or boolean.
|
|
@@ -188,9 +259,17 @@ module Dodopayments
|
|
|
188
259
|
#
|
|
189
260
|
# @param total_amount [Integer]
|
|
190
261
|
#
|
|
262
|
+
# @param card_exp_month [String, nil] Expiry month of the card, as two digits from `01` to `12`. For Apple Pay and
|
|
263
|
+
#
|
|
264
|
+
# @param card_exp_year [String, nil] Expiry year of the card, as four digits, for example `2029`. For Apple Pay and
|
|
265
|
+
#
|
|
191
266
|
# @param card_last_four [String, nil] The last four digits of the card
|
|
192
267
|
#
|
|
193
|
-
# @param card_network [String, nil] Card network
|
|
268
|
+
# @param card_network [String, nil] Card network, in lowercase, for example `visa`, `mastercard` or `amex`. Older pa
|
|
269
|
+
#
|
|
270
|
+
# @param card_type [String, nil] The type of card, in lowercase: `credit`, `debit` or `prepaid`. Older payments c
|
|
271
|
+
#
|
|
272
|
+
# @param charge_type [Symbol, Dodopayments::Models::ChargeType, nil] The type of subscription charge that this payment is for. Refer to `ChargeType`.
|
|
194
273
|
#
|
|
195
274
|
# @param checkout_session_id [String, nil] The ID of the checkout session for this payment. The value is null when
|
|
196
275
|
#
|
|
@@ -198,7 +277,7 @@ module Dodopayments
|
|
|
198
277
|
#
|
|
199
278
|
# @param invoice_id [String, nil] Invoice ID for this payment. Uses India-specific invoice ID if available.
|
|
200
279
|
#
|
|
201
|
-
# @param invoice_url [String, nil]
|
|
280
|
+
# @param invoice_url [String, nil] DEPRECATED: Use `GET /invoices/payments/{payment_id}` with an API key.
|
|
202
281
|
#
|
|
203
282
|
# @param payment_method [String, nil]
|
|
204
283
|
#
|
|
@@ -209,6 +288,12 @@ module Dodopayments
|
|
|
209
288
|
# @param status [Symbol, Dodopayments::Models::IntentStatus, nil]
|
|
210
289
|
#
|
|
211
290
|
# @param subscription_id [String, nil]
|
|
291
|
+
#
|
|
292
|
+
# @param three_ds_flow [Symbol, Dodopayments::Models::ThreeDSFlow, nil] How the cardholder completed the 3DS authentication. The value is null when the
|
|
293
|
+
#
|
|
294
|
+
# @param three_ds_status [Symbol, Dodopayments::Models::ThreeDSStatus, nil] The result of the 3DS authentication, as the processor reports it. The value is
|
|
295
|
+
#
|
|
296
|
+
# @param three_ds_version [String, nil] The 3DS protocol version, for example `2.2.0`. The value is null when the proces
|
|
212
297
|
|
|
213
298
|
# Which processor handled this payment. `stripe` / `adyen` for BYOP routes (the
|
|
214
299
|
# merchant's own payment connector); `dodo` for everything Dodo processed itself.
|
|
@@ -12,8 +12,21 @@ module Dodopayments
|
|
|
12
12
|
# @return [String]
|
|
13
13
|
required :payment_id, String
|
|
14
14
|
|
|
15
|
-
# @!
|
|
15
|
+
# @!attribute currency
|
|
16
|
+
# The currency of the amounts. It must be the currency that the customer paid in.
|
|
17
|
+
# Without it, the amounts are in the settlement currency.
|
|
18
|
+
#
|
|
19
|
+
# @return [Symbol, Dodopayments::Models::Currency, nil]
|
|
20
|
+
optional :currency, enum: -> { Dodopayments::Currency }
|
|
21
|
+
|
|
22
|
+
# @!method initialize(payment_id:, currency: nil, request_options: {})
|
|
23
|
+
# Some parameter documentations has been truncated, see
|
|
24
|
+
# {Dodopayments::Models::PaymentRetrieveLineItemsParams} for more details.
|
|
25
|
+
#
|
|
16
26
|
# @param payment_id [String]
|
|
27
|
+
#
|
|
28
|
+
# @param currency [Symbol, Dodopayments::Models::Currency] The currency of the amounts. It must be the currency that the customer paid in.
|
|
29
|
+
#
|
|
17
30
|
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
|
18
31
|
end
|
|
19
32
|
end
|
|
@@ -15,9 +15,18 @@ module Dodopayments
|
|
|
15
15
|
required :items,
|
|
16
16
|
-> { Dodopayments::Internal::Type::ArrayOf[Dodopayments::Models::PaymentRetrieveLineItemsResponse::Item] }
|
|
17
17
|
|
|
18
|
-
# @!
|
|
18
|
+
# @!attribute partial_refund_allowed
|
|
19
|
+
# False when the payment method does not allow a partial refund of this payment.
|
|
20
|
+
#
|
|
21
|
+
# @return [Boolean]
|
|
22
|
+
required :partial_refund_allowed, Dodopayments::Internal::Type::Boolean
|
|
23
|
+
|
|
24
|
+
# @!method initialize(currency:, items:, partial_refund_allowed:)
|
|
19
25
|
# @param currency [Symbol, Dodopayments::Models::Currency]
|
|
26
|
+
#
|
|
20
27
|
# @param items [Array<Dodopayments::Models::PaymentRetrieveLineItemsResponse::Item>]
|
|
28
|
+
#
|
|
29
|
+
# @param partial_refund_allowed [Boolean] False when the payment method does not allow a partial refund of this payment.
|
|
21
30
|
|
|
22
31
|
class Item < Dodopayments::Internal::Type::BaseModel
|
|
23
32
|
# @!attribute amount
|
|
@@ -42,7 +42,9 @@ module Dodopayments
|
|
|
42
42
|
# Amount in the payout's currency, in that currency's smallest unit (cents for
|
|
43
43
|
# USD, yen for JPY, fils for KWD). The entry is converted at the rate the payout
|
|
44
44
|
# settled at. These amounts sum to the value of the entries, which can be less
|
|
45
|
-
# than the payout: the grouped breakup reports the difference as `unattributed`.
|
|
45
|
+
# than the payout: the grouped breakup reports the difference as `unattributed`. A
|
|
46
|
+
# settlement batch payout shows the native amount of a row in the payout's
|
|
47
|
+
# currency, and 0 for a row in a different currency.
|
|
46
48
|
#
|
|
47
49
|
# @return [Integer]
|
|
48
50
|
required :payout_currency_amount, Integer
|
|
@@ -7,7 +7,8 @@ module Dodopayments
|
|
|
7
7
|
# @!attribute event_type
|
|
8
8
|
# The type of balance ledger event (e.g., "payment", "refund", "dispute",
|
|
9
9
|
# "payment_fees"), or `unattributed` for the payout amount the entries do not
|
|
10
|
-
# account for.
|
|
10
|
+
# account for. A settlement batch payout shows `carried_over` for its opening
|
|
11
|
+
# balance and the entries dated before that row.
|
|
11
12
|
#
|
|
12
13
|
# @return [String]
|
|
13
14
|
required :event_type, String
|