Skip to content

Commit 25a950b

Browse files
committed
Update services based on v691 of Stripe OpenApi SDK
Reference: https://github.com/stripe/openapi/releases/tag/v691
1 parent e06ba07 commit 25a950b

File tree

7 files changed

+101
-103
lines changed

7 files changed

+101
-103
lines changed

.latest-tag-stripe-openapi-sdk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v688
1+
v691

lib/generated/account.ex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ defmodule Stripe.Account do
333333
)
334334

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

@@ -578,11 +578,12 @@ defmodule Stripe.Account do
578578
)
579579

580580
(
581-
@typedoc "Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](https://stripe.com/docs/issuing/connect/tos_acceptance)."
581+
@typedoc "Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/docs/connect/updating-accounts#tos-acceptance)."
582582
@type tos_acceptance :: %{
583583
optional(:date) => integer,
584584
optional(:ip) => binary,
585-
optional(:user_agent) => binary | binary
585+
optional(:service_agreement) => binary,
586+
optional(:user_agent) => binary
586587
}
587588
)
588589

lib/generated/checkout__session.ex

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -238,17 +238,19 @@ defmodule Stripe.Checkout.Session do
238238

239239
(
240240
@typedoc nil
241-
@type custom_fields :: %{
242-
optional(:dropdown) => dropdown,
243-
optional(:key) => binary,
244-
optional(:label) => label,
245-
optional(:numeric) => numeric,
246-
optional(:optional) => boolean,
247-
optional(:text) => text,
248-
optional(:type) => :dropdown | :numeric | :text
241+
@type created :: %{
242+
optional(:gt) => integer,
243+
optional(:gte) => integer,
244+
optional(:lt) => integer,
245+
optional(:lte) => integer
249246
}
250247
)
251248

249+
(
250+
@typedoc nil
251+
@type custom_fields :: %{optional(:name) => binary, optional(:value) => binary}
252+
)
253+
252254
(
253255
@typedoc "Display additional text for your customers using custom text."
254256
@type custom_text :: %{
@@ -990,6 +992,7 @@ defmodule Stripe.Checkout.Session do
990992
(
991993
@spec list(
992994
params :: %{
995+
optional(:created) => created | integer,
993996
optional(:customer) => binary,
994997
optional(:customer_details) => customer_details,
995998
optional(:ending_before) => binary,

lib/generated/payment_intent.ex

Lines changed: 18 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ defmodule Stripe.PaymentIntent do
101101
)
102102

103103
(
104-
@typedoc "Shipping address."
104+
@typedoc nil
105105
@type address :: %{
106106
optional(:city) => binary,
107107
optional(:country) => binary,
@@ -136,8 +136,8 @@ defmodule Stripe.PaymentIntent do
136136
)
137137

138138
(
139-
@typedoc "If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account."
140-
@type au_becs_debit :: %{optional(:account_number) => binary, optional(:bsb_number) => binary}
139+
@typedoc nil
140+
@type au_becs_debit :: %{optional(:setup_future_usage) => :none | :off_session | :on_session}
141141
)
142142

143143
(
@@ -292,38 +292,8 @@ defmodule Stripe.PaymentIntent do
292292
)
293293

294294
(
295-
@typedoc "If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method."
296-
@type eps :: %{
297-
optional(:bank) =>
298-
:arzte_und_apotheker_bank
299-
| :austrian_anadi_bank_ag
300-
| :bank_austria
301-
| :bankhaus_carl_spangler
302-
| :bankhaus_schelhammer_und_schattera_ag
303-
| :bawag_psk_ag
304-
| :bks_bank_ag
305-
| :brull_kallmus_bank_ag
306-
| :btv_vier_lander_bank
307-
| :capital_bank_grawe_gruppe_ag
308-
| :deutsche_bank_ag
309-
| :dolomitenbank
310-
| :easybank_ag
311-
| :erste_bank_und_sparkassen
312-
| :hypo_alpeadriabank_international_ag
313-
| :hypo_bank_burgenland_aktiengesellschaft
314-
| :hypo_noe_lb_fur_niederosterreich_u_wien
315-
| :hypo_oberosterreich_salzburg_steiermark
316-
| :hypo_tirol_bank_ag
317-
| :hypo_vorarlberg_bank_ag
318-
| :marchfelder_bank
319-
| :oberbank_ag
320-
| :raiffeisen_bankengruppe_osterreich
321-
| :schoellerbank_ag
322-
| :sparda_bank_wien
323-
| :volksbank_gruppe
324-
| :volkskreditbank_ag
325-
| :vr_bank_braunau
326-
}
295+
@typedoc nil
296+
@type eps :: %{optional(:setup_future_usage) => :none}
327297
)
328298

329299
(
@@ -357,25 +327,8 @@ defmodule Stripe.PaymentIntent do
357327
)
358328

359329
(
360-
@typedoc "If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method."
361-
@type ideal :: %{
362-
optional(:bank) =>
363-
:abn_amro
364-
| :asn_bank
365-
| :bunq
366-
| :handelsbanken
367-
| :ing
368-
| :knab
369-
| :moneyou
370-
| :n26
371-
| :rabobank
372-
| :regiobank
373-
| :revolut
374-
| :sns_bank
375-
| :triodos_bank
376-
| :van_lanschot
377-
| :yoursafe
378-
}
330+
@typedoc nil
331+
@type ideal :: %{optional(:setup_future_usage) => :none | :off_session}
379332
)
380333

381334
(
@@ -633,7 +586,7 @@ defmodule Stripe.PaymentIntent do
633586
)
634587

635588
(
636-
@typedoc "Options to configure Radar. Learn more about [Radar Sessions](https://stripe.com/docs/radar/radar-session)."
589+
@typedoc "Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information."
637590
@type radar_options :: %{optional(:session) => binary}
638591
)
639592

@@ -643,11 +596,8 @@ defmodule Stripe.PaymentIntent do
643596
)
644597

645598
(
646-
@typedoc nil
647-
@type sepa_debit :: %{
648-
optional(:mandate_options) => map(),
649-
optional(:setup_future_usage) => :none | :off_session | :on_session
650-
}
599+
@typedoc "If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account."
600+
@type sepa_debit :: %{optional(:iban) => binary}
651601
)
652602

653603
(
@@ -662,11 +612,8 @@ defmodule Stripe.PaymentIntent do
662612
)
663613

664614
(
665-
@typedoc nil
666-
@type sofort :: %{
667-
optional(:preferred_language) => :de | :en | :es | :fr | :it | :nl | :pl,
668-
optional(:setup_future_usage) => :none | :off_session
669-
}
615+
@typedoc "If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method."
616+
@type sofort :: %{optional(:country) => :AT | :BE | :DE | :ES | :IT | :NL}
670617
)
671618

672619
(
@@ -689,13 +636,13 @@ defmodule Stripe.PaymentIntent do
689636
)
690637

691638
(
692-
@typedoc nil
639+
@typedoc "If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method."
693640
@type us_bank_account :: %{
694-
optional(:financial_connections) => financial_connections,
695-
optional(:networks) => networks,
696-
optional(:preferred_settlement_speed) => :fastest | :standard,
697-
optional(:setup_future_usage) => :none | :off_session | :on_session,
698-
optional(:verification_method) => :automatic | :instant | :microdeposits
641+
optional(:account_holder_type) => :company | :individual,
642+
optional(:account_number) => binary,
643+
optional(:account_type) => :checking | :savings,
644+
optional(:financial_connections_account) => binary,
645+
optional(:routing_number) => binary
699646
}
700647
)
701648

lib/generated/setup_intent.ex

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ defmodule Stripe.SetupIntent do
6262
)
6363

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

@@ -288,13 +288,18 @@ defmodule Stripe.SetupIntent do
288288
)
289289

290290
(
291-
@typedoc "Additional fields for Mandate creation"
291+
@typedoc "Configuration options for setting up an eMandate for cards issued in India."
292292
@type mandate_options :: %{
293-
optional(:custom_mandate_url) => binary | binary,
294-
optional(:default_for) => list(:invoice | :subscription),
295-
optional(:interval_description) => binary,
296-
optional(:payment_schedule) => :combined | :interval | :sporadic,
297-
optional(:transaction_type) => :business | :personal
293+
optional(:amount) => integer,
294+
optional(:amount_type) => :fixed | :maximum,
295+
optional(:currency) => binary,
296+
optional(:description) => binary,
297+
optional(:end_date) => integer,
298+
optional(:interval) => :day | :month | :sporadic | :week | :year,
299+
optional(:interval_count) => integer,
300+
optional(:reference) => binary,
301+
optional(:start_date) => integer,
302+
optional(:supported_types) => list(:india)
298303
}
299304
)
300305

lib/generated/token.ex

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ defmodule Stripe.Token do
2020
)
2121

2222
(
23-
@typedoc "Information for the account this token represents."
23+
@typedoc "Details on the legal guardian's acceptance of the main Stripe service agreement."
2424
@type account :: %{
25-
optional(:business_type) => :company | :government_entity | :individual | :non_profit,
26-
optional(:company) => company,
27-
optional(:individual) => individual,
28-
optional(:tos_shown_and_accepted) => boolean
25+
optional(:date) => integer,
26+
optional(:ip) => binary,
27+
optional(:user_agent) => binary | binary
2928
}
3029
)
3130

@@ -176,7 +175,7 @@ defmodule Stripe.Token do
176175
)
177176

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

priv/openapi/spec3.sdk.json

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28714,6 +28714,7 @@
2871428714
"enum": [
2871528715
"any",
2871628716
"automatic",
28717+
"challenge",
2871728718
"challenge_only"
2871828719
],
2871928720
"nullable": true,
@@ -35576,7 +35577,8 @@
3557635577
"enum": [
3557735578
"none"
3557835579
],
35579-
"type": "string"
35580+
"type": "string",
35581+
"x-stripeBypassValidation": true
3558035582
}
3558135583
},
3558235584
"required": [
@@ -44916,6 +44918,7 @@
4491644918
"enum": [
4491744919
"any",
4491844920
"automatic",
44921+
"challenge",
4491944922
"challenge_only"
4492044923
],
4492144924
"nullable": true,
@@ -69077,6 +69080,43 @@
6907769080
"description": "<p>Returns a list of Checkout Sessions.</p>",
6907869081
"operationId": "GetCheckoutSessions",
6907969082
"parameters": [
69083+
{
69084+
"description": "Only return the Checkout Sessions that were created during the given date interval.",
69085+
"explode": true,
69086+
"in": "query",
69087+
"name": "created",
69088+
"required": false,
69089+
"schema": {
69090+
"anyOf": [
69091+
{
69092+
"properties": {
69093+
"gt": {
69094+
"description": "Minimum value to filter by (exclusive)",
69095+
"type": "integer"
69096+
},
69097+
"gte": {
69098+
"description": "Minimum value to filter by (inclusive)",
69099+
"type": "integer"
69100+
},
69101+
"lt": {
69102+
"description": "Maximum value to filter by (exclusive)",
69103+
"type": "integer"
69104+
},
69105+
"lte": {
69106+
"description": "Maximum value to filter by (inclusive)",
69107+
"type": "integer"
69108+
}
69109+
},
69110+
"title": "range_query_specs",
69111+
"type": "object"
69112+
},
69113+
{
69114+
"type": "integer"
69115+
}
69116+
]
69117+
},
69118+
"style": "deepObject"
69119+
},
6908069120
{
6908169121
"description": "Only return the Checkout Sessions for the Customer specified.",
6908269122
"in": "query",
@@ -99106,7 +99146,8 @@
9910699146
"enum": [
9910799147
"none"
9910899148
],
99109-
"type": "string"
99149+
"type": "string",
99150+
"x-stripeBypassValidation": true
9911099151
}
9911199152
},
9911299153
"title": "payment_method_options_param",
@@ -101917,7 +101958,8 @@
101917101958
"enum": [
101918101959
"none"
101919101960
],
101920-
"type": "string"
101961+
"type": "string",
101962+
"x-stripeBypassValidation": true
101921101963
}
101922101964
},
101923101965
"title": "payment_method_options_param",
@@ -104871,7 +104913,8 @@
104871104913
"enum": [
104872104914
"none"
104873104915
],
104874-
"type": "string"
104916+
"type": "string",
104917+
"x-stripeBypassValidation": true
104875104918
}
104876104919
},
104877104920
"title": "payment_method_options_param",

0 commit comments

Comments
 (0)