From 097df761dcd8664822866cb6761bf37f3dd05c2f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 9 Dec 2023 01:33:38 +0000 Subject: [PATCH] Update services based on v709 of Stripe OpenApi SDK Reference: https://github.com/stripe/openapi/releases/tag/v709 --- .latest-tag-stripe-openapi-sdk | 2 +- lib/generated/account.ex | 17 +- lib/generated/checkout__session.ex | 29 ++- lib/generated/payment_intent.ex | 96 +++---- lib/generated/payment_link.ex | 22 +- lib/generated/payment_method_configuration.ex | 12 +- lib/generated/setup_intent.ex | 18 +- lib/generated/token.ex | 6 +- priv/openapi/spec3.sdk.json | 234 ++++++++++++++++-- 9 files changed, 312 insertions(+), 124 deletions(-) diff --git a/.latest-tag-stripe-openapi-sdk b/.latest-tag-stripe-openapi-sdk index 2abbf03e..bdf6eb52 100644 --- a/.latest-tag-stripe-openapi-sdk +++ b/.latest-tag-stripe-openapi-sdk @@ -1 +1 @@ -v706 +v709 diff --git a/lib/generated/account.ex b/lib/generated/account.ex index 191ecd5c..3425fd5c 100644 --- a/lib/generated/account.ex +++ b/lib/generated/account.ex @@ -66,7 +66,7 @@ defmodule Stripe.Account do ) ( - @typedoc "The individual's primary address." + @typedoc "The company's primary address." @type address :: %{ optional(:city) => binary, optional(:country) => binary, @@ -91,7 +91,7 @@ defmodule Stripe.Account do ) ( - @typedoc "The Kanji variation of the the individual's primary address (Japan only)." + @typedoc "The Kanji variation of the company's primary address (Japan only)." @type address_kanji :: %{ optional(:city) => binary, optional(:country) => binary, @@ -222,13 +222,8 @@ defmodule Stripe.Account do ) ( - @typedoc "Settings specific to card charging on the account." - @type card_payments :: %{ - optional(:decline_on) => decline_on, - optional(:statement_descriptor_prefix) => binary, - optional(:statement_descriptor_prefix_kana) => binary | binary, - optional(:statement_descriptor_prefix_kanji) => binary | binary - } + @typedoc "The card_payments capability." + @type card_payments :: %{optional(:requested) => boolean} ) ( @@ -338,7 +333,7 @@ defmodule Stripe.Account do ) ( - @typedoc "A document verifying the business." + @typedoc "An identifying document, either a passport or local ID card." @type document :: %{optional(:back) => binary, optional(:front) => binary} ) @@ -583,7 +578,7 @@ defmodule Stripe.Account do ) ( - @typedoc "Details on the account's acceptance of the Stripe Treasury Services Agreement." + @typedoc "Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](https://stripe.com/docs/issuing/connect/tos_acceptance)." @type tos_acceptance :: %{ optional(:date) => integer, optional(:ip) => binary, diff --git a/lib/generated/checkout__session.ex b/lib/generated/checkout__session.ex index 2c576d8f..465f49ad 100644 --- a/lib/generated/checkout__session.ex +++ b/lib/generated/checkout__session.ex @@ -160,6 +160,11 @@ defmodule Stripe.Checkout.Session do @type after_expiration :: %{optional(:recovery) => recovery} ) + ( + @typedoc nil + @type after_submit :: %{optional(:message) => binary} + ) + ( @typedoc "contains details about the Afterpay Clearpay payment method options." @type afterpay_clearpay :: %{optional(:setup_future_usage) => :none} @@ -231,6 +236,7 @@ defmodule Stripe.Checkout.Session do ( @typedoc "Configure fields for the Checkout Session to gather active consent from customers." @type consent_collection :: %{ + optional(:payment_method_reuse_agreement) => payment_method_reuse_agreement, optional(:promotions) => :auto | :none, optional(:terms_of_service) => :none | :required } @@ -248,20 +254,13 @@ defmodule Stripe.Checkout.Session do ( @typedoc nil - @type custom_fields :: %{ - optional(:dropdown) => dropdown, - optional(:key) => binary, - optional(:label) => label, - optional(:numeric) => numeric, - optional(:optional) => boolean, - optional(:text) => text, - optional(:type) => :dropdown | :numeric | :text - } + @type custom_fields :: %{optional(:name) => binary, optional(:value) => binary} ) ( @typedoc "Display additional text for your customers using custom text." @type custom_text :: %{ + optional(:after_submit) => after_submit | binary, optional(:shipping_address) => shipping_address | binary, optional(:submit) => submit | binary, optional(:terms_of_service_acceptance) => terms_of_service_acceptance | binary @@ -527,6 +526,11 @@ defmodule Stripe.Checkout.Session do } ) + ( + @typedoc "Determines the display of payment method reuse agreement text in the UI. If set to `hidden`, it will hide legal text related to the reuse of a payment method." + @type payment_method_reuse_agreement :: %{optional(:position) => :auto | :hidden} + ) + ( @typedoc "contains details about the PayNow payment method options." @type paynow :: %{optional(:setup_future_usage) => :none} @@ -966,8 +970,11 @@ defmodule Stripe.Checkout.Session do ) ( - @typedoc "The parameters used to automatically create a Transfer when the payment succeeds.\nFor more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts)." - @type transfer_data :: %{optional(:amount) => integer, optional(:destination) => binary} + @typedoc "If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges." + @type transfer_data :: %{ + optional(:amount_percent) => number, + optional(:destination) => binary + } ) ( diff --git a/lib/generated/payment_intent.ex b/lib/generated/payment_intent.ex index fecb1506..b25ba0e1 100644 --- a/lib/generated/payment_intent.ex +++ b/lib/generated/payment_intent.ex @@ -101,7 +101,7 @@ defmodule Stripe.PaymentIntent do ) ( - @typedoc nil + @typedoc "Shipping address." @type address :: %{ optional(:city) => binary, optional(:country) => binary, @@ -136,8 +136,8 @@ defmodule Stripe.PaymentIntent do ) ( - @typedoc nil - @type au_becs_debit :: %{optional(:setup_future_usage) => :none | :off_session | :on_session} + @typedoc "If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account." + @type au_becs_debit :: %{optional(:account_number) => binary, optional(:bsb_number) => binary} ) ( @@ -149,8 +149,8 @@ defmodule Stripe.PaymentIntent do ) ( - @typedoc nil - @type bacs_debit :: %{optional(:setup_future_usage) => :none | :off_session | :on_session} + @typedoc "If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account." + @type bacs_debit :: %{optional(:account_number) => binary, optional(:sort_code) => binary} ) ( @@ -295,38 +295,8 @@ defmodule Stripe.PaymentIntent do ) ( - @typedoc "If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method." - @type eps :: %{ - optional(:bank) => - :arzte_und_apotheker_bank - | :austrian_anadi_bank_ag - | :bank_austria - | :bankhaus_carl_spangler - | :bankhaus_schelhammer_und_schattera_ag - | :bawag_psk_ag - | :bks_bank_ag - | :brull_kallmus_bank_ag - | :btv_vier_lander_bank - | :capital_bank_grawe_gruppe_ag - | :deutsche_bank_ag - | :dolomitenbank - | :easybank_ag - | :erste_bank_und_sparkassen - | :hypo_alpeadriabank_international_ag - | :hypo_bank_burgenland_aktiengesellschaft - | :hypo_noe_lb_fur_niederosterreich_u_wien - | :hypo_oberosterreich_salzburg_steiermark - | :hypo_tirol_bank_ag - | :hypo_vorarlberg_bank_ag - | :marchfelder_bank - | :oberbank_ag - | :raiffeisen_bankengruppe_osterreich - | :schoellerbank_ag - | :sparda_bank_wien - | :volksbank_gruppe - | :volkskreditbank_ag - | :vr_bank_braunau - } + @typedoc nil + @type eps :: %{optional(:setup_future_usage) => :none} ) ( @@ -345,8 +315,33 @@ defmodule Stripe.PaymentIntent do ) ( - @typedoc nil - @type fpx :: %{optional(:setup_future_usage) => :none} + @typedoc "If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method." + @type fpx :: %{ + optional(:account_holder_type) => :company | :individual, + optional(:bank) => + :affin_bank + | :agrobank + | :alliance_bank + | :ambank + | :bank_islam + | :bank_muamalat + | :bank_of_china + | :bank_rakyat + | :bsn + | :cimb + | :deutsche_bank + | :hong_leong_bank + | :hsbc + | :kfh + | :maybank2e + | :maybank2u + | :ocbc + | :pb_enterprise + | :public_bank + | :rhb + | :standard_chartered + | :uob + } ) ( @@ -360,8 +355,25 @@ defmodule Stripe.PaymentIntent do ) ( - @typedoc nil - @type ideal :: %{optional(:setup_future_usage) => :none | :off_session} + @typedoc "If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method." + @type ideal :: %{ + optional(:bank) => + :abn_amro + | :asn_bank + | :bunq + | :handelsbanken + | :ing + | :knab + | :moneyou + | :n26 + | :rabobank + | :regiobank + | :revolut + | :sns_bank + | :triodos_bank + | :van_lanschot + | :yoursafe + } ) ( @@ -662,7 +674,7 @@ defmodule Stripe.PaymentIntent do ) ( - @typedoc "Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information." + @typedoc "Options to configure Radar. Learn more about [Radar Sessions](https://stripe.com/docs/radar/radar-session)." @type radar_options :: %{optional(:session) => binary} ) diff --git a/lib/generated/payment_link.ex b/lib/generated/payment_link.ex index 96425059..fb0f2e3b 100644 --- a/lib/generated/payment_link.ex +++ b/lib/generated/payment_link.ex @@ -95,6 +95,11 @@ defmodule Stripe.PaymentLink do } ) + ( + @typedoc nil + @type after_submit :: %{optional(:message) => binary} + ) + ( @typedoc "Configuration for automatic tax collection." @type automatic_tax :: %{optional(:enabled) => boolean} @@ -108,6 +113,7 @@ defmodule Stripe.PaymentLink do ( @typedoc "Configure fields to gather active consent from customers." @type consent_collection :: %{ + optional(:payment_method_reuse_agreement) => payment_method_reuse_agreement, optional(:promotions) => :auto | :none, optional(:terms_of_service) => :none | :required } @@ -115,20 +121,13 @@ defmodule Stripe.PaymentLink do ( @typedoc nil - @type custom_fields :: %{ - optional(:dropdown) => dropdown, - optional(:key) => binary, - optional(:label) => label, - optional(:numeric) => numeric, - optional(:optional) => boolean, - optional(:text) => text, - optional(:type) => :dropdown | :numeric | :text - } + @type custom_fields :: %{optional(:name) => binary, optional(:value) => binary} ) ( @typedoc "Display additional text for your customers using custom text." @type custom_text :: %{ + optional(:after_submit) => after_submit | binary, optional(:shipping_address) => shipping_address | binary, optional(:submit) => submit | binary, optional(:terms_of_service_acceptance) => terms_of_service_acceptance | binary @@ -209,6 +208,11 @@ defmodule Stripe.PaymentLink do } ) + ( + @typedoc "Determines the display of payment method reuse agreement text in the UI. If set to `hidden`, it will hide legal text related to the reuse of a payment method." + @type payment_method_reuse_agreement :: %{optional(:position) => :auto | :hidden} + ) + ( @typedoc "Controls phone number collection settings during checkout.\n\nWe recommend that you review your privacy policy and check with your legal contacts." @type phone_number_collection :: %{optional(:enabled) => boolean} diff --git a/lib/generated/payment_method_configuration.ex b/lib/generated/payment_method_configuration.ex index 6f1dbb7e..d986220f 100644 --- a/lib/generated/payment_method_configuration.ex +++ b/lib/generated/payment_method_configuration.ex @@ -21,7 +21,6 @@ defmodule Stripe.PaymentMethodConfiguration do :sofort, :wechat_pay, :blik, - :netbanking, :konbini, :object, :jcb, @@ -29,17 +28,13 @@ defmodule Stripe.PaymentMethodConfiguration do :paypal, :application, :us_bank_account, - :pay_by_bank, :oxxo, :cashapp, :promptpay, :link, :active, - :multibanco, :card, - :upi, :ideal, - :id_bank_transfer, :giropay, :alipay, :is_default, @@ -51,7 +46,7 @@ defmodule Stripe.PaymentMethodConfiguration do :fpx ] - @typedoc "The `payment_method_configuration` type.\n\n * `acss_debit` \n * `active` Whether the configuration can be used for new payments.\n * `affirm` \n * `afterpay_clearpay` \n * `alipay` \n * `apple_pay` \n * `application` For child configs, the Connect application associated with the configuration.\n * `au_becs_debit` \n * `bacs_debit` \n * `bancontact` \n * `blik` \n * `boleto` \n * `card` \n * `cartes_bancaires` \n * `cashapp` \n * `eps` \n * `fpx` \n * `giropay` \n * `google_pay` \n * `grabpay` \n * `id` Unique identifier for the object.\n * `id_bank_transfer` \n * `ideal` \n * `is_default` The default configuration is used whenever a payment method configuration is not specified.\n * `jcb` \n * `klarna` \n * `konbini` \n * `link` \n * `livemode` Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.\n * `multibanco` \n * `name` The configuration's name.\n * `netbanking` \n * `object` String representing the object's type. Objects of the same type share the same value.\n * `oxxo` \n * `p24` \n * `parent` For child configs, the configuration's parent configuration.\n * `pay_by_bank` \n * `paynow` \n * `paypal` \n * `promptpay` \n * `sepa_debit` \n * `sofort` \n * `upi` \n * `us_bank_account` \n * `wechat_pay` \n" + @typedoc "The `payment_method_configuration` type.\n\n * `acss_debit` \n * `active` Whether the configuration can be used for new payments.\n * `affirm` \n * `afterpay_clearpay` \n * `alipay` \n * `apple_pay` \n * `application` For child configs, the Connect application associated with the configuration.\n * `au_becs_debit` \n * `bacs_debit` \n * `bancontact` \n * `blik` \n * `boleto` \n * `card` \n * `cartes_bancaires` \n * `cashapp` \n * `eps` \n * `fpx` \n * `giropay` \n * `google_pay` \n * `grabpay` \n * `id` Unique identifier for the object.\n * `ideal` \n * `is_default` The default configuration is used whenever a payment method configuration is not specified.\n * `jcb` \n * `klarna` \n * `konbini` \n * `link` \n * `livemode` Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.\n * `name` The configuration's name.\n * `object` String representing the object's type. Objects of the same type share the same value.\n * `oxxo` \n * `p24` \n * `parent` For child configs, the configuration's parent configuration.\n * `paynow` \n * `paypal` \n * `promptpay` \n * `sepa_debit` \n * `sofort` \n * `us_bank_account` \n * `wechat_pay` \n" @type t :: %__MODULE__{ acss_debit: term, active: boolean, @@ -74,7 +69,6 @@ defmodule Stripe.PaymentMethodConfiguration do google_pay: term, grabpay: term, id: binary, - id_bank_transfer: term, ideal: term, is_default: boolean, jcb: term, @@ -82,20 +76,16 @@ defmodule Stripe.PaymentMethodConfiguration do konbini: term, link: term, livemode: boolean, - multibanco: term, name: binary, - netbanking: term, object: binary, oxxo: term, p24: term, parent: binary | nil, - pay_by_bank: term, paynow: term, paypal: term, promptpay: term, sepa_debit: term, sofort: term, - upi: term, us_bank_account: term, wechat_pay: term } diff --git a/lib/generated/setup_intent.ex b/lib/generated/setup_intent.ex index bdf4df35..5d3b743f 100644 --- a/lib/generated/setup_intent.ex +++ b/lib/generated/setup_intent.ex @@ -62,11 +62,11 @@ defmodule Stripe.SetupIntent do ) ( - @typedoc "If this is a `acss_debit` SetupIntent, this sub-hash contains details about the ACSS Debit payment method options." + @typedoc "If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method." @type acss_debit :: %{ - optional(:currency) => :cad | :usd, - optional(:mandate_options) => mandate_options, - optional(:verification_method) => :automatic | :instant | :microdeposits + optional(:account_number) => binary, + optional(:institution_number) => binary, + optional(:transit_number) => binary } ) @@ -469,13 +469,11 @@ defmodule Stripe.SetupIntent do ) ( - @typedoc "If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method." + @typedoc "If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options." @type us_bank_account :: %{ - optional(:account_holder_type) => :company | :individual, - optional(:account_number) => binary, - optional(:account_type) => :checking | :savings, - optional(:financial_connections_account) => binary, - optional(:routing_number) => binary + optional(:financial_connections) => financial_connections, + optional(:networks) => networks, + optional(:verification_method) => :automatic | :instant | :microdeposits } ) diff --git a/lib/generated/token.ex b/lib/generated/token.ex index 592d2b85..8e3b4303 100644 --- a/lib/generated/token.ex +++ b/lib/generated/token.ex @@ -40,7 +40,7 @@ defmodule Stripe.Token do ) ( - @typedoc "The individual's primary address." + @typedoc "The person's address." @type address :: %{ optional(:city) => binary, optional(:country) => binary, @@ -65,7 +65,7 @@ defmodule Stripe.Token do ) ( - @typedoc "The Kanji variation of the the individual's primary address (Japan only)." + @typedoc "The Kanji variation of the company's primary address (Japan only)." @type address_kanji :: %{ optional(:city) => binary, optional(:country) => binary, @@ -176,7 +176,7 @@ defmodule Stripe.Token do ) ( - @typedoc "A document verifying the business." + @typedoc "An identifying document, either a passport or local ID card." @type document :: %{optional(:back) => binary, optional(:front) => binary} ) diff --git a/priv/openapi/spec3.sdk.json b/priv/openapi/spec3.sdk.json index 0edaf32b..4439de65 100644 --- a/priv/openapi/spec3.sdk.json +++ b/priv/openapi/spec3.sdk.json @@ -29706,6 +29706,15 @@ "payment_links_resource_consent_collection": { "description": "", "properties": { + "payment_method_reuse_agreement": { + "anyOf": [ + { + "$ref": "#/components/schemas/payment_links_resource_payment_method_reuse_agreement" + } + ], + "description": "Settings related to the payment method reuse text shown in the Checkout UI.", + "nullable": true + }, "promotions": { "description": "If set to `auto`, enables the collection of customer consent for promotional communications.", "enum": [ @@ -29726,12 +29735,15 @@ } }, "required": [ + "payment_method_reuse_agreement", "promotions", "terms_of_service" ], "title": "PaymentLinksResourceConsentCollection", "type": "object", - "x-expandableFields": [], + "x-expandableFields": [ + "payment_method_reuse_agreement" + ], "x-stripeResource": { "class_name": "ConsentCollection", "in_package": "" @@ -29924,6 +29936,15 @@ "payment_links_resource_custom_text": { "description": "", "properties": { + "after_submit": { + "anyOf": [ + { + "$ref": "#/components/schemas/payment_links_resource_custom_text_position" + } + ], + "description": "Custom text that should be displayed after the payment confirmation button.", + "nullable": true + }, "shipping_address": { "anyOf": [ { @@ -29953,6 +29974,7 @@ } }, "required": [ + "after_submit", "shipping_address", "submit", "terms_of_service_acceptance" @@ -29960,6 +29982,7 @@ "title": "PaymentLinksResourceCustomText", "type": "object", "x-expandableFields": [ + "after_submit", "shipping_address", "submit", "terms_of_service_acceptance" @@ -30183,6 +30206,29 @@ "in_package": "" } }, + "payment_links_resource_payment_method_reuse_agreement": { + "description": "", + "properties": { + "position": { + "description": "Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's defaults will be used.\n\nWhen set to `hidden`, the payment method reuse agreement text will always be hidden in the UI.", + "enum": [ + "auto", + "hidden" + ], + "type": "string" + } + }, + "required": [ + "position" + ], + "title": "PaymentLinksResourcePaymentMethodReuseAgreement", + "type": "object", + "x-expandableFields": [], + "x-stripeResource": { + "class_name": "PaymentMethodReuseAgreement", + "in_package": "" + } + }, "payment_links_resource_phone_number_collection": { "description": "", "properties": { @@ -31889,9 +31935,6 @@ "maxLength": 5000, "type": "string" }, - "id_bank_transfer": { - "$ref": "#/components/schemas/payment_method_config_resource_payment_method_properties" - }, "ideal": { "$ref": "#/components/schemas/payment_method_config_resource_payment_method_properties" }, @@ -31915,17 +31958,11 @@ "description": "Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.", "type": "boolean" }, - "multibanco": { - "$ref": "#/components/schemas/payment_method_config_resource_payment_method_properties" - }, "name": { "description": "The configuration's name.", "maxLength": 5000, "type": "string" }, - "netbanking": { - "$ref": "#/components/schemas/payment_method_config_resource_payment_method_properties" - }, "object": { "description": "String representing the object's type. Objects of the same type share the same value.", "enum": [ @@ -31945,9 +31982,6 @@ "nullable": true, "type": "string" }, - "pay_by_bank": { - "$ref": "#/components/schemas/payment_method_config_resource_payment_method_properties" - }, "paynow": { "$ref": "#/components/schemas/payment_method_config_resource_payment_method_properties" }, @@ -31963,9 +31997,6 @@ "sofort": { "$ref": "#/components/schemas/payment_method_config_resource_payment_method_properties" }, - "upi": { - "$ref": "#/components/schemas/payment_method_config_resource_payment_method_properties" - }, "us_bank_account": { "$ref": "#/components/schemas/payment_method_config_resource_payment_method_properties" }, @@ -32004,23 +32035,18 @@ "giropay", "google_pay", "grabpay", - "id_bank_transfer", "ideal", "jcb", "klarna", "konbini", "link", - "multibanco", - "netbanking", "oxxo", "p24", - "pay_by_bank", "paynow", "paypal", "promptpay", "sepa_debit", "sofort", - "upi", "us_bank_account", "wechat_pay" ], @@ -36617,6 +36643,15 @@ "payment_pages_checkout_session_consent_collection": { "description": "", "properties": { + "payment_method_reuse_agreement": { + "anyOf": [ + { + "$ref": "#/components/schemas/payment_pages_checkout_session_payment_method_reuse_agreement" + } + ], + "description": "If set to `hidden`, it will hide legal text related to the reuse of a payment method.", + "nullable": true + }, "promotions": { "description": "If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout\nSession will determine whether to display an option to opt into promotional communication\nfrom the merchant depending on the customer's locale. Only available to US merchants.", "enum": [ @@ -36637,12 +36672,15 @@ } }, "required": [ + "payment_method_reuse_agreement", "promotions", "terms_of_service" ], "title": "PaymentPagesCheckoutSessionConsentCollection", "type": "object", - "x-expandableFields": [], + "x-expandableFields": [ + "payment_method_reuse_agreement" + ], "x-stripeResource": { "class_name": "ConsentCollection", "in_package": "" @@ -36892,6 +36930,15 @@ "payment_pages_checkout_session_custom_text": { "description": "", "properties": { + "after_submit": { + "anyOf": [ + { + "$ref": "#/components/schemas/payment_pages_checkout_session_custom_text_position" + } + ], + "description": "Custom text that should be displayed after the payment confirmation button.", + "nullable": true + }, "shipping_address": { "anyOf": [ { @@ -36921,6 +36968,7 @@ } }, "required": [ + "after_submit", "shipping_address", "submit", "terms_of_service_acceptance" @@ -36928,6 +36976,7 @@ "title": "PaymentPagesCheckoutSessionCustomText", "type": "object", "x-expandableFields": [ + "after_submit", "shipping_address", "submit", "terms_of_service_acceptance" @@ -37141,6 +37190,29 @@ "in_package": "" } }, + "payment_pages_checkout_session_payment_method_reuse_agreement": { + "description": "", + "properties": { + "position": { + "description": "Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's defaults will be used.\n\nWhen set to `hidden`, the payment method reuse agreement text will always be hidden in the UI.", + "enum": [ + "auto", + "hidden" + ], + "type": "string" + } + }, + "required": [ + "position" + ], + "title": "PaymentPagesCheckoutSessionPaymentMethodReuseAgreement", + "type": "object", + "x-expandableFields": [], + "x-stripeResource": { + "class_name": "PaymentMethodReuseAgreement", + "in_package": "" + } + }, "payment_pages_checkout_session_phone_number_collection": { "description": "", "properties": { @@ -45105,12 +45177,11 @@ "description": "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.", "enum": [ "any", - "automatic", - "challenge", - "challenge_only" + "automatic" ], "nullable": true, - "type": "string" + "type": "string", + "x-stripeBypassValidation": true } }, "required": [ @@ -69751,6 +69822,24 @@ "consent_collection": { "description": "Configure fields for the Checkout Session to gather active consent from customers.", "properties": { + "payment_method_reuse_agreement": { + "description": "Determines the display of payment method reuse agreement text in the UI. If set to `hidden`, it will hide legal text related to the reuse of a payment method.", + "properties": { + "position": { + "description": "Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's\ndefaults will be used. When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI.", + "enum": [ + "auto", + "hidden" + ], + "type": "string" + } + }, + "required": [ + "position" + ], + "title": "payment_method_reuse_agreement_params", + "type": "object" + }, "promotions": { "description": "If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout\nSession will determine whether to display an option to opt into promotional communication\nfrom the merchant depending on the customer's locale. Only available to US merchants.", "enum": [ @@ -69898,6 +69987,31 @@ "custom_text": { "description": "Display additional text for your customers using custom text.", "properties": { + "after_submit": { + "anyOf": [ + { + "properties": { + "message": { + "description": "Text may be up to 1200 characters in length.", + "maxLength": 1200, + "type": "string" + } + }, + "required": [ + "message" + ], + "title": "custom_text_position_param", + "type": "object" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ], + "description": "Custom text that should be displayed after the payment confirmation button." + }, "shipping_address": { "anyOf": [ { @@ -106457,6 +106571,24 @@ "consent_collection": { "description": "Configure fields to gather active consent from customers.", "properties": { + "payment_method_reuse_agreement": { + "description": "Determines the display of payment method reuse agreement text in the UI. If set to `hidden`, it will hide legal text related to the reuse of a payment method.", + "properties": { + "position": { + "description": "Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's\ndefaults will be used. When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI.", + "enum": [ + "auto", + "hidden" + ], + "type": "string" + } + }, + "required": [ + "position" + ], + "title": "payment_method_reuse_agreement_params", + "type": "object" + }, "promotions": { "description": "If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout\nSession will determine whether to display an option to opt into promotional communication\nfrom the merchant depending on the customer's locale. Only available to US merchants.", "enum": [ @@ -106604,6 +106736,31 @@ "custom_text": { "description": "Display additional text for your customers using custom text.", "properties": { + "after_submit": { + "anyOf": [ + { + "properties": { + "message": { + "description": "Text may be up to 1200 characters in length.", + "maxLength": 1200, + "type": "string" + } + }, + "required": [ + "message" + ], + "title": "custom_text_position_param", + "type": "object" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ], + "description": "Custom text that should be displayed after the payment confirmation button." + }, "shipping_address": { "anyOf": [ { @@ -107774,6 +107931,31 @@ "custom_text": { "description": "Display additional text for your customers using custom text.", "properties": { + "after_submit": { + "anyOf": [ + { + "properties": { + "message": { + "description": "Text may be up to 1200 characters in length.", + "maxLength": 1200, + "type": "string" + } + }, + "required": [ + "message" + ], + "title": "custom_text_position_param", + "type": "object" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ], + "description": "Custom text that should be displayed after the payment confirmation button." + }, "shipping_address": { "anyOf": [ {