From 0d47d73491ee017f5ac325fb4811ef352ca21e02 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 15 Dec 2023 00:37:30 +0000 Subject: [PATCH] Update services based on v715 of Stripe OpenApi SDK Reference: https://github.com/stripe/openapi/releases/tag/v715 --- .latest-tag-stripe-openapi-sdk | 2 +- lib/generated/account.ex | 22 ++++----- lib/generated/account_session.ex | 2 +- lib/generated/checkout__session.ex | 17 +++++-- lib/generated/payment_intent.ex | 49 ++++++++++++++----- lib/generated/payment_link.ex | 10 +++- lib/generated/setup_intent.ex | 25 ++++------ lib/generated/token.ex | 17 ++++--- priv/openapi/spec3.sdk.json | 77 ++++++++++++++++-------------- 9 files changed, 132 insertions(+), 89 deletions(-) diff --git a/.latest-tag-stripe-openapi-sdk b/.latest-tag-stripe-openapi-sdk index d783a93a..718288d7 100644 --- a/.latest-tag-stripe-openapi-sdk +++ b/.latest-tag-stripe-openapi-sdk @@ -1 +1 @@ -v712 +v715 diff --git a/lib/generated/account.ex b/lib/generated/account.ex index 91d4634c..1f6ba060 100644 --- a/lib/generated/account.ex +++ b/lib/generated/account.ex @@ -78,7 +78,7 @@ defmodule Stripe.Account do ) ( - @typedoc "The Kana variation of the company's primary address (Japan only)." + @typedoc "The Kana variation of the the individual's primary address (Japan only)." @type address_kana :: %{ optional(:city) => binary, optional(:country) => binary, @@ -91,7 +91,7 @@ defmodule Stripe.Account do ) ( - @typedoc "The Kanji variation of the company's primary address (Japan only)." + @typedoc "The Kanji variation of the the individual's primary address (Japan only)." @type address_kanji :: %{ optional(:city) => binary, optional(:country) => binary, @@ -119,8 +119,8 @@ defmodule Stripe.Account do ) ( - @typedoc "The bacs_debit_payments capability." - @type bacs_debit_payments :: %{optional(:requested) => boolean} + @typedoc "Settings specific to Bacs Direct Debit payments." + @type bacs_debit_payments :: %{optional(:display_name) => binary} ) ( @@ -338,7 +338,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,11 +583,12 @@ 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 Services Agreement](https://stripe.com/docs/connect/updating-accounts#tos-acceptance)." @type tos_acceptance :: %{ optional(:date) => integer, optional(:ip) => binary, - optional(:user_agent) => binary | binary + optional(:service_agreement) => binary, + optional(:user_agent) => binary } ) @@ -607,11 +608,8 @@ defmodule Stripe.Account do ) ( - @typedoc "The individual's verification document information." - @type verification :: %{ - optional(:additional_document) => additional_document, - optional(:document) => document - } + @typedoc "Information on the verification state of the company." + @type verification :: %{optional(:document) => document} ) ( diff --git a/lib/generated/account_session.ex b/lib/generated/account_session.ex index 13b9ab77..02e992db 100644 --- a/lib/generated/account_session.ex +++ b/lib/generated/account_session.ex @@ -52,7 +52,7 @@ defmodule Stripe.AccountSession do ( @typedoc "Configuration for the payouts embedded component." - @type payouts :: %{optional(:enabled) => boolean, optional(:features) => map()} + @type payouts :: %{optional(:enabled) => boolean} ) ( diff --git a/lib/generated/checkout__session.ex b/lib/generated/checkout__session.ex index 98b3f7d3..aa022634 100644 --- a/lib/generated/checkout__session.ex +++ b/lib/generated/checkout__session.ex @@ -254,7 +254,15 @@ defmodule Stripe.Checkout.Session do ( @typedoc nil - @type custom_fields :: %{optional(:name) => binary, optional(:value) => binary} + @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 + } ) ( @@ -970,8 +978,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 966d6e59..bc61054e 100644 --- a/lib/generated/payment_intent.ex +++ b/lib/generated/payment_intent.ex @@ -101,7 +101,7 @@ defmodule Stripe.PaymentIntent do ) ( - @typedoc "Shipping address." + @typedoc nil @type address :: %{ optional(:city) => binary, optional(:country) => binary, @@ -136,8 +136,8 @@ defmodule Stripe.PaymentIntent do ) ( - @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} + @typedoc nil + @type au_becs_debit :: %{optional(:setup_future_usage) => :none | :off_session | :on_session} ) ( @@ -292,8 +292,38 @@ defmodule Stripe.PaymentIntent do ) ( - @typedoc nil - @type eps :: %{optional(:setup_future_usage) => :none} + @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 + } ) ( @@ -678,7 +708,7 @@ defmodule Stripe.PaymentIntent do ) ( - @typedoc "Options to configure Radar. Learn more about [Radar Sessions](https://stripe.com/docs/radar/radar-session)." + @typedoc "Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information." @type radar_options :: %{optional(:session) => binary} ) @@ -704,11 +734,8 @@ defmodule Stripe.PaymentIntent do ) ( - @typedoc nil - @type sofort :: %{ - optional(:preferred_language) => :de | :en | :es | :fr | :it | :nl | :pl, - optional(:setup_future_usage) => :none | :off_session - } + @typedoc "If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method." + @type sofort :: %{optional(:country) => :AT | :BE | :DE | :ES | :IT | :NL} ) ( diff --git a/lib/generated/payment_link.ex b/lib/generated/payment_link.ex index fb0f2e3b..ee573196 100644 --- a/lib/generated/payment_link.ex +++ b/lib/generated/payment_link.ex @@ -121,7 +121,15 @@ defmodule Stripe.PaymentLink do ( @typedoc nil - @type custom_fields :: %{optional(:name) => binary, optional(:value) => binary} + @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 + } ) ( diff --git a/lib/generated/setup_intent.ex b/lib/generated/setup_intent.ex index 01d7d5e4..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 } ) @@ -288,18 +288,13 @@ defmodule Stripe.SetupIntent do ) ( - @typedoc "Configuration options for setting up an eMandate for cards issued in India." + @typedoc "Additional fields for Mandate creation" @type mandate_options :: %{ - optional(:amount) => integer, - optional(:amount_type) => :fixed | :maximum, - optional(:currency) => binary, - optional(:description) => binary, - optional(:end_date) => integer, - optional(:interval) => :day | :month | :sporadic | :week | :year, - optional(:interval_count) => integer, - optional(:reference) => binary, - optional(:start_date) => integer, - optional(:supported_types) => list(:india) + optional(:custom_mandate_url) => binary | binary, + optional(:default_for) => list(:invoice | :subscription), + optional(:interval_description) => binary, + optional(:payment_schedule) => :combined | :interval | :sporadic, + optional(:transaction_type) => :business | :personal } ) diff --git a/lib/generated/token.ex b/lib/generated/token.ex index bfab66fa..d04b57fc 100644 --- a/lib/generated/token.ex +++ b/lib/generated/token.ex @@ -20,12 +20,11 @@ defmodule Stripe.Token do ) ( - @typedoc "Information for the account this token represents." + @typedoc "Details on the legal guardian's acceptance of the main Stripe service agreement." @type account :: %{ - optional(:business_type) => :company | :government_entity | :individual | :non_profit, - optional(:company) => company, - optional(:individual) => individual, - optional(:tos_shown_and_accepted) => boolean + optional(:date) => integer, + optional(:ip) => binary, + optional(:user_agent) => binary | binary } ) @@ -52,7 +51,7 @@ defmodule Stripe.Token do ) ( - @typedoc "The Kana variation of the person's address (Japan only)." + @typedoc "The Kana variation of the the individual's primary address (Japan only)." @type address_kana :: %{ optional(:city) => binary, optional(:country) => binary, @@ -65,7 +64,7 @@ defmodule Stripe.Token do ) ( - @typedoc "The Kanji variation of the company's primary address (Japan only)." + @typedoc "The Kanji variation of the the individual's primary address (Japan only)." @type address_kanji :: %{ optional(:city) => binary, optional(:country) => binary, @@ -176,7 +175,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} ) @@ -269,7 +268,7 @@ defmodule Stripe.Token do ) ( - @typedoc "The individual's registered address." + @typedoc "The person's registered address." @type registered_address :: %{ optional(:city) => binary, optional(:country) => binary, diff --git a/priv/openapi/spec3.sdk.json b/priv/openapi/spec3.sdk.json index ad0c31fc..759ad828 100644 --- a/priv/openapi/spec3.sdk.json +++ b/priv/openapi/spec3.sdk.json @@ -7973,7 +7973,7 @@ "$ref": "#/components/schemas/connect_embedded_payments_config" }, "payouts": { - "$ref": "#/components/schemas/connect_embedded_base_config" + "$ref": "#/components/schemas/connect_embedded_payouts_config" } }, "required": [ @@ -7992,30 +7992,6 @@ "in_package": "" } }, - "connect_embedded_base_config": { - "description": "", - "properties": { - "enabled": { - "description": "Whether the embedded component is enabled.", - "type": "boolean" - }, - "features": { - "$ref": "#/components/schemas/connect_embedded_base_features" - } - }, - "required": [ - "enabled" - ], - "title": "ConnectEmbeddedBaseConfig", - "type": "object", - "x-expandableFields": [ - "features" - ], - "x-stripeResource": { - "class_name": "BaseConfig", - "in_package": "" - } - }, "connect_embedded_base_config_claim": { "description": "", "properties": { @@ -8105,6 +8081,41 @@ "in_package": "" } }, + "connect_embedded_payouts_config": { + "description": "", + "properties": { + "enabled": { + "description": "Whether the embedded component is enabled.", + "type": "boolean" + }, + "features": { + "$ref": "#/components/schemas/connect_embedded_payouts_features" + } + }, + "required": [ + "enabled" + ], + "title": "ConnectEmbeddedPayoutsConfig", + "type": "object", + "x-expandableFields": [ + "features" + ], + "x-stripeResource": { + "class_name": "PayoutsConfig", + "in_package": "" + } + }, + "connect_embedded_payouts_features": { + "description": "", + "properties": {}, + "title": "ConnectEmbeddedPayoutsFeatures", + "type": "object", + "x-expandableFields": [], + "x-stripeResource": { + "class_name": "PayoutsFeatures", + "in_package": "" + } + }, "country_spec": { "description": "Stripe needs to collect certain pieces of information about each account\ncreated. These requirements can differ depending on the account's country. The\nCountry Specs API makes these rules available to your integration.\n\nYou can also view the information from this API call as [an online\nguide](/docs/connect/required-verification-information).", "properties": { @@ -58957,18 +58968,12 @@ "enabled": { "description": "Whether the embedded component is enabled.", "type": "boolean" - }, - "features": { - "description": "The list of features enabled in the embedded component.", - "properties": {}, - "title": "base_features_param", - "type": "object" } }, "required": [ "enabled" ], - "title": "base_config_param", + "title": "payouts_config_param", "type": "object" } }, @@ -85552,7 +85557,7 @@ "style": "deepObject" }, { - "description": "Timestamp indicating when the subscription should be scheduled to cancel. Will prorate if within the current period and prorations have been enabled using `proration_behavior`.", + "description": "A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.", "explode": true, "in": "query", "name": "subscription_cancel_at", @@ -85825,7 +85830,7 @@ "style": "form" }, { - "description": "Date a subscription is intended to start (can be future or past)", + "description": "Date a subscription is intended to start (can be future or past).", "in": "query", "name": "subscription_start_date", "required": false, @@ -86551,7 +86556,7 @@ "style": "deepObject" }, { - "description": "Timestamp indicating when the subscription should be scheduled to cancel. Will prorate if within the current period and prorations have been enabled using `proration_behavior`.", + "description": "A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.", "explode": true, "in": "query", "name": "subscription_cancel_at", @@ -86824,7 +86829,7 @@ "style": "form" }, { - "description": "Date a subscription is intended to start (can be future or past)", + "description": "Date a subscription is intended to start (can be future or past).", "in": "query", "name": "subscription_start_date", "required": false,