Skip to content

Commit 46d9040

Browse files
authored
Codegen for openapi 2aeb1a7 (stripe#991)
1 parent b52792a commit 46d9040

96 files changed

Lines changed: 98 additions & 382 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2020-03-02
1+
2020-08-27

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ and instantiate it as `new Stripe()` with the latest API version.
6767
```ts
6868
import Stripe from 'stripe';
6969
const stripe = new Stripe('sk_test_...', {
70-
apiVersion: '2020-03-02',
70+
apiVersion: '2020-08-27',
7171
});
7272

7373
const createCustomer = async () => {

examples/webhook-signing/typescript-node-express/express-ts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import env from 'dotenv';
66
env.config();
77

88
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY, {
9-
apiVersion: '2020-03-02',
9+
apiVersion: '2020-08-27',
1010
});
1111

1212
const webhookSecret: string = process.env.STRIPE_WEBHOOK_SECRET;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"node": "^8.1 || >=10.*"
2626
},
2727
"main": "lib/stripe.js",
28-
"types": "types/2020-03-02/index.d.ts",
28+
"types": "types/2020-08-27/index.d.ts",
2929
"devDependencies": {
3030
"@typescript-eslint/eslint-plugin": "^2.13.0",
3131
"@typescript-eslint/parser": "^2.13.0",
Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ declare module 'stripe' {
4747
*/
4848
expand?: Array<string>;
4949

50-
/**
51-
* Alternate name for refresh_url to ensure backwards compatibility
52-
*/
53-
failure_url?: string;
54-
5550
/**
5651
* The URL that the user will be redirected to if the account link is no longer valid. Your `refresh_url` should trigger a method on your server to create a new account link using this API, with the same parameters, and redirect the user to the new account link.
5752
*/
@@ -61,11 +56,6 @@ declare module 'stripe' {
6156
* The URL that the user will be redirected to upon leaving or completing the linked flow.
6257
*/
6358
return_url?: string;
64-
65-
/**
66-
* Alternate name for return_url to ensure backwards compatibility
67-
*/
68-
success_url?: string;
6959
}
7060

7161
namespace AccountLinkCreateParams {
Lines changed: 10 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -499,13 +499,15 @@ declare module 'stripe' {
499499
| 'verification_document_id_number_missing'
500500
| 'verification_document_incomplete'
501501
| 'verification_document_invalid'
502+
| 'verification_document_issue_or_expiry_date_missing'
502503
| 'verification_document_manipulated'
503504
| 'verification_document_missing_back'
504505
| 'verification_document_missing_front'
505506
| 'verification_document_name_mismatch'
506507
| 'verification_document_name_missing'
507508
| 'verification_document_nationality_mismatch'
508509
| 'verification_document_not_readable'
510+
| 'verification_document_not_signed'
509511
| 'verification_document_not_uploaded'
510512
| 'verification_document_photo_mismatch'
511513
| 'verification_document_too_large'
@@ -517,7 +519,9 @@ declare module 'stripe' {
517519
| 'verification_failed_keyed_identity'
518520
| 'verification_failed_keyed_match'
519521
| 'verification_failed_name_match'
520-
| 'verification_failed_other';
522+
| 'verification_failed_other'
523+
| 'verification_failed_tax_id_match'
524+
| 'verification_failed_tax_id_not_issued';
521525
}
522526
}
523527

@@ -669,17 +673,17 @@ declare module 'stripe' {
669673
/**
670674
* The Unix timestamp marking when the Stripe Services Agreement was accepted by the account representative
671675
*/
672-
date: number | null;
676+
date?: number | null;
673677

674678
/**
675679
* The IP address from which the Stripe Services Agreement was accepted by the account representative
676680
*/
677-
ip: string | null;
681+
ip?: string | null;
678682

679683
/**
680684
* The user agent of the browser from which the Stripe Services Agreement was accepted by the account representative
681685
*/
682-
user_agent: string | null;
686+
user_agent?: string | null;
683687
}
684688

685689
type Type = 'custom' | 'express' | 'standard';
@@ -727,7 +731,7 @@ declare module 'stripe' {
727731
capabilities?: AccountCreateParams.Capabilities;
728732

729733
/**
730-
* Information about the company or business. This field is null unless `business_type` is set to `company`, `government_entity`, or `non_profit`.
734+
* Information about the company or business. This field is available for any `business_type`.
731735
*/
732736
company?: AccountCreateParams.Company;
733737

@@ -768,11 +772,6 @@ declare module 'stripe' {
768772
*/
769773
metadata?: MetadataParam | null;
770774

771-
/**
772-
* (Deprecated) Alternative to `capabilities`. The set of capabilities you want to unlock for this account. Each capability will be inactive until you have provided its specific requirements and Stripe has verified them. An account may have some of its requested capabilities be active and some be inactive.
773-
*/
774-
requested_capabilities?: Array<AccountCreateParams.RequestedCapability>;
775-
776775
/**
777776
* Options for customizing how the account functions within Stripe.
778777
*/
@@ -1345,19 +1344,6 @@ declare module 'stripe' {
13451344
}
13461345
}
13471346

1348-
type RequestedCapability =
1349-
| 'au_becs_debit_payments'
1350-
| 'bacs_debit_payments'
1351-
| 'card_issuing'
1352-
| 'card_payments'
1353-
| 'cartes_bancaires_payments'
1354-
| 'fpx_payments'
1355-
| 'jcb_payments'
1356-
| 'legacy_payments'
1357-
| 'tax_reporting_us_1099_k'
1358-
| 'tax_reporting_us_1099_misc'
1359-
| 'transfers';
1360-
13611347
interface Settings {
13621348
/**
13631349
* Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
@@ -1557,7 +1543,7 @@ declare module 'stripe' {
15571543
capabilities?: AccountUpdateParams.Capabilities;
15581544

15591545
/**
1560-
* Information about the company or business. This field is null unless `business_type` is set to `company`, `government_entity`, or `non_profit`.
1546+
* Information about the company or business. This field is available for any `business_type`.
15611547
*/
15621548
company?: AccountUpdateParams.Company;
15631549

@@ -1593,11 +1579,6 @@ declare module 'stripe' {
15931579
*/
15941580
metadata?: MetadataParam | null;
15951581

1596-
/**
1597-
* (Deprecated) Alternative to `capabilities`. The set of capabilities you want to unlock for this account. Each capability will be inactive until you have provided its specific requirements and Stripe has verified them. An account may have some of its requested capabilities be active and some be inactive.
1598-
*/
1599-
requested_capabilities?: Array<AccountUpdateParams.RequestedCapability>;
1600-
16011582
/**
16021583
* Options for customizing how the account functions within Stripe.
16031584
*/
@@ -2165,19 +2146,6 @@ declare module 'stripe' {
21652146
}
21662147
}
21672148

2168-
type RequestedCapability =
2169-
| 'au_becs_debit_payments'
2170-
| 'bacs_debit_payments'
2171-
| 'card_issuing'
2172-
| 'card_payments'
2173-
| 'cartes_bancaires_payments'
2174-
| 'fpx_payments'
2175-
| 'jcb_payments'
2176-
| 'legacy_payments'
2177-
| 'tax_reporting_us_1099_k'
2178-
| 'tax_reporting_us_1099_misc'
2179-
| 'transfers';
2180-
21812149
interface Settings {
21822150
/**
21832151
* Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.

0 commit comments

Comments
 (0)