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'

0 commit comments

Comments
 (0)