stripe 17.3.0-beta.1 → 17.4.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 +55 -0
- package/VERSION +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/PaymentIntents.js +4 -0
- package/cjs/resources/V2/Core/EventDestinations.js +41 -0
- package/cjs/resources/V2/Core.js +2 -0
- package/cjs/stripe.core.js +1 -1
- package/esm/apiVersion.js +1 -1
- package/esm/resources/PaymentIntents.js +4 -0
- package/esm/resources/V2/Core/EventDestinations.js +38 -0
- package/esm/resources/V2/Core.js +2 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountSessionsResource.d.ts +12 -4
- package/types/Accounts.d.ts +28 -0
- package/types/AccountsResource.d.ts +83 -1
- package/types/Charges.d.ts +33 -0
- package/types/Checkout/Sessions.d.ts +75 -0
- package/types/Checkout/SessionsResource.d.ts +80 -0
- package/types/ConfirmationTokens.d.ts +17 -0
- package/types/CustomersResource.d.ts +1 -0
- package/types/Disputes.d.ts +3 -3
- package/types/EventTypes.d.ts +18 -0
- package/types/Events.d.ts +1 -0
- package/types/Invoices.d.ts +8 -1
- package/types/InvoicesResource.d.ts +30 -0
- package/types/PaymentIntents.d.ts +25 -1
- package/types/PaymentIntentsResource.d.ts +188 -0
- package/types/PaymentMethodConfigurations.d.ts +144 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +200 -0
- package/types/PaymentMethods.d.ts +17 -0
- package/types/PaymentMethodsResource.d.ts +18 -0
- package/types/QuotePreviewInvoices.d.ts +8 -1
- package/types/Refunds.d.ts +15 -4
- package/types/SetupAttempts.d.ts +28 -1
- package/types/SetupIntents.d.ts +0 -1
- package/types/SetupIntentsResource.d.ts +51 -0
- package/types/Subscriptions.d.ts +8 -0
- package/types/SubscriptionsResource.d.ts +20 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +17 -0
- package/types/V2/Core/EventDestinationsResource.d.ts +281 -0
- package/types/V2/Core/EventsResource.d.ts +1 -1
- package/types/V2/CoreResource.d.ts +1 -0
- package/types/V2/EventDestinations.d.ts +164 -0
- package/types/WebhookEndpointsResource.d.ts +4 -1
- package/types/index.d.ts +2 -0
|
@@ -716,6 +716,13 @@ declare module 'stripe' {
|
|
|
716
716
|
PaymentMethodOptions.CustomerBalance
|
|
717
717
|
>;
|
|
718
718
|
|
|
719
|
+
/**
|
|
720
|
+
* This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
721
|
+
*/
|
|
722
|
+
id_bank_transfer?: Stripe.Emptyable<
|
|
723
|
+
PaymentMethodOptions.IdBankTransfer
|
|
724
|
+
>;
|
|
725
|
+
|
|
719
726
|
/**
|
|
720
727
|
* This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
721
728
|
*/
|
|
@@ -864,6 +871,8 @@ declare module 'stripe' {
|
|
|
864
871
|
}
|
|
865
872
|
}
|
|
866
873
|
|
|
874
|
+
interface IdBankTransfer {}
|
|
875
|
+
|
|
867
876
|
interface Konbini {}
|
|
868
877
|
|
|
869
878
|
interface SepaDebit {}
|
|
@@ -948,6 +957,7 @@ declare module 'stripe' {
|
|
|
948
957
|
| 'fpx'
|
|
949
958
|
| 'giropay'
|
|
950
959
|
| 'grabpay'
|
|
960
|
+
| 'id_bank_transfer'
|
|
951
961
|
| 'ideal'
|
|
952
962
|
| 'jp_credit_transfer'
|
|
953
963
|
| 'kakao_pay'
|
|
@@ -1757,6 +1767,13 @@ declare module 'stripe' {
|
|
|
1757
1767
|
PaymentMethodOptions.CustomerBalance
|
|
1758
1768
|
>;
|
|
1759
1769
|
|
|
1770
|
+
/**
|
|
1771
|
+
* This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
1772
|
+
*/
|
|
1773
|
+
id_bank_transfer?: Stripe.Emptyable<
|
|
1774
|
+
PaymentMethodOptions.IdBankTransfer
|
|
1775
|
+
>;
|
|
1776
|
+
|
|
1760
1777
|
/**
|
|
1761
1778
|
* This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
1762
1779
|
*/
|
|
@@ -1905,6 +1922,8 @@ declare module 'stripe' {
|
|
|
1905
1922
|
}
|
|
1906
1923
|
}
|
|
1907
1924
|
|
|
1925
|
+
interface IdBankTransfer {}
|
|
1926
|
+
|
|
1908
1927
|
interface Konbini {}
|
|
1909
1928
|
|
|
1910
1929
|
interface SepaDebit {}
|
|
@@ -1989,6 +2008,7 @@ declare module 'stripe' {
|
|
|
1989
2008
|
| 'fpx'
|
|
1990
2009
|
| 'giropay'
|
|
1991
2010
|
| 'grabpay'
|
|
2011
|
+
| 'id_bank_transfer'
|
|
1992
2012
|
| 'ideal'
|
|
1993
2013
|
| 'jp_credit_transfer'
|
|
1994
2014
|
| 'kakao_pay'
|
|
@@ -139,6 +139,11 @@ declare module 'stripe' {
|
|
|
139
139
|
*/
|
|
140
140
|
grabpay?: PaymentMethodData.Grabpay;
|
|
141
141
|
|
|
142
|
+
/**
|
|
143
|
+
* If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
144
|
+
*/
|
|
145
|
+
id_bank_transfer?: PaymentMethodData.IdBankTransfer;
|
|
146
|
+
|
|
142
147
|
/**
|
|
143
148
|
* If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
144
149
|
*/
|
|
@@ -486,6 +491,17 @@ declare module 'stripe' {
|
|
|
486
491
|
|
|
487
492
|
interface Grabpay {}
|
|
488
493
|
|
|
494
|
+
interface IdBankTransfer {
|
|
495
|
+
/**
|
|
496
|
+
* Bank where the account is held.
|
|
497
|
+
*/
|
|
498
|
+
bank?: IdBankTransfer.Bank;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
namespace IdBankTransfer {
|
|
502
|
+
type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
|
|
503
|
+
}
|
|
504
|
+
|
|
489
505
|
interface Ideal {
|
|
490
506
|
/**
|
|
491
507
|
* The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
@@ -714,6 +730,7 @@ declare module 'stripe' {
|
|
|
714
730
|
| 'giropay'
|
|
715
731
|
| 'gopay'
|
|
716
732
|
| 'grabpay'
|
|
733
|
+
| 'id_bank_transfer'
|
|
717
734
|
| 'ideal'
|
|
718
735
|
| 'kakao_pay'
|
|
719
736
|
| 'klarna'
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
namespace Core {
|
|
7
|
+
interface EventDestinationCreateParams {
|
|
8
|
+
/**
|
|
9
|
+
* The list of events to enable for this endpoint.
|
|
10
|
+
*/
|
|
11
|
+
enabled_events: Array<string>;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Payload type of events being subscribed to.
|
|
15
|
+
*/
|
|
16
|
+
event_payload: EventDestinationCreateParams.EventPayload;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Event destination name.
|
|
20
|
+
*/
|
|
21
|
+
name: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Event destination type.
|
|
25
|
+
*/
|
|
26
|
+
type: EventDestinationCreateParams.Type;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Amazon EventBridge configuration.
|
|
30
|
+
*/
|
|
31
|
+
amazon_eventbridge?: EventDestinationCreateParams.AmazonEventbridge;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* An optional description of what the event destination is used for.
|
|
35
|
+
*/
|
|
36
|
+
description?: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Where events should be routed from.
|
|
40
|
+
*/
|
|
41
|
+
events_from?: Array<EventDestinationCreateParams.EventsFrom>;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Additional fields to include in the response.
|
|
45
|
+
*/
|
|
46
|
+
include?: Array<EventDestinationCreateParams.Include>;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Metadata.
|
|
50
|
+
*/
|
|
51
|
+
metadata?: Stripe.MetadataParam;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* If using the snapshot event payload, the API version events are rendered as.
|
|
55
|
+
*/
|
|
56
|
+
snapshot_api_version?: string;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Webhook endpoint configuration.
|
|
60
|
+
*/
|
|
61
|
+
webhook_endpoint?: EventDestinationCreateParams.WebhookEndpoint;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
namespace EventDestinationCreateParams {
|
|
65
|
+
interface AmazonEventbridge {
|
|
66
|
+
/**
|
|
67
|
+
* The AWS account ID.
|
|
68
|
+
*/
|
|
69
|
+
aws_account_id: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The region of the AWS event source.
|
|
73
|
+
*/
|
|
74
|
+
aws_region: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
type EventPayload = 'snapshot' | 'thin';
|
|
78
|
+
|
|
79
|
+
type EventsFrom = 'other_accounts' | 'self';
|
|
80
|
+
|
|
81
|
+
type Include =
|
|
82
|
+
| 'webhook_endpoint.signing_secret'
|
|
83
|
+
| 'webhook_endpoint.url';
|
|
84
|
+
|
|
85
|
+
type Type = 'amazon_eventbridge' | 'webhook_endpoint';
|
|
86
|
+
|
|
87
|
+
interface WebhookEndpoint {
|
|
88
|
+
/**
|
|
89
|
+
* The URL of the webhook endpoint.
|
|
90
|
+
*/
|
|
91
|
+
url: string;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
namespace Core {
|
|
97
|
+
interface EventDestinationRetrieveParams {
|
|
98
|
+
/**
|
|
99
|
+
* Additional fields to include in the response.
|
|
100
|
+
*/
|
|
101
|
+
include?: Array<'webhook_endpoint.url'>;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
namespace Core {
|
|
106
|
+
interface EventDestinationUpdateParams {
|
|
107
|
+
/**
|
|
108
|
+
* An optional description of what the event destination is used for.
|
|
109
|
+
*/
|
|
110
|
+
description?: string;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* The list of events to enable for this endpoint.
|
|
114
|
+
*/
|
|
115
|
+
enabled_events?: Array<string>;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Additional fields to include in the response. Currently supports `webhook_endpoint.url`.
|
|
119
|
+
*/
|
|
120
|
+
include?: Array<'webhook_endpoint.url'>;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Metadata.
|
|
124
|
+
*/
|
|
125
|
+
metadata?: Stripe.MetadataParam;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Event destination name.
|
|
129
|
+
*/
|
|
130
|
+
name?: string;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Webhook endpoint configuration.
|
|
134
|
+
*/
|
|
135
|
+
webhook_endpoint?: EventDestinationUpdateParams.WebhookEndpoint;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
namespace EventDestinationUpdateParams {
|
|
139
|
+
interface WebhookEndpoint {
|
|
140
|
+
/**
|
|
141
|
+
* The URL of the webhook endpoint.
|
|
142
|
+
*/
|
|
143
|
+
url: string;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
namespace Core {
|
|
149
|
+
interface EventDestinationListParams {
|
|
150
|
+
/**
|
|
151
|
+
* Additional fields to include in the response. Currently supports `webhook_endpoint.url`.
|
|
152
|
+
*/
|
|
153
|
+
include?: Array<'webhook_endpoint.url'>;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* The page size.
|
|
157
|
+
*/
|
|
158
|
+
limit?: number;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* The requested page.
|
|
162
|
+
*/
|
|
163
|
+
page?: string;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
namespace Core {
|
|
168
|
+
interface EventDestinationDeleteParams {}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
namespace Core {
|
|
172
|
+
interface EventDestinationDisableParams {}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
namespace Core {
|
|
176
|
+
interface EventDestinationEnableParams {}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
namespace Core {
|
|
180
|
+
interface EventDestinationPingParams {}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
namespace Core {
|
|
184
|
+
class EventDestinationsResource {
|
|
185
|
+
/**
|
|
186
|
+
* Create a new event destination.
|
|
187
|
+
*/
|
|
188
|
+
create(
|
|
189
|
+
params: EventDestinationCreateParams,
|
|
190
|
+
options?: RequestOptions
|
|
191
|
+
): Promise<Stripe.Response<Stripe.V2.EventDestination>>;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Retrieves the details of an event destination.
|
|
195
|
+
*/
|
|
196
|
+
retrieve(
|
|
197
|
+
id: string,
|
|
198
|
+
params?: EventDestinationRetrieveParams,
|
|
199
|
+
options?: RequestOptions
|
|
200
|
+
): Promise<Stripe.Response<Stripe.V2.EventDestination>>;
|
|
201
|
+
retrieve(
|
|
202
|
+
id: string,
|
|
203
|
+
options?: RequestOptions
|
|
204
|
+
): Promise<Stripe.Response<Stripe.V2.EventDestination>>;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Update the details of an event destination.
|
|
208
|
+
*/
|
|
209
|
+
update(
|
|
210
|
+
id: string,
|
|
211
|
+
params?: EventDestinationUpdateParams,
|
|
212
|
+
options?: RequestOptions
|
|
213
|
+
): Promise<Stripe.Response<Stripe.V2.EventDestination>>;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Lists all event destinations.
|
|
217
|
+
*/
|
|
218
|
+
list(
|
|
219
|
+
params?: EventDestinationListParams,
|
|
220
|
+
options?: RequestOptions
|
|
221
|
+
): ApiListPromise<Stripe.V2.EventDestination>;
|
|
222
|
+
list(
|
|
223
|
+
options?: RequestOptions
|
|
224
|
+
): ApiListPromise<Stripe.V2.EventDestination>;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Delete an event destination.
|
|
228
|
+
*/
|
|
229
|
+
del(
|
|
230
|
+
id: string,
|
|
231
|
+
params?: EventDestinationDeleteParams,
|
|
232
|
+
options?: RequestOptions
|
|
233
|
+
): Promise<Stripe.Response<Stripe.V2.EventDestination>>;
|
|
234
|
+
del(
|
|
235
|
+
id: string,
|
|
236
|
+
options?: RequestOptions
|
|
237
|
+
): Promise<Stripe.Response<Stripe.V2.EventDestination>>;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Disable an event destination.
|
|
241
|
+
*/
|
|
242
|
+
disable(
|
|
243
|
+
id: string,
|
|
244
|
+
params?: EventDestinationDisableParams,
|
|
245
|
+
options?: RequestOptions
|
|
246
|
+
): Promise<Stripe.Response<Stripe.V2.EventDestination>>;
|
|
247
|
+
disable(
|
|
248
|
+
id: string,
|
|
249
|
+
options?: RequestOptions
|
|
250
|
+
): Promise<Stripe.Response<Stripe.V2.EventDestination>>;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Enable an event destination.
|
|
254
|
+
*/
|
|
255
|
+
enable(
|
|
256
|
+
id: string,
|
|
257
|
+
params?: EventDestinationEnableParams,
|
|
258
|
+
options?: RequestOptions
|
|
259
|
+
): Promise<Stripe.Response<Stripe.V2.EventDestination>>;
|
|
260
|
+
enable(
|
|
261
|
+
id: string,
|
|
262
|
+
options?: RequestOptions
|
|
263
|
+
): Promise<Stripe.Response<Stripe.V2.EventDestination>>;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Send a `ping` event to an event destination.
|
|
267
|
+
*/
|
|
268
|
+
ping(
|
|
269
|
+
id: string,
|
|
270
|
+
params?: EventDestinationPingParams,
|
|
271
|
+
options?: RequestOptions
|
|
272
|
+
): Promise<Stripe.Response<Stripe.V2.Event>>;
|
|
273
|
+
ping(
|
|
274
|
+
id: string,
|
|
275
|
+
options?: RequestOptions
|
|
276
|
+
): Promise<Stripe.Response<Stripe.V2.Event>>;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
/**
|
|
7
|
+
* The EventDestination object.
|
|
8
|
+
*/
|
|
9
|
+
interface EventDestination {
|
|
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 of the object field.
|
|
17
|
+
*/
|
|
18
|
+
object: 'v2.core.event_destination';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Amazon EventBridge configuration.
|
|
22
|
+
*/
|
|
23
|
+
amazon_eventbridge: EventDestination.AmazonEventbridge | null;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Time at which the object was created.
|
|
27
|
+
*/
|
|
28
|
+
created: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* An optional description of what the event destination is used for.
|
|
32
|
+
*/
|
|
33
|
+
description: string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The list of events to enable for this endpoint.
|
|
37
|
+
*/
|
|
38
|
+
enabled_events: Array<string>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Payload type of events being subscribed to.
|
|
42
|
+
*/
|
|
43
|
+
event_payload: EventDestination.EventPayload;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Where events should be routed from.
|
|
47
|
+
*/
|
|
48
|
+
events_from: Array<EventDestination.EventsFrom> | null;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
52
|
+
*/
|
|
53
|
+
livemode: boolean;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Metadata.
|
|
57
|
+
*/
|
|
58
|
+
metadata: Stripe.Metadata | null;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Event destination name.
|
|
62
|
+
*/
|
|
63
|
+
name: string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* If using the snapshot event payload, the API version events are rendered as.
|
|
67
|
+
*/
|
|
68
|
+
snapshot_api_version: string | null;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Status. It can be set to either enabled or disabled.
|
|
72
|
+
*/
|
|
73
|
+
status: EventDestination.Status;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Additional information about event destination status.
|
|
77
|
+
*/
|
|
78
|
+
status_details: EventDestination.StatusDetails | null;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Event destination type.
|
|
82
|
+
*/
|
|
83
|
+
type: EventDestination.Type;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Time at which the object was last updated.
|
|
87
|
+
*/
|
|
88
|
+
updated: string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Webhook endpoint configuration.
|
|
92
|
+
*/
|
|
93
|
+
webhook_endpoint: EventDestination.WebhookEndpoint | null;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
namespace EventDestination {
|
|
97
|
+
interface AmazonEventbridge {
|
|
98
|
+
/**
|
|
99
|
+
* The AWS account ID.
|
|
100
|
+
*/
|
|
101
|
+
aws_account_id: string;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* The ARN of the AWS event source.
|
|
105
|
+
*/
|
|
106
|
+
aws_event_source_arn: string;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The state of the AWS event source.
|
|
110
|
+
*/
|
|
111
|
+
aws_event_source_status: AmazonEventbridge.AwsEventSourceStatus;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
namespace AmazonEventbridge {
|
|
115
|
+
type AwsEventSourceStatus =
|
|
116
|
+
| 'active'
|
|
117
|
+
| 'deleted'
|
|
118
|
+
| 'pending'
|
|
119
|
+
| 'unknown';
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
type EventPayload = 'snapshot' | 'thin';
|
|
123
|
+
|
|
124
|
+
type EventsFrom = 'other_accounts' | 'self';
|
|
125
|
+
|
|
126
|
+
type Status = 'disabled' | 'enabled';
|
|
127
|
+
|
|
128
|
+
interface StatusDetails {
|
|
129
|
+
/**
|
|
130
|
+
* Details about why the event destination has been disabled.
|
|
131
|
+
*/
|
|
132
|
+
disabled: StatusDetails.Disabled | null;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
namespace StatusDetails {
|
|
136
|
+
interface Disabled {
|
|
137
|
+
/**
|
|
138
|
+
* Reason event destination has been disabled.
|
|
139
|
+
*/
|
|
140
|
+
reason: Disabled.Reason;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
namespace Disabled {
|
|
144
|
+
type Reason = 'no_aws_event_source_exists' | 'user';
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
type Type = 'amazon_eventbridge' | 'webhook_endpoint';
|
|
149
|
+
|
|
150
|
+
interface WebhookEndpoint {
|
|
151
|
+
/**
|
|
152
|
+
* The signing secret of the webhook endpoint, only includable on creation.
|
|
153
|
+
*/
|
|
154
|
+
signing_secret: string | null;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* The URL of the webhook endpoint, includable.
|
|
158
|
+
*/
|
|
159
|
+
url: string | null;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
@@ -143,7 +143,8 @@ declare module 'stripe' {
|
|
|
143
143
|
| '2023-10-16'
|
|
144
144
|
| '2024-04-10'
|
|
145
145
|
| '2024-06-20'
|
|
146
|
-
| '2024-09-30.acacia'
|
|
146
|
+
| '2024-09-30.acacia'
|
|
147
|
+
| '2024-10-28.acacia';
|
|
147
148
|
|
|
148
149
|
type EnabledEvent =
|
|
149
150
|
| '*'
|
|
@@ -290,6 +291,7 @@ declare module 'stripe' {
|
|
|
290
291
|
| 'issuing_token.created'
|
|
291
292
|
| 'issuing_token.updated'
|
|
292
293
|
| 'issuing_transaction.created'
|
|
294
|
+
| 'issuing_transaction.purchase_details_receipt_updated'
|
|
293
295
|
| 'issuing_transaction.updated'
|
|
294
296
|
| 'mandate.updated'
|
|
295
297
|
| 'payment_intent.amount_capturable_updated'
|
|
@@ -604,6 +606,7 @@ declare module 'stripe' {
|
|
|
604
606
|
| 'issuing_token.created'
|
|
605
607
|
| 'issuing_token.updated'
|
|
606
608
|
| 'issuing_transaction.created'
|
|
609
|
+
| 'issuing_transaction.purchase_details_receipt_updated'
|
|
607
610
|
| 'issuing_transaction.updated'
|
|
608
611
|
| 'mandate.updated'
|
|
609
612
|
| 'payment_intent.amount_capturable_updated'
|
package/types/index.d.ts
CHANGED
|
@@ -148,6 +148,7 @@
|
|
|
148
148
|
///<reference path='./V2/Billing/MeterEventStreamResource.d.ts' />
|
|
149
149
|
///<reference path='./V2/Billing/MeterEventsResource.d.ts' />
|
|
150
150
|
///<reference path='./V2/BillingResource.d.ts' />
|
|
151
|
+
///<reference path='./V2/Core/EventDestinationsResource.d.ts' />
|
|
151
152
|
///<reference path='./V2/Core/EventsResource.d.ts' />
|
|
152
153
|
///<reference path='./V2/CoreResource.d.ts' />
|
|
153
154
|
///<reference path='./V2Resource.d.ts' />
|
|
@@ -316,6 +317,7 @@
|
|
|
316
317
|
///<reference path='./V2/Billing/MeterEventAdjustments.d.ts' />
|
|
317
318
|
///<reference path='./V2/Billing/MeterEventSessions.d.ts' />
|
|
318
319
|
///<reference path='./V2/Billing/MeterEvents.d.ts' />
|
|
320
|
+
///<reference path='./V2/EventDestinations.d.ts' />
|
|
319
321
|
///<reference path='./V2/Events.d.ts' />
|
|
320
322
|
///<reference path='./WebhookEndpoints.d.ts' />
|
|
321
323
|
// Imports: The end of the section generated from our OpenAPI spec
|