stripe 15.1.0 → 15.2.0
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 +13 -0
- package/VERSION +1 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountSessions.d.ts +47 -2
- package/types/AccountSessionsResource.d.ts +57 -0
- package/types/Billing/MeterEventsResource.d.ts +5 -5
- package/types/Disputes.d.ts +1 -4
- package/types/Entitlements/ActiveEntitlementSummaries.d.ts +32 -0
- package/types/EventTypes.d.ts +20 -0
- package/types/Events.d.ts +1 -0
- package/types/Forwarding/Requests.d.ts +3 -8
- package/types/Forwarding/RequestsResource.d.ts +0 -5
- package/types/Invoices.d.ts +4 -4
- package/types/PaymentIntents.d.ts +10 -5
- package/types/PaymentIntentsResource.d.ts +27 -0
- package/types/PaymentMethodConfigurations.d.ts +36 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
- package/types/SetupAttempts.d.ts +4 -4
- package/types/SetupIntents.d.ts +8 -8
- package/types/WebhookEndpointsResource.d.ts +2 -0
- package/types/index.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 15.2.0 - 2024-04-16
|
|
4
|
+
* [#2064](https://github.com/stripe/stripe-node/pull/2064) Update generated code
|
|
5
|
+
* Add support for new resource `Entitlements.ActiveEntitlementSummary`
|
|
6
|
+
* Add support for `balances` and `payouts_list` on `AccountSession.components` and `AccountSessionCreateParams.components`
|
|
7
|
+
* Change `AccountSession.components.payment_details.features.destination_on_behalf_of_charge_management` and `AccountSession.components.payments.features.destination_on_behalf_of_charge_management` to be required
|
|
8
|
+
* Change `Billing.MeterEventCreateParams.timestamp` and `Dispute.payment_method_details.card` to be optional
|
|
9
|
+
* Change type of `Dispute.payment_method_details.card` from `DisputePaymentMethodDetailsCard | null` to `DisputePaymentMethodDetailsCard`
|
|
10
|
+
* Add support for new value `entitlements.active_entitlement_summary.updated` on enum `Event.type`
|
|
11
|
+
* Remove support for `config` on `Forwarding.RequestCreateParams` and `Forwarding.Request`. This field is no longer used by the Forwarding Request API.
|
|
12
|
+
* Add support for `capture_method` on `PaymentIntent.payment_method_options.revolut_pay`, `PaymentIntentConfirmParams.payment_method_options.revolut_pay`, `PaymentIntentCreateParams.payment_method_options.revolut_pay`, and `PaymentIntentUpdateParams.payment_method_options.revolut_pay`
|
|
13
|
+
* Add support for `swish` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
|
|
14
|
+
* Add support for new value `entitlements.active_entitlement_summary.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
|
|
15
|
+
|
|
3
16
|
## 15.1.0 - 2024-04-11
|
|
4
17
|
* [#2062](https://github.com/stripe/stripe-node/pull/2062) Update generated code
|
|
5
18
|
* Add support for `account_management` and `notification_banner` on `AccountSession.components` and `AccountSessionCreateParams.components`
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
15.
|
|
1
|
+
15.2.0
|
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 = '15.
|
|
37
|
+
Stripe.PACKAGE_VERSION = '15.2.0';
|
|
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;
|
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 = '15.
|
|
34
|
+
Stripe.PACKAGE_VERSION = '15.2.0';
|
|
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
|
@@ -50,6 +50,8 @@ declare module 'stripe' {
|
|
|
50
50
|
|
|
51
51
|
account_onboarding: Components.AccountOnboarding;
|
|
52
52
|
|
|
53
|
+
balances: Components.Balances;
|
|
54
|
+
|
|
53
55
|
documents: Components.Documents;
|
|
54
56
|
|
|
55
57
|
notification_banner: Components.NotificationBanner;
|
|
@@ -59,6 +61,8 @@ declare module 'stripe' {
|
|
|
59
61
|
payments: Components.Payments;
|
|
60
62
|
|
|
61
63
|
payouts: Components.Payouts;
|
|
64
|
+
|
|
65
|
+
payouts_list: Components.PayoutsList;
|
|
62
66
|
}
|
|
63
67
|
|
|
64
68
|
namespace Components {
|
|
@@ -98,6 +102,34 @@ declare module 'stripe' {
|
|
|
98
102
|
}
|
|
99
103
|
}
|
|
100
104
|
|
|
105
|
+
interface Balances {
|
|
106
|
+
/**
|
|
107
|
+
* Whether the embedded component is enabled.
|
|
108
|
+
*/
|
|
109
|
+
enabled: boolean;
|
|
110
|
+
|
|
111
|
+
features: Balances.Features;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
namespace Balances {
|
|
115
|
+
interface Features {
|
|
116
|
+
/**
|
|
117
|
+
* Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
|
|
118
|
+
*/
|
|
119
|
+
edit_payout_schedule: boolean;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
|
|
123
|
+
*/
|
|
124
|
+
instant_payouts: boolean;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
|
|
128
|
+
*/
|
|
129
|
+
standard_payouts: boolean;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
101
133
|
interface Documents {
|
|
102
134
|
/**
|
|
103
135
|
* Whether the embedded component is enabled.
|
|
@@ -148,7 +180,7 @@ declare module 'stripe' {
|
|
|
148
180
|
/**
|
|
149
181
|
* Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
|
|
150
182
|
*/
|
|
151
|
-
destination_on_behalf_of_charge_management
|
|
183
|
+
destination_on_behalf_of_charge_management: boolean;
|
|
152
184
|
|
|
153
185
|
/**
|
|
154
186
|
* Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
|
|
@@ -181,7 +213,7 @@ declare module 'stripe' {
|
|
|
181
213
|
/**
|
|
182
214
|
* Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
|
|
183
215
|
*/
|
|
184
|
-
destination_on_behalf_of_charge_management
|
|
216
|
+
destination_on_behalf_of_charge_management: boolean;
|
|
185
217
|
|
|
186
218
|
/**
|
|
187
219
|
* Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
|
|
@@ -222,6 +254,19 @@ declare module 'stripe' {
|
|
|
222
254
|
standard_payouts: boolean;
|
|
223
255
|
}
|
|
224
256
|
}
|
|
257
|
+
|
|
258
|
+
interface PayoutsList {
|
|
259
|
+
/**
|
|
260
|
+
* Whether the embedded component is enabled.
|
|
261
|
+
*/
|
|
262
|
+
enabled: boolean;
|
|
263
|
+
|
|
264
|
+
features: PayoutsList.Features;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
namespace PayoutsList {
|
|
268
|
+
interface Features {}
|
|
269
|
+
}
|
|
225
270
|
}
|
|
226
271
|
}
|
|
227
272
|
}
|
|
@@ -31,6 +31,11 @@ declare module 'stripe' {
|
|
|
31
31
|
*/
|
|
32
32
|
account_onboarding?: Components.AccountOnboarding;
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Configuration for the balances embedded component.
|
|
36
|
+
*/
|
|
37
|
+
balances?: Components.Balances;
|
|
38
|
+
|
|
34
39
|
/**
|
|
35
40
|
* Configuration for the documents embedded component.
|
|
36
41
|
*/
|
|
@@ -55,6 +60,11 @@ declare module 'stripe' {
|
|
|
55
60
|
* Configuration for the payouts embedded component.
|
|
56
61
|
*/
|
|
57
62
|
payouts?: Components.Payouts;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Configuration for the payouts list embedded component.
|
|
66
|
+
*/
|
|
67
|
+
payouts_list?: Components.PayoutsList;
|
|
58
68
|
}
|
|
59
69
|
|
|
60
70
|
namespace Components {
|
|
@@ -100,6 +110,37 @@ declare module 'stripe' {
|
|
|
100
110
|
}
|
|
101
111
|
}
|
|
102
112
|
|
|
113
|
+
interface Balances {
|
|
114
|
+
/**
|
|
115
|
+
* Whether the embedded component is enabled.
|
|
116
|
+
*/
|
|
117
|
+
enabled: boolean;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* The list of features enabled in the embedded component.
|
|
121
|
+
*/
|
|
122
|
+
features?: Balances.Features;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
namespace Balances {
|
|
126
|
+
interface Features {
|
|
127
|
+
/**
|
|
128
|
+
* Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
|
|
129
|
+
*/
|
|
130
|
+
edit_payout_schedule?: boolean;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
|
|
134
|
+
*/
|
|
135
|
+
instant_payouts?: boolean;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
|
|
139
|
+
*/
|
|
140
|
+
standard_payouts?: boolean;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
103
144
|
interface Documents {
|
|
104
145
|
/**
|
|
105
146
|
* Whether the embedded component is enabled.
|
|
@@ -239,6 +280,22 @@ declare module 'stripe' {
|
|
|
239
280
|
standard_payouts?: boolean;
|
|
240
281
|
}
|
|
241
282
|
}
|
|
283
|
+
|
|
284
|
+
interface PayoutsList {
|
|
285
|
+
/**
|
|
286
|
+
* Whether the embedded component is enabled.
|
|
287
|
+
*/
|
|
288
|
+
enabled: boolean;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* The list of features enabled in the embedded component.
|
|
292
|
+
*/
|
|
293
|
+
features?: PayoutsList.Features;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
namespace PayoutsList {
|
|
297
|
+
interface Features {}
|
|
298
|
+
}
|
|
242
299
|
}
|
|
243
300
|
}
|
|
244
301
|
|
|
@@ -16,11 +16,6 @@ declare module 'stripe' {
|
|
|
16
16
|
[key: string]: string;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
/**
|
|
20
|
-
* The time of the event. Measured in seconds since the Unix epoch.
|
|
21
|
-
*/
|
|
22
|
-
timestamp: number;
|
|
23
|
-
|
|
24
19
|
/**
|
|
25
20
|
* Specifies which fields in the response should be expanded.
|
|
26
21
|
*/
|
|
@@ -30,6 +25,11 @@ declare module 'stripe' {
|
|
|
30
25
|
* A unique identifier for the event. If not provided, one will be generated. We recommend using a globally unique identifier for this. We'll enforce uniqueness within a rolling 24 hour period.
|
|
31
26
|
*/
|
|
32
27
|
identifier?: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The time of the event. Measured in seconds since the Unix epoch. Defaults to current timestamp if not specified.
|
|
31
|
+
*/
|
|
32
|
+
timestamp?: number;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
class MeterEventsResource {
|
package/types/Disputes.d.ts
CHANGED
|
@@ -248,10 +248,7 @@ declare module 'stripe' {
|
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
interface PaymentMethodDetails {
|
|
251
|
-
|
|
252
|
-
* Card specific dispute details.
|
|
253
|
-
*/
|
|
254
|
-
card: PaymentMethodDetails.Card | null;
|
|
251
|
+
card?: PaymentMethodDetails.Card;
|
|
255
252
|
|
|
256
253
|
/**
|
|
257
254
|
* Payment method type.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Entitlements {
|
|
6
|
+
/**
|
|
7
|
+
* A summary of a customer's active entitlements.
|
|
8
|
+
*/
|
|
9
|
+
interface ActiveEntitlementSummary {
|
|
10
|
+
/**
|
|
11
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
12
|
+
*/
|
|
13
|
+
object: 'entitlements.active_entitlement_summary';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The customer that is entitled to this feature.
|
|
17
|
+
*/
|
|
18
|
+
customer: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The list of entitlements this customer has.
|
|
22
|
+
*/
|
|
23
|
+
entitlements: ApiList<Stripe.Entitlements.ActiveEntitlement>;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
27
|
+
*/
|
|
28
|
+
livemode: boolean;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
package/types/EventTypes.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ declare module 'stripe' {
|
|
|
70
70
|
| CustomerTaxIdUpdatedEvent
|
|
71
71
|
| CustomerUpdatedEvent
|
|
72
72
|
| CustomerCashBalanceTransactionCreatedEvent
|
|
73
|
+
| EntitlementsActiveEntitlementSummaryUpdatedEvent
|
|
73
74
|
| FileCreatedEvent
|
|
74
75
|
| FinancialConnectionsAccountCreatedEvent
|
|
75
76
|
| FinancialConnectionsAccountDeactivatedEvent
|
|
@@ -1302,6 +1303,25 @@ declare module 'stripe' {
|
|
|
1302
1303
|
}
|
|
1303
1304
|
}
|
|
1304
1305
|
|
|
1306
|
+
/**
|
|
1307
|
+
* Occurs whenever a customer's entitlements change.
|
|
1308
|
+
*/
|
|
1309
|
+
interface EntitlementsActiveEntitlementSummaryUpdatedEvent
|
|
1310
|
+
extends EventBase {
|
|
1311
|
+
type: 'entitlements.active_entitlement_summary.updated';
|
|
1312
|
+
data: EntitlementsActiveEntitlementSummaryUpdatedEvent.Data;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
namespace EntitlementsActiveEntitlementSummaryUpdatedEvent {
|
|
1316
|
+
interface Data extends Stripe.Event.Data {
|
|
1317
|
+
object: Stripe.Entitlements.ActiveEntitlementSummary;
|
|
1318
|
+
|
|
1319
|
+
previous_attributes?: Partial<
|
|
1320
|
+
Stripe.Entitlements.ActiveEntitlementSummary
|
|
1321
|
+
>;
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1305
1325
|
/**
|
|
1306
1326
|
* Occurs whenever a new Stripe-generated file is available for your account.
|
|
1307
1327
|
*/
|
package/types/Events.d.ts
CHANGED
|
@@ -101,6 +101,7 @@ declare module 'stripe' {
|
|
|
101
101
|
| 'customer.tax_id.updated'
|
|
102
102
|
| 'customer.updated'
|
|
103
103
|
| 'customer_cash_balance_transaction.created'
|
|
104
|
+
| 'entitlements.active_entitlement_summary.updated'
|
|
104
105
|
| 'file.created'
|
|
105
106
|
| 'financial_connections.account.created'
|
|
106
107
|
| 'financial_connections.account.deactivated'
|
|
@@ -4,9 +4,9 @@ declare module 'stripe' {
|
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
namespace Forwarding {
|
|
6
6
|
/**
|
|
7
|
-
* Instructs Stripe to make a request on your behalf using the destination URL
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* Instructs Stripe to make a request on your behalf using the destination URL. The destination URL
|
|
8
|
+
* is activated by Stripe at the time of onboarding. Stripe verifies requests with your credentials
|
|
9
|
+
* provided during onboarding, and injects card details from the payment_method into the request.
|
|
10
10
|
*
|
|
11
11
|
* Stripe redacts all sensitive fields and headers, including authentication credentials and card numbers,
|
|
12
12
|
* before storing the request and response data in the forwarding Request object, which are subject to a
|
|
@@ -32,11 +32,6 @@ declare module 'stripe' {
|
|
|
32
32
|
*/
|
|
33
33
|
object: 'forwarding.request';
|
|
34
34
|
|
|
35
|
-
/**
|
|
36
|
-
* The Forwarding Config used when making the forwarded request. The config specifes the HTTP method, merchant credentials, connection settings, and supported destination URLs.
|
|
37
|
-
*/
|
|
38
|
-
config: string;
|
|
39
|
-
|
|
40
35
|
/**
|
|
41
36
|
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
42
37
|
*/
|
|
@@ -4,11 +4,6 @@ declare module 'stripe' {
|
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
namespace Forwarding {
|
|
6
6
|
interface RequestCreateParams {
|
|
7
|
-
/**
|
|
8
|
-
* The Forwarding Config used when making the forwarded request. The config specifes the HTTP method, merchant credentials, connection settings, and supported destination URLs.
|
|
9
|
-
*/
|
|
10
|
-
config: string;
|
|
11
|
-
|
|
12
7
|
/**
|
|
13
8
|
* The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed.
|
|
14
9
|
*/
|
package/types/Invoices.d.ts
CHANGED
|
@@ -749,13 +749,13 @@ declare module 'stripe' {
|
|
|
749
749
|
*
|
|
750
750
|
* Create a SetupIntent when you're ready to collect your customer's payment credentials.
|
|
751
751
|
* Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid.
|
|
752
|
-
* The SetupIntent transitions through multiple [statuses](https://stripe.com/
|
|
752
|
+
* The SetupIntent transitions through multiple [statuses](https://docs.stripe.com/payments/intents#intent-statuses) as it guides
|
|
753
753
|
* you through the setup process.
|
|
754
754
|
*
|
|
755
755
|
* Successful SetupIntents result in payment credentials that are optimized for future payments.
|
|
756
756
|
* For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through
|
|
757
|
-
* [Strong Customer Authentication](https://stripe.com/
|
|
758
|
-
* to streamline later [off-session payments](https://stripe.com/
|
|
757
|
+
* [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection
|
|
758
|
+
* to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents).
|
|
759
759
|
* If you use the SetupIntent with a [Customer](https://stripe.com/docs/api#setup_intent_object-customer),
|
|
760
760
|
* it automatically attaches the resulting payment method to that Customer after successful setup.
|
|
761
761
|
* We recommend using SetupIntents or [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) on
|
|
@@ -763,7 +763,7 @@ declare module 'stripe' {
|
|
|
763
763
|
*
|
|
764
764
|
* By using SetupIntents, you can reduce friction for your customers, even as regulations change over time.
|
|
765
765
|
*
|
|
766
|
-
* Related guide: [Setup Intents API](https://stripe.com/
|
|
766
|
+
* Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents)
|
|
767
767
|
*/
|
|
768
768
|
setup_intent?: Stripe.SetupIntent;
|
|
769
769
|
|
|
@@ -347,13 +347,13 @@ declare module 'stripe' {
|
|
|
347
347
|
*
|
|
348
348
|
* Create a SetupIntent when you're ready to collect your customer's payment credentials.
|
|
349
349
|
* Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid.
|
|
350
|
-
* The SetupIntent transitions through multiple [statuses](https://stripe.com/
|
|
350
|
+
* The SetupIntent transitions through multiple [statuses](https://docs.stripe.com/payments/intents#intent-statuses) as it guides
|
|
351
351
|
* you through the setup process.
|
|
352
352
|
*
|
|
353
353
|
* Successful SetupIntents result in payment credentials that are optimized for future payments.
|
|
354
354
|
* For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through
|
|
355
|
-
* [Strong Customer Authentication](https://stripe.com/
|
|
356
|
-
* to streamline later [off-session payments](https://stripe.com/
|
|
355
|
+
* [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection
|
|
356
|
+
* to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents).
|
|
357
357
|
* If you use the SetupIntent with a [Customer](https://stripe.com/docs/api#setup_intent_object-customer),
|
|
358
358
|
* it automatically attaches the resulting payment method to that Customer after successful setup.
|
|
359
359
|
* We recommend using SetupIntents or [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) on
|
|
@@ -361,7 +361,7 @@ declare module 'stripe' {
|
|
|
361
361
|
*
|
|
362
362
|
* By using SetupIntents, you can reduce friction for your customers, even as regulations change over time.
|
|
363
363
|
*
|
|
364
|
-
* Related guide: [Setup Intents API](https://stripe.com/
|
|
364
|
+
* Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents)
|
|
365
365
|
*/
|
|
366
366
|
setup_intent?: Stripe.SetupIntent;
|
|
367
367
|
|
|
@@ -2084,7 +2084,12 @@ declare module 'stripe' {
|
|
|
2084
2084
|
setup_future_usage?: 'none';
|
|
2085
2085
|
}
|
|
2086
2086
|
|
|
2087
|
-
interface RevolutPay {
|
|
2087
|
+
interface RevolutPay {
|
|
2088
|
+
/**
|
|
2089
|
+
* Controls when the funds will be captured from the customer's account.
|
|
2090
|
+
*/
|
|
2091
|
+
capture_method?: 'manual';
|
|
2092
|
+
}
|
|
2088
2093
|
|
|
2089
2094
|
interface SepaDebit {
|
|
2090
2095
|
mandate_options?: SepaDebit.MandateOptions;
|
|
@@ -2069,6 +2069,15 @@ declare module 'stripe' {
|
|
|
2069
2069
|
}
|
|
2070
2070
|
|
|
2071
2071
|
interface RevolutPay {
|
|
2072
|
+
/**
|
|
2073
|
+
* Controls when the funds will be captured from the customer's account.
|
|
2074
|
+
*
|
|
2075
|
+
* If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type.
|
|
2076
|
+
*
|
|
2077
|
+
* If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter will unset the stored value for this payment method type.
|
|
2078
|
+
*/
|
|
2079
|
+
capture_method?: Stripe.Emptyable<'manual'>;
|
|
2080
|
+
|
|
2072
2081
|
/**
|
|
2073
2082
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2074
2083
|
*
|
|
@@ -4295,6 +4304,15 @@ declare module 'stripe' {
|
|
|
4295
4304
|
}
|
|
4296
4305
|
|
|
4297
4306
|
interface RevolutPay {
|
|
4307
|
+
/**
|
|
4308
|
+
* Controls when the funds will be captured from the customer's account.
|
|
4309
|
+
*
|
|
4310
|
+
* If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type.
|
|
4311
|
+
*
|
|
4312
|
+
* If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter will unset the stored value for this payment method type.
|
|
4313
|
+
*/
|
|
4314
|
+
capture_method?: Stripe.Emptyable<'manual'>;
|
|
4315
|
+
|
|
4298
4316
|
/**
|
|
4299
4317
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
4300
4318
|
*
|
|
@@ -6666,6 +6684,15 @@ declare module 'stripe' {
|
|
|
6666
6684
|
}
|
|
6667
6685
|
|
|
6668
6686
|
interface RevolutPay {
|
|
6687
|
+
/**
|
|
6688
|
+
* Controls when the funds will be captured from the customer's account.
|
|
6689
|
+
*
|
|
6690
|
+
* If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type.
|
|
6691
|
+
*
|
|
6692
|
+
* If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter will unset the stored value for this payment method type.
|
|
6693
|
+
*/
|
|
6694
|
+
capture_method?: Stripe.Emptyable<'manual'>;
|
|
6695
|
+
|
|
6669
6696
|
/**
|
|
6670
6697
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
6671
6698
|
*
|
|
@@ -125,6 +125,8 @@ declare module 'stripe' {
|
|
|
125
125
|
|
|
126
126
|
sofort?: PaymentMethodConfiguration.Sofort;
|
|
127
127
|
|
|
128
|
+
swish?: PaymentMethodConfiguration.Swish;
|
|
129
|
+
|
|
128
130
|
us_bank_account?: PaymentMethodConfiguration.UsBankAccount;
|
|
129
131
|
|
|
130
132
|
wechat_pay?: PaymentMethodConfiguration.WechatPay;
|
|
@@ -1255,6 +1257,40 @@ declare module 'stripe' {
|
|
|
1255
1257
|
}
|
|
1256
1258
|
}
|
|
1257
1259
|
|
|
1260
|
+
interface Swish {
|
|
1261
|
+
/**
|
|
1262
|
+
* Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
|
|
1263
|
+
*/
|
|
1264
|
+
available: boolean;
|
|
1265
|
+
|
|
1266
|
+
display_preference: Swish.DisplayPreference;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
namespace Swish {
|
|
1270
|
+
interface DisplayPreference {
|
|
1271
|
+
/**
|
|
1272
|
+
* For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
|
|
1273
|
+
*/
|
|
1274
|
+
overridable: boolean | null;
|
|
1275
|
+
|
|
1276
|
+
/**
|
|
1277
|
+
* The account's display preference.
|
|
1278
|
+
*/
|
|
1279
|
+
preference: DisplayPreference.Preference;
|
|
1280
|
+
|
|
1281
|
+
/**
|
|
1282
|
+
* The effective display preference value.
|
|
1283
|
+
*/
|
|
1284
|
+
value: DisplayPreference.Value;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
namespace DisplayPreference {
|
|
1288
|
+
type Preference = 'none' | 'off' | 'on';
|
|
1289
|
+
|
|
1290
|
+
type Value = 'off' | 'on';
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1258
1294
|
interface UsBankAccount {
|
|
1259
1295
|
/**
|
|
1260
1296
|
* Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
|
|
@@ -188,6 +188,11 @@ declare module 'stripe' {
|
|
|
188
188
|
*/
|
|
189
189
|
sofort?: PaymentMethodConfigurationCreateParams.Sofort;
|
|
190
190
|
|
|
191
|
+
/**
|
|
192
|
+
* Swish is a [real-time](https://stripe.com/docs/payments/real-time) payment method popular in Sweden. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the Swish mobile app and the Swedish BankID mobile app. Check this [page](https://stripe.com/docs/payments/swish) for more details.
|
|
193
|
+
*/
|
|
194
|
+
swish?: PaymentMethodConfigurationCreateParams.Swish;
|
|
195
|
+
|
|
191
196
|
/**
|
|
192
197
|
* Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-debit) for more details.
|
|
193
198
|
*/
|
|
@@ -885,6 +890,26 @@ declare module 'stripe' {
|
|
|
885
890
|
}
|
|
886
891
|
}
|
|
887
892
|
|
|
893
|
+
interface Swish {
|
|
894
|
+
/**
|
|
895
|
+
* Whether or not the payment method should be displayed.
|
|
896
|
+
*/
|
|
897
|
+
display_preference?: Swish.DisplayPreference;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
namespace Swish {
|
|
901
|
+
interface DisplayPreference {
|
|
902
|
+
/**
|
|
903
|
+
* The account's preference for whether or not to display this payment method.
|
|
904
|
+
*/
|
|
905
|
+
preference?: DisplayPreference.Preference;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
namespace DisplayPreference {
|
|
909
|
+
type Preference = 'none' | 'off' | 'on';
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
|
|
888
913
|
interface UsBankAccount {
|
|
889
914
|
/**
|
|
890
915
|
* Whether or not the payment method should be displayed.
|
|
@@ -1139,6 +1164,11 @@ declare module 'stripe' {
|
|
|
1139
1164
|
*/
|
|
1140
1165
|
sofort?: PaymentMethodConfigurationUpdateParams.Sofort;
|
|
1141
1166
|
|
|
1167
|
+
/**
|
|
1168
|
+
* Swish is a [real-time](https://stripe.com/docs/payments/real-time) payment method popular in Sweden. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the Swish mobile app and the Swedish BankID mobile app. Check this [page](https://stripe.com/docs/payments/swish) for more details.
|
|
1169
|
+
*/
|
|
1170
|
+
swish?: PaymentMethodConfigurationUpdateParams.Swish;
|
|
1171
|
+
|
|
1142
1172
|
/**
|
|
1143
1173
|
* Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-debit) for more details.
|
|
1144
1174
|
*/
|
|
@@ -1836,6 +1866,26 @@ declare module 'stripe' {
|
|
|
1836
1866
|
}
|
|
1837
1867
|
}
|
|
1838
1868
|
|
|
1869
|
+
interface Swish {
|
|
1870
|
+
/**
|
|
1871
|
+
* Whether or not the payment method should be displayed.
|
|
1872
|
+
*/
|
|
1873
|
+
display_preference?: Swish.DisplayPreference;
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
namespace Swish {
|
|
1877
|
+
interface DisplayPreference {
|
|
1878
|
+
/**
|
|
1879
|
+
* The account's preference for whether or not to display this payment method.
|
|
1880
|
+
*/
|
|
1881
|
+
preference?: DisplayPreference.Preference;
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
namespace DisplayPreference {
|
|
1885
|
+
type Preference = 'none' | 'off' | 'on';
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1839
1889
|
interface UsBankAccount {
|
|
1840
1890
|
/**
|
|
1841
1891
|
* Whether or not the payment method should be displayed.
|
package/types/SetupAttempts.d.ts
CHANGED
|
@@ -582,13 +582,13 @@ declare module 'stripe' {
|
|
|
582
582
|
*
|
|
583
583
|
* Create a SetupIntent when you're ready to collect your customer's payment credentials.
|
|
584
584
|
* Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid.
|
|
585
|
-
* The SetupIntent transitions through multiple [statuses](https://stripe.com/
|
|
585
|
+
* The SetupIntent transitions through multiple [statuses](https://docs.stripe.com/payments/intents#intent-statuses) as it guides
|
|
586
586
|
* you through the setup process.
|
|
587
587
|
*
|
|
588
588
|
* Successful SetupIntents result in payment credentials that are optimized for future payments.
|
|
589
589
|
* For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through
|
|
590
|
-
* [Strong Customer Authentication](https://stripe.com/
|
|
591
|
-
* to streamline later [off-session payments](https://stripe.com/
|
|
590
|
+
* [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection
|
|
591
|
+
* to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents).
|
|
592
592
|
* If you use the SetupIntent with a [Customer](https://stripe.com/docs/api#setup_intent_object-customer),
|
|
593
593
|
* it automatically attaches the resulting payment method to that Customer after successful setup.
|
|
594
594
|
* We recommend using SetupIntents or [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) on
|
|
@@ -596,7 +596,7 @@ declare module 'stripe' {
|
|
|
596
596
|
*
|
|
597
597
|
* By using SetupIntents, you can reduce friction for your customers, even as regulations change over time.
|
|
598
598
|
*
|
|
599
|
-
* Related guide: [Setup Intents API](https://stripe.com/
|
|
599
|
+
* Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents)
|
|
600
600
|
*/
|
|
601
601
|
setup_intent?: Stripe.SetupIntent;
|
|
602
602
|
|
package/types/SetupIntents.d.ts
CHANGED
|
@@ -9,13 +9,13 @@ declare module 'stripe' {
|
|
|
9
9
|
*
|
|
10
10
|
* Create a SetupIntent when you're ready to collect your customer's payment credentials.
|
|
11
11
|
* Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid.
|
|
12
|
-
* The SetupIntent transitions through multiple [statuses](https://stripe.com/
|
|
12
|
+
* The SetupIntent transitions through multiple [statuses](https://docs.stripe.com/payments/intents#intent-statuses) as it guides
|
|
13
13
|
* you through the setup process.
|
|
14
14
|
*
|
|
15
15
|
* Successful SetupIntents result in payment credentials that are optimized for future payments.
|
|
16
16
|
* For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through
|
|
17
|
-
* [Strong Customer Authentication](https://stripe.com/
|
|
18
|
-
* to streamline later [off-session payments](https://stripe.com/
|
|
17
|
+
* [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection
|
|
18
|
+
* to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents).
|
|
19
19
|
* If you use the SetupIntent with a [Customer](https://stripe.com/docs/api#setup_intent_object-customer),
|
|
20
20
|
* it automatically attaches the resulting payment method to that Customer after successful setup.
|
|
21
21
|
* We recommend using SetupIntents or [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) on
|
|
@@ -23,7 +23,7 @@ declare module 'stripe' {
|
|
|
23
23
|
*
|
|
24
24
|
* By using SetupIntents, you can reduce friction for your customers, even as regulations change over time.
|
|
25
25
|
*
|
|
26
|
-
* Related guide: [Setup Intents API](https://stripe.com/
|
|
26
|
+
* Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents)
|
|
27
27
|
*/
|
|
28
28
|
interface SetupIntent {
|
|
29
29
|
/**
|
|
@@ -260,13 +260,13 @@ declare module 'stripe' {
|
|
|
260
260
|
*
|
|
261
261
|
* Create a SetupIntent when you're ready to collect your customer's payment credentials.
|
|
262
262
|
* Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid.
|
|
263
|
-
* The SetupIntent transitions through multiple [statuses](https://stripe.com/
|
|
263
|
+
* The SetupIntent transitions through multiple [statuses](https://docs.stripe.com/payments/intents#intent-statuses) as it guides
|
|
264
264
|
* you through the setup process.
|
|
265
265
|
*
|
|
266
266
|
* Successful SetupIntents result in payment credentials that are optimized for future payments.
|
|
267
267
|
* For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through
|
|
268
|
-
* [Strong Customer Authentication](https://stripe.com/
|
|
269
|
-
* to streamline later [off-session payments](https://stripe.com/
|
|
268
|
+
* [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection
|
|
269
|
+
* to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents).
|
|
270
270
|
* If you use the SetupIntent with a [Customer](https://stripe.com/docs/api#setup_intent_object-customer),
|
|
271
271
|
* it automatically attaches the resulting payment method to that Customer after successful setup.
|
|
272
272
|
* We recommend using SetupIntents or [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) on
|
|
@@ -274,7 +274,7 @@ declare module 'stripe' {
|
|
|
274
274
|
*
|
|
275
275
|
* By using SetupIntents, you can reduce friction for your customers, even as regulations change over time.
|
|
276
276
|
*
|
|
277
|
-
* Related guide: [Setup Intents API](https://stripe.com/
|
|
277
|
+
* Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents)
|
|
278
278
|
*/
|
|
279
279
|
setup_intent?: Stripe.SetupIntent;
|
|
280
280
|
|
|
@@ -212,6 +212,7 @@ declare module 'stripe' {
|
|
|
212
212
|
| 'customer.tax_id.updated'
|
|
213
213
|
| 'customer.updated'
|
|
214
214
|
| 'customer_cash_balance_transaction.created'
|
|
215
|
+
| 'entitlements.active_entitlement_summary.updated'
|
|
215
216
|
| 'file.created'
|
|
216
217
|
| 'financial_connections.account.created'
|
|
217
218
|
| 'financial_connections.account.deactivated'
|
|
@@ -482,6 +483,7 @@ declare module 'stripe' {
|
|
|
482
483
|
| 'customer.tax_id.updated'
|
|
483
484
|
| 'customer.updated'
|
|
484
485
|
| 'customer_cash_balance_transaction.created'
|
|
486
|
+
| 'entitlements.active_entitlement_summary.updated'
|
|
485
487
|
| 'file.created'
|
|
486
488
|
| 'financial_connections.account.created'
|
|
487
489
|
| 'financial_connections.account.deactivated'
|
package/types/index.d.ts
CHANGED
|
@@ -161,6 +161,7 @@
|
|
|
161
161
|
///<reference path='./Customers.d.ts' />
|
|
162
162
|
///<reference path='./Discounts.d.ts' />
|
|
163
163
|
///<reference path='./Disputes.d.ts' />
|
|
164
|
+
///<reference path='./Entitlements/ActiveEntitlementSummaries.d.ts' />
|
|
164
165
|
///<reference path='./Entitlements/ActiveEntitlements.d.ts' />
|
|
165
166
|
///<reference path='./Entitlements/Features.d.ts' />
|
|
166
167
|
///<reference path='./EphemeralKeys.d.ts' />
|