stripe 20.1.0-alpha.3 → 20.1.0-alpha.4
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 +12 -0
- package/OPENAPI_VERSION +1 -1
- 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 +18 -0
- package/types/AccountsResource.d.ts +48 -0
- package/types/DelegatedCheckout/RequestedSessionsResource.d.ts +4 -4
- package/types/Persons.d.ts +2 -2
- package/types/TokensResource.d.ts +24 -0
- package/types/V2/Core/EventTypes.d.ts +97 -0
- package/types/V2/Core/Events.d.ts +61 -0
- package/types/V2/Core/EventsResource.d.ts +11 -1
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +17 -1
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +40 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 20.1.0-alpha.4 - 2025-12-04
|
|
4
|
+
* [#2519](https://github.com/stripe/stripe-node/pull/2519) Update generated code for private-preview
|
|
5
|
+
* Add support for event notifications `V2IamApiKeyCreatedEvent`, `V2IamApiKeyDefaultSecretRevealedEvent`, `V2IamApiKeyExpiredEvent`, `V2IamApiKeyPermissionsUpdatedEvent`, `V2IamApiKeyRotatedEvent`, and `V2IamApiKeyUpdatedEvent`
|
|
6
|
+
* [#2517](https://github.com/stripe/stripe-node/pull/2517) Update generated code for private-preview
|
|
7
|
+
* Add support for `check_scanning` on `AccountSession.components`
|
|
8
|
+
* Add support for `client` on `V2.Core.Event.reason.request`
|
|
9
|
+
* Add support for `stripe_balance_payment` on `V2.MoneyManagement.ReceivedCredit` and `V2.MoneyManagement.ReceivedDebit`
|
|
10
|
+
* Add support for new value `stripe_balance_payment` on enum `V2.MoneyManagement.ReceivedCredit.type`
|
|
11
|
+
* Add support for `balance_transfer` on `V2.MoneyManagement.ReceivedDebit`
|
|
12
|
+
* Add support for new values `balance_transfer` and `stripe_balance_payment` on enum `V2.MoneyManagement.ReceivedDebit.type`
|
|
13
|
+
* Add support for `include` on `V2.Core.EventListParams` and `V2.Core.EventRetrieveParams`
|
|
14
|
+
|
|
3
15
|
## 20.1.0-alpha.3 - 2025-11-24
|
|
4
16
|
* [#2512](https://github.com/stripe/stripe-node/pull/2512) Update generated code for private-preview
|
|
5
17
|
* Add support for new resource `ProductCatalog.TrialOffer`
|
package/OPENAPI_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
v2132
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
20.1.0-alpha.
|
|
1
|
+
20.1.0-alpha.4
|
package/cjs/stripe.core.js
CHANGED
|
@@ -37,7 +37,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
37
37
|
];
|
|
38
38
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
39
39
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
40
|
-
Stripe.PACKAGE_VERSION = '20.1.0-alpha.
|
|
40
|
+
Stripe.PACKAGE_VERSION = '20.1.0-alpha.4';
|
|
41
41
|
Stripe.API_VERSION = apiVersion_js_1.ApiVersion;
|
|
42
42
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
43
43
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
package/esm/stripe.core.js
CHANGED
|
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
34
34
|
];
|
|
35
35
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
36
36
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
37
|
-
Stripe.PACKAGE_VERSION = '20.1.0-alpha.
|
|
37
|
+
Stripe.PACKAGE_VERSION = '20.1.0-alpha.4';
|
|
38
38
|
Stripe.API_VERSION = ApiVersion;
|
|
39
39
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
40
40
|
Stripe.StripeResource = StripeResource;
|
package/package.json
CHANGED
|
@@ -89,6 +89,11 @@ declare module 'stripe' {
|
|
|
89
89
|
tax_registrations: Components.TaxRegistrations;
|
|
90
90
|
|
|
91
91
|
tax_settings: Components.TaxSettings;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Configuration for the [check scanning](https://docs.stripe.com/connect/supported-embedded-components/check-scanning/) embedded component.
|
|
95
|
+
*/
|
|
96
|
+
check_scanning?: Components.CheckScanning | null;
|
|
92
97
|
}
|
|
93
98
|
|
|
94
99
|
namespace Components {
|
|
@@ -215,6 +220,19 @@ declare module 'stripe' {
|
|
|
215
220
|
interface Features {}
|
|
216
221
|
}
|
|
217
222
|
|
|
223
|
+
interface CheckScanning {
|
|
224
|
+
/**
|
|
225
|
+
* Whether the embedded component is enabled.
|
|
226
|
+
*/
|
|
227
|
+
enabled: boolean;
|
|
228
|
+
|
|
229
|
+
features: CheckScanning.Features;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
namespace CheckScanning {
|
|
233
|
+
interface Features {}
|
|
234
|
+
}
|
|
235
|
+
|
|
218
236
|
interface DisputesList {
|
|
219
237
|
/**
|
|
220
238
|
* Whether the embedded component is enabled.
|
|
@@ -1781,14 +1781,26 @@ declare module 'stripe' {
|
|
|
1781
1781
|
}
|
|
1782
1782
|
|
|
1783
1783
|
interface SelfReportedIncome {
|
|
1784
|
+
/**
|
|
1785
|
+
* The amount in the minor currency unit (for example, cents for USD).
|
|
1786
|
+
*/
|
|
1784
1787
|
amount: number;
|
|
1785
1788
|
|
|
1789
|
+
/**
|
|
1790
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
1791
|
+
*/
|
|
1786
1792
|
currency: string;
|
|
1787
1793
|
}
|
|
1788
1794
|
|
|
1789
1795
|
interface SelfReportedMonthlyHousingPayment {
|
|
1796
|
+
/**
|
|
1797
|
+
* The amount in the minor currency unit (for example, cents for USD).
|
|
1798
|
+
*/
|
|
1790
1799
|
amount: number;
|
|
1791
1800
|
|
|
1801
|
+
/**
|
|
1802
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
1803
|
+
*/
|
|
1792
1804
|
currency: string;
|
|
1793
1805
|
}
|
|
1794
1806
|
|
|
@@ -3932,14 +3944,26 @@ declare module 'stripe' {
|
|
|
3932
3944
|
}
|
|
3933
3945
|
|
|
3934
3946
|
interface SelfReportedIncome {
|
|
3947
|
+
/**
|
|
3948
|
+
* The amount in the minor currency unit (for example, cents for USD).
|
|
3949
|
+
*/
|
|
3935
3950
|
amount: number;
|
|
3936
3951
|
|
|
3952
|
+
/**
|
|
3953
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
3954
|
+
*/
|
|
3937
3955
|
currency: string;
|
|
3938
3956
|
}
|
|
3939
3957
|
|
|
3940
3958
|
interface SelfReportedMonthlyHousingPayment {
|
|
3959
|
+
/**
|
|
3960
|
+
* The amount in the minor currency unit (for example, cents for USD).
|
|
3961
|
+
*/
|
|
3941
3962
|
amount: number;
|
|
3942
3963
|
|
|
3964
|
+
/**
|
|
3965
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
3966
|
+
*/
|
|
3943
3967
|
currency: string;
|
|
3944
3968
|
}
|
|
3945
3969
|
|
|
@@ -4780,14 +4804,26 @@ declare module 'stripe' {
|
|
|
4780
4804
|
}
|
|
4781
4805
|
|
|
4782
4806
|
interface SelfReportedIncome {
|
|
4807
|
+
/**
|
|
4808
|
+
* The amount in the minor currency unit (for example, cents for USD).
|
|
4809
|
+
*/
|
|
4783
4810
|
amount: number;
|
|
4784
4811
|
|
|
4812
|
+
/**
|
|
4813
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
4814
|
+
*/
|
|
4785
4815
|
currency: string;
|
|
4786
4816
|
}
|
|
4787
4817
|
|
|
4788
4818
|
interface SelfReportedMonthlyHousingPayment {
|
|
4819
|
+
/**
|
|
4820
|
+
* The amount in the minor currency unit (for example, cents for USD).
|
|
4821
|
+
*/
|
|
4789
4822
|
amount: number;
|
|
4790
4823
|
|
|
4824
|
+
/**
|
|
4825
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
4826
|
+
*/
|
|
4791
4827
|
currency: string;
|
|
4792
4828
|
}
|
|
4793
4829
|
|
|
@@ -5431,14 +5467,26 @@ declare module 'stripe' {
|
|
|
5431
5467
|
}
|
|
5432
5468
|
|
|
5433
5469
|
interface SelfReportedIncome {
|
|
5470
|
+
/**
|
|
5471
|
+
* The amount in the minor currency unit (for example, cents for USD).
|
|
5472
|
+
*/
|
|
5434
5473
|
amount: number;
|
|
5435
5474
|
|
|
5475
|
+
/**
|
|
5476
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
5477
|
+
*/
|
|
5436
5478
|
currency: string;
|
|
5437
5479
|
}
|
|
5438
5480
|
|
|
5439
5481
|
interface SelfReportedMonthlyHousingPayment {
|
|
5482
|
+
/**
|
|
5483
|
+
* The amount in the minor currency unit (for example, cents for USD).
|
|
5484
|
+
*/
|
|
5440
5485
|
amount: number;
|
|
5441
5486
|
|
|
5487
|
+
/**
|
|
5488
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
5489
|
+
*/
|
|
5442
5490
|
currency: string;
|
|
5443
5491
|
}
|
|
5444
5492
|
|
|
@@ -113,7 +113,7 @@ declare module 'stripe' {
|
|
|
113
113
|
postal_code: string;
|
|
114
114
|
|
|
115
115
|
/**
|
|
116
|
-
* State, county, province, or region.
|
|
116
|
+
* State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
117
117
|
*/
|
|
118
118
|
state: string;
|
|
119
119
|
}
|
|
@@ -199,7 +199,7 @@ declare module 'stripe' {
|
|
|
199
199
|
postal_code: string;
|
|
200
200
|
|
|
201
201
|
/**
|
|
202
|
-
* State, county, province, or region.
|
|
202
|
+
* State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
203
203
|
*/
|
|
204
204
|
state: string;
|
|
205
205
|
}
|
|
@@ -338,7 +338,7 @@ declare module 'stripe' {
|
|
|
338
338
|
postal_code: string;
|
|
339
339
|
|
|
340
340
|
/**
|
|
341
|
-
* State, county, province, or region.
|
|
341
|
+
* State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
342
342
|
*/
|
|
343
343
|
state: string;
|
|
344
344
|
}
|
|
@@ -445,7 +445,7 @@ declare module 'stripe' {
|
|
|
445
445
|
postal_code: string;
|
|
446
446
|
|
|
447
447
|
/**
|
|
448
|
-
* State, county, province, or region.
|
|
448
|
+
* State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
449
449
|
*/
|
|
450
450
|
state: string;
|
|
451
451
|
}
|
package/types/Persons.d.ts
CHANGED
|
@@ -676,7 +676,7 @@ declare module 'stripe' {
|
|
|
676
676
|
|
|
677
677
|
interface SelfReportedIncome {
|
|
678
678
|
/**
|
|
679
|
-
*
|
|
679
|
+
* The amount in the minor currency unit (for example, cents for USD).
|
|
680
680
|
*/
|
|
681
681
|
amount: number;
|
|
682
682
|
|
|
@@ -688,7 +688,7 @@ declare module 'stripe' {
|
|
|
688
688
|
|
|
689
689
|
interface SelfReportedMonthlyHousingPayment {
|
|
690
690
|
/**
|
|
691
|
-
*
|
|
691
|
+
* The amount in the minor currency unit (for example, cents for USD).
|
|
692
692
|
*/
|
|
693
693
|
amount: number;
|
|
694
694
|
|
|
@@ -493,14 +493,26 @@ declare module 'stripe' {
|
|
|
493
493
|
}
|
|
494
494
|
|
|
495
495
|
interface SelfReportedIncome {
|
|
496
|
+
/**
|
|
497
|
+
* The amount in the minor currency unit (for example, cents for USD).
|
|
498
|
+
*/
|
|
496
499
|
amount: number;
|
|
497
500
|
|
|
501
|
+
/**
|
|
502
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
503
|
+
*/
|
|
498
504
|
currency: string;
|
|
499
505
|
}
|
|
500
506
|
|
|
501
507
|
interface SelfReportedMonthlyHousingPayment {
|
|
508
|
+
/**
|
|
509
|
+
* The amount in the minor currency unit (for example, cents for USD).
|
|
510
|
+
*/
|
|
502
511
|
amount: number;
|
|
503
512
|
|
|
513
|
+
/**
|
|
514
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
515
|
+
*/
|
|
504
516
|
currency: string;
|
|
505
517
|
}
|
|
506
518
|
|
|
@@ -955,14 +967,26 @@ declare module 'stripe' {
|
|
|
955
967
|
}
|
|
956
968
|
|
|
957
969
|
interface SelfReportedIncome {
|
|
970
|
+
/**
|
|
971
|
+
* The amount in the minor currency unit (for example, cents for USD).
|
|
972
|
+
*/
|
|
958
973
|
amount: number;
|
|
959
974
|
|
|
975
|
+
/**
|
|
976
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
977
|
+
*/
|
|
960
978
|
currency: string;
|
|
961
979
|
}
|
|
962
980
|
|
|
963
981
|
interface SelfReportedMonthlyHousingPayment {
|
|
982
|
+
/**
|
|
983
|
+
* The amount in the minor currency unit (for example, cents for USD).
|
|
984
|
+
*/
|
|
964
985
|
amount: number;
|
|
965
986
|
|
|
987
|
+
/**
|
|
988
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
989
|
+
*/
|
|
966
990
|
currency: string;
|
|
967
991
|
}
|
|
968
992
|
|
|
@@ -86,6 +86,12 @@ declare module 'stripe' {
|
|
|
86
86
|
| Stripe.Events.V2CoreHealthTrafficVolumeDropResolvedEvent
|
|
87
87
|
| Stripe.Events.V2CoreHealthWebhookLatencyFiringEvent
|
|
88
88
|
| Stripe.Events.V2CoreHealthWebhookLatencyResolvedEvent
|
|
89
|
+
| Stripe.Events.V2IamApiKeyCreatedEvent
|
|
90
|
+
| Stripe.Events.V2IamApiKeyDefaultSecretRevealedEvent
|
|
91
|
+
| Stripe.Events.V2IamApiKeyExpiredEvent
|
|
92
|
+
| Stripe.Events.V2IamApiKeyPermissionsUpdatedEvent
|
|
93
|
+
| Stripe.Events.V2IamApiKeyRotatedEvent
|
|
94
|
+
| Stripe.Events.V2IamApiKeyUpdatedEvent
|
|
89
95
|
| Stripe.Events.V2MoneyManagementAdjustmentCreatedEvent
|
|
90
96
|
| Stripe.Events.V2MoneyManagementFinancialAccountCreatedEvent
|
|
91
97
|
| Stripe.Events.V2MoneyManagementFinancialAccountUpdatedEvent
|
|
@@ -221,6 +227,12 @@ declare module 'stripe' {
|
|
|
221
227
|
| Stripe.Events.V2CoreHealthTrafficVolumeDropResolvedEventNotification
|
|
222
228
|
| Stripe.Events.V2CoreHealthWebhookLatencyFiringEventNotification
|
|
223
229
|
| Stripe.Events.V2CoreHealthWebhookLatencyResolvedEventNotification
|
|
230
|
+
| Stripe.Events.V2IamApiKeyCreatedEventNotification
|
|
231
|
+
| Stripe.Events.V2IamApiKeyDefaultSecretRevealedEventNotification
|
|
232
|
+
| Stripe.Events.V2IamApiKeyExpiredEventNotification
|
|
233
|
+
| Stripe.Events.V2IamApiKeyPermissionsUpdatedEventNotification
|
|
234
|
+
| Stripe.Events.V2IamApiKeyRotatedEventNotification
|
|
235
|
+
| Stripe.Events.V2IamApiKeyUpdatedEventNotification
|
|
224
236
|
| Stripe.Events.V2MoneyManagementAdjustmentCreatedEventNotification
|
|
225
237
|
| Stripe.Events.V2MoneyManagementFinancialAccountCreatedEventNotification
|
|
226
238
|
| Stripe.Events.V2MoneyManagementFinancialAccountUpdatedEventNotification
|
|
@@ -3859,6 +3871,91 @@ declare module 'stripe' {
|
|
|
3859
3871
|
}
|
|
3860
3872
|
}
|
|
3861
3873
|
|
|
3874
|
+
/**
|
|
3875
|
+
* Occurs when an API Key is created.
|
|
3876
|
+
*/
|
|
3877
|
+
export interface V2IamApiKeyCreatedEvent extends V2.Core.EventBase {
|
|
3878
|
+
type: 'v2.iam.api_key.created';
|
|
3879
|
+
}
|
|
3880
|
+
export interface V2IamApiKeyCreatedEventNotification
|
|
3881
|
+
extends V2.Core.EventNotificationBase {
|
|
3882
|
+
type: 'v2.iam.api_key.created';
|
|
3883
|
+
fetchEvent(): Promise<V2IamApiKeyCreatedEvent>;
|
|
3884
|
+
}
|
|
3885
|
+
|
|
3886
|
+
/**
|
|
3887
|
+
* Occurs when the default API Key's secret is revealed.
|
|
3888
|
+
*/
|
|
3889
|
+
export interface V2IamApiKeyDefaultSecretRevealedEvent
|
|
3890
|
+
extends V2.Core.EventBase {
|
|
3891
|
+
type: 'v2.iam.api_key.default_secret_revealed';
|
|
3892
|
+
}
|
|
3893
|
+
export interface V2IamApiKeyDefaultSecretRevealedEventNotification
|
|
3894
|
+
extends V2.Core.EventNotificationBase {
|
|
3895
|
+
type: 'v2.iam.api_key.default_secret_revealed';
|
|
3896
|
+
fetchEvent(): Promise<V2IamApiKeyDefaultSecretRevealedEvent>;
|
|
3897
|
+
}
|
|
3898
|
+
|
|
3899
|
+
/**
|
|
3900
|
+
* Occurs when an API Key is expired.
|
|
3901
|
+
*/
|
|
3902
|
+
export interface V2IamApiKeyExpiredEvent extends V2.Core.EventBase {
|
|
3903
|
+
type: 'v2.iam.api_key.expired';
|
|
3904
|
+
}
|
|
3905
|
+
export interface V2IamApiKeyExpiredEventNotification
|
|
3906
|
+
extends V2.Core.EventNotificationBase {
|
|
3907
|
+
type: 'v2.iam.api_key.expired';
|
|
3908
|
+
fetchEvent(): Promise<V2IamApiKeyExpiredEvent>;
|
|
3909
|
+
}
|
|
3910
|
+
|
|
3911
|
+
/**
|
|
3912
|
+
* Occurs when an API Key's permissions are updated.
|
|
3913
|
+
*/
|
|
3914
|
+
export interface V2IamApiKeyPermissionsUpdatedEvent
|
|
3915
|
+
extends V2.Core.EventBase {
|
|
3916
|
+
type: 'v2.iam.api_key.permissions_updated';
|
|
3917
|
+
}
|
|
3918
|
+
export interface V2IamApiKeyPermissionsUpdatedEventNotification
|
|
3919
|
+
extends V2.Core.EventNotificationBase {
|
|
3920
|
+
type: 'v2.iam.api_key.permissions_updated';
|
|
3921
|
+
fetchEvent(): Promise<V2IamApiKeyPermissionsUpdatedEvent>;
|
|
3922
|
+
}
|
|
3923
|
+
|
|
3924
|
+
/**
|
|
3925
|
+
* Occurs when an API Key is rotated.
|
|
3926
|
+
*/
|
|
3927
|
+
export interface V2IamApiKeyRotatedEvent extends V2.Core.EventBase {
|
|
3928
|
+
type: 'v2.iam.api_key.rotated';
|
|
3929
|
+
// Retrieves data specific to this event.
|
|
3930
|
+
data: V2IamApiKeyRotatedEvent.Data;
|
|
3931
|
+
}
|
|
3932
|
+
export interface V2IamApiKeyRotatedEventNotification
|
|
3933
|
+
extends V2.Core.EventNotificationBase {
|
|
3934
|
+
type: 'v2.iam.api_key.rotated';
|
|
3935
|
+
fetchEvent(): Promise<V2IamApiKeyRotatedEvent>;
|
|
3936
|
+
}
|
|
3937
|
+
|
|
3938
|
+
namespace V2IamApiKeyRotatedEvent {
|
|
3939
|
+
export interface Data {
|
|
3940
|
+
/**
|
|
3941
|
+
* ID of the new key that was created due to rotation.
|
|
3942
|
+
*/
|
|
3943
|
+
new_api_key: string;
|
|
3944
|
+
}
|
|
3945
|
+
}
|
|
3946
|
+
|
|
3947
|
+
/**
|
|
3948
|
+
* Occurs when an API Key is updated.
|
|
3949
|
+
*/
|
|
3950
|
+
export interface V2IamApiKeyUpdatedEvent extends V2.Core.EventBase {
|
|
3951
|
+
type: 'v2.iam.api_key.updated';
|
|
3952
|
+
}
|
|
3953
|
+
export interface V2IamApiKeyUpdatedEventNotification
|
|
3954
|
+
extends V2.Core.EventNotificationBase {
|
|
3955
|
+
type: 'v2.iam.api_key.updated';
|
|
3956
|
+
fetchEvent(): Promise<V2IamApiKeyUpdatedEvent>;
|
|
3957
|
+
}
|
|
3958
|
+
|
|
3862
3959
|
/**
|
|
3863
3960
|
* Occurs when an Adjustment is created.
|
|
3864
3961
|
*/
|
|
@@ -23,6 +23,11 @@ declare module 'stripe' {
|
|
|
23
23
|
|
|
24
24
|
namespace Reason {
|
|
25
25
|
interface Request {
|
|
26
|
+
/**
|
|
27
|
+
* The client details that made the request.
|
|
28
|
+
*/
|
|
29
|
+
client?: Request.Client;
|
|
30
|
+
|
|
26
31
|
/**
|
|
27
32
|
* ID of the API request that caused the event.
|
|
28
33
|
*/
|
|
@@ -33,6 +38,62 @@ declare module 'stripe' {
|
|
|
33
38
|
*/
|
|
34
39
|
idempotency_key: string;
|
|
35
40
|
}
|
|
41
|
+
|
|
42
|
+
namespace Request {
|
|
43
|
+
interface Client {
|
|
44
|
+
/**
|
|
45
|
+
* The type of the client.
|
|
46
|
+
*/
|
|
47
|
+
type: Client.Type;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* API key that triggered the event.
|
|
51
|
+
*/
|
|
52
|
+
api_key?: Client.ApiKey;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Dashboard user that triggered the event.
|
|
56
|
+
*/
|
|
57
|
+
dashboard_user?: Client.DashboardUser;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Stripe action that triggered the event.
|
|
61
|
+
*/
|
|
62
|
+
stripe_action?: Client.StripeAction;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
namespace Client {
|
|
66
|
+
interface ApiKey {
|
|
67
|
+
/**
|
|
68
|
+
* The ID of the API key.
|
|
69
|
+
*/
|
|
70
|
+
id: string;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
interface DashboardUser {
|
|
74
|
+
/**
|
|
75
|
+
* The email of the dashboard user.
|
|
76
|
+
*/
|
|
77
|
+
email: string;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* The IP address of the user.
|
|
81
|
+
*/
|
|
82
|
+
ip_address: string;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The machine identifier of the user.
|
|
86
|
+
*/
|
|
87
|
+
machine_identifier: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
type StripeAction = {
|
|
91
|
+
[key: string]: unknown;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
type Type = 'api_key' | 'dashboard_user' | 'stripe_action';
|
|
95
|
+
}
|
|
96
|
+
}
|
|
36
97
|
}
|
|
37
98
|
}
|
|
38
99
|
|
|
@@ -6,7 +6,12 @@ declare module 'stripe' {
|
|
|
6
6
|
namespace Stripe {
|
|
7
7
|
namespace V2 {
|
|
8
8
|
namespace Core {
|
|
9
|
-
interface EventRetrieveParams {
|
|
9
|
+
interface EventRetrieveParams {
|
|
10
|
+
/**
|
|
11
|
+
* Additional fields to include in the response.
|
|
12
|
+
*/
|
|
13
|
+
include?: Array<'reason.request.client'>;
|
|
14
|
+
}
|
|
10
15
|
}
|
|
11
16
|
|
|
12
17
|
namespace Core {
|
|
@@ -16,6 +21,11 @@ declare module 'stripe' {
|
|
|
16
21
|
*/
|
|
17
22
|
created?: Stripe.RangeQueryParam;
|
|
18
23
|
|
|
24
|
+
/**
|
|
25
|
+
* Additional fields to include in the response.
|
|
26
|
+
*/
|
|
27
|
+
include?: Array<'reason.request.client'>;
|
|
28
|
+
|
|
19
29
|
/**
|
|
20
30
|
* The page size.
|
|
21
31
|
*/
|
|
@@ -79,6 +79,11 @@ declare module 'stripe' {
|
|
|
79
79
|
*/
|
|
80
80
|
status_transitions?: ReceivedCredit.StatusTransitions;
|
|
81
81
|
|
|
82
|
+
/**
|
|
83
|
+
* This object stores details about the stripe balance pay refund that resulted in the ReceivedCredit. Present if `type` field value is `stripe_balance_payment`.
|
|
84
|
+
*/
|
|
85
|
+
stripe_balance_payment?: ReceivedCredit.StripeBalancePayment;
|
|
86
|
+
|
|
82
87
|
/**
|
|
83
88
|
* Open Enum. The type of flow that caused the ReceivedCredit.
|
|
84
89
|
*/
|
|
@@ -323,7 +328,18 @@ declare module 'stripe' {
|
|
|
323
328
|
succeeded_at?: string;
|
|
324
329
|
}
|
|
325
330
|
|
|
326
|
-
|
|
331
|
+
interface StripeBalancePayment {
|
|
332
|
+
/**
|
|
333
|
+
* Statement descriptor for the Stripe Balance Payment.
|
|
334
|
+
*/
|
|
335
|
+
statement_descriptor?: string;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
type Type =
|
|
339
|
+
| 'balance_transfer'
|
|
340
|
+
| 'bank_transfer'
|
|
341
|
+
| 'external_credit'
|
|
342
|
+
| 'stripe_balance_payment';
|
|
327
343
|
}
|
|
328
344
|
}
|
|
329
345
|
}
|
|
@@ -23,6 +23,11 @@ declare module 'stripe' {
|
|
|
23
23
|
*/
|
|
24
24
|
amount: ReceivedDebit.Amount;
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
* This object stores details about the balance transfer object that resulted in the ReceivedDebit.
|
|
28
|
+
*/
|
|
29
|
+
balance_transfer?: ReceivedDebit.BalanceTransfer;
|
|
30
|
+
|
|
26
31
|
/**
|
|
27
32
|
* This object stores details about the originating banking transaction that resulted in the ReceivedDebit. Present if `type` field value is `bank_transfer`.
|
|
28
33
|
*/
|
|
@@ -75,7 +80,12 @@ declare module 'stripe' {
|
|
|
75
80
|
status_transitions?: ReceivedDebit.StatusTransitions;
|
|
76
81
|
|
|
77
82
|
/**
|
|
78
|
-
*
|
|
83
|
+
* This object stores details about the Stripe Balance Payment that resulted in the ReceivedDebit.
|
|
84
|
+
*/
|
|
85
|
+
stripe_balance_payment?: ReceivedDebit.StripeBalancePayment;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Open enum, the type of the received debit.
|
|
79
89
|
*/
|
|
80
90
|
type: ReceivedDebit.Type;
|
|
81
91
|
}
|
|
@@ -93,6 +103,18 @@ declare module 'stripe' {
|
|
|
93
103
|
currency?: string;
|
|
94
104
|
}
|
|
95
105
|
|
|
106
|
+
interface BalanceTransfer {
|
|
107
|
+
/**
|
|
108
|
+
* Open Enum. The type of balance transfer that originated the ReceivedDebit.
|
|
109
|
+
*/
|
|
110
|
+
type: 'topup';
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* The ID of the topup object that originated the ReceivedDebit.
|
|
114
|
+
*/
|
|
115
|
+
topup?: string;
|
|
116
|
+
}
|
|
117
|
+
|
|
96
118
|
interface BankTransfer {
|
|
97
119
|
/**
|
|
98
120
|
* The Financial Address that was debited.
|
|
@@ -202,7 +224,23 @@ declare module 'stripe' {
|
|
|
202
224
|
succeeded_at?: string;
|
|
203
225
|
}
|
|
204
226
|
|
|
205
|
-
|
|
227
|
+
interface StripeBalancePayment {
|
|
228
|
+
/**
|
|
229
|
+
* ID of the debit agreement associated with this payment.
|
|
230
|
+
*/
|
|
231
|
+
debit_agreement?: string;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Statement descriptor for the Stripe Balance Payment.
|
|
235
|
+
*/
|
|
236
|
+
statement_descriptor?: string;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
type Type =
|
|
240
|
+
| 'balance_transfer'
|
|
241
|
+
| 'bank_transfer'
|
|
242
|
+
| 'external_debit'
|
|
243
|
+
| 'stripe_balance_payment';
|
|
206
244
|
}
|
|
207
245
|
}
|
|
208
246
|
}
|