Skip to content

Commit

Permalink
Update services based on v627 of Stripe OpenApi SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Oct 27, 2023
1 parent e3de02a commit 03c3cbe
Show file tree
Hide file tree
Showing 7 changed files with 179 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .latest-tag-stripe-openapi-sdk
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v625
v627
5 changes: 2 additions & 3 deletions lib/generated/account.ex
Original file line number Diff line number Diff line change
Expand Up @@ -576,12 +576,11 @@ defmodule Stripe.Account do
)

(
@typedoc "Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/docs/connect/updating-accounts#tos-acceptance)."
@typedoc "Details on the account's acceptance of the Stripe Treasury Services Agreement."
@type tos_acceptance :: %{
optional(:date) => integer,
optional(:ip) => binary,
optional(:service_agreement) => binary,
optional(:user_agent) => binary
optional(:user_agent) => binary | binary
}
)

Expand Down
10 changes: 1 addition & 9 deletions lib/generated/checkout__session.ex
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,7 @@ 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}
)

(
Expand Down
97 changes: 86 additions & 11 deletions lib/generated/payment_intent.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
)

(
Expand Down Expand Up @@ -192,11 +192,8 @@ defmodule Stripe.PaymentIntent do
)

(
@typedoc nil
@type boleto :: %{
optional(:expires_after_days) => integer,
optional(:setup_future_usage) => :none | :off_session | :on_session
}
@typedoc "If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method."
@type boleto :: %{optional(:tax_id) => binary}
)

(
Expand Down Expand Up @@ -285,8 +282,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
}
)

(
Expand Down Expand Up @@ -355,8 +382,56 @@ defmodule Stripe.PaymentIntent do
)

(
@typedoc "If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method."
@type klarna :: %{optional(:dob) => dob}
@typedoc nil
@type klarna :: %{
optional(:capture_method) => :manual,
optional(:preferred_locale) =>
:"cs-CZ"
| :"da-DK"
| :"de-AT"
| :"de-CH"
| :"de-DE"
| :"el-GR"
| :"en-AT"
| :"en-AU"
| :"en-BE"
| :"en-CA"
| :"en-CH"
| :"en-CZ"
| :"en-DE"
| :"en-DK"
| :"en-ES"
| :"en-FI"
| :"en-FR"
| :"en-GB"
| :"en-GR"
| :"en-IE"
| :"en-IT"
| :"en-NL"
| :"en-NO"
| :"en-NZ"
| :"en-PL"
| :"en-PT"
| :"en-SE"
| :"en-US"
| :"es-ES"
| :"es-US"
| :"fi-FI"
| :"fr-BE"
| :"fr-CA"
| :"fr-CH"
| :"fr-FR"
| :"it-CH"
| :"it-IT"
| :"nb-NO"
| :"nl-BE"
| :"nl-NL"
| :"pl-PL"
| :"pt-PT"
| :"sv-FI"
| :"sv-SE",
optional(:setup_future_usage) => :none
}
)

(
Expand Down
18 changes: 10 additions & 8 deletions lib/generated/setup_intent.ex
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ defmodule Stripe.SetupIntent do
)

(
@typedoc "If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method."
@typedoc "If this is a `acss_debit` SetupIntent, this sub-hash contains details about the ACSS Debit payment method options."
@type acss_debit :: %{
optional(:account_number) => binary,
optional(:institution_number) => binary,
optional(:transit_number) => binary
optional(:currency) => :cad | :usd,
optional(:mandate_options) => mandate_options,
optional(:verification_method) => :automatic | :instant | :microdeposits
}
)

Expand Down Expand Up @@ -439,11 +439,13 @@ defmodule Stripe.SetupIntent do
)

(
@typedoc "If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options."
@typedoc "If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method."
@type us_bank_account :: %{
optional(:financial_connections) => financial_connections,
optional(:networks) => networks,
optional(:verification_method) => :automatic | :instant | :microdeposits
optional(:account_holder_type) => :company | :individual,
optional(:account_number) => binary,
optional(:account_type) => :checking | :savings,
optional(:financial_connections_account) => binary,
optional(:routing_number) => binary
}
)

