You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: types/PaymentIntents.d.ts
+21-21Lines changed: 21 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -53,8 +53,6 @@ declare module 'stripe' {
53
53
*/
54
54
application_fee_amount: number|null;
55
55
56
-
async_workflows?: PaymentIntent.AsyncWorkflows;
57
-
58
56
/**
59
57
* Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
60
58
*/
@@ -127,6 +125,8 @@ declare module 'stripe' {
127
125
*/
128
126
fx_quote?: string|null;
129
127
128
+
hooks?: PaymentIntent.Hooks;
129
+
130
130
/**
131
131
* The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.
132
132
*/
@@ -306,25 +306,6 @@ declare module 'stripe' {
306
306
}
307
307
}
308
308
309
-
interfaceAsyncWorkflows{
310
-
inputs?: AsyncWorkflows.Inputs;
311
-
}
312
-
313
-
namespaceAsyncWorkflows{
314
-
interfaceInputs{
315
-
tax?: Inputs.Tax;
316
-
}
317
-
318
-
namespaceInputs{
319
-
interfaceTax{
320
-
/**
321
-
* The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
322
-
*/
323
-
calculation: string;
324
-
}
325
-
}
326
-
}
327
-
328
309
interfaceAutomaticPaymentMethods{
329
310
/**
330
311
* Controls whether this PaymentIntent will accept redirect-based payment methods.
@@ -357,6 +338,25 @@ declare module 'stripe' {
357
338
358
339
typeConfirmationMethod='automatic'|'manual';
359
340
341
+
interfaceHooks{
342
+
inputs?: Hooks.Inputs;
343
+
}
344
+
345
+
namespaceHooks{
346
+
interfaceInputs{
347
+
tax?: Inputs.Tax;
348
+
}
349
+
350
+
namespaceInputs{
351
+
interfaceTax{
352
+
/**
353
+
* The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
354
+
*/
355
+
calculation: string;
356
+
}
357
+
}
358
+
}
359
+
360
360
interfaceLastPaymentError{
361
361
/**
362
362
* For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one.
* When you enable this parameter, this PaymentIntent accepts payment methods that you enable in the Dashboard and that are compatible with this PaymentIntent's other parameters.
28
23
*/
@@ -88,6 +83,11 @@ declare module 'stripe' {
88
83
*/
89
84
fx_quote?: string;
90
85
86
+
/**
87
+
* Automations to be run during the PaymentIntent lifecycle
88
+
*/
89
+
hooks?: PaymentIntentCreateParams.Hooks;
90
+
91
91
/**
92
92
* ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
93
93
*/
@@ -215,31 +215,6 @@ declare module 'stripe' {
215
215
}
216
216
217
217
namespace PaymentIntentCreateParams {
218
-
interface AsyncWorkflows {
219
-
/**
220
-
* Arguments passed in automations
221
-
*/
222
-
inputs?: AsyncWorkflows.Inputs;
223
-
}
224
-
225
-
namespace AsyncWorkflows {
226
-
interface Inputs {
227
-
/**
228
-
* Tax arguments for automations
229
-
*/
230
-
tax?: Inputs.Tax;
231
-
}
232
-
233
-
namespace Inputs {
234
-
interface Tax {
235
-
/**
236
-
* The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
237
-
*/
238
-
calculation: Stripe.Emptyable<string>;
239
-
}
240
-
}
241
-
}
242
-
243
218
interface AutomaticPaymentMethods {
244
219
/**
245
220
* Controls whether this PaymentIntent will accept redirect-based payment methods.
@@ -262,6 +237,31 @@ declare module 'stripe' {
262
237
263
238
type ConfirmationMethod = 'automatic' | 'manual';
264
239
240
+
interface Hooks {
241
+
/**
242
+
* Arguments passed in automations
243
+
*/
244
+
inputs?: Hooks.Inputs;
245
+
}
246
+
247
+
namespace Hooks {
248
+
interface Inputs {
249
+
/**
250
+
* Tax arguments for automations
251
+
*/
252
+
tax?: Inputs.Tax;
253
+
}
254
+
255
+
namespace Inputs {
256
+
interface Tax {
257
+
/**
258
+
* The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
259
+
*/
260
+
calculation: Stripe.Emptyable<string>;
261
+
}
262
+
}
263
+
}
264
+
265
265
interface MandateData {
266
266
/**
267
267
* This hash contains details about the customer acceptance of the Mandate.
* Specifies which fields in the response should be expanded.
8273
8268
*/
@@ -8278,6 +8273,11 @@ declare module 'stripe' {
8278
8273
*/
8279
8274
final_capture?: boolean;
8280
8275
8276
+
/**
8277
+
* Automations to be run during the PaymentIntent lifecycle
8278
+
*/
8279
+
hooks?: PaymentIntentCaptureParams.Hooks;
8280
+
8281
8281
/**
8282
8282
* 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`.
* 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`.
* 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`.
0 commit comments