From 9c826098533e2992dfe18b7dd7b617f5239b4b3c Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 1 Feb 2024 21:37:08 +0000 Subject: [PATCH] OpenAPI Update (#645) Update OpenAPI for 1faaa52ee07071157562f25866d59d23f7cc89b9 Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- embedded/openapi/spec3.beta.sdk.json | 342 +++++++++++++++++++++++++++ embedded/openapi/spec3.json | 312 ++++++++++++++++++++++++ 2 files changed, 654 insertions(+) diff --git a/embedded/openapi/spec3.beta.sdk.json b/embedded/openapi/spec3.beta.sdk.json index b4af81f3..5179256a 100644 --- a/embedded/openapi/spec3.beta.sdk.json +++ b/embedded/openapi/spec3.beta.sdk.json @@ -881,6 +881,15 @@ ], "type": "string" }, + "swish_payments": { + "description": "The status of the Swish capability of the account, or whether the account can directly process Swish payments.", + "enum": [ + "active", + "inactive", + "pending" + ], + "type": "string" + }, "tax_reporting_us_1099_k": { "description": "The status of the tax reporting 1099-K (US) capability of the account.", "enum": [ @@ -9076,6 +9085,9 @@ "sofort": { "$ref": "#/components/schemas/payment_method_sofort" }, + "swish": { + "$ref": "#/components/schemas/payment_method_swish" + }, "type": { "description": "The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.", "enum": [ @@ -9110,6 +9122,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -9166,6 +9179,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -33779,6 +33793,9 @@ "redirect_to_url": { "$ref": "#/components/schemas/payment_intent_next_action_redirect_to_url" }, + "swish_handle_redirect_or_display_qr_code": { + "$ref": "#/components/schemas/payment_intent_next_action_swish_handle_redirect_or_display_qr_code" + }, "type": { "description": "Type of the next action to perform, one of `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`.", "maxLength": 5000, @@ -33818,6 +33835,7 @@ "pix_display_qr_code", "promptpay_display_qr_code", "redirect_to_url", + "swish_handle_redirect_or_display_qr_code", "verify_with_microdeposits", "wechat_pay_display_qr_code", "wechat_pay_redirect_to_android_app", @@ -34429,6 +34447,60 @@ "in_package": "" } }, + "payment_intent_next_action_swish_handle_redirect_or_display_qr_code": { + "description": "", + "properties": { + "hosted_instructions_url": { + "description": "The URL to the hosted Swish instructions page, which allows customers to view the QR code.", + "maxLength": 5000, + "type": "string" + }, + "mobile_auth_url": { + "description": "The url for mobile redirect based auth", + "maxLength": 5000, + "type": "string" + }, + "qr_code": { + "$ref": "#/components/schemas/payment_intent_next_action_swish_qr_code" + } + }, + "title": "PaymentIntentNextActionSwishHandleRedirectOrDisplayQrCode", + "type": "object", + "x-expandableFields": [ + "qr_code" + ], + "x-stripeResource": { + "class_name": "SwishHandleRedirectOrDisplayQrCode", + "in_package": "" + } + }, + "payment_intent_next_action_swish_qr_code": { + "description": "", + "properties": { + "data": { + "description": "The raw data string used to generate QR code, it should be used together with QR code library.", + "maxLength": 5000, + "type": "string" + }, + "image_url_png": { + "description": "The image_url_png string used to render QR code", + "maxLength": 5000, + "type": "string" + }, + "image_url_svg": { + "description": "The image_url_svg string used to render QR code", + "maxLength": 5000, + "type": "string" + } + }, + "title": "PaymentIntentNextActionSwishQRCode", + "type": "object", + "x-expandableFields": [], + "x-stripeResource": { + "class_name": "SwishQrCode", + "in_package": "" + } + }, "payment_intent_next_action_verify_with_microdeposits": { "description": "", "properties": { @@ -34677,6 +34749,9 @@ "sofort": { "$ref": "#/components/schemas/payment_method_options_sofort" }, + "swish": { + "$ref": "#/components/schemas/payment_intent_payment_method_options_swish" + }, "us_bank_account": { "$ref": "#/components/schemas/payment_intent_payment_method_options_us_bank_account" }, @@ -34721,6 +34796,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -35031,6 +35107,27 @@ "mandate_options" ] }, + "payment_intent_payment_method_options_swish": { + "description": "", + "properties": { + "reference": { + "description": "The order ID displayed in the Swish app after the payment is authorized.", + "maxLength": 35, + "nullable": true, + "type": "string" + }, + "setup_future_usage": { + "description": "Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nProviding this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.\n\nWhen processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).", + "enum": [ + "none" + ], + "type": "string" + } + }, + "title": "payment_intent_payment_method_options_swish", + "type": "object", + "x-expandableFields": [] + }, "payment_intent_payment_method_options_us_bank_account": { "description": "", "properties": { @@ -36800,6 +36897,9 @@ "sofort": { "$ref": "#/components/schemas/payment_method_sofort" }, + "swish": { + "$ref": "#/components/schemas/payment_method_swish" + }, "type": { "description": "The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.", "enum": [ @@ -36834,6 +36934,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -36898,6 +36999,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -38086,6 +38188,9 @@ "stripe_account": { "$ref": "#/components/schemas/payment_method_details_stripe_account" }, + "swish": { + "$ref": "#/components/schemas/payment_method_details_swish" + }, "type": { "description": "The type of transaction-specific details of the payment method used in the payment, one of `ach_credit_transfer`, `ach_debit`, `acss_debit`, `alipay`, `au_becs_debit`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `klarna`, `multibanco`, `p24`, `sepa_debit`, `sofort`, `stripe_account`, or `wechat`.\nAn additional hash is included on `payment_method_details` with a name matching this value.\nIt contains information specific to the payment method.", "maxLength": 5000, @@ -38146,6 +38251,7 @@ "sepa_debit", "sofort", "stripe_account", + "swish", "us_bank_account", "wechat", "wechat_pay", @@ -40295,6 +40401,37 @@ "type": "object", "x-expandableFields": [] }, + "payment_method_details_swish": { + "description": "", + "properties": { + "fingerprint": { + "description": "Uniquely identifies the payer's Swish account. You can use this attribute to check whether two Swish transactions were paid for by the same payer", + "maxLength": 5000, + "nullable": true, + "type": "string" + }, + "payment_reference": { + "description": "Payer bank reference number for the payment", + "maxLength": 5000, + "nullable": true, + "type": "string" + }, + "verified_phone_last4": { + "description": "The last four digits of the Swish account phone number", + "maxLength": 5000, + "nullable": true, + "type": "string" + } + }, + "required": [ + "fingerprint", + "payment_reference", + "verified_phone_last4" + ], + "title": "payment_method_details_swish", + "type": "object", + "x-expandableFields": [] + }, "payment_method_details_us_bank_account": { "description": "", "properties": { @@ -41876,6 +42013,13 @@ "type": "object", "x-expandableFields": [] }, + "payment_method_swish": { + "description": "", + "properties": {}, + "title": "payment_method_swish", + "type": "object", + "x-expandableFields": [] + }, "payment_method_us_bank_account": { "description": "", "properties": { @@ -51187,6 +51331,9 @@ "sofort": { "$ref": "#/components/schemas/destination_details_unimplemented" }, + "swish": { + "$ref": "#/components/schemas/refund_destination_details_generic" + }, "th_bank_transfer": { "$ref": "#/components/schemas/refund_destination_details_generic" }, @@ -51234,6 +51381,7 @@ "pix", "revolut", "sofort", + "swish", "th_bank_transfer", "us_bank_transfer", "wechat_pay", @@ -69769,6 +69917,17 @@ "title": "capability_param", "type": "object" }, + "swish_payments": { + "description": "The swish_payments capability.", + "properties": { + "requested": { + "description": "Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.", + "type": "boolean" + } + }, + "title": "capability_param", + "type": "object" + }, "tax_reporting_us_1099_k": { "description": "The tax_reporting_us_1099_k capability.", "properties": { @@ -71716,6 +71875,17 @@ "title": "capability_param", "type": "object" }, + "swish_payments": { + "description": "The swish_payments capability.", + "properties": { + "requested": { + "description": "Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.", + "type": "boolean" + } + }, + "title": "capability_param", + "type": "object" + }, "tax_reporting_us_1099_k": { "description": "The tax_reporting_us_1099_k capability.", "properties": { @@ -91339,6 +91509,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -129992,6 +130163,12 @@ "title": "param", "type": "object" }, + "swish": { + "description": "If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.", + "properties": {}, + "title": "param", + "type": "object" + }, "type": { "description": "The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.", "enum": [ @@ -130023,6 +130200,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -131648,6 +131826,45 @@ ], "description": "If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options." }, + "swish": { + "anyOf": [ + { + "properties": { + "reference": { + "anyOf": [ + { + "maxLength": 5000, + "type": "string" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ], + "description": "The order ID displayed in the Swish app after the payment is authorized." + }, + "setup_future_usage": { + "description": "Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nProviding this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.\n\nWhen processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).\n\nIf `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.", + "enum": [ + "none" + ], + "type": "string" + } + }, + "title": "payment_intent_payment_method_options_param", + "type": "object" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ], + "description": "If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options." + }, "us_bank_account": { "anyOf": [ { @@ -133803,6 +134020,12 @@ "title": "param", "type": "object" }, + "swish": { + "description": "If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.", + "properties": {}, + "title": "param", + "type": "object" + }, "type": { "description": "The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.", "enum": [ @@ -133834,6 +134057,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -135459,6 +135683,45 @@ ], "description": "If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options." }, + "swish": { + "anyOf": [ + { + "properties": { + "reference": { + "anyOf": [ + { + "maxLength": 5000, + "type": "string" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ], + "description": "The order ID displayed in the Swish app after the payment is authorized." + }, + "setup_future_usage": { + "description": "Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nProviding this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.\n\nWhen processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).\n\nIf `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.", + "enum": [ + "none" + ], + "type": "string" + } + }, + "title": "payment_intent_payment_method_options_param", + "type": "object" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ], + "description": "If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options." + }, "us_bank_account": { "anyOf": [ { @@ -138550,6 +138813,12 @@ "title": "param", "type": "object" }, + "swish": { + "description": "If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.", + "properties": {}, + "title": "param", + "type": "object" + }, "type": { "description": "The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.", "enum": [ @@ -138581,6 +138850,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -140206,6 +140476,45 @@ ], "description": "If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options." }, + "swish": { + "anyOf": [ + { + "properties": { + "reference": { + "anyOf": [ + { + "maxLength": 5000, + "type": "string" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ], + "description": "The order ID displayed in the Swish app after the payment is authorized." + }, + "setup_future_usage": { + "description": "Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nProviding this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.\n\nWhen processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).\n\nIf `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.", + "enum": [ + "none" + ], + "type": "string" + } + }, + "title": "payment_intent_payment_method_options_param", + "type": "object" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ], + "description": "If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options." + }, "us_bank_account": { "anyOf": [ { @@ -146276,6 +146585,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -146501,6 +146811,10 @@ "explode": true, "style": "deepObject" }, + "swish": { + "explode": true, + "style": "deepObject" + }, "us_bank_account": { "explode": true, "style": "deepObject" @@ -147123,6 +147437,12 @@ "title": "param", "type": "object" }, + "swish": { + "description": "If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.", + "properties": {}, + "title": "param", + "type": "object" + }, "type": { "description": "The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.", "enum": [ @@ -147155,6 +147475,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -162170,6 +162491,12 @@ "title": "param", "type": "object" }, + "swish": { + "description": "If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.", + "properties": {}, + "title": "param", + "type": "object" + }, "type": { "description": "The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.", "enum": [ @@ -162201,6 +162528,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -163514,6 +163842,12 @@ "title": "param", "type": "object" }, + "swish": { + "description": "If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.", + "properties": {}, + "title": "param", + "type": "object" + }, "type": { "description": "The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.", "enum": [ @@ -163545,6 +163879,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -164890,6 +165225,12 @@ "title": "param", "type": "object" }, + "swish": { + "description": "If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.", + "properties": {}, + "title": "param", + "type": "object" + }, "type": { "description": "The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.", "enum": [ @@ -164921,6 +165262,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" diff --git a/embedded/openapi/spec3.json b/embedded/openapi/spec3.json index b5089ece..c3c6e28e 100644 --- a/embedded/openapi/spec3.json +++ b/embedded/openapi/spec3.json @@ -655,6 +655,15 @@ ], "type": "string" }, + "swish_payments": { + "description": "The status of the Swish capability of the account, or whether the account can directly process Swish payments.", + "enum": [ + "active", + "inactive", + "pending" + ], + "type": "string" + }, "tax_reporting_us_1099_k": { "description": "The status of the tax reporting 1099-K (US) capability of the account.", "enum": [ @@ -21771,6 +21780,9 @@ "redirect_to_url": { "$ref": "#/components/schemas/payment_intent_next_action_redirect_to_url" }, + "swish_handle_redirect_or_display_qr_code": { + "$ref": "#/components/schemas/payment_intent_next_action_swish_handle_redirect_or_display_qr_code" + }, "type": { "description": "Type of the next action to perform, one of `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`.", "maxLength": 5000, @@ -21810,6 +21822,7 @@ "pix_display_qr_code", "promptpay_display_qr_code", "redirect_to_url", + "swish_handle_redirect_or_display_qr_code", "verify_with_microdeposits", "wechat_pay_display_qr_code", "wechat_pay_redirect_to_android_app", @@ -22316,6 +22329,52 @@ "type": "object", "x-expandableFields": [] }, + "payment_intent_next_action_swish_handle_redirect_or_display_qr_code": { + "description": "", + "properties": { + "hosted_instructions_url": { + "description": "The URL to the hosted Swish instructions page, which allows customers to view the QR code.", + "maxLength": 5000, + "type": "string" + }, + "mobile_auth_url": { + "description": "The url for mobile redirect based auth", + "maxLength": 5000, + "type": "string" + }, + "qr_code": { + "$ref": "#/components/schemas/payment_intent_next_action_swish_qr_code" + } + }, + "title": "PaymentIntentNextActionSwishHandleRedirectOrDisplayQrCode", + "type": "object", + "x-expandableFields": [ + "qr_code" + ] + }, + "payment_intent_next_action_swish_qr_code": { + "description": "", + "properties": { + "data": { + "description": "The raw data string used to generate QR code, it should be used together with QR code library.", + "maxLength": 5000, + "type": "string" + }, + "image_url_png": { + "description": "The image_url_png string used to render QR code", + "maxLength": 5000, + "type": "string" + }, + "image_url_svg": { + "description": "The image_url_svg string used to render QR code", + "maxLength": 5000, + "type": "string" + } + }, + "title": "PaymentIntentNextActionSwishQRCode", + "type": "object", + "x-expandableFields": [] + }, "payment_intent_next_action_verify_with_microdeposits": { "description": "", "properties": { @@ -22768,6 +22827,16 @@ } ] }, + "swish": { + "anyOf": [ + { + "$ref": "#/components/schemas/payment_intent_payment_method_options_swish" + }, + { + "$ref": "#/components/schemas/payment_intent_type_specific_payment_method_options_client" + } + ] + }, "us_bank_account": { "anyOf": [ { @@ -22833,6 +22902,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -23115,6 +23185,27 @@ "mandate_options" ] }, + "payment_intent_payment_method_options_swish": { + "description": "", + "properties": { + "reference": { + "description": "The order ID displayed in the Swish app after the payment is authorized.", + "maxLength": 35, + "nullable": true, + "type": "string" + }, + "setup_future_usage": { + "description": "Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nProviding this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.\n\nWhen processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).", + "enum": [ + "none" + ], + "type": "string" + } + }, + "title": "payment_intent_payment_method_options_swish", + "type": "object", + "x-expandableFields": [] + }, "payment_intent_payment_method_options_us_bank_account": { "description": "", "properties": { @@ -24741,6 +24832,9 @@ "sofort": { "$ref": "#/components/schemas/payment_method_sofort" }, + "swish": { + "$ref": "#/components/schemas/payment_method_swish" + }, "type": { "description": "The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.", "enum": [ @@ -24775,6 +24869,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -24837,6 +24932,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -25837,6 +25933,9 @@ "stripe_account": { "$ref": "#/components/schemas/payment_method_details_stripe_account" }, + "swish": { + "$ref": "#/components/schemas/payment_method_details_swish" + }, "type": { "description": "The type of transaction-specific details of the payment method used in the payment, one of `ach_credit_transfer`, `ach_debit`, `acss_debit`, `alipay`, `au_becs_debit`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `klarna`, `multibanco`, `p24`, `sepa_debit`, `sofort`, `stripe_account`, or `wechat`.\nAn additional hash is included on `payment_method_details` with a name matching this value.\nIt contains information specific to the payment method.", "maxLength": 5000, @@ -25896,6 +25995,7 @@ "sepa_debit", "sofort", "stripe_account", + "swish", "us_bank_account", "wechat", "wechat_pay", @@ -27694,6 +27794,32 @@ "type": "object", "x-expandableFields": [] }, + "payment_method_details_swish": { + "description": "", + "properties": { + "fingerprint": { + "description": "Uniquely identifies the payer's Swish account. You can use this attribute to check whether two Swish transactions were paid for by the same payer", + "maxLength": 5000, + "nullable": true, + "type": "string" + }, + "payment_reference": { + "description": "Payer bank reference number for the payment", + "maxLength": 5000, + "nullable": true, + "type": "string" + }, + "verified_phone_last4": { + "description": "The last four digits of the Swish account phone number", + "maxLength": 5000, + "nullable": true, + "type": "string" + } + }, + "title": "payment_method_details_swish", + "type": "object", + "x-expandableFields": [] + }, "payment_method_details_us_bank_account": { "description": "", "properties": { @@ -29075,6 +29201,13 @@ "type": "object", "x-expandableFields": [] }, + "payment_method_swish": { + "description": "", + "properties": {}, + "title": "payment_method_swish", + "type": "object", + "x-expandableFields": [] + }, "payment_method_us_bank_account": { "description": "", "properties": { @@ -34010,6 +34143,9 @@ "sofort": { "$ref": "#/components/schemas/destination_details_unimplemented" }, + "swish": { + "$ref": "#/components/schemas/refund_destination_details_generic" + }, "th_bank_transfer": { "$ref": "#/components/schemas/refund_destination_details_generic" }, @@ -34057,6 +34193,7 @@ "pix", "revolut", "sofort", + "swish", "th_bank_transfer", "us_bank_transfer", "wechat_pay", @@ -47310,6 +47447,15 @@ "title": "capability_param", "type": "object" }, + "swish_payments": { + "properties": { + "requested": { + "type": "boolean" + } + }, + "title": "capability_param", + "type": "object" + }, "tax_reporting_us_1099_k": { "properties": { "requested": { @@ -48932,6 +49078,15 @@ "title": "capability_param", "type": "object" }, + "swish_payments": { + "properties": { + "requested": { + "type": "boolean" + } + }, + "title": "capability_param", + "type": "object" + }, "tax_reporting_us_1099_k": { "properties": { "requested": { @@ -70181,6 +70336,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -94254,6 +94410,11 @@ "title": "param", "type": "object" }, + "swish": { + "properties": {}, + "title": "param", + "type": "object" + }, "type": { "enum": [ "acss_debit", @@ -94284,6 +94445,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -95683,6 +95845,42 @@ } ] }, + "swish": { + "anyOf": [ + { + "properties": { + "reference": { + "anyOf": [ + { + "maxLength": 5000, + "type": "string" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ] + }, + "setup_future_usage": { + "enum": [ + "none" + ], + "type": "string" + } + }, + "title": "payment_intent_payment_method_options_param", + "type": "object" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ] + }, "us_bank_account": { "anyOf": [ { @@ -96826,6 +97024,11 @@ "title": "param", "type": "object" }, + "swish": { + "properties": {}, + "title": "param", + "type": "object" + }, "type": { "enum": [ "acss_debit", @@ -96856,6 +97059,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -98255,6 +98459,42 @@ } ] }, + "swish": { + "anyOf": [ + { + "properties": { + "reference": { + "anyOf": [ + { + "maxLength": 5000, + "type": "string" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ] + }, + "setup_future_usage": { + "enum": [ + "none" + ], + "type": "string" + } + }, + "title": "payment_intent_payment_method_options_param", + "type": "object" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ] + }, "us_bank_account": { "anyOf": [ { @@ -99537,6 +99777,11 @@ "title": "param", "type": "object" }, + "swish": { + "properties": {}, + "title": "param", + "type": "object" + }, "type": { "enum": [ "acss_debit", @@ -99567,6 +99812,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -100966,6 +101212,42 @@ } ] }, + "swish": { + "anyOf": [ + { + "properties": { + "reference": { + "anyOf": [ + { + "maxLength": 5000, + "type": "string" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ] + }, + "setup_future_usage": { + "enum": [ + "none" + ], + "type": "string" + } + }, + "title": "payment_intent_payment_method_options_param", + "type": "object" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ] + }, "us_bank_account": { "anyOf": [ { @@ -106708,6 +106990,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -106933,6 +107216,10 @@ "explode": true, "style": "deepObject" }, + "swish": { + "explode": true, + "style": "deepObject" + }, "us_bank_account": { "explode": true, "style": "deepObject" @@ -107506,6 +107793,12 @@ "title": "param", "type": "object" }, + "swish": { + "description": "If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.", + "properties": {}, + "title": "param", + "type": "object" + }, "type": { "description": "The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.", "enum": [ @@ -107538,6 +107831,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -117853,6 +118147,11 @@ "title": "param", "type": "object" }, + "swish": { + "properties": {}, + "title": "param", + "type": "object" + }, "type": { "enum": [ "acss_debit", @@ -117883,6 +118182,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -119026,6 +119326,11 @@ "title": "param", "type": "object" }, + "swish": { + "properties": {}, + "title": "param", + "type": "object" + }, "type": { "enum": [ "acss_debit", @@ -119056,6 +119361,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip" @@ -120218,6 +120524,11 @@ "title": "param", "type": "object" }, + "swish": { + "properties": {}, + "title": "param", + "type": "object" + }, "type": { "enum": [ "acss_debit", @@ -120248,6 +120559,7 @@ "revolut_pay", "sepa_debit", "sofort", + "swish", "us_bank_account", "wechat_pay", "zip"