Expand Down
4 changes: 2 additions & 2 deletions lib/generated/token.ex
Original file line number Diff line number Diff line change
Expand Up @@ -64,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 person's address (Japan only)."
@type address_kanji :: %{
optional(:city) => binary,
optional(:country) => binary,
Expand Down Expand Up @@ -268,7 +268,7 @@ defmodule Stripe.Token do
)

(
@typedoc "The person's registered address."
@typedoc "The individual's registered address."
@type registered_address :: %{
optional(:city) => binary,
optional(:country) => binary,
Expand Down
77 changes: 77 additions & 0 deletions priv/openapi/spec3.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -13692,9 +13692,44 @@
"in_package": ""
}
},
"funding_instructions_bank_transfer_aba_record": {
"description": "ABA Records contain U.S. bank account details per the ABA format.",
"properties": {
"account_number": {
"description": "The ABA account number",
"maxLength": 5000,
"type": "string"
},
"bank_name": {
"description": "The bank name",
"maxLength": 5000,
"type": "string"
},
"routing_number": {
"description": "The ABA routing number",
"maxLength": 5000,
"type": "string"
}
},
"required": [
"account_number",
"bank_name",
"routing_number"
],
"title": "FundingInstructionsBankTransferABARecord",
"type": "object",
"x-expandableFields": [],
"x-stripeResource": {
"class_name": "Aba",
"in_package": ""
}
},
"funding_instructions_bank_transfer_financial_address": {
"description": "FinancialAddresses contain identifying information that resolves to a FinancialAccount.",
"properties": {
"aba": {
"$ref": "#/components/schemas/funding_instructions_bank_transfer_aba_record"
},
"iban": {
"$ref": "#/components/schemas/funding_instructions_bank_transfer_iban_record"
},
Expand All @@ -13708,23 +13743,31 @@
"description": "The payment networks supported by this FinancialAddress",
"items": {
"enum": [
"ach",
"bacs",
"domestic_wire_us",
"fps",
"sepa",
"spei",
"swift",
"zengin"
],
"type": "string",
"x-stripeBypassValidation": true
},
"type": "array"
},
"swift": {
"$ref": "#/components/schemas/funding_instructions_bank_transfer_swift_record"
},
"type": {
"description": "The type of financial address",
"enum": [
"aba",
"iban",
"sort_code",
"spei",
"swift",
"zengin"
],
"type": "string",
Expand All @@ -13740,9 +13783,11 @@
"title": "FundingInstructionsBankTransferFinancialAddress",
"type": "object",
"x-expandableFields": [
"aba",
"iban",
"sort_code",
"spei",
"swift",
"zengin"
],
"x-stripeResource": {
Expand Down Expand Up @@ -13852,6 +13897,38 @@
"in_package": ""
}
},
"funding_instructions_bank_transfer_swift_record": {
"description": "SWIFT Records contain U.S. bank account details per the SWIFT format.",
"properties": {
"account_number": {
"description": "The account number",
"maxLength": 5000,
"type": "string"
},
"bank_name": {
"description": "The bank name",
"maxLength": 5000,
"type": "string"
},
"swift_code": {
"description": "The SWIFT code",
"maxLength": 5000,
"type": "string"
}
},
"required": [
"account_number",
"bank_name",
"swift_code"
],
"title": "FundingInstructionsBankTransferSwiftRecord",
"type": "object",
"x-expandableFields": [],
"x-stripeResource": {
"class_name": "Swift",
"in_package": ""
}
},
"funding_instructions_bank_transfer_zengin_record": {
"description": "Zengin Records contain Japan bank account details per the Zengin format.",
"properties": {
Expand Down

0 comments on commit 03c3cbe

Please sign in to comment.