Skip to content

Commit 8ab38cb

Browse files
Update generated code (#2175)
* Update generated code for v1254 * Update generated code for v1261 * Update generated code for v1263 * Update generated code for v1266 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent 1aadfa1 commit 8ab38cb

15 files changed

+129
-12
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1260
1+
v1266

test/resources/generated_examples_test.spec.js

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

types/Accounts.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,8 @@ declare module 'stripe' {
10071007
| 'verification_missing_executives'
10081008
| 'verification_missing_owners'
10091009
| 'verification_requires_additional_memorandum_of_associations'
1010-
| 'verification_requires_additional_proof_of_registration';
1010+
| 'verification_requires_additional_proof_of_registration'
1011+
| 'verification_supportability';
10111012
}
10121013
}
10131014

@@ -1173,7 +1174,8 @@ declare module 'stripe' {
11731174
| 'verification_missing_executives'
11741175
| 'verification_missing_owners'
11751176
| 'verification_requires_additional_memorandum_of_associations'
1176-
| 'verification_requires_additional_proof_of_registration';
1177+
| 'verification_requires_additional_proof_of_registration'
1178+
| 'verification_supportability';
11771179
}
11781180
}
11791181

types/BankAccounts.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,8 @@ declare module 'stripe' {
250250
| 'verification_missing_executives'
251251
| 'verification_missing_owners'
252252
| 'verification_requires_additional_memorandum_of_associations'
253-
| 'verification_requires_additional_proof_of_registration';
253+
| 'verification_requires_additional_proof_of_registration'
254+
| 'verification_supportability';
254255
}
255256
}
256257

@@ -384,7 +385,8 @@ declare module 'stripe' {
384385
| 'verification_missing_executives'
385386
| 'verification_missing_owners'
386387
| 'verification_requires_additional_memorandum_of_associations'
387-
| 'verification_requires_additional_proof_of_registration';
388+
| 'verification_requires_additional_proof_of_registration'
389+
| 'verification_supportability';
388390
}
389391
}
390392
}

types/Capabilities.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ declare module 'stripe' {
218218
| 'verification_missing_executives'
219219
| 'verification_missing_owners'
220220
| 'verification_requires_additional_memorandum_of_associations'
221-
| 'verification_requires_additional_proof_of_registration';
221+
| 'verification_requires_additional_proof_of_registration'
222+
| 'verification_supportability';
222223
}
223224
}
224225

@@ -396,7 +397,8 @@ declare module 'stripe' {
396397
| 'verification_missing_executives'
397398
| 'verification_missing_owners'
398399
| 'verification_requires_additional_memorandum_of_associations'
399-
| 'verification_requires_additional_proof_of_registration';
400+
| 'verification_requires_additional_proof_of_registration'
401+
| 'verification_supportability';
400402
}
401403
}
402404

types/Charges.d.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,6 +1657,11 @@ declare module 'stripe' {
16571657
}
16581658

