stripe 16.2.0-beta.1 → 16.3.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/VERSION +1 -1
- package/cjs/resources/FinancialConnections/Institutions.js +17 -0
- package/cjs/resources.js +2 -0
- package/cjs/stripe.core.js +1 -1
- package/esm/resources/FinancialConnections/Institutions.js +14 -0
- package/esm/resources.js +2 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/Billing/MeterEventSummaries.d.ts +2 -2
- package/types/Billing/MetersResource.d.ts +2 -2
- package/types/Checkout/Sessions.d.ts +5 -0
- package/types/CustomerSessions.d.ts +42 -14
- package/types/CustomerSessionsResource.d.ts +38 -10
- package/types/Customers.d.ts +1 -1
- package/types/EventTypes.d.ts +1 -1
- package/types/FinancialConnections/Accounts.d.ts +1 -1
- package/types/FinancialConnections/AccountsResource.d.ts +2 -2
- package/types/FinancialConnections/Institutions.d.ts +93 -0
- package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
- package/types/FinancialConnections/Sessions.d.ts +5 -0
- package/types/FinancialConnections/SessionsResource.d.ts +5 -0
- package/types/Invoices.d.ts +7 -0
- package/types/InvoicesResource.d.ts +13 -3
- package/types/PaymentIntents.d.ts +7 -0
- package/types/PaymentIntentsResource.d.ts +15 -0
- package/types/QuotePreviewInvoices.d.ts +7 -0
- package/types/SetupAttempts.d.ts +2 -0
- package/types/SetupIntents.d.ts +7 -0
- package/types/SetupIntentsResource.d.ts +15 -0
- package/types/Subscriptions.d.ts +5 -0
- package/types/SubscriptionsResource.d.ts +10 -0
- package/types/Tax/Transactions.d.ts +5 -0
- package/types/Tax/TransactionsResource.d.ts +5 -0
- package/types/index.d.ts +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 16.3.0-beta.1 - 2024-07-05
|
|
4
|
+
* [#2126](https://github.com/stripe/stripe-node/pull/2126) Update generated code for beta
|
|
5
|
+
* ⚠️ Remove support for `payment_method_update` on `CustomerSession.components.payment_element.features` and `CustomerSessionCreateParams.components.payment_element.features`. Users are expected to completely migrate from using `payment_method_update`.
|
|
6
|
+
* Add support for new resource `FinancialConnections.Institution`
|
|
7
|
+
* Add support for `list` and `retrieve` methods on resource `Institution`
|
|
8
|
+
* Add support for `institution` on `Checkout.Session.payment_method_options.us_bank_account.financial_connections.filters`, `FinancialConnections.Session.filters`, `FinancialConnections.SessionCreateParams.filters`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections.filters`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.filters`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.filters`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections.filters`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.filters`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections.filters`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.filters`, `SetupIntent.payment_method_options.us_bank_account.financial_connections.filters`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.filters`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections.filters`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.filters`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections.filters`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.filters`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.filters`
|
|
9
|
+
* Add support for `payment_method_allow_redisplay_filters`, `payment_method_redisplay_limit`, `payment_method_redisplay`, and `payment_method_save_usage` on `CustomerSession.components.payment_element.features` and `CustomerSessionCreateParams.components.payment_element.features`
|
|
10
|
+
* Add support for new value `balance` on enums `FinancialConnections.Account.subscriptions[]`, `FinancialConnections.AccountSubscribeParams.features[]`, and `FinancialConnections.AccountUnsubscribeParams.features[]`
|
|
11
|
+
|
|
3
12
|
## 16.2.0-beta.1 - 2024-06-27
|
|
4
13
|
* [#2110](https://github.com/stripe/stripe-node/pull/2110) Update generated code for beta
|
|
5
14
|
* Remove support for `payment_method_set_as_default` on `CustomerSession.components.payment_element.features` and `CustomerSessionCreateParams.components.payment_element.features`
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
16.
|
|
1
|
+
16.3.0-beta.1
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Institutions = void 0;
|
|
5
|
+
const StripeResource_js_1 = require("../../StripeResource.js");
|
|
6
|
+
const stripeMethod = StripeResource_js_1.StripeResource.method;
|
|
7
|
+
exports.Institutions = StripeResource_js_1.StripeResource.extend({
|
|
8
|
+
retrieve: stripeMethod({
|
|
9
|
+
method: 'GET',
|
|
10
|
+
fullPath: '/v1/financial_connections/institutions/{institution}',
|
|
11
|
+
}),
|
|
12
|
+
list: stripeMethod({
|
|
13
|
+
method: 'GET',
|
|
14
|
+
fullPath: '/v1/financial_connections/institutions',
|
|
15
|
+
methodType: 'list',
|
|
16
|
+
}),
|
|
17
|
+
});
|
package/cjs/resources.js
CHANGED
|
@@ -31,6 +31,7 @@ const FinancingTransactions_js_1 = require("./resources/Capital/FinancingTransac
|
|
|
31
31
|
const Forms_js_1 = require("./resources/Tax/Forms.js");
|
|
32
32
|
const InboundTransfers_js_1 = require("./resources/TestHelpers/Treasury/InboundTransfers.js");
|
|
33
33
|
const InboundTransfers_js_2 = require("./resources/Treasury/InboundTransfers.js");
|
|
34
|
+
const Institutions_js_1 = require("./resources/FinancialConnections/Institutions.js");
|
|
34
35
|
const Locations_js_1 = require("./resources/Terminal/Locations.js");
|
|
35
36
|
const MeterEventAdjustments_js_1 = require("./resources/Billing/MeterEventAdjustments.js");
|
|
36
37
|
const MeterEvents_js_1 = require("./resources/Billing/MeterEvents.js");
|
|
@@ -216,6 +217,7 @@ exports.Entitlements = (0, ResourceNamespace_js_1.resourceNamespace)('entitlemen
|
|
|
216
217
|
});
|
|
217
218
|
exports.FinancialConnections = (0, ResourceNamespace_js_1.resourceNamespace)('financialConnections', {
|
|
218
219
|
Accounts: Accounts_js_1.Accounts,
|
|
220
|
+
Institutions: Institutions_js_1.Institutions,
|
|
219
221
|
Sessions: Sessions_js_3.Sessions,
|
|
220
222
|
Transactions: Transactions_js_2.Transactions,
|
|
221
223
|
});
|
package/cjs/stripe.core.js
CHANGED
|
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
34
34
|
];
|
|
35
35
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
36
36
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
37
|
-
Stripe.PACKAGE_VERSION = '16.
|
|
37
|
+
Stripe.PACKAGE_VERSION = '16.3.0-beta.1';
|
|
38
38
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
39
39
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
40
40
|
Stripe.resources = resources;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const Institutions = StripeResource.extend({
|
|
5
|
+
retrieve: stripeMethod({
|
|
6
|
+
method: 'GET',
|
|
7
|
+
fullPath: '/v1/financial_connections/institutions/{institution}',
|
|
8
|
+
}),
|
|
9
|
+
list: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v1/financial_connections/institutions',
|
|
12
|
+
methodType: 'list',
|
|
13
|
+
}),
|
|
14
|
+
});
|
package/esm/resources.js
CHANGED
|
@@ -27,6 +27,7 @@ import { FinancingTransactions as CapitalFinancingTransactions } from './resourc
|
|
|
27
27
|
import { Forms as TaxForms } from './resources/Tax/Forms.js';
|
|
28
28
|
import { InboundTransfers as TestHelpersTreasuryInboundTransfers } from './resources/TestHelpers/Treasury/InboundTransfers.js';
|
|
29
29
|
import { InboundTransfers as TreasuryInboundTransfers } from './resources/Treasury/InboundTransfers.js';
|
|
30
|
+
import { Institutions as FinancialConnectionsInstitutions } from './resources/FinancialConnections/Institutions.js';
|
|
30
31
|
import { Locations as TerminalLocations } from './resources/Terminal/Locations.js';
|
|
31
32
|
import { MeterEventAdjustments as BillingMeterEventAdjustments } from './resources/Billing/MeterEventAdjustments.js';
|
|
32
33
|
import { MeterEvents as BillingMeterEvents } from './resources/Billing/MeterEvents.js';
|
|
@@ -156,6 +157,7 @@ export const Entitlements = resourceNamespace('entitlements', {
|
|
|
156
157
|
});
|
|
157
158
|
export const FinancialConnections = resourceNamespace('financialConnections', {
|
|
158
159
|
Accounts: FinancialConnectionsAccounts,
|
|
160
|
+
Institutions: FinancialConnectionsInstitutions,
|
|
159
161
|
Sessions: FinancialConnectionsSessions,
|
|
160
162
|
Transactions: FinancialConnectionsTransactions,
|
|
161
163
|
});
|
package/esm/stripe.core.js
CHANGED
|
@@ -31,7 +31,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
31
31
|
];
|
|
32
32
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
33
33
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
34
|
-
Stripe.PACKAGE_VERSION = '16.
|
|
34
|
+
Stripe.PACKAGE_VERSION = '16.3.0-beta.1';
|
|
35
35
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
36
36
|
Stripe.StripeResource = StripeResource;
|
|
37
37
|
Stripe.resources = resources;
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ declare module 'stripe' {
|
|
|
24
24
|
aggregated_value: number;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* End timestamp for this event summary (
|
|
27
|
+
* End timestamp for this event summary (exclusive). Must be aligned with minute boundaries.
|
|
28
28
|
*/
|
|
29
29
|
end_time: number;
|
|
30
30
|
|
|
@@ -39,7 +39,7 @@ declare module 'stripe' {
|
|
|
39
39
|
meter: string;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
* Start timestamp for this event summary (inclusive).
|
|
42
|
+
* Start timestamp for this event summary (inclusive). Must be aligned with minute boundaries.
|
|
43
43
|
*/
|
|
44
44
|
start_time: number;
|
|
45
45
|
}
|
|
@@ -123,12 +123,12 @@ declare module 'stripe' {
|
|
|
123
123
|
customer: string;
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
|
-
* The timestamp from when to stop aggregating meter events (exclusive).
|
|
126
|
+
* The timestamp from when to stop aggregating meter events (exclusive). Must be aligned with minute boundaries.
|
|
127
127
|
*/
|
|
128
128
|
end_time: number;
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
|
-
* The timestamp from when to start aggregating meter events (inclusive).
|
|
131
|
+
* The timestamp from when to start aggregating meter events (inclusive). Must be aligned with minute boundaries.
|
|
132
132
|
*/
|
|
133
133
|
start_time: number;
|
|
134
134
|
|
|
@@ -1547,6 +1547,11 @@ declare module 'stripe' {
|
|
|
1547
1547
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
1548
1548
|
*/
|
|
1549
1549
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1550
|
+
|
|
1551
|
+
/**
|
|
1552
|
+
* The institution to use to filter for possible accounts to link.
|
|
1553
|
+
*/
|
|
1554
|
+
institution?: string;
|
|
1550
1555
|
}
|
|
1551
1556
|
|
|
1552
1557
|
namespace Filters {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
declare module 'stripe' {
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
/**
|
|
6
|
-
* A
|
|
7
|
-
* control over a
|
|
6
|
+
* A Customer Session allows you to grant Stripe's frontend SDKs (like Stripe.js) client-side access
|
|
7
|
+
* control over a Customer.
|
|
8
8
|
*/
|
|
9
9
|
interface CustomerSession {
|
|
10
10
|
/**
|
|
@@ -13,14 +13,14 @@ declare module 'stripe' {
|
|
|
13
13
|
object: 'customer_session';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* The client secret of this
|
|
16
|
+
* The client secret of this Customer Session. Used on the client to set up secure access to the given `customer`.
|
|
17
17
|
*
|
|
18
18
|
* The client secret can be used to provide access to `customer` from your frontend. It should not be stored, logged, or exposed to anyone other than the relevant customer. Make sure that you have TLS enabled on any page that includes the client secret.
|
|
19
19
|
*/
|
|
20
20
|
client_secret: string;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* Configuration for the components supported by this
|
|
23
|
+
* Configuration for the components supported by this Customer Session.
|
|
24
24
|
*/
|
|
25
25
|
components?: CustomerSession.Components;
|
|
26
26
|
|
|
@@ -30,12 +30,12 @@ declare module 'stripe' {
|
|
|
30
30
|
created: number;
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
* The
|
|
33
|
+
* The Customer the Customer Session was created for.
|
|
34
34
|
*/
|
|
35
35
|
customer: string | Stripe.Customer;
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* The timestamp at which this
|
|
38
|
+
* The timestamp at which this Customer Session will expire.
|
|
39
39
|
*/
|
|
40
40
|
expires_at: number;
|
|
41
41
|
|
|
@@ -53,7 +53,7 @@ declare module 'stripe' {
|
|
|
53
53
|
buy_button: Components.BuyButton;
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
|
-
* This hash contains whether the
|
|
56
|
+
* This hash contains whether the Payment Element is enabled and the features it supports.
|
|
57
57
|
*/
|
|
58
58
|
payment_element?: Components.PaymentElement;
|
|
59
59
|
|
|
@@ -73,12 +73,12 @@ declare module 'stripe' {
|
|
|
73
73
|
|
|
74
74
|
interface PaymentElement {
|
|
75
75
|
/**
|
|
76
|
-
* Whether the
|
|
76
|
+
* Whether the Payment Element is enabled.
|
|
77
77
|
*/
|
|
78
78
|
enabled: boolean;
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
|
-
* This hash defines whether the
|
|
81
|
+
* This hash defines whether the Payment Element supports certain features.
|
|
82
82
|
*/
|
|
83
83
|
features: PaymentElement.Features | null;
|
|
84
84
|
}
|
|
@@ -86,31 +86,59 @@ declare module 'stripe' {
|
|
|
86
86
|
namespace PaymentElement {
|
|
87
87
|
interface Features {
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the Payment Element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
|
|
90
|
+
*
|
|
91
|
+
* If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"].
|
|
92
|
+
*/
|
|
93
|
+
payment_method_allow_redisplay_filters: Array<
|
|
94
|
+
Features.PaymentMethodAllowRedisplayFilter
|
|
95
|
+
>;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Controls whether or not the Payment Element shows saved payment methods. This parameter defaults to `disabled`.
|
|
99
|
+
*/
|
|
100
|
+
payment_method_redisplay: Features.PaymentMethodRedisplay;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Determines the max number of saved payment methods for the Payment Element to display. This parameter defaults to `10`.
|
|
104
|
+
*/
|
|
105
|
+
payment_method_redisplay_limit: number | null;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Controls whether the Payment Element displays the option to remove a saved payment method. This parameter defaults to `disabled`.
|
|
90
109
|
*
|
|
91
110
|
* Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
|
|
92
111
|
*/
|
|
93
112
|
payment_method_remove: Features.PaymentMethodRemove;
|
|
94
113
|
|
|
95
114
|
/**
|
|
96
|
-
* Controls whether the Payment Element displays a checkbox offering to save a new payment method.
|
|
115
|
+
* Controls whether the Payment Element displays a checkbox offering to save a new payment method. This parameter defaults to `disabled`.
|
|
97
116
|
*
|
|
98
117
|
* If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`.
|
|
99
118
|
*/
|
|
100
119
|
payment_method_save: Features.PaymentMethodSave;
|
|
101
120
|
|
|
102
121
|
/**
|
|
103
|
-
*
|
|
122
|
+
* When using PaymentIntents and the customer checks the save checkbox, this field determines the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value used to confirm the PaymentIntent.
|
|
123
|
+
*
|
|
124
|
+
* When using SetupIntents, directly configure the [`usage`](https://docs.stripe.com/api/setup_intents/object#setup_intent_object-usage) value on SetupIntent creation.
|
|
104
125
|
*/
|
|
105
|
-
|
|
126
|
+
payment_method_save_usage: Features.PaymentMethodSaveUsage | null;
|
|
106
127
|
}
|
|
107
128
|
|
|
108
129
|
namespace Features {
|
|
130
|
+
type PaymentMethodAllowRedisplayFilter =
|
|
131
|
+
| 'always'
|
|
132
|
+
| 'limited'
|
|
133
|
+
| 'unspecified';
|
|
134
|
+
|
|
135
|
+
type PaymentMethodRedisplay = 'disabled' | 'enabled';
|
|
136
|
+
|
|
109
137
|
type PaymentMethodRemove = 'disabled' | 'enabled';
|
|
110
138
|
|
|
111
139
|
type PaymentMethodSave = 'disabled' | 'enabled';
|
|
112
140
|
|
|
113
|
-
type
|
|
141
|
+
type PaymentMethodSaveUsage = 'off_session' | 'on_session';
|
|
114
142
|
}
|
|
115
143
|
}
|
|
116
144
|
|
|
@@ -9,7 +9,7 @@ declare module 'stripe' {
|
|
|
9
9
|
components: CustomerSessionCreateParams.Components;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* The ID of an existing customer for which to create the
|
|
12
|
+
* The ID of an existing customer for which to create the Customer Session.
|
|
13
13
|
*/
|
|
14
14
|
customer: string;
|
|
15
15
|
|
|
@@ -27,7 +27,7 @@ declare module 'stripe' {
|
|
|
27
27
|
buy_button?: Components.BuyButton;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Configuration for the
|
|
30
|
+
* Configuration for the Payment Element.
|
|
31
31
|
*/
|
|
32
32
|
payment_element?: Components.PaymentElement;
|
|
33
33
|
|
|
@@ -47,12 +47,12 @@ declare module 'stripe' {
|
|
|
47
47
|
|
|
48
48
|
interface PaymentElement {
|
|
49
49
|
/**
|
|
50
|
-
* Whether the
|
|
50
|
+
* Whether the Payment Element is enabled.
|
|
51
51
|
*/
|
|
52
52
|
enabled: boolean;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
* This hash defines whether the
|
|
55
|
+
* This hash defines whether the Payment Element supports certain features.
|
|
56
56
|
*/
|
|
57
57
|
features?: PaymentElement.Features;
|
|
58
58
|
}
|
|
@@ -60,31 +60,59 @@ declare module 'stripe' {
|
|
|
60
60
|
namespace PaymentElement {
|
|
61
61
|
interface Features {
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the Payment Element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
|
|
64
|
+
*
|
|
65
|
+
* If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"].
|
|
66
|
+
*/
|
|
67
|
+
payment_method_allow_redisplay_filters?: Array<
|
|
68
|
+
Features.PaymentMethodAllowRedisplayFilter
|
|
69
|
+
>;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Controls whether or not the Payment Element shows saved payment methods. This parameter defaults to `disabled`.
|
|
73
|
+
*/
|
|
74
|
+
payment_method_redisplay?: Features.PaymentMethodRedisplay;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Determines the max number of saved payment methods for the Payment Element to display. This parameter defaults to `10`.
|
|
78
|
+
*/
|
|
79
|
+
payment_method_redisplay_limit?: number;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Controls whether the Payment Element displays the option to remove a saved payment method. This parameter defaults to `disabled`.
|
|
64
83
|
*
|
|
65
84
|
* Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
|
|
66
85
|
*/
|
|
67
86
|
payment_method_remove?: Features.PaymentMethodRemove;
|
|
68
87
|
|
|
69
88
|
/**
|
|
70
|
-
* Controls whether the Payment Element displays a checkbox offering to save a new payment method.
|
|
89
|
+
* Controls whether the Payment Element displays a checkbox offering to save a new payment method. This parameter defaults to `disabled`.
|
|
71
90
|
*
|
|
72
91
|
* If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`.
|
|
73
92
|
*/
|
|
74
93
|
payment_method_save?: Features.PaymentMethodSave;
|
|
75
94
|
|
|
76
95
|
/**
|
|
77
|
-
*
|
|
96
|
+
* When using PaymentIntents and the customer checks the save checkbox, this field determines the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value used to confirm the PaymentIntent.
|
|
97
|
+
*
|
|
98
|
+
* When using SetupIntents, directly configure the [`usage`](https://docs.stripe.com/api/setup_intents/object#setup_intent_object-usage) value on SetupIntent creation.
|
|
78
99
|
*/
|
|
79
|
-
|
|
100
|
+
payment_method_save_usage?: Features.PaymentMethodSaveUsage;
|
|
80
101
|
}
|
|
81
102
|
|
|
82
103
|
namespace Features {
|
|
104
|
+
type PaymentMethodAllowRedisplayFilter =
|
|
105
|
+
| 'always'
|
|
106
|
+
| 'limited'
|
|
107
|
+
| 'unspecified';
|
|
108
|
+
|
|
109
|
+
type PaymentMethodRedisplay = 'disabled' | 'enabled';
|
|
110
|
+
|
|
83
111
|
type PaymentMethodRemove = 'disabled' | 'enabled';
|
|
84
112
|
|
|
85
113
|
type PaymentMethodSave = 'disabled' | 'enabled';
|
|
86
114
|
|
|
87
|
-
type
|
|
115
|
+
type PaymentMethodSaveUsage = 'off_session' | 'on_session';
|
|
88
116
|
}
|
|
89
117
|
}
|
|
90
118
|
|
|
@@ -99,7 +127,7 @@ declare module 'stripe' {
|
|
|
99
127
|
|
|
100
128
|
class CustomerSessionsResource {
|
|
101
129
|
/**
|
|
102
|
-
* Creates a
|
|
130
|
+
* Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
|
|
103
131
|
*/
|
|
104
132
|
create(
|
|
105
133
|
params: CustomerSessionCreateParams,
|
package/types/Customers.d.ts
CHANGED
|
@@ -109,7 +109,7 @@ declare module 'stripe' {
|
|
|
109
109
|
name?: string | null;
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
* The suffix of the customer's next invoice number (for example, 0001).
|
|
112
|
+
* The suffix of the customer's next invoice number (for example, 0001). When the account uses account level sequencing, this parameter is ignored in API requests and the field omitted in API responses.
|
|
113
113
|
*/
|
|
114
114
|
next_invoice_sequence?: number;
|
|
115
115
|
|
package/types/EventTypes.d.ts
CHANGED
|
@@ -1271,7 +1271,7 @@ declare module 'stripe' {
|
|
|
1271
1271
|
}
|
|
1272
1272
|
|
|
1273
1273
|
/**
|
|
1274
|
-
* Occurs whenever a card or source will expire at the end of the month.
|
|
1274
|
+
* Occurs whenever a card or source will expire at the end of the month. This event only works with legacy integrations using Card or Source objects. If you use the PaymentMethod API, this event won't occur.
|
|
1275
1275
|
*/
|
|
1276
1276
|
interface CustomerSourceExpiringEvent extends EventBase {
|
|
1277
1277
|
type: 'customer.source.expiring';
|
|
@@ -283,7 +283,7 @@ declare module 'stripe' {
|
|
|
283
283
|
| 'other'
|
|
284
284
|
| 'savings';
|
|
285
285
|
|
|
286
|
-
type Subscription = 'inferred_balances' | 'transactions';
|
|
286
|
+
type Subscription = 'balance' | 'inferred_balances' | 'transactions';
|
|
287
287
|
|
|
288
288
|
type SupportedPaymentMethodType = 'link' | 'us_bank_account';
|
|
289
289
|
|
|
@@ -100,7 +100,7 @@ declare module 'stripe' {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
namespace AccountSubscribeParams {
|
|
103
|
-
type Feature = 'inferred_balances' | 'transactions';
|
|
103
|
+
type Feature = 'balance' | 'inferred_balances' | 'transactions';
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
interface AccountUnsubscribeParams {
|
|
@@ -116,7 +116,7 @@ declare module 'stripe' {
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
namespace AccountUnsubscribeParams {
|
|
119
|
-
type Feature = 'inferred_balances' | 'transactions';
|
|
119
|
+
type Feature = 'balance' | 'inferred_balances' | 'transactions';
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
class AccountsResource {
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace FinancialConnections {
|
|
6
|
+
/**
|
|
7
|
+
* An institution represents a banking institution which may be available for an end user to select in the Financial Connections authentication flow.
|
|
8
|
+
*/
|
|
9
|
+
interface Institution {
|
|
10
|
+
/**
|
|
11
|
+
* Unique identifier for the object.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
17
|
+
*/
|
|
18
|
+
object: 'financial_connections.institution';
|
|
19
|
+
|
|
20
|
+
features: Institution.Features;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
24
|
+
*/
|
|
25
|
+
livemode: boolean;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The name of this institution.
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* A list of routing numbers which are known to correspond to this institution.
|
|
34
|
+
*/
|
|
35
|
+
routing_numbers: Array<string>;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The status of this institution in the Financial Connections authentication flow.
|
|
39
|
+
*/
|
|
40
|
+
status: Institution.Status;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The URL for this institution's website.
|
|
44
|
+
*/
|
|
45
|
+
url: string | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
namespace Institution {
|
|
49
|
+
interface Features {
|
|
50
|
+
balances: Features.Balances;
|
|
51
|
+
|
|
52
|
+
ownership: Features.Ownership;
|
|
53
|
+
|
|
54
|
+
payment_method: Features.PaymentMethod;
|
|
55
|
+
|
|
56
|
+
transactions: Features.Transactions;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
namespace Features {
|
|
60
|
+
interface Balances {
|
|
61
|
+
/**
|
|
62
|
+
* Whether the given feature is supported by this institution.
|
|
63
|
+
*/
|
|
64
|
+
supported: boolean;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
interface Ownership {
|
|
68
|
+
/**
|
|
69
|
+
* Whether the given feature is supported by this institution.
|
|
70
|
+
*/
|
|
71
|
+
supported: boolean;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
interface PaymentMethod {
|
|
75
|
+
/**
|
|
76
|
+
* Whether the given feature is supported by this institution.
|
|
77
|
+
*/
|
|
78
|
+
supported: boolean;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
interface Transactions {
|
|
82
|
+
/**
|
|
83
|
+
* Whether the given feature is supported by this institution.
|
|
84
|
+
*/
|
|
85
|
+
supported: boolean;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
type Status = 'active' | 'degraded' | 'inactive';
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace FinancialConnections {
|
|
6
|
+
interface InstitutionRetrieveParams {
|
|
7
|
+
/**
|
|
8
|
+
* Specifies which fields in the response should be expanded.
|
|
9
|
+
*/
|
|
10
|
+
expand?: Array<string>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface InstitutionListParams extends PaginationParams {
|
|
14
|
+
/**
|
|
15
|
+
* Specifies which fields in the response should be expanded.
|
|
16
|
+
*/
|
|
17
|
+
expand?: Array<string>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
class InstitutionsResource {
|
|
21
|
+
/**
|
|
22
|
+
* Retrieves the details of a Financial Connections Institution.
|
|
23
|
+
*/
|
|
24
|
+
retrieve(
|
|
25
|
+
id: string,
|
|
26
|
+
params?: InstitutionRetrieveParams,
|
|
27
|
+
options?: RequestOptions
|
|
28
|
+
): Promise<Stripe.Response<Stripe.FinancialConnections.Institution>>;
|
|
29
|
+
retrieve(
|
|
30
|
+
id: string,
|
|
31
|
+
options?: RequestOptions
|
|
32
|
+
): Promise<Stripe.Response<Stripe.FinancialConnections.Institution>>;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Returns a list of Financial Connections Institution objects.
|
|
36
|
+
*/
|
|
37
|
+
list(
|
|
38
|
+
params?: InstitutionListParams,
|
|
39
|
+
options?: RequestOptions
|
|
40
|
+
): ApiListPromise<Stripe.FinancialConnections.Institution>;
|
|
41
|
+
list(
|
|
42
|
+
options?: RequestOptions
|
|
43
|
+
): ApiListPromise<Stripe.FinancialConnections.Institution>;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -98,6 +98,11 @@ declare module 'stripe' {
|
|
|
98
98
|
* List of countries from which to filter accounts.
|
|
99
99
|
*/
|
|
100
100
|
countries: Array<string> | null;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Stripe ID of the institution with which the customer should be directed to log in.
|
|
104
|
+
*/
|
|
105
|
+
institution?: string;
|
|
101
106
|
}
|
|
102
107
|
|
|
103
108
|
namespace Filters {
|
|
@@ -79,6 +79,11 @@ declare module 'stripe' {
|
|
|
79
79
|
* List of countries from which to collect accounts.
|
|
80
80
|
*/
|
|
81
81
|
countries?: Array<string>;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Stripe ID of the institution with which the customer should be directed to log in.
|
|
85
|
+
*/
|
|
86
|
+
institution?: string;
|
|
82
87
|
}
|
|
83
88
|
|
|
84
89
|
namespace Filters {
|
package/types/Invoices.d.ts
CHANGED
|
@@ -896,6 +896,7 @@ declare module 'stripe' {
|
|
|
896
896
|
| 'email_invalid'
|
|
897
897
|
| 'expired_card'
|
|
898
898
|
| 'financial_connections_account_inactive'
|
|
899
|
+
| 'financial_connections_institution_unavailable'
|
|
899
900
|
| 'financial_connections_no_successful_transaction_refresh'
|
|
900
901
|
| 'forwarding_api_inactive'
|
|
901
902
|
| 'forwarding_api_invalid_parameter'
|
|
@@ -948,6 +949,7 @@ declare module 'stripe' {
|
|
|
948
949
|
| 'parameters_exclusive'
|
|
949
950
|
| 'payment_intent_action_required'
|
|
950
951
|
| 'payment_intent_authentication_failure'
|
|
952
|
+
| 'payment_intent_fx_quote_invalid'
|
|
951
953
|
| 'payment_intent_incompatible_payment_method'
|
|
952
954
|
| 'payment_intent_invalid_parameter'
|
|
953
955
|
| 'payment_intent_konbini_rejected_confirmation_number'
|
|
@@ -1208,6 +1210,11 @@ declare module 'stripe' {
|
|
|
1208
1210
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
1209
1211
|
*/
|
|
1210
1212
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* The institution to use to filter for possible accounts to link.
|
|
1216
|
+
*/
|
|
1217
|
+
institution?: string;
|
|
1211
1218
|
}
|
|
1212
1219
|
|
|
1213
1220
|
namespace Filters {
|
|
@@ -551,6 +551,11 @@ declare module 'stripe' {
|
|
|
551
551
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
552
552
|
*/
|
|
553
553
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
557
|
+
*/
|
|
558
|
+
institution?: string;
|
|
554
559
|
}
|
|
555
560
|
|
|
556
561
|
namespace Filters {
|
|
@@ -1324,6 +1329,11 @@ declare module 'stripe' {
|
|
|
1324
1329
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1325
1330
|
*/
|
|
1326
1331
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1332
|
+
|
|
1333
|
+
/**
|
|
1334
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
1335
|
+
*/
|
|
1336
|
+
institution?: string;
|
|
1327
1337
|
}
|
|
1328
1338
|
|
|
1329
1339
|
namespace Filters {
|
|
@@ -8977,7 +8987,7 @@ declare module 'stripe' {
|
|
|
8977
8987
|
expand?: Array<string>;
|
|
8978
8988
|
|
|
8979
8989
|
/**
|
|
8980
|
-
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For
|
|
8990
|
+
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For [type=subscription](https://stripe.com/docs/api/invoices/line_item#invoice_line_item_object-type) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](api/invoices/line_item#invoice_line_item_object-type) line items, where any existing metadata on the invoice line is merged with the incoming data.
|
|
8981
8991
|
*/
|
|
8982
8992
|
invoice_metadata?: Stripe.Emptyable<{
|
|
8983
8993
|
[key: string]: string;
|
|
@@ -9017,7 +9027,7 @@ declare module 'stripe' {
|
|
|
9017
9027
|
margins?: Stripe.Emptyable<Array<string>>;
|
|
9018
9028
|
|
|
9019
9029
|
/**
|
|
9020
|
-
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For
|
|
9030
|
+
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For [type=subscription](https://stripe.com/docs/api/invoices/line_item#invoice_line_item_object-type) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](api/invoices/line_item#invoice_line_item_object-type) line items, where any existing metadata on the invoice line is merged with the incoming data.
|
|
9021
9031
|
*/
|
|
9022
9032
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
9023
9033
|
|
|
@@ -9302,7 +9312,7 @@ declare module 'stripe' {
|
|
|
9302
9312
|
margins?: Stripe.Emptyable<Array<string>>;
|
|
9303
9313
|
|
|
9304
9314
|
/**
|
|
9305
|
-
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For
|
|
9315
|
+
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For [type=subscription](https://stripe.com/docs/api/invoices/line_item#invoice_line_item_object-type) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](api/invoices/line_item#invoice_line_item_object-type) line items, where any existing metadata on the invoice line is merged with the incoming data.
|
|
9306
9316
|
*/
|
|
9307
9317
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
9308
9318
|
|
|
@@ -433,6 +433,7 @@ declare module 'stripe' {
|
|
|
433
433
|
| 'email_invalid'
|
|
434
434
|
| 'expired_card'
|
|
435
435
|
| 'financial_connections_account_inactive'
|
|
436
|
+
| 'financial_connections_institution_unavailable'
|
|
436
437
|
| 'financial_connections_no_successful_transaction_refresh'
|
|
437
438
|
| 'forwarding_api_inactive'
|
|
438
439
|
| 'forwarding_api_invalid_parameter'
|
|
@@ -485,6 +486,7 @@ declare module 'stripe' {
|
|
|
485
486
|
| 'parameters_exclusive'
|
|
486
487
|
| 'payment_intent_action_required'
|
|
487
488
|
| 'payment_intent_authentication_failure'
|
|
489
|
+
| 'payment_intent_fx_quote_invalid'
|
|
488
490
|
| 'payment_intent_incompatible_payment_method'
|
|
489
491
|
| 'payment_intent_invalid_parameter'
|
|
490
492
|
| 'payment_intent_konbini_rejected_confirmation_number'
|
|
@@ -2745,6 +2747,11 @@ declare module 'stripe' {
|
|
|
2745
2747
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
2746
2748
|
*/
|
|
2747
2749
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
2750
|
+
|
|
2751
|
+
/**
|
|
2752
|
+
* The institution to use to filter for possible accounts to link.
|
|
2753
|
+
*/
|
|
2754
|
+
institution?: string;
|
|
2748
2755
|
}
|
|
2749
2756
|
|
|
2750
2757
|
namespace Filters {
|
|
@@ -3158,6 +3158,11 @@ declare module 'stripe' {
|
|
|
3158
3158
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
3159
3159
|
*/
|
|
3160
3160
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
3161
|
+
|
|
3162
|
+
/**
|
|
3163
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
3164
|
+
*/
|
|
3165
|
+
institution?: string;
|
|
3161
3166
|
}
|
|
3162
3167
|
|
|
3163
3168
|
namespace Filters {
|
|
@@ -6387,6 +6392,11 @@ declare module 'stripe' {
|
|
|
6387
6392
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
6388
6393
|
*/
|
|
6389
6394
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
6395
|
+
|
|
6396
|
+
/**
|
|
6397
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
6398
|
+
*/
|
|
6399
|
+
institution?: string;
|
|
6390
6400
|
}
|
|
6391
6401
|
|
|
6392
6402
|
namespace Filters {
|
|
@@ -10340,6 +10350,11 @@ declare module 'stripe' {
|
|
|
10340
10350
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
10341
10351
|
*/
|
|
10342
10352
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
10353
|
+
|
|
10354
|
+
/**
|
|
10355
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
10356
|
+
*/
|
|
10357
|
+
institution?: string;
|
|
10343
10358
|
}
|
|
10344
10359
|
|
|
10345
10360
|
namespace Filters {
|
|
@@ -873,6 +873,7 @@ declare module 'stripe' {
|
|
|
873
873
|
| 'email_invalid'
|
|
874
874
|
| 'expired_card'
|
|
875
875
|
| 'financial_connections_account_inactive'
|
|
876
|
+
| 'financial_connections_institution_unavailable'
|
|
876
877
|
| 'financial_connections_no_successful_transaction_refresh'
|
|
877
878
|
| 'forwarding_api_inactive'
|
|
878
879
|
| 'forwarding_api_invalid_parameter'
|
|
@@ -925,6 +926,7 @@ declare module 'stripe' {
|
|
|
925
926
|
| 'parameters_exclusive'
|
|
926
927
|
| 'payment_intent_action_required'
|
|
927
928
|
| 'payment_intent_authentication_failure'
|
|
929
|
+
| 'payment_intent_fx_quote_invalid'
|
|
928
930
|
| 'payment_intent_incompatible_payment_method'
|
|
929
931
|
| 'payment_intent_invalid_parameter'
|
|
930
932
|
| 'payment_intent_konbini_rejected_confirmation_number'
|
|
@@ -1185,6 +1187,11 @@ declare module 'stripe' {
|
|
|
1185
1187
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
1186
1188
|
*/
|
|
1187
1189
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1190
|
+
|
|
1191
|
+
/**
|
|
1192
|
+
* The institution to use to filter for possible accounts to link.
|
|
1193
|
+
*/
|
|
1194
|
+
institution?: string;
|
|
1188
1195
|
}
|
|
1189
1196
|
|
|
1190
1197
|
namespace Filters {
|
package/types/SetupAttempts.d.ts
CHANGED
|
@@ -673,6 +673,7 @@ declare module 'stripe' {
|
|
|
673
673
|
| 'email_invalid'
|
|
674
674
|
| 'expired_card'
|
|
675
675
|
| 'financial_connections_account_inactive'
|
|
676
|
+
| 'financial_connections_institution_unavailable'
|
|
676
677
|
| 'financial_connections_no_successful_transaction_refresh'
|
|
677
678
|
| 'forwarding_api_inactive'
|
|
678
679
|
| 'forwarding_api_invalid_parameter'
|
|
@@ -725,6 +726,7 @@ declare module 'stripe' {
|
|
|
725
726
|
| 'parameters_exclusive'
|
|
726
727
|
| 'payment_intent_action_required'
|
|
727
728
|
| 'payment_intent_authentication_failure'
|
|
729
|
+
| 'payment_intent_fx_quote_invalid'
|
|
728
730
|
| 'payment_intent_incompatible_payment_method'
|
|
729
731
|
| 'payment_intent_invalid_parameter'
|
|
730
732
|
| 'payment_intent_konbini_rejected_confirmation_number'
|
package/types/SetupIntents.d.ts
CHANGED
|
@@ -339,6 +339,7 @@ declare module 'stripe' {
|
|
|
339
339
|
| 'email_invalid'
|
|
340
340
|
| 'expired_card'
|
|
341
341
|
| 'financial_connections_account_inactive'
|
|
342
|
+
| 'financial_connections_institution_unavailable'
|
|
342
343
|
| 'financial_connections_no_successful_transaction_refresh'
|
|
343
344
|
| 'forwarding_api_inactive'
|
|
344
345
|
| 'forwarding_api_invalid_parameter'
|
|
@@ -391,6 +392,7 @@ declare module 'stripe' {
|
|
|
391
392
|
| 'parameters_exclusive'
|
|
392
393
|
| 'payment_intent_action_required'
|
|
393
394
|
| 'payment_intent_authentication_failure'
|
|
395
|
+
| 'payment_intent_fx_quote_invalid'
|
|
394
396
|
| 'payment_intent_incompatible_payment_method'
|
|
395
397
|
| 'payment_intent_invalid_parameter'
|
|
396
398
|
| 'payment_intent_konbini_rejected_confirmation_number'
|
|
@@ -887,6 +889,11 @@ declare module 'stripe' {
|
|
|
887
889
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
888
890
|
*/
|
|
889
891
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* The institution to use to filter for possible accounts to link.
|
|
895
|
+
*/
|
|
896
|
+
institution?: string;
|
|
890
897
|
}
|
|
891
898
|
|
|
892
899
|
namespace Filters {
|
|
@@ -1307,6 +1307,11 @@ declare module 'stripe' {
|
|
|
1307
1307
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1308
1308
|
*/
|
|
1309
1309
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1310
|
+
|
|
1311
|
+
/**
|
|
1312
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
1313
|
+
*/
|
|
1314
|
+
institution?: string;
|
|
1310
1315
|
}
|
|
1311
1316
|
|
|
1312
1317
|
namespace Filters {
|
|
@@ -2577,6 +2582,11 @@ declare module 'stripe' {
|
|
|
2577
2582
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2578
2583
|
*/
|
|
2579
2584
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
2585
|
+
|
|
2586
|
+
/**
|
|
2587
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
2588
|
+
*/
|
|
2589
|
+
institution?: string;
|
|
2580
2590
|
}
|
|
2581
2591
|
|
|
2582
2592
|
namespace Filters {
|
|
@@ -3896,6 +3906,11 @@ declare module 'stripe' {
|
|
|
3896
3906
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
3897
3907
|
*/
|
|
3898
3908
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
3909
|
+
|
|
3910
|
+
/**
|
|
3911
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
3912
|
+
*/
|
|
3913
|
+
institution?: string;
|
|
3899
3914
|
}
|
|
3900
3915
|
|
|
3901
3916
|
namespace Filters {
|
package/types/Subscriptions.d.ts
CHANGED
|
@@ -613,6 +613,11 @@ declare module 'stripe' {
|
|
|
613
613
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
614
614
|
*/
|
|
615
615
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* The institution to use to filter for possible accounts to link.
|
|
619
|
+
*/
|
|
620
|
+
institution?: string;
|
|
616
621
|
}
|
|
617
622
|
|
|
618
623
|
namespace Filters {
|
|
@@ -903,6 +903,11 @@ declare module 'stripe' {
|
|
|
903
903
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
904
904
|
*/
|
|
905
905
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
909
|
+
*/
|
|
910
|
+
institution?: string;
|
|
906
911
|
}
|
|
907
912
|
|
|
908
913
|
namespace Filters {
|
|
@@ -1932,6 +1937,11 @@ declare module 'stripe' {
|
|
|
1932
1937
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1933
1938
|
*/
|
|
1934
1939
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1940
|
+
|
|
1941
|
+
/**
|
|
1942
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
1943
|
+
*/
|
|
1944
|
+
institution?: string;
|
|
1935
1945
|
}
|
|
1936
1946
|
|
|
1937
1947
|
namespace Filters {
|
|
@@ -51,6 +51,11 @@ declare module 'stripe' {
|
|
|
51
51
|
*/
|
|
52
52
|
metadata: Stripe.Metadata | null;
|
|
53
53
|
|
|
54
|
+
/**
|
|
55
|
+
* The Unix timestamp representing when the tax liability is assumed or reduced.
|
|
56
|
+
*/
|
|
57
|
+
posted_at: number;
|
|
58
|
+
|
|
54
59
|
/**
|
|
55
60
|
* A custom unique identifier, such as 'myOrder_123'.
|
|
56
61
|
*/
|
|
@@ -30,6 +30,11 @@ declare module 'stripe' {
|
|
|
30
30
|
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
31
31
|
*/
|
|
32
32
|
metadata?: Stripe.MetadataParam;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* The Unix timestamp representing when the tax liability is assumed or reduced, which determines the liability posting period and handling in tax liability reports. The timestamp must fall within the `tax_date` and the current time, unless the `tax_date` is scheduled in advance. Defaults to the current time.
|
|
36
|
+
*/
|
|
37
|
+
posted_at?: number;
|
|
33
38
|
}
|
|
34
39
|
|
|
35
40
|
interface TransactionCreateReversalParams {
|
package/types/index.d.ts
CHANGED
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
///<reference path='./FileLinksResource.d.ts' />
|
|
47
47
|
///<reference path='./FilesResource.d.ts' />
|
|
48
48
|
///<reference path='./FinancialConnections/AccountsResource.d.ts' />
|
|
49
|
+
///<reference path='./FinancialConnections/InstitutionsResource.d.ts' />
|
|
49
50
|
///<reference path='./FinancialConnections/SessionsResource.d.ts' />
|
|
50
51
|
///<reference path='./FinancialConnections/TransactionsResource.d.ts' />
|
|
51
52
|
///<reference path='./Forwarding/RequestsResource.d.ts' />
|
|
@@ -190,6 +191,7 @@
|
|
|
190
191
|
///<reference path='./FinancialConnections/AccountOwners.d.ts' />
|
|
191
192
|
///<reference path='./FinancialConnections/AccountOwnerships.d.ts' />
|
|
192
193
|
///<reference path='./FinancialConnections/Accounts.d.ts' />
|
|
194
|
+
///<reference path='./FinancialConnections/Institutions.d.ts' />
|
|
193
195
|
///<reference path='./FinancialConnections/Sessions.d.ts' />
|
|
194
196
|
///<reference path='./FinancialConnections/Transactions.d.ts' />
|
|
195
197
|
///<reference path='./Forwarding/Requests.d.ts' />
|
|
@@ -390,6 +392,7 @@ declare module 'stripe' {
|
|
|
390
392
|
};
|
|
391
393
|
financialConnections: {
|
|
392
394
|
accounts: Stripe.FinancialConnections.AccountsResource;
|
|
395
|
+
institutions: Stripe.FinancialConnections.InstitutionsResource;
|
|
393
396
|
sessions: Stripe.FinancialConnections.SessionsResource;
|
|
394
397
|
transactions: Stripe.FinancialConnections.TransactionsResource;
|
|
395
398
|
};
|