@fantastic.dev/better-stripe 0.41.0 → 0.42.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 +10 -0
- package/README.md +1 -1
- package/dist/client/balanceFundingWorkflow/client.d.ts +172 -0
- package/dist/client/balanceFundingWorkflow/client.d.ts.map +1 -0
- package/dist/client/balanceFundingWorkflow/client.js +289 -0
- package/dist/client/balanceFundingWorkflow/client.js.map +1 -0
- package/dist/client/billing/balanceFunding.d.ts +5 -0
- package/dist/client/billing/balanceFunding.d.ts.map +1 -1
- package/dist/client/billing/balanceFunding.js +30 -0
- package/dist/client/billing/balanceFunding.js.map +1 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +366 -2
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +199 -17
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +366 -2
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +199 -17
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +4 -0
- package/dist/client/index.js.map +1 -1
- package/dist/component/_generated/api.d.ts +18 -0
- package/dist/component/_generated/api.d.ts.map +1 -1
- package/dist/component/_generated/api.js.map +1 -1
- package/dist/component/_generated/component.d.ts +473 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/balanceFunding/helpers.d.ts +42 -0
- package/dist/component/balanceFunding/helpers.d.ts.map +1 -1
- package/dist/component/balanceFunding/internal/actions.d.ts +39 -0
- package/dist/component/balanceFunding/internal/actions.d.ts.map +1 -0
- package/dist/component/balanceFunding/internal/actions.js +80 -0
- package/dist/component/balanceFunding/internal/actions.js.map +1 -0
- package/dist/component/balanceFunding/internal/mutations.d.ts +55 -0
- package/dist/component/balanceFunding/internal/mutations.d.ts.map +1 -0
- package/dist/component/balanceFunding/internal/mutations.js +54 -0
- package/dist/component/balanceFunding/internal/mutations.js.map +1 -0
- package/dist/component/balanceFunding/internal/queries.d.ts +116 -0
- package/dist/component/balanceFunding/internal/queries.d.ts.map +1 -0
- package/dist/component/balanceFunding/internal/queries.js +35 -0
- package/dist/component/balanceFunding/internal/queries.js.map +1 -0
- package/dist/component/balanceFunding/internal/workflow.d.ts +10 -0
- package/dist/component/balanceFunding/internal/workflow.d.ts.map +1 -0
- package/dist/component/balanceFunding/internal/workflow.js +31 -0
- package/dist/component/balanceFunding/internal/workflow.js.map +1 -0
- package/dist/component/balanceFunding/lifecycleHandlers.d.ts +126 -0
- package/dist/component/balanceFunding/lifecycleHandlers.d.ts.map +1 -1
- package/dist/component/balanceFunding/mutations.d.ts +403 -0
- package/dist/component/balanceFunding/mutations.d.ts.map +1 -1
- package/dist/component/balanceFunding/mutations.js +24 -0
- package/dist/component/balanceFunding/mutations.js.map +1 -1
- package/dist/component/balanceFunding/preparationHandlers.d.ts +42 -0
- package/dist/component/balanceFunding/preparationHandlers.d.ts.map +1 -1
- package/dist/component/balanceFunding/queries.d.ts +78 -0
- package/dist/component/balanceFunding/queries.d.ts.map +1 -1
- package/dist/component/balanceFunding/queries.js +35 -0
- package/dist/component/balanceFunding/queries.js.map +1 -1
- package/dist/component/balanceFunding/receipt.d.ts +5 -0
- package/dist/component/balanceFunding/receipt.d.ts.map +1 -0
- package/dist/component/balanceFunding/receipt.js +37 -0
- package/dist/component/balanceFunding/receipt.js.map +1 -0
- package/dist/component/balanceFunding/schema.d.ts +506 -2
- package/dist/component/balanceFunding/schema.d.ts.map +1 -1
- package/dist/component/balanceFunding/schema.js +2 -0
- package/dist/component/balanceFunding/schema.js.map +1 -1
- package/dist/component/balanceFunding/stateHandlers.d.ts +50 -8
- package/dist/component/balanceFunding/stateHandlers.d.ts.map +1 -1
- package/dist/component/balanceFunding/workflowControl.d.ts +19 -0
- package/dist/component/balanceFunding/workflowControl.d.ts.map +1 -0
- package/dist/component/balanceFunding/workflowControl.js +149 -0
- package/dist/component/balanceFunding/workflowControl.js.map +1 -0
- package/dist/component/balanceFunding/workflowSchema.d.ts +356 -0
- package/dist/component/balanceFunding/workflowSchema.d.ts.map +1 -0
- package/dist/component/balanceFunding/workflowSchema.js +48 -0
- package/dist/component/balanceFunding/workflowSchema.js.map +1 -0
- package/dist/component/balanceFunding/workflowState.d.ts +157 -0
- package/dist/component/balanceFunding/workflowState.d.ts.map +1 -0
- package/dist/component/balanceFunding/workflowState.js +194 -0
- package/dist/component/balanceFunding/workflowState.js.map +1 -0
- package/dist/component/balanceFunding/workflowValidators.d.ts +306 -0
- package/dist/component/balanceFunding/workflowValidators.d.ts.map +1 -0
- package/dist/component/balanceFunding/workflowValidators.js +27 -0
- package/dist/component/balanceFunding/workflowValidators.js.map +1 -0
- package/dist/component/earnings/triggers.d.ts +102 -18
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/schema.d.ts +183 -1
- package/package.json +1 -1
- package/src/client/balanceFundingWorkflow/capture.test.ts +144 -0
- package/src/client/balanceFundingWorkflow/client.ts +419 -0
- package/src/client/billing/balanceFunding.ts +50 -0
- package/src/client/index.ts +15 -0
- package/src/component/_generated/api.ts +18 -0
- package/src/component/_generated/component.ts +524 -0
- package/src/component/balanceFunding/internal/actions.ts +107 -0
- package/src/component/balanceFunding/internal/mutations.ts +66 -0
- package/src/component/balanceFunding/internal/queries.ts +34 -0
- package/src/component/balanceFunding/internal/workflow.ts +49 -0
- package/src/component/balanceFunding/mutations.ts +34 -0
- package/src/component/balanceFunding/queries.ts +38 -0
- package/src/component/balanceFunding/receipt.ts +48 -0
- package/src/component/balanceFunding/schema.ts +2 -0
- package/src/component/balanceFunding/scopeLookup.test.ts +94 -0
- package/src/component/balanceFunding/workflow.fixtures.ts +366 -0
- package/src/component/balanceFunding/workflow.test.ts +552 -0
- package/src/component/balanceFunding/workflowControl.ts +198 -0
- package/src/component/balanceFunding/workflowSchema.ts +78 -0
- package/src/component/balanceFunding/workflowState.ts +285 -0
- package/src/component/balanceFunding/workflowValidators.ts +40 -0
|
@@ -282,6 +282,48 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
282
282
|
accountId: string;
|
|
283
283
|
cancelRequested: boolean;
|
|
284
284
|
enabled: boolean;
|
|
285
|
+
execution?: {
|
|
286
|
+
apply?: {
|
|
287
|
+
receipt?: {
|
|
288
|
+
customerAccount: string;
|
|
289
|
+
enabled?: boolean | undefined;
|
|
290
|
+
paymentMethodId: string | null;
|
|
291
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
292
|
+
phase: "apply" | "attach" | "create";
|
|
293
|
+
providerApiVersion: string;
|
|
294
|
+
stripeSubscriptionId: string;
|
|
295
|
+
} | undefined;
|
|
296
|
+
state: "running" | "succeeded" | "unknown";
|
|
297
|
+
} | undefined;
|
|
298
|
+
attach?: {
|
|
299
|
+
receipt?: {
|
|
300
|
+
customerAccount: string;
|
|
301
|
+
enabled?: boolean | undefined;
|
|
302
|
+
paymentMethodId: string | null;
|
|
303
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
304
|
+
phase: "apply" | "attach" | "create";
|
|
305
|
+
providerApiVersion: string;
|
|
306
|
+
stripeSubscriptionId: string;
|
|
307
|
+
} | undefined;
|
|
308
|
+
state: "running" | "succeeded" | "unknown";
|
|
309
|
+
} | undefined;
|
|
310
|
+
create?: {
|
|
311
|
+
receipt?: {
|
|
312
|
+
customerAccount: string;
|
|
313
|
+
enabled?: boolean | undefined;
|
|
314
|
+
paymentMethodId: string | null;
|
|
315
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
316
|
+
phase: "apply" | "attach" | "create";
|
|
317
|
+
providerApiVersion: string;
|
|
318
|
+
stripeSubscriptionId: string;
|
|
319
|
+
} | undefined;
|
|
320
|
+
state: "running" | "succeeded" | "unknown";
|
|
321
|
+
} | undefined;
|
|
322
|
+
definitionVersion: string;
|
|
323
|
+
providerAction: string;
|
|
324
|
+
providerApiVersion: string;
|
|
325
|
+
workflowId?: string | undefined;
|
|
326
|
+
} | undefined;
|
|
285
327
|
failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
|
|
286
328
|
kind: "apply" | "prepare";
|
|
287
329
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
@@ -337,7 +379,147 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
337
379
|
paymentMethodTypes: import("convex/values").VUnion<string[] | null, [import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
338
380
|
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
339
381
|
}, "optional", "customerAccount" | "paymentMethodId" | "paymentMethodTypes" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
340
|
-
|
|
382
|
+
execution: import("convex/values").VObject<{
|
|
383
|
+
apply?: {
|
|
384
|
+
receipt?: {
|
|
385
|
+
customerAccount: string;
|
|
386
|
+
enabled?: boolean | undefined;
|
|
387
|
+
paymentMethodId: string | null;
|
|
388
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
389
|
+
phase: "apply" | "attach" | "create";
|
|
390
|
+
providerApiVersion: string;
|
|
391
|
+
stripeSubscriptionId: string;
|
|
392
|
+
} | undefined;
|
|
393
|
+
state: "running" | "succeeded" | "unknown";
|
|
394
|
+
} | undefined;
|
|
395
|
+
attach?: {
|
|
396
|
+
receipt?: {
|
|
397
|
+
customerAccount: string;
|
|
398
|
+
enabled?: boolean | undefined;
|
|
399
|
+
paymentMethodId: string | null;
|
|
400
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
401
|
+
phase: "apply" | "attach" | "create";
|
|
402
|
+
providerApiVersion: string;
|
|
403
|
+
stripeSubscriptionId: string;
|
|
404
|
+
} | undefined;
|
|
405
|
+
state: "running" | "succeeded" | "unknown";
|
|
406
|
+
} | undefined;
|
|
407
|
+
create?: {
|
|
408
|
+
receipt?: {
|
|
409
|
+
customerAccount: string;
|
|
410
|
+
enabled?: boolean | undefined;
|
|
411
|
+
paymentMethodId: string | null;
|
|
412
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
413
|
+
phase: "apply" | "attach" | "create";
|
|
414
|
+
providerApiVersion: string;
|
|
415
|
+
stripeSubscriptionId: string;
|
|
416
|
+
} | undefined;
|
|
417
|
+
state: "running" | "succeeded" | "unknown";
|
|
418
|
+
} | undefined;
|
|
419
|
+
definitionVersion: string;
|
|
420
|
+
providerAction: string;
|
|
421
|
+
providerApiVersion: string;
|
|
422
|
+
workflowId?: string | undefined;
|
|
423
|
+
} | undefined, {
|
|
424
|
+
workflowId: import("convex/values").VString<string | undefined, "optional">;
|
|
425
|
+
definitionVersion: import("convex/values").VString<string, "required">;
|
|
426
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
427
|
+
providerAction: import("convex/values").VString<string, "required">;
|
|
428
|
+
create: import("convex/values").VObject<{
|
|
429
|
+
receipt?: {
|
|
430
|
+
customerAccount: string;
|
|
431
|
+
enabled?: boolean | undefined;
|
|
432
|
+
paymentMethodId: string | null;
|
|
433
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
434
|
+
phase: "apply" | "attach" | "create";
|
|
435
|
+
providerApiVersion: string;
|
|
436
|
+
stripeSubscriptionId: string;
|
|
437
|
+
} | undefined;
|
|
438
|
+
state: "running" | "succeeded" | "unknown";
|
|
439
|
+
} | undefined, {
|
|
440
|
+
state: import("convex/values").VUnion<"running" | "succeeded" | "unknown", [import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"succeeded", "required">], "required", never>;
|
|
441
|
+
receipt: import("convex/values").VObject<{
|
|
442
|
+
customerAccount: string;
|
|
443
|
+
enabled?: boolean | undefined;
|
|
444
|
+
paymentMethodId: string | null;
|
|
445
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
446
|
+
phase: "apply" | "attach" | "create";
|
|
447
|
+
providerApiVersion: string;
|
|
448
|
+
stripeSubscriptionId: string;
|
|
449
|
+
} | undefined, {
|
|
450
|
+
phase: import("convex/values").VUnion<"apply" | "attach" | "create", [import("convex/values").VLiteral<"create", "required">, import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"apply", "required">], "required", never>;
|
|
451
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
452
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
453
|
+
paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
454
|
+
paymentMethodTypes: import("convex/values").VUnion<string[] | null | undefined, [import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
455
|
+
enabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
456
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
457
|
+
}, "optional", "customerAccount" | "enabled" | "paymentMethodId" | "paymentMethodTypes" | "phase" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
458
|
+
}, "optional", "receipt" | "receipt.customerAccount" | "receipt.enabled" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.phase" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "state">;
|
|
459
|
+
attach: import("convex/values").VObject<{
|
|
460
|
+
receipt?: {
|
|
461
|
+
customerAccount: string;
|
|
462
|
+
enabled?: boolean | undefined;
|
|
463
|
+
paymentMethodId: string | null;
|
|
464
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
465
|
+
phase: "apply" | "attach" | "create";
|
|
466
|
+
providerApiVersion: string;
|
|
467
|
+
stripeSubscriptionId: string;
|
|
468
|
+
} | undefined;
|
|
469
|
+
state: "running" | "succeeded" | "unknown";
|
|
470
|
+
} | undefined, {
|
|
471
|
+
state: import("convex/values").VUnion<"running" | "succeeded" | "unknown", [import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"succeeded", "required">], "required", never>;
|
|
472
|
+
receipt: import("convex/values").VObject<{
|
|
473
|
+
customerAccount: string;
|
|
474
|
+
enabled?: boolean | undefined;
|
|
475
|
+
paymentMethodId: string | null;
|
|
476
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
477
|
+
phase: "apply" | "attach" | "create";
|
|
478
|
+
providerApiVersion: string;
|
|
479
|
+
stripeSubscriptionId: string;
|
|
480
|
+
} | undefined, {
|
|
481
|
+
phase: import("convex/values").VUnion<"apply" | "attach" | "create", [import("convex/values").VLiteral<"create", "required">, import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"apply", "required">], "required", never>;
|
|
482
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
483
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
484
|
+
paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
485
|
+
paymentMethodTypes: import("convex/values").VUnion<string[] | null | undefined, [import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
486
|
+
enabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
487
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
488
|
+
}, "optional", "customerAccount" | "enabled" | "paymentMethodId" | "paymentMethodTypes" | "phase" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
489
|
+
}, "optional", "receipt" | "receipt.customerAccount" | "receipt.enabled" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.phase" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "state">;
|
|
490
|
+
apply: import("convex/values").VObject<{
|
|
491
|
+
receipt?: {
|
|
492
|
+
customerAccount: string;
|
|
493
|
+
enabled?: boolean | undefined;
|
|
494
|
+
paymentMethodId: string | null;
|
|
495
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
496
|
+
phase: "apply" | "attach" | "create";
|
|
497
|
+
providerApiVersion: string;
|
|
498
|
+
stripeSubscriptionId: string;
|
|
499
|
+
} | undefined;
|
|
500
|
+
state: "running" | "succeeded" | "unknown";
|
|
501
|
+
} | undefined, {
|
|
502
|
+
state: import("convex/values").VUnion<"running" | "succeeded" | "unknown", [import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"succeeded", "required">], "required", never>;
|
|
503
|
+
receipt: import("convex/values").VObject<{
|
|
504
|
+
customerAccount: string;
|
|
505
|
+
enabled?: boolean | undefined;
|
|
506
|
+
paymentMethodId: string | null;
|
|
507
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
508
|
+
phase: "apply" | "attach" | "create";
|
|
509
|
+
providerApiVersion: string;
|
|
510
|
+
stripeSubscriptionId: string;
|
|
511
|
+
} | undefined, {
|
|
512
|
+
phase: import("convex/values").VUnion<"apply" | "attach" | "create", [import("convex/values").VLiteral<"create", "required">, import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"apply", "required">], "required", never>;
|
|
513
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
514
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
515
|
+
paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
516
|
+
paymentMethodTypes: import("convex/values").VUnion<string[] | null | undefined, [import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
517
|
+
enabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
518
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
519
|
+
}, "optional", "customerAccount" | "enabled" | "paymentMethodId" | "paymentMethodTypes" | "phase" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
520
|
+
}, "optional", "receipt" | "receipt.customerAccount" | "receipt.enabled" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.phase" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "state">;
|
|
521
|
+
}, "optional", "apply" | "apply.receipt" | "apply.receipt.customerAccount" | "apply.receipt.enabled" | "apply.receipt.paymentMethodId" | "apply.receipt.paymentMethodTypes" | "apply.receipt.phase" | "apply.receipt.providerApiVersion" | "apply.receipt.stripeSubscriptionId" | "apply.state" | "attach" | "attach.receipt" | "attach.receipt.customerAccount" | "attach.receipt.enabled" | "attach.receipt.paymentMethodId" | "attach.receipt.paymentMethodTypes" | "attach.receipt.phase" | "attach.receipt.providerApiVersion" | "attach.receipt.stripeSubscriptionId" | "attach.state" | "create" | "create.receipt" | "create.receipt.customerAccount" | "create.receipt.enabled" | "create.receipt.paymentMethodId" | "create.receipt.paymentMethodTypes" | "create.receipt.phase" | "create.receipt.providerApiVersion" | "create.receipt.stripeSubscriptionId" | "create.state" | "definitionVersion" | "providerAction" | "providerApiVersion" | "workflowId">;
|
|
522
|
+
}, "required", "accountId" | "cancelRequested" | "enabled" | "execution" | "execution.apply" | "execution.apply.receipt" | "execution.apply.receipt.customerAccount" | "execution.apply.receipt.enabled" | "execution.apply.receipt.paymentMethodId" | "execution.apply.receipt.paymentMethodTypes" | "execution.apply.receipt.phase" | "execution.apply.receipt.providerApiVersion" | "execution.apply.receipt.stripeSubscriptionId" | "execution.apply.state" | "execution.attach" | "execution.attach.receipt" | "execution.attach.receipt.customerAccount" | "execution.attach.receipt.enabled" | "execution.attach.receipt.paymentMethodId" | "execution.attach.receipt.paymentMethodTypes" | "execution.attach.receipt.phase" | "execution.attach.receipt.providerApiVersion" | "execution.attach.receipt.stripeSubscriptionId" | "execution.attach.state" | "execution.create" | "execution.create.receipt" | "execution.create.receipt.customerAccount" | "execution.create.receipt.enabled" | "execution.create.receipt.paymentMethodId" | "execution.create.receipt.paymentMethodTypes" | "execution.create.receipt.phase" | "execution.create.receipt.providerApiVersion" | "execution.create.receipt.stripeSubscriptionId" | "execution.create.state" | "execution.definitionVersion" | "execution.providerAction" | "execution.providerApiVersion" | "execution.workflowId" | "failureCode" | "kind" | "preparationId" | "providerKey" | "providerKeys" | "providerKeys.attach" | "providerKeys.create" | "providerKeys.disable" | "providerKeys.enable" | "receipt" | "receipt.customerAccount" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "scopeKey" | "state" | "version">, {
|
|
341
523
|
by_preparation_version: ["preparationId", "version", "_creationTime"];
|
|
342
524
|
}, {}, {}>;
|
|
343
525
|
balanceFundingRequests: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -354,14 +536,6 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
354
536
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
355
537
|
requestKey: string;
|
|
356
538
|
result?: {
|
|
357
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
358
|
-
retryable: false;
|
|
359
|
-
status: "conflict";
|
|
360
|
-
} | {
|
|
361
|
-
reason: "policy_invalid";
|
|
362
|
-
retryable: false;
|
|
363
|
-
status: "rejected";
|
|
364
|
-
} | {
|
|
365
539
|
operation: {
|
|
366
540
|
accountId: string;
|
|
367
541
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -372,6 +546,14 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
372
546
|
} | {
|
|
373
547
|
enabled: boolean;
|
|
374
548
|
status: "unchanged";
|
|
549
|
+
} | {
|
|
550
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
551
|
+
retryable: false;
|
|
552
|
+
status: "conflict";
|
|
553
|
+
} | {
|
|
554
|
+
reason: "policy_invalid";
|
|
555
|
+
retryable: false;
|
|
556
|
+
status: "rejected";
|
|
375
557
|
} | {
|
|
376
558
|
reason: "provider_pending";
|
|
377
559
|
retryable: true;
|
|
@@ -382,14 +564,6 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
382
564
|
payload: import("convex/values").VString<string, "required">;
|
|
383
565
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
384
566
|
result: import("convex/values").VUnion<{
|
|
385
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
386
|
-
retryable: false;
|
|
387
|
-
status: "conflict";
|
|
388
|
-
} | {
|
|
389
|
-
reason: "policy_invalid";
|
|
390
|
-
retryable: false;
|
|
391
|
-
status: "rejected";
|
|
392
|
-
} | {
|
|
393
567
|
operation: {
|
|
394
568
|
accountId: string;
|
|
395
569
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -400,6 +574,14 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
400
574
|
} | {
|
|
401
575
|
enabled: boolean;
|
|
402
576
|
status: "unchanged";
|
|
577
|
+
} | {
|
|
578
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
579
|
+
retryable: false;
|
|
580
|
+
status: "conflict";
|
|
581
|
+
} | {
|
|
582
|
+
reason: "policy_invalid";
|
|
583
|
+
retryable: false;
|
|
584
|
+
status: "rejected";
|
|
403
585
|
} | {
|
|
404
586
|
reason: "provider_pending";
|
|
405
587
|
retryable: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutExecutionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutExecutionTestHelpers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAIvD,eAAO,MAAM,SAAS,EAIN,SAAS,CAAC;AAC1B,eAAO,MAAM,KAAK;IAChB,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,QAA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