16591659
interface Klarna {
1660+
/**
1661+
* The payer details for this transaction.
1662+
*/
1663+
payer_details: Klarna.PayerDetails | null;
1664+
16601665
/**
16611666
* The Klarna payment method used for this transaction.
16621667
* Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments`
@@ -1670,6 +1675,24 @@ declare module 'stripe' {
16701675
preferred_locale: string | null;
16711676
}
16721677

1678+
namespace Klarna {
1679+
interface PayerDetails {
1680+
/**
1681+
* The payer's address
1682+
*/
1683+
address: PayerDetails.Address | null;
1684+
}
1685+
1686+
namespace PayerDetails {
1687+
interface Address {
1688+
/**
1689+
* The payer address country
1690+
*/
1691+
country: string | null;
1692+
}
1693+
}
1694+
}
1695+
16731696
interface Konbini {
16741697
/**
16751698
* If the payment succeeded, this contains the details of the convenience store where the payment was completed.

types/Disputes.d.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ declare module 'stripe' {
248248
}
249249

250250
interface PaymentMethodDetails {
251+
amazon_pay?: PaymentMethodDetails.AmazonPay;
252+
251253
card?: PaymentMethodDetails.Card;
252254

253255
klarna?: PaymentMethodDetails.Klarna;
@@ -261,6 +263,17 @@ declare module 'stripe' {
261263
}
262264

263265
namespace PaymentMethodDetails {
266+
interface AmazonPay {
267+
/**
268+
* The AmazonPay dispute type, chargeback or claim
269+
*/
270+
dispute_type: AmazonPay.DisputeType | null;
271+
}
272+
273+
namespace AmazonPay {
274+
type DisputeType = 'chargeback' | 'claim';
275+
}
276+
264277
interface Card {
265278
/**
266279
* Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
@@ -301,7 +314,7 @@ declare module 'stripe' {
301314
reason_code: string | null;
302315
}
303316

304-
type Type = 'card' | 'klarna' | 'paypal';
317+
type Type = 'amazon_pay' | 'card' | 'klarna' | 'paypal';
305318
}
306319

307320
type Status =

types/InvoiceRenderingTemplates.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
declare module 'stripe' {
44
namespace Stripe {
55
/**
6-
* The InvoiceRenderingTemplate object.
6+
* Invoice Rendering Templates are used to configure how invoices are rendered on surfaces like the PDF. Invoice Rendering Templates
7+
* can be created from within the Dashboard, and they can be used over the API when creating invoices.
78
*/
89
interface InvoiceRenderingTemplate {
910
/**

types/Invoices.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ declare module 'stripe' {
135135

136136
automatic_tax: Invoice.AutomaticTax;
137137

138+
/**
139+
* The time when this invoice is currently scheduled to be automatically finalized. The field will be `null` if the invoice is not scheduled to finalize in the future. If the invoice is not in the draft state, this field will always be `null` - see `finalized_at` for the time when an already-finalized invoice was finalized.
140+
*/
141+
automatically_finalizes_at: number | null;
142+
138143
/**
139144
* Indicates the reason why the invoice was created.
140145
*
@@ -940,6 +945,7 @@ declare module 'stripe' {
940945
| 'terminal_location_country_unsupported'
941946
| 'terminal_reader_busy'
942947
| 'terminal_reader_hardware_fault'
948+
| 'terminal_reader_invalid_location_for_activation'
943949
| 'terminal_reader_invalid_location_for_payment'
944950
| 'terminal_reader_offline'
945951
| 'terminal_reader_timeout'

types/PaymentIntents.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ declare module 'stripe' {
539539
| 'terminal_location_country_unsupported'
540540
| 'terminal_reader_busy'
541541
| 'terminal_reader_hardware_fault'
542+
| 'terminal_reader_invalid_location_for_activation'
542543
| 'terminal_reader_invalid_location_for_payment'
543544
| 'terminal_reader_offline'
544545
| 'terminal_reader_timeout'

types/Persons.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,8 @@ declare module 'stripe' {
443443
| 'verification_missing_executives'
444444
| 'verification_missing_owners'
445445
| 'verification_requires_additional_memorandum_of_associations'
446-
| 'verification_requires_additional_proof_of_registration';
446+
| 'verification_requires_additional_proof_of_registration'
447+
| 'verification_supportability';
447448
}
448449
}
449450

@@ -638,7 +639,8 @@ declare module 'stripe' {
638639
| 'verification_missing_executives'
639640
| 'verification_missing_owners'
640641
| 'verification_requires_additional_memorandum_of_associations'
641-
| 'verification_requires_additional_proof_of_registration';
642+
| 'verification_requires_additional_proof_of_registration'
643+
| 'verification_supportability';
642644
}
643645
}
644646

types/SetupAttempts.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,7 @@ declare module 'stripe' {
783783
| 'terminal_location_country_unsupported'
784784
| 'terminal_reader_busy'
785785
| 'terminal_reader_hardware_fault'
786+
| 'terminal_reader_invalid_location_for_activation'
786787
| 'terminal_reader_invalid_location_for_payment'
787788
| 'terminal_reader_offline'
788789
| 'terminal_reader_timeout'

types/SetupIntents.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ declare module 'stripe' {
448448
| 'terminal_location_country_unsupported'
449449
| 'terminal_reader_busy'
450450
| 'terminal_reader_hardware_fault'
451+
| 'terminal_reader_invalid_location_for_activation'
451452
| 'terminal_reader_invalid_location_for_payment'
452453
| 'terminal_reader_offline'
453454
| 'terminal_reader_timeout'

types/Tax/Registrations.d.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,8 @@ declare module 'stripe' {
10231023
*/
10241024
state: string;
10251025

1026+
state_sales_tax?: Us.StateSalesTax;
1027+
10261028
/**
10271029
* Type of registration in the US.
10281030
*/
@@ -1044,6 +1046,34 @@ declare module 'stripe' {
10441046
jurisdiction: string;
10451047
}
10461048

1049+
interface StateSalesTax {
1050+
/**
1051+
* Elections for the state sales tax registration.
1052+
*/
1053+
elections?: Array<StateSalesTax.Election>;
1054+
}
1055+
1056+
namespace StateSalesTax {
1057+
interface Election {
1058+
/**
1059+
* A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction.
1060+
*/
1061+
jurisdiction?: string;
1062+
1063+
/**
1064+
* The type of the election for the state sales tax registration.
1065+
*/
1066+
type: Election.Type;
1067+
}
1068+
1069+
namespace Election {
1070+
type Type =
1071+
| 'local_use_tax'
1072+
| 'simplified_sellers_use_tax'
1073+
| 'single_local_use_tax';
1074+
}
1075+
}
1076+
10471077
type Type =
10481078
| 'local_amusement_tax'
10491079
| 'local_lease_tax'

types/Tax/RegistrationsResource.d.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,6 +1257,11 @@ declare module 'stripe' {
12571257
*/
12581258
state: string;
12591259

1260+
/**
1261+
* Options for the state sales tax registration.
1262+
*/
1263+
state_sales_tax?: Us.StateSalesTax;
1264+
12601265
/**
12611266
* Type of registration to be created in the US.
12621267
*/
@@ -1278,6 +1283,34 @@ declare module 'stripe' {
12781283
jurisdiction: string;
12791284
}
12801285

1286+
interface StateSalesTax {
1287+
/**
1288+
* Elections for the state sales tax registration.
1289+
*/
1290+
elections: Array<StateSalesTax.Election>;
1291+
}
1292+
1293+
namespace StateSalesTax {
1294+
interface Election {
1295+
/**
1296+
* A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `003` (Allegheny County) and `60000` (Philadelphia City).
1297+
*/
1298+
jurisdiction?: string;
1299+
1300+
/**
1301+
* The type of the election for the state sales tax registration.
1302+
*/
1303+
type: Election.Type;
1304+
}
1305+
1306+
namespace Election {
1307+
type Type =
1308+
| 'local_use_tax'
1309+
| 'simplified_sellers_use_tax'
1310+
| 'single_local_use_tax';
1311+
}
1312+
}
1313+
12811314
type Type =
12821315
| 'local_amusement_tax'
12831316
| 'local_lease_tax'

0 commit comments

Comments
 (0)