Skip to content

Commit

Permalink
Update services based on v691 of Stripe OpenApi SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Dec 1, 2023
1 parent e06ba07 commit 25a950b
Show file tree
Hide file tree
Showing 7 changed files with 101 additions and 103 deletions.
2 changes: 1 addition & 1 deletion .latest-tag-stripe-openapi-sdk
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v688
v691
7 changes: 4 additions & 3 deletions lib/generated/account.ex
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ defmodule Stripe.Account do
)

(
@typedoc "An identifying document, either a passport or local ID card."
@typedoc "A document verifying the business."
@type document :: %{optional(:back) => binary, optional(:front) => binary}
)

Expand Down Expand Up @@ -578,11 +578,12 @@ defmodule Stripe.Account do
)

(
@typedoc "Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](https://stripe.com/docs/issuing/connect/tos_acceptance)."
@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
}
)

Expand Down
19 changes: 11 additions & 8 deletions lib/generated/checkout__session.ex
Original file line number Diff line number Diff line change
Expand Up @@ -238,17 +238,19 @@ 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 created :: %{
optional(:gt) => integer,
optional(:gte) => integer,
optional(:lt) => integer,
optional(:lte) => integer
}
)

(
@typedoc nil
@type custom_fields :: %{optional(:name) => binary, optional(:value) => binary}
)

(
@typedoc "Display additional text for your customers using custom text."
@type custom_text :: %{
Expand Down Expand Up @@ -990,6 +992,7 @@ defmodule Stripe.Checkout.Session do
(
@spec list(
params :: %{
optional(:created) => created | integer,
optional(:customer) => binary,
optional(:customer_details) => customer_details,
optional(:ending_before) => binary,
Expand Down
89 changes: 18 additions & 71 deletions lib/generated/payment_intent.ex
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ defmodule Stripe.PaymentIntent do
)

(
@typedoc "Shipping address."
@typedoc nil
@type address :: %{
optional(:city) => binary,
optional(:country) => binary,
Expand Down Expand Up @@ -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}
)

(
Expand Down Expand Up @@ -292,38 +292,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}
)

(
Expand Down Expand Up @@ -357,25 +327,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}
)

(
Expand Down Expand Up @@ -633,7 +586,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}
)

Expand All @@ -643,11 +596,8 @@ defmodule Stripe.PaymentIntent do
)

(
@typedoc nil
@type sepa_debit :: %{
optional(:mandate_options) => map(),
optional(:setup_future_usage) => :none | :off_session | :on_session
}
@typedoc "If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account."
@type sepa_debit :: %{optional(:iban) => binary}
)

(
Expand All @@ -662,11 +612,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}
)

(
Expand All @@ -689,13 +636,13 @@ defmodule Stripe.PaymentIntent do
)

(
@typedoc nil
@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(:preferred_settlement_speed) => :fastest | :standard,
optional(:setup_future_usage) => :none | :off_session | :on_session,
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
25 changes: 15 additions & 10 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 @@ -288,13 +288,18 @@ defmodule Stripe.SetupIntent do
)

(
@typedoc "Additional fields for Mandate creation"
@typedoc "Configuration options for setting up an eMandate for cards issued in India."
@type mandate_options :: %{
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
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)
}
)

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

Expand Down Expand Up @@ -176,7 +175,7 @@ defmodule Stripe.Token do
)

(
@typedoc "An identifying document, either a passport or local ID card."
@typedoc "A document verifying the business."
@type document :: %{optional(:back) => binary, optional(:front) => binary}
)

Expand Down
51 changes: 47 additions & 4 deletions priv/openapi/spec3.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -28714,6 +28714,7 @@
"enum": [
"any",
"automatic",
"challenge",
"challenge_only"
],
"nullable": true,
Expand Down Expand Up @@ -35576,7 +35577,8 @@
"enum": [
"none"
],
"type": "string"
"type": "string",
"x-stripeBypassValidation": true
}
},
"required": [
Expand Down Expand Up @@ -44916,6 +44918,7 @@
"enum": [
"any",
"automatic",
"challenge",
"challenge_only"
],
"nullable": true,
Expand Down Expand Up @@ -69077,6 +69080,43 @@
"description": "<p>Returns a list of Checkout Sessions.</p>",
"operationId": "GetCheckoutSessions",
"parameters": [
{
"description": "Only return the Checkout Sessions that were created during the given date interval.",
"explode": true,
"in": "query",
"name": "created",
"required": false,
"schema": {
"anyOf": [
{
"properties": {
"gt": {
"description": "Minimum value to filter by (exclusive)",
"type": "integer"
},
"gte": {
"description": "Minimum value to filter by (inclusive)",
"type": "integer"
},
"lt": {
"description": "Maximum value to filter by (exclusive)",
"type": "integer"
},
"lte": {
"description": "Maximum value to filter by (inclusive)",
"type": "integer"
}
},
"title": "range_query_specs",
"type": "object"
},
{
"type": "integer"
}
]
},
"style": "deepObject"
},
{
"description": "Only return the Checkout Sessions for the Customer specified.",
"in": "query",
Expand Down Expand Up @@ -99106,7 +99146,8 @@
"enum": [
"none"
],
"type": "string"
"type": "string",
"x-stripeBypassValidation": true
}
},
"title": "payment_method_options_param",
Expand Down Expand Up @@ -101917,7 +101958,8 @@
"enum": [
"none"
],
"type": "string"
"type": "string",
"x-stripeBypassValidation": true
}
},
"title": "payment_method_options_param",
Expand Down Expand Up @@ -104871,7 +104913,8 @@
"enum": [
"none"
],
"type": "string"
"type": "string",
"x-stripeBypassValidation": true
}
},
"title": "payment_method_options_param",
Expand Down

0 comments on commit 25a950b

Please sign in to comment.