From 4798d0cf8890a4d59e8603a27f3863aff2c3a27b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 31 Oct 2023 01:32:01 +0000 Subject: [PATCH] Update services based on v630 of Stripe OpenApi SDK Reference: https://github.com/stripe/openapi/releases/tag/v630 --- .latest-tag-stripe-openapi-sdk | 2 +- lib/generated/account.ex | 4 +- lib/generated/checkout__session.ex | 7 +--- lib/generated/payment_intent.ex | 63 ++++++------------------------ lib/generated/token.ex | 17 ++++---- priv/openapi/spec3.sdk.json | 6 +-- 6 files changed, 28 insertions(+), 71 deletions(-) diff --git a/.latest-tag-stripe-openapi-sdk b/.latest-tag-stripe-openapi-sdk index caa8b8c0..fc908948 100644 --- a/.latest-tag-stripe-openapi-sdk +++ b/.latest-tag-stripe-openapi-sdk @@ -1 +1 @@ -v628 +v630 diff --git a/lib/generated/account.ex b/lib/generated/account.ex index 2090a1f3..affd4e89 100644 --- a/lib/generated/account.ex +++ b/lib/generated/account.ex @@ -66,7 +66,7 @@ defmodule Stripe.Account do ) ( - @typedoc "The company's primary address." + @typedoc "The individual'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, diff --git a/lib/generated/checkout__session.ex b/lib/generated/checkout__session.ex index 95083d9e..88ca5384 100644 --- a/lib/generated/checkout__session.ex +++ b/lib/generated/checkout__session.ex @@ -950,11 +950,8 @@ defmodule Stripe.Checkout.Session do ) ( - @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 - } + @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} ) ( diff --git a/lib/generated/payment_intent.ex b/lib/generated/payment_intent.ex index 2525687d..4ee484e0 100644 --- a/lib/generated/payment_intent.ex +++ b/lib/generated/payment_intent.ex @@ -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} ) ( @@ -335,33 +335,8 @@ defmodule Stripe.PaymentIntent do ) ( - @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 - } + @typedoc nil + @type fpx :: %{optional(:setup_future_usage) => :none} ) ( @@ -375,25 +350,8 @@ defmodule Stripe.PaymentIntent do ) ( - @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 - } + @typedoc nil + @type ideal :: %{optional(:setup_future_usage) => :none | :off_session} ) ( @@ -715,13 +673,16 @@ 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} ) ( - @typedoc "If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account." - @type sepa_debit :: %{optional(:iban) => binary} + @typedoc nil + @type sepa_debit :: %{ + optional(:mandate_options) => map(), + optional(:setup_future_usage) => :none | :off_session | :on_session + } ) ( diff --git a/lib/generated/token.ex b/lib/generated/token.ex index 47960927..d56e79fc 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 } ) @@ -40,7 +39,7 @@ defmodule Stripe.Token do ) ( - @typedoc "The company's primary address." + @typedoc "The individual's primary address." @type address :: %{ optional(:city) => binary, optional(:country) => 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 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, @@ -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 e0f3dfe1..72892361 100644 --- a/priv/openapi/spec3.sdk.json +++ b/priv/openapi/spec3.sdk.json @@ -38566,7 +38566,7 @@ "type": "boolean" }, "products": { - "description": "The list of products that support subscription updates.", + "description": "The list of up to 10 products that support subscription updates.", "items": { "$ref": "#/components/schemas/portal_subscription_update_product" }, @@ -65291,7 +65291,7 @@ "type": "string" } ], - "description": "The list of products that support subscription updates." + "description": "The list of up to 10 products that support subscription updates." }, "proration_behavior": { "description": "Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`.", @@ -65772,7 +65772,7 @@ "type": "string" } ], - "description": "The list of products that support subscription updates." + "description": "The list of up to 10 products that support subscription updates." }, "proration_behavior": { "description": "Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`.",