Skip to content

Commit b00c10b

Browse files
Update generated code for v1765
1 parent a96ec95 commit b00c10b

File tree

3 files changed

+96
-96
lines changed

3 files changed

+96
-96
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1764
1+
v1765

types/PaymentIntents.d.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ declare module 'stripe' {
5353
*/
5454
application_fee_amount: number | null;
5555

56-
async_workflows?: PaymentIntent.AsyncWorkflows;
57-
5856
/**
5957
* Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
6058
*/
@@ -127,6 +125,8 @@ declare module 'stripe' {
127125
*/
128126
fx_quote?: string | null;
129127

128+
hooks?: PaymentIntent.Hooks;
129+
130130
/**
131131
* The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.
132132
*/
@@ -306,25 +306,6 @@ declare module 'stripe' {
306306
}
307307
}
308308

309-
interface AsyncWorkflows {
310-
inputs?: AsyncWorkflows.Inputs;
311-
}
312-
313-
namespace AsyncWorkflows {
314-
interface Inputs {
315-
tax?: Inputs.Tax;
316-
}
317-
318-
namespace Inputs {
319-
interface Tax {
320-
/**
321-
* The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
322-
*/
323-
calculation: string;
324-
}
325-
}
326-
}
327-
328309
interface AutomaticPaymentMethods {
329310
/**
330311
* Controls whether this PaymentIntent will accept redirect-based payment methods.
@@ -357,6 +338,25 @@ declare module 'stripe' {
357338

358339
type ConfirmationMethod = 'automatic' | 'manual';
359340

341+
interface Hooks {
342+
inputs?: Hooks.Inputs;
343+
}
344+
345+
namespace Hooks {
346+
interface Inputs {
347+
tax?: Inputs.Tax;
348+
}
349+
350+
namespace Inputs {
351+
interface Tax {
352+
/**
353+
* The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
354+
*/
355+
calculation: string;
356+
}
357+
}
358+
}
359+
360360
interface LastPaymentError {
361361
/**
362362
* 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.

types/PaymentIntentsResource.d.ts

Lines changed: 74 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ declare module 'stripe' {
1818
*/
1919
application_fee_amount?: number;
2020

21-
/**
22-
* Automations to be run during the PaymentIntent lifecycle
23-
*/
24-
async_workflows?: PaymentIntentCreateParams.AsyncWorkflows;
25-
2621
/**
2722
* 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.
2823
*/
@@ -88,6 +83,11 @@ declare module 'stripe' {
8883
*/
8984
fx_quote?: string;
9085

86+
/**
87+
* Automations to be run during the PaymentIntent lifecycle
88+
*/
89+
hooks?: PaymentIntentCreateParams.Hooks;
90+
9191
/**
9292
* 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).
9393
*/
@@ -215,31 +215,6 @@ declare module 'stripe' {
215215
}
216216

217217
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-
243218
interface AutomaticPaymentMethods {
244219
/**
245220
* Controls whether this PaymentIntent will accept redirect-based payment methods.
@@ -262,6 +237,31 @@ declare module 'stripe' {
262237

263238
type ConfirmationMethod = 'automatic' | 'manual';
264239

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+
265265
interface MandateData {
266266
/**
267267
* This hash contains details about the customer acceptance of the Mandate.
@@ -4174,11 +4174,6 @@ declare module 'stripe' {
41744174
*/
41754175
application_fee_amount?: Stripe.Emptyable<number>;
41764176

4177-
/**
4178-
* Automations to be run during the PaymentIntent lifecycle
4179-
*/
4180-
async_workflows?: PaymentIntentUpdateParams.AsyncWorkflows;
4181-
41824177
/**
41834178
* Controls when the funds will be captured from the customer's account.
41844179
*/
@@ -4222,6 +4217,11 @@ declare module 'stripe' {
42224217
*/
42234218
fx_quote?: string;
42244219

4220+
/**
4221+
* Automations to be run during the PaymentIntent lifecycle
4222+
*/
4223+
hooks?: PaymentIntentUpdateParams.Hooks;
4224+
42254225
/**
42264226
* This hash contains details about the Mandate to create.
42274227
*/
@@ -4312,14 +4312,16 @@ declare module 'stripe' {
43124312
}
43134313

43144314
namespace PaymentIntentUpdateParams {
4315-
interface AsyncWorkflows {
4315+
type CaptureMethod = 'automatic' | 'automatic_async' | 'manual';
4316+
4317+
interface Hooks {
43164318
/**
43174319
* Arguments passed in automations
43184320
*/
4319-
inputs?: AsyncWorkflows.Inputs;
4321+
inputs?: Hooks.Inputs;
43204322
}
43214323

4322-
namespace AsyncWorkflows {
4324+
namespace Hooks {
43234325
interface Inputs {
43244326
/**
43254327
* Tax arguments for automations
@@ -4337,8 +4339,6 @@ declare module 'stripe' {
43374339
}
43384340
}
43394341

4340-
type CaptureMethod = 'automatic' | 'automatic_async' | 'manual';
4341-
43424342
interface MandateData {
43434343
/**
43444344
* This hash contains details about the customer acceptance of the Mandate.
@@ -8263,11 +8263,6 @@ declare module 'stripe' {
82638263
*/
82648264
application_fee_amount?: number;
82658265

8266-
/**
8267-
* Automations to be run during the PaymentIntent lifecycle
8268-
*/
8269-
async_workflows?: PaymentIntentCaptureParams.AsyncWorkflows;
8270-
82718266
/**
82728267
* Specifies which fields in the response should be expanded.
82738268
*/
@@ -8278,6 +8273,11 @@ declare module 'stripe' {
82788273
*/
82798274
final_capture?: boolean;
82808275

8276+
/**
8277+
* Automations to be run during the PaymentIntent lifecycle
8278+
*/
8279+
hooks?: PaymentIntentCaptureParams.Hooks;
8280+
82818281
/**
82828282
* 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`.
82838283
*/
@@ -8310,14 +8310,14 @@ declare module 'stripe' {
83108310
}
83118311

83128312
namespace PaymentIntentCaptureParams {
8313-
interface AsyncWorkflows {
8313+
interface Hooks {
83148314
/**
83158315
* Arguments passed in automations
83168316
*/
8317-
inputs?: AsyncWorkflows.Inputs;
8317+
inputs?: Hooks.Inputs;
83188318
}
83198319

8320-
namespace AsyncWorkflows {
8320+
namespace Hooks {
83218321
interface Inputs {
83228322
/**
83238323
* Tax arguments for automations
@@ -9047,11 +9047,6 @@ declare module 'stripe' {
90479047
*/
90489048
application_fee_amount?: Stripe.Emptyable<number>;
90499049

9050-
/**
9051-
* Automations to be run during the PaymentIntent lifecycle
9052-
*/
9053-
async_workflows?: PaymentIntentConfirmParams.AsyncWorkflows;
9054-
90559050
/**
90569051
* Controls when the funds will be captured from the customer's account.
90579052
*/
@@ -9079,6 +9074,11 @@ declare module 'stripe' {
90799074
*/
90809075
fx_quote?: string;
90819076

9077+
/**
9078+
* Automations to be run during the PaymentIntent lifecycle
9079+
*/
9080+
hooks?: PaymentIntentConfirmParams.Hooks;
9081+
90829082
/**
90839083
* ID of the mandate that's used for this payment.
90849084
*/
@@ -9165,14 +9165,16 @@ declare module 'stripe' {
91659165
}
91669166

91679167
namespace PaymentIntentConfirmParams {
9168-
interface AsyncWorkflows {
9168+
type CaptureMethod = 'automatic' | 'automatic_async' | 'manual';
9169+
9170+
interface Hooks {
91699171
/**
91709172
* Arguments passed in automations
91719173
*/
9172-
inputs?: AsyncWorkflows.Inputs;
9174+
inputs?: Hooks.Inputs;
91739175
}
91749176

9175-
namespace AsyncWorkflows {
9177+
namespace Hooks {
91769178
interface Inputs {
91779179
/**
91789180
* Tax arguments for automations
@@ -9190,8 +9192,6 @@ declare module 'stripe' {
91909192
}
91919193
}
91929194

9193-
type CaptureMethod = 'automatic' | 'automatic_async' | 'manual';
9194-
91959195
interface MandateData {
91969196
/**
91979197
* This hash contains details about the customer acceptance of the Mandate.
@@ -13069,11 +13069,6 @@ declare module 'stripe' {
1306913069
*/
1307013070
application_fee_amount?: number;
1307113071

13072-
/**
13073-
* Automations to be run during the PaymentIntent lifecycle
13074-
*/
13075-
async_workflows?: PaymentIntentDecrementAuthorizationParams.AsyncWorkflows;
13076-
1307713072
/**
1307813073
* An arbitrary string attached to the object. Often useful for displaying to users.
1307913074
*/
@@ -13084,6 +13079,11 @@ declare module 'stripe' {
1308413079
*/
1308513080
expand?: Array<string>;
1308613081

13082+
/**
13083+
* Automations to be run during the PaymentIntent lifecycle
13084+
*/
13085+
hooks?: PaymentIntentDecrementAuthorizationParams.Hooks;
13086+
1308713087
/**
1308813088
* 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`.
1308913089
*/
@@ -13097,14 +13097,14 @@ declare module 'stripe' {
1309713097
}
1309813098

1309913099
namespace PaymentIntentDecrementAuthorizationParams {
13100-
interface AsyncWorkflows {
13100+
interface Hooks {
1310113101
/**
1310213102
* Arguments passed in automations
1310313103
*/
13104-
inputs?: AsyncWorkflows.Inputs;
13104+
inputs?: Hooks.Inputs;
1310513105
}
1310613106

13107-
namespace AsyncWorkflows {
13107+
namespace Hooks {
1310813108
interface Inputs {
1310913109
/**
1311013110
* Tax arguments for automations
@@ -13141,11 +13141,6 @@ declare module 'stripe' {
1314113141
*/
1314213142
application_fee_amount?: number;
1314313143

13144-
/**
13145-
* Automations to be run during the PaymentIntent lifecycle
13146-
*/
13147-
async_workflows?: PaymentIntentIncrementAuthorizationParams.AsyncWorkflows;
13148-
1314913144
/**
1315013145
* An arbitrary string attached to the object. Often useful for displaying to users.
1315113146
*/
@@ -13156,6 +13151,11 @@ declare module 'stripe' {
1315613151
*/
1315713152
expand?: Array<string>;
1315813153

13154+
/**
13155+
* Automations to be run during the PaymentIntent lifecycle
13156+
*/
13157+
hooks?: PaymentIntentIncrementAuthorizationParams.Hooks;
13158+
1315913159
/**
1316013160
* 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`.
1316113161
*/
@@ -13179,14 +13179,14 @@ declare module 'stripe' {
1317913179
}
1318013180

1318113181
namespace PaymentIntentIncrementAuthorizationParams {
13182-
interface AsyncWorkflows {
13182+
interface Hooks {
1318313183
/**
1318413184
* Arguments passed in automations
1318513185
*/
13186-
inputs?: AsyncWorkflows.Inputs;
13186+
inputs?: Hooks.Inputs;
1318713187
}
1318813188

13189-
namespace AsyncWorkflows {
13189+
namespace Hooks {
1319013190
interface Inputs {
1319113191
/**
1319213192
* Tax arguments for automations

0 commit comments

Comments
 (0)