@fantastic.dev/better-stripe 0.40.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 +20 -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 +808 -2
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +404 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +808 -2
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +404 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/costRecovery-invoices.d.ts +2 -2
- package/dist/client/costRecovery-invoices.d.ts.map +1 -1
- package/dist/client/costRecovery-invoices.js +4 -1
- package/dist/client/costRecovery-invoices.js.map +1 -1
- package/dist/client/costRecovery.d.ts +5 -2
- package/dist/client/costRecovery.d.ts.map +1 -1
- package/dist/client/costRecovery.js +3 -1
- package/dist/client/costRecovery.js.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/client/recoveryWorkflow/client.d.ts +14 -0
- package/dist/client/recoveryWorkflow/client.d.ts.map +1 -0
- package/dist/client/recoveryWorkflow/client.js +34 -0
- package/dist/client/recoveryWorkflow/client.js.map +1 -0
- package/dist/client/recoveryWorkflow/contracts.d.ts +63 -0
- package/dist/client/recoveryWorkflow/contracts.d.ts.map +1 -0
- package/dist/client/recoveryWorkflow/contracts.js +11 -0
- package/dist/client/recoveryWorkflow/contracts.js.map +1 -0
- package/dist/client/recoveryWorkflow/provider.d.ts +10 -0
- package/dist/client/recoveryWorkflow/provider.d.ts.map +1 -0
- package/dist/client/recoveryWorkflow/provider.js +80 -0
- package/dist/client/recoveryWorkflow/provider.js.map +1 -0
- package/dist/client/recoveryWorkflow/settlement.d.ts +6 -0
- package/dist/client/recoveryWorkflow/settlement.d.ts.map +1 -0
- package/dist/client/recoveryWorkflow/settlement.js +43 -0
- package/dist/client/recoveryWorkflow/settlement.js.map +1 -0
- package/dist/component/_generated/api.d.ts +30 -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 +637 -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 +419 -16
- 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 +42 -0
- 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 +280 -2
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/payoutRelease/queries.d.ts +2 -2
- package/dist/component/payoutRelease/queries.d.ts.map +1 -1
- package/dist/component/recoveryWorkflow/bridge.d.ts +21 -0
- package/dist/component/recoveryWorkflow/bridge.d.ts.map +1 -0
- package/dist/component/recoveryWorkflow/bridge.js +52 -0
- package/dist/component/recoveryWorkflow/bridge.js.map +1 -0
- package/dist/component/recoveryWorkflow/helpers.d.ts +83 -0
- package/dist/component/recoveryWorkflow/helpers.d.ts.map +1 -0
- package/dist/component/recoveryWorkflow/helpers.js +48 -0
- package/dist/component/recoveryWorkflow/helpers.js.map +1 -0
- package/dist/component/recoveryWorkflow/mutations.d.ts +91 -0
- package/dist/component/recoveryWorkflow/mutations.d.ts.map +1 -0
- package/dist/component/recoveryWorkflow/mutations.js +177 -0
- package/dist/component/recoveryWorkflow/mutations.js.map +1 -0
- package/dist/component/recoveryWorkflow/queries.d.ts +118 -0
- package/dist/component/recoveryWorkflow/queries.d.ts.map +1 -0
- package/dist/component/recoveryWorkflow/queries.js +20 -0
- package/dist/component/recoveryWorkflow/queries.js.map +1 -0
- package/dist/component/recoveryWorkflow/schema.d.ts +653 -0
- package/dist/component/recoveryWorkflow/schema.d.ts.map +1 -0
- package/dist/component/recoveryWorkflow/schema.js +81 -0
- package/dist/component/recoveryWorkflow/schema.js.map +1 -0
- package/dist/component/recoveryWorkflow/steps.d.ts +70 -0
- package/dist/component/recoveryWorkflow/steps.d.ts.map +1 -0
- package/dist/component/recoveryWorkflow/steps.js +94 -0
- package/dist/component/recoveryWorkflow/steps.js.map +1 -0
- package/dist/component/recoveryWorkflow/workflow.d.ts +22 -0
- package/dist/component/recoveryWorkflow/workflow.d.ts.map +1 -0
- package/dist/component/recoveryWorkflow/workflow.js +56 -0
- package/dist/component/recoveryWorkflow/workflow.js.map +1 -0
- package/dist/component/schema.d.ts +404 -1
- package/dist/component/schema.js +3 -0
- package/dist/component/schema.js.map +1 -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/costRecovery-invoices.ts +6 -0
- package/src/client/costRecovery.ts +8 -3
- package/src/client/index.ts +15 -0
- package/src/client/recoveryWorkflow/client.test.ts +37 -0
- package/src/client/recoveryWorkflow/client.ts +76 -0
- package/src/client/recoveryWorkflow/contracts.ts +72 -0
- package/src/client/recoveryWorkflow/provider.test.ts +424 -0
- package/src/client/recoveryWorkflow/provider.ts +119 -0
- package/src/client/recoveryWorkflow/settlement.ts +67 -0
- package/src/component/_generated/api.ts +30 -0
- package/src/component/_generated/component.ts +746 -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
- package/src/component/recoveryWorkflow/bridge.test.ts +481 -0
- package/src/component/recoveryWorkflow/bridge.ts +66 -0
- package/src/component/recoveryWorkflow/helpers.ts +58 -0
- package/src/component/recoveryWorkflow/journal.test.ts +104 -0
- package/src/component/recoveryWorkflow/mutations.ts +224 -0
- package/src/component/recoveryWorkflow/queries.ts +19 -0
- package/src/component/recoveryWorkflow/schema.ts +92 -0
- package/src/component/recoveryWorkflow/state.test.ts +191 -0
- package/src/component/recoveryWorkflow/steps.ts +97 -0
- package/src/component/recoveryWorkflow/workflow.ts +73 -0
- package/src/component/schema.ts +6 -0
|
@@ -1,5 +1,226 @@
|
|
|
1
1
|
export declare function large(count?: number, amount?: number): Promise<{
|
|
2
2
|
t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
|
|
3
|
+
recoveryWorkflowOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
4
|
+
accountId: string;
|
|
5
|
+
activePhase?: "execute" | "reconcile" | undefined;
|
|
6
|
+
allocation?: {
|
|
7
|
+
adjustmentAmount?: number | undefined;
|
|
8
|
+
currency: string;
|
|
9
|
+
gross: number;
|
|
10
|
+
paymentId?: string | undefined;
|
|
11
|
+
paymentIntentId?: string | undefined;
|
|
12
|
+
platformNet: number;
|
|
13
|
+
processingFee: number;
|
|
14
|
+
sourceChargeId: string;
|
|
15
|
+
sourceInvoiceId?: string | undefined;
|
|
16
|
+
transfers: {
|
|
17
|
+
amount: number;
|
|
18
|
+
destinationAccountId: string;
|
|
19
|
+
role: "affiliate" | "other" | "store";
|
|
20
|
+
}[];
|
|
21
|
+
} | undefined;
|
|
22
|
+
cancelRequested: boolean;
|
|
23
|
+
completion?: string | undefined;
|
|
24
|
+
currency: string;
|
|
25
|
+
definitionVersion: number;
|
|
26
|
+
groupKey: string;
|
|
27
|
+
maxAttempts: number;
|
|
28
|
+
outcome?: "collect" | "release" | undefined;
|
|
29
|
+
provider: string;
|
|
30
|
+
providerApiVersion: string;
|
|
31
|
+
providerStarted: boolean;
|
|
32
|
+
releaseUncollectible: boolean;
|
|
33
|
+
resumeQueued: boolean;
|
|
34
|
+
retryDelayMs: number;
|
|
35
|
+
scopeKey: string;
|
|
36
|
+
sourceId: string;
|
|
37
|
+
sourceKind: "invoice" | "settlement";
|
|
38
|
+
status: "canceled" | "completed" | "queued" | "running" | "unknown" | "waiting";
|
|
39
|
+
version: number;
|
|
40
|
+
workflowId?: string | undefined;
|
|
41
|
+
}, {
|
|
42
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
43
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
44
|
+
currency: import("convex/values").VString<string, "required">;
|
|
45
|
+
groupKey: import("convex/values").VString<string, "required">;
|
|
46
|
+
provider: import("convex/values").VString<string, "required">;
|
|
47
|
+
completion: import("convex/values").VString<string | undefined, "optional">;
|
|
48
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
49
|
+
definitionVersion: import("convex/values").VFloat64<number, "required">;
|
|
50
|
+
releaseUncollectible: import("convex/values").VBoolean<boolean, "required">;
|
|
51
|
+
maxAttempts: import("convex/values").VFloat64<number, "required">;
|
|
52
|
+
retryDelayMs: import("convex/values").VFloat64<number, "required">;
|
|
53
|
+
allocation: import("convex/values").VObject<{
|
|
54
|
+
adjustmentAmount?: number | undefined;
|
|
55
|
+
currency: string;
|
|
56
|
+
gross: number;
|
|
57
|
+
paymentId?: string | undefined;
|
|
58
|
+
paymentIntentId?: string | undefined;
|
|
59
|
+
platformNet: number;
|
|
60
|
+
processingFee: number;
|
|
61
|
+
sourceChargeId: string;
|
|
62
|
+
sourceInvoiceId?: string | undefined;
|
|
63
|
+
transfers: {
|
|
64
|
+
amount: number;
|
|
65
|
+
destinationAccountId: string;
|
|
66
|
+
role: "affiliate" | "other" | "store";
|
|
67
|
+
}[];
|
|
68
|
+
} | undefined, {
|
|
69
|
+
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
70
|
+
paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
71
|
+
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
72
|
+
gross: import("convex/values").VFloat64<number, "required">;
|
|
73
|
+
currency: import("convex/values").VString<string, "required">;
|
|
74
|
+
processingFee: import("convex/values").VFloat64<number, "required">;
|
|
75
|
+
platformNet: import("convex/values").VFloat64<number, "required">;
|
|
76
|
+
adjustmentAmount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
77
|
+
paymentId: import("convex/values").VString<string | undefined, "optional">;
|
|
78
|
+
transfers: import("convex/values").VArray<{
|
|
79
|
+
amount: number;
|
|
80
|
+
destinationAccountId: string;
|
|
81
|
+
role: "affiliate" | "other" | "store";
|
|
82
|
+
}[], import("convex/values").VObject<{
|
|
83
|
+
amount: number;
|
|
84
|
+
destinationAccountId: string;
|
|
85
|
+
role: "affiliate" | "other" | "store";
|
|
86
|
+
}, {
|
|
87
|
+
destinationAccountId: import("convex/values").VString<string, "required">;
|
|
88
|
+
role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
|
|
89
|
+
amount: import("convex/values").VFloat64<number, "required">;
|
|
90
|
+
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
91
|
+
}, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
|
|
92
|
+
version: import("convex/values").VFloat64<number, "required">;
|
|
93
|
+
sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
|
|
94
|
+
sourceId: import("convex/values").VString<string, "required">;
|
|
95
|
+
workflowId: import("convex/values").VString<string | undefined, "optional">;
|
|
96
|
+
status: import("convex/values").VUnion<"canceled" | "completed" | "queued" | "running" | "unknown" | "waiting", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"waiting", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"canceled", "required">], "required", never>;
|
|
97
|
+
cancelRequested: import("convex/values").VBoolean<boolean, "required">;
|
|
98
|
+
providerStarted: import("convex/values").VBoolean<boolean, "required">;
|
|
99
|
+
activePhase: import("convex/values").VUnion<"execute" | "reconcile" | undefined, [import("convex/values").VLiteral<"execute", "required">, import("convex/values").VLiteral<"reconcile", "required">], "optional", never>;
|
|
100
|
+
resumeQueued: import("convex/values").VBoolean<boolean, "required">;
|
|
101
|
+
outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
|
|
102
|
+
}, "required", "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId">, {
|
|
103
|
+
by_group: ["groupKey", "_creationTime"];
|
|
104
|
+
by_source: ["sourceKind", "sourceId", "_creationTime"];
|
|
105
|
+
}, {}, {}>;
|
|
106
|
+
recoveryWorkflowRequests: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
107
|
+
binding: {
|
|
108
|
+
accountId: string;
|
|
109
|
+
allocation?: {
|
|
110
|
+
adjustmentAmount?: number | undefined;
|
|
111
|
+
currency: string;
|
|
112
|
+
gross: number;
|
|
113
|
+
paymentId?: string | undefined;
|
|
114
|
+
paymentIntentId?: string | undefined;
|
|
115
|
+
platformNet: number;
|
|
116
|
+
processingFee: number;
|
|
117
|
+
sourceChargeId: string;
|
|
118
|
+
sourceInvoiceId?: string | undefined;
|
|
119
|
+
transfers: {
|
|
120
|
+
amount: number;
|
|
121
|
+
destinationAccountId: string;
|
|
122
|
+
role: "affiliate" | "other" | "store";
|
|
123
|
+
}[];
|
|
124
|
+
} | undefined;
|
|
125
|
+
completion?: string | undefined;
|
|
126
|
+
currency: string;
|
|
127
|
+
definitionVersion: number;
|
|
128
|
+
groupKey: string;
|
|
129
|
+
maxAttempts: number;
|
|
130
|
+
provider: string;
|
|
131
|
+
providerApiVersion: string;
|
|
132
|
+
releaseUncollectible: boolean;
|
|
133
|
+
retryDelayMs: number;
|
|
134
|
+
scopeKey: string;
|
|
135
|
+
};
|
|
136
|
+
operationId: import("convex/values").GenericId<"recoveryWorkflowOperations">;
|
|
137
|
+
requestKey: string;
|
|
138
|
+
}, {
|
|
139
|
+
requestKey: import("convex/values").VString<string, "required">;
|
|
140
|
+
binding: import("convex/values").VObject<{
|
|
141
|
+
accountId: string;
|
|
142
|
+
allocation?: {
|
|
143
|
+
adjustmentAmount?: number | undefined;
|
|
144
|
+
currency: string;
|
|
145
|
+
gross: number;
|
|
146
|
+
paymentId?: string | undefined;
|
|
147
|
+
paymentIntentId?: string | undefined;
|
|
148
|
+
platformNet: number;
|
|
149
|
+
processingFee: number;
|
|
150
|
+
sourceChargeId: string;
|
|
151
|
+
sourceInvoiceId?: string | undefined;
|
|
152
|
+
transfers: {
|
|
153
|
+
amount: number;
|
|
154
|
+
destinationAccountId: string;
|
|
155
|
+
role: "affiliate" | "other" | "store";
|
|
156
|
+
}[];
|
|
157
|
+
} | undefined;
|
|
158
|
+
completion?: string | undefined;
|
|
159
|
+
currency: string;
|
|
160
|
+
definitionVersion: number;
|
|
161
|
+
groupKey: string;
|
|
162
|
+
maxAttempts: number;
|
|
163
|
+
provider: string;
|
|
164
|
+
providerApiVersion: string;
|
|
165
|
+
releaseUncollectible: boolean;
|
|
166
|
+
retryDelayMs: number;
|
|
167
|
+
scopeKey: string;
|
|
168
|
+
}, {
|
|
169
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
170
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
171
|
+
currency: import("convex/values").VString<string, "required">;
|
|
172
|
+
groupKey: import("convex/values").VString<string, "required">;
|
|
173
|
+
provider: import("convex/values").VString<string, "required">;
|
|
174
|
+
completion: import("convex/values").VString<string | undefined, "optional">;
|
|
175
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
176
|
+
definitionVersion: import("convex/values").VFloat64<number, "required">;
|
|
177
|
+
releaseUncollectible: import("convex/values").VBoolean<boolean, "required">;
|
|
178
|
+
maxAttempts: import("convex/values").VFloat64<number, "required">;
|
|
179
|
+
retryDelayMs: import("convex/values").VFloat64<number, "required">;
|
|
180
|
+
allocation: import("convex/values").VObject<{
|
|
181
|
+
adjustmentAmount?: number | undefined;
|
|
182
|
+
currency: string;
|
|
183
|
+
gross: number;
|
|
184
|
+
paymentId?: string | undefined;
|
|
185
|
+
paymentIntentId?: string | undefined;
|
|
186
|
+
platformNet: number;
|
|
187
|
+
processingFee: number;
|
|
188
|
+
sourceChargeId: string;
|
|
189
|
+
sourceInvoiceId?: string | undefined;
|
|
190
|
+
transfers: {
|
|
191
|
+
amount: number;
|
|
192
|
+
destinationAccountId: string;
|
|
193
|
+
role: "affiliate" | "other" | "store";
|
|
194
|
+
}[];
|
|
195
|
+
} | undefined, {
|
|
196
|
+
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
197
|
+
paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
198
|
+
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
199
|
+
gross: import("convex/values").VFloat64<number, "required">;
|
|
200
|
+
currency: import("convex/values").VString<string, "required">;
|
|
201
|
+
processingFee: import("convex/values").VFloat64<number, "required">;
|
|
202
|
+
platformNet: import("convex/values").VFloat64<number, "required">;
|
|
203
|
+
adjustmentAmount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
204
|
+
paymentId: import("convex/values").VString<string | undefined, "optional">;
|
|
205
|
+
transfers: import("convex/values").VArray<{
|
|
206
|
+
amount: number;
|
|
207
|
+
destinationAccountId: string;
|
|
208
|
+
role: "affiliate" | "other" | "store";
|
|
209
|
+
}[], import("convex/values").VObject<{
|
|
210
|
+
amount: number;
|
|
211
|
+
destinationAccountId: string;
|
|
212
|
+
role: "affiliate" | "other" | "store";
|
|
213
|
+
}, {
|
|
214
|
+
destinationAccountId: import("convex/values").VString<string, "required">;
|
|
215
|
+
role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
|
|
216
|
+
amount: import("convex/values").VFloat64<number, "required">;
|
|
217
|
+
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
218
|
+
}, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
|
|
219
|
+
}, "required", "accountId" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "provider" | "providerApiVersion" | "releaseUncollectible" | "retryDelayMs" | "scopeKey">;
|
|
220
|
+
operationId: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
|
|
221
|
+
}, "required", "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "binding.allocation.currency" | "binding.allocation.gross" | "binding.allocation.paymentId" | "binding.allocation.paymentIntentId" | "binding.allocation.platformNet" | "binding.allocation.processingFee" | "binding.allocation.sourceChargeId" | "binding.allocation.sourceInvoiceId" | "binding.allocation.transfers" | "binding.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey">, {
|
|
222
|
+
by_key: ["requestKey", "_creationTime"];
|
|
223
|
+
}, {}, {}>;
|
|
3
224
|
balanceFundingPreparations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
4
225
|
accountId: string;
|
|
5
226
|
activeOperationId?: import("convex/values").GenericId<"balanceFundingOperations"> | undefined;
|
|
@@ -51,6 +272,48 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
51
272
|
accountId: string;
|
|
52
273
|
cancelRequested: boolean;
|
|
53
274
|
enabled: boolean;
|
|
275
|
+
execution?: {
|
|
276
|
+
apply?: {
|
|
277
|
+
receipt?: {
|
|
278
|
+
customerAccount: string;
|
|
279
|
+
enabled?: boolean | undefined;
|
|
280
|
+
paymentMethodId: string | null;
|
|
281
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
282
|
+
phase: "apply" | "attach" | "create";
|
|
283
|
+
providerApiVersion: string;
|
|
284
|
+
stripeSubscriptionId: string;
|
|
285
|
+
} | undefined;
|
|
286
|
+
state: "running" | "succeeded" | "unknown";
|
|
287
|
+
} | undefined;
|
|
288
|
+
attach?: {
|
|
289
|
+
receipt?: {
|
|
290
|
+
customerAccount: string;
|
|
291
|
+
enabled?: boolean | undefined;
|
|
292
|
+
paymentMethodId: string | null;
|
|
293
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
294
|
+
phase: "apply" | "attach" | "create";
|
|
295
|
+
providerApiVersion: string;
|
|
296
|
+
stripeSubscriptionId: string;
|
|
297
|
+
} | undefined;
|
|
298
|
+
state: "running" | "succeeded" | "unknown";
|
|
299
|
+
} | undefined;
|
|
300
|
+
create?: {
|
|
301
|
+
receipt?: {
|
|
302
|
+
customerAccount: string;
|
|
303
|
+
enabled?: boolean | undefined;
|
|
304
|
+
paymentMethodId: string | null;
|
|
305
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
306
|
+
phase: "apply" | "attach" | "create";
|
|
307
|
+
providerApiVersion: string;
|
|
308
|
+
stripeSubscriptionId: string;
|
|
309
|
+
} | undefined;
|
|
310
|
+
state: "running" | "succeeded" | "unknown";
|
|
311
|
+
} | undefined;
|
|
312
|
+
definitionVersion: string;
|
|
313
|
+
providerAction: string;
|
|
314
|
+
providerApiVersion: string;
|
|
315
|
+
workflowId?: string | undefined;
|
|
316
|
+
} | undefined;
|
|
54
317
|
failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
|
|
55
318
|
kind: "apply" | "prepare";
|
|
56
319
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
@@ -106,7 +369,147 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
106
369
|
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>;
|
|
107
370
|
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
108
371
|
}, "optional", "customerAccount" | "paymentMethodId" | "paymentMethodTypes" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
109
|
-
|
|
372
|
+
execution: import("convex/values").VObject<{
|
|
373
|
+
apply?: {
|
|
374
|
+
receipt?: {
|
|
375
|
+
customerAccount: string;
|
|
376
|
+
enabled?: boolean | undefined;
|
|
377
|
+
paymentMethodId: string | null;
|
|
378
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
379
|
+
phase: "apply" | "attach" | "create";
|
|
380
|
+
providerApiVersion: string;
|
|
381
|
+
stripeSubscriptionId: string;
|
|
382
|
+
} | undefined;
|
|
383
|
+
state: "running" | "succeeded" | "unknown";
|
|
384
|
+
} | undefined;
|
|
385
|
+
attach?: {
|
|
386
|
+
receipt?: {
|
|
387
|
+
customerAccount: string;
|
|
388
|
+
enabled?: boolean | undefined;
|
|
389
|
+
paymentMethodId: string | null;
|
|
390
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
391
|
+
phase: "apply" | "attach" | "create";
|
|
392
|
+
providerApiVersion: string;
|
|
393
|
+
stripeSubscriptionId: string;
|
|
394
|
+
} | undefined;
|
|
395
|
+
state: "running" | "succeeded" | "unknown";
|
|
396
|
+
} | undefined;
|
|
397
|
+
create?: {
|
|
398
|
+
receipt?: {
|
|
399
|
+
customerAccount: string;
|
|
400
|
+
enabled?: boolean | undefined;
|
|
401
|
+
paymentMethodId: string | null;
|
|
402
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
403
|
+
phase: "apply" | "attach" | "create";
|
|
404
|
+
providerApiVersion: string;
|
|
405
|
+
stripeSubscriptionId: string;
|
|
406
|
+
} | undefined;
|
|
407
|
+
state: "running" | "succeeded" | "unknown";
|
|
408
|
+
} | undefined;
|
|
409
|
+
definitionVersion: string;
|
|
410
|
+
providerAction: string;
|
|
411
|
+
providerApiVersion: string;
|
|
412
|
+
workflowId?: string | undefined;
|
|
413
|
+
} | undefined, {
|
|
414
|
+
workflowId: import("convex/values").VString<string | undefined, "optional">;
|
|
415
|
+
definitionVersion: import("convex/values").VString<string, "required">;
|
|
416
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
417
|
+
providerAction: import("convex/values").VString<string, "required">;
|
|
418
|
+
create: import("convex/values").VObject<{
|
|
419
|
+
receipt?: {
|
|
420
|
+
customerAccount: string;
|
|
421
|
+
enabled?: boolean | undefined;
|
|
422
|
+
paymentMethodId: string | null;
|
|
423
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
424
|
+
phase: "apply" | "attach" | "create";
|
|
425
|
+
providerApiVersion: string;
|
|
426
|
+
stripeSubscriptionId: string;
|
|
427
|
+
} | undefined;
|
|
428
|
+
state: "running" | "succeeded" | "unknown";
|
|
429
|
+
} | undefined, {
|
|
430
|
+
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>;
|
|
431
|
+
receipt: import("convex/values").VObject<{
|
|
432
|
+
customerAccount: string;
|
|
433
|
+
enabled?: boolean | undefined;
|
|
434
|
+
paymentMethodId: string | null;
|
|
435
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
436
|
+
phase: "apply" | "attach" | "create";
|
|
437
|
+
providerApiVersion: string;
|
|
438
|
+
stripeSubscriptionId: string;
|
|
439
|
+
} | undefined, {
|
|
440
|
+
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>;
|
|
441
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
442
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
443
|
+
paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
444
|
+
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>;
|
|
445
|
+
enabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
446
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
447
|
+
}, "optional", "customerAccount" | "enabled" | "paymentMethodId" | "paymentMethodTypes" | "phase" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
448
|
+
}, "optional", "receipt" | "receipt.customerAccount" | "receipt.enabled" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.phase" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "state">;
|
|
449
|
+
attach: import("convex/values").VObject<{
|
|
450
|
+
receipt?: {
|
|
451
|
+
customerAccount: string;
|
|
452
|
+
enabled?: boolean | undefined;
|
|
453
|
+
paymentMethodId: string | null;
|
|
454
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
455
|
+
phase: "apply" | "attach" | "create";
|
|
456
|
+
providerApiVersion: string;
|
|
457
|
+
stripeSubscriptionId: string;
|
|
458
|
+
} | undefined;
|
|
459
|
+
state: "running" | "succeeded" | "unknown";
|
|
460
|
+
} | undefined, {
|
|
461
|
+
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>;
|
|
462
|
+
receipt: import("convex/values").VObject<{
|
|
463
|
+
customerAccount: string;
|
|
464
|
+
enabled?: boolean | undefined;
|
|
465
|
+
paymentMethodId: string | null;
|
|
466
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
467
|
+
phase: "apply" | "attach" | "create";
|
|
468
|
+
providerApiVersion: string;
|
|
469
|
+
stripeSubscriptionId: string;
|
|
470
|
+
} | undefined, {
|
|
471
|
+
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>;
|
|
472
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
473
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
474
|
+
paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
475
|
+
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>;
|
|
476
|
+
enabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
477
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
478
|
+
}, "optional", "customerAccount" | "enabled" | "paymentMethodId" | "paymentMethodTypes" | "phase" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
479
|
+
}, "optional", "receipt" | "receipt.customerAccount" | "receipt.enabled" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.phase" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "state">;
|
|
480
|
+
apply: import("convex/values").VObject<{
|
|
481
|
+
receipt?: {
|
|
482
|
+
customerAccount: string;
|
|
483
|
+
enabled?: boolean | undefined;
|
|
484
|
+
paymentMethodId: string | null;
|
|
485
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
486
|
+
phase: "apply" | "attach" | "create";
|
|
487
|
+
providerApiVersion: string;
|
|
488
|
+
stripeSubscriptionId: string;
|
|
489
|
+
} | undefined;
|
|
490
|
+
state: "running" | "succeeded" | "unknown";
|
|
491
|
+
} | undefined, {
|
|
492
|
+
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>;
|
|
493
|
+
receipt: import("convex/values").VObject<{
|
|
494
|
+
customerAccount: string;
|
|
495
|
+
enabled?: boolean | undefined;
|
|
496
|
+
paymentMethodId: string | null;
|
|
497
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
498
|
+
phase: "apply" | "attach" | "create";
|
|
499
|
+
providerApiVersion: string;
|
|
500
|
+
stripeSubscriptionId: string;
|
|
501
|
+
} | undefined, {
|
|
502
|
+
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>;
|
|
503
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
504
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
505
|
+
paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
506
|
+
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>;
|
|
507
|
+
enabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
508
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
509
|
+
}, "optional", "customerAccount" | "enabled" | "paymentMethodId" | "paymentMethodTypes" | "phase" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
510
|
+
}, "optional", "receipt" | "receipt.customerAccount" | "receipt.enabled" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.phase" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "state">;
|
|
511
|
+
}, "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">;
|
|
512
|
+
}, "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">, {
|
|
110
513
|
by_preparation_version: ["preparationId", "version", "_creationTime"];
|
|
111
514
|
}, {}, {}>;
|
|
112
515
|
balanceFundingRequests: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -2466,6 +2869,227 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
2466
2869
|
export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
2467
2870
|
s: {
|
|
2468
2871
|
t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
|
|
2872
|
+
recoveryWorkflowOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2873
|
+
accountId: string;
|
|
2874
|
+
activePhase?: "execute" | "reconcile" | undefined;
|
|
2875
|
+
allocation?: {
|
|
2876
|
+
adjustmentAmount?: number | undefined;
|
|
2877
|
+
currency: string;
|
|
2878
|
+
gross: number;
|
|
2879
|
+
paymentId?: string | undefined;
|
|
2880
|
+
paymentIntentId?: string | undefined;
|
|
2881
|
+
platformNet: number;
|
|
2882
|
+
processingFee: number;
|
|
2883
|
+
sourceChargeId: string;
|
|
2884
|
+
sourceInvoiceId?: string | undefined;
|
|
2885
|
+
transfers: {
|
|
2886
|
+
amount: number;
|
|
2887
|
+
destinationAccountId: string;
|
|
2888
|
+
role: "affiliate" | "other" | "store";
|
|
2889
|
+
}[];
|
|
2890
|
+
} | undefined;
|
|
2891
|
+
cancelRequested: boolean;
|
|
2892
|
+
completion?: string | undefined;
|
|
2893
|
+
currency: string;
|
|
2894
|
+
definitionVersion: number;
|
|
2895
|
+
groupKey: string;
|
|
2896
|
+
maxAttempts: number;
|
|
2897
|
+
outcome?: "collect" | "release" | undefined;
|
|
2898
|
+
provider: string;
|
|
2899
|
+
providerApiVersion: string;
|
|
2900
|
+
providerStarted: boolean;
|
|
2901
|
+
releaseUncollectible: boolean;
|
|
2902
|
+
resumeQueued: boolean;
|
|
2903
|
+
retryDelayMs: number;
|
|
2904
|
+
scopeKey: string;
|
|
2905
|
+
sourceId: string;
|
|
2906
|
+
sourceKind: "invoice" | "settlement";
|
|
2907
|
+
status: "canceled" | "completed" | "queued" | "running" | "unknown" | "waiting";
|
|
2908
|
+
version: number;
|
|
2909
|
+
workflowId?: string | undefined;
|
|
2910
|
+
}, {
|
|
2911
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
2912
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
2913
|
+
currency: import("convex/values").VString<string, "required">;
|
|
2914
|
+
groupKey: import("convex/values").VString<string, "required">;
|
|
2915
|
+
provider: import("convex/values").VString<string, "required">;
|
|
2916
|
+
completion: import("convex/values").VString<string | undefined, "optional">;
|
|
2917
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
2918
|
+
definitionVersion: import("convex/values").VFloat64<number, "required">;
|
|
2919
|
+
releaseUncollectible: import("convex/values").VBoolean<boolean, "required">;
|
|
2920
|
+
maxAttempts: import("convex/values").VFloat64<number, "required">;
|
|
2921
|
+
retryDelayMs: import("convex/values").VFloat64<number, "required">;
|
|
2922
|
+
allocation: import("convex/values").VObject<{
|
|
2923
|
+
adjustmentAmount?: number | undefined;
|
|
2924
|
+
currency: string;
|
|
2925
|
+
gross: number;
|
|
2926
|
+
paymentId?: string | undefined;
|
|
2927
|
+
paymentIntentId?: string | undefined;
|
|
2928
|
+
platformNet: number;
|
|
2929
|
+
processingFee: number;
|
|
2930
|
+
sourceChargeId: string;
|
|
2931
|
+
sourceInvoiceId?: string | undefined;
|
|
2932
|
+
transfers: {
|
|
2933
|
+
amount: number;
|
|
2934
|
+
destinationAccountId: string;
|
|
2935
|
+
role: "affiliate" | "other" | "store";
|
|
2936
|
+
}[];
|
|
2937
|
+
} | undefined, {
|
|
2938
|
+
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
2939
|
+
paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
2940
|
+
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
2941
|
+
gross: import("convex/values").VFloat64<number, "required">;
|
|
2942
|
+
currency: import("convex/values").VString<string, "required">;
|
|
2943
|
+
processingFee: import("convex/values").VFloat64<number, "required">;
|
|
2944
|
+
platformNet: import("convex/values").VFloat64<number, "required">;
|
|
2945
|
+
adjustmentAmount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
2946
|
+
paymentId: import("convex/values").VString<string | undefined, "optional">;
|
|
2947
|
+
transfers: import("convex/values").VArray<{
|
|
2948
|
+
amount: number;
|
|
2949
|
+
destinationAccountId: string;
|
|
2950
|
+
role: "affiliate" | "other" | "store";
|
|
2951
|
+
}[], import("convex/values").VObject<{
|
|
2952
|
+
amount: number;
|
|
2953
|
+
destinationAccountId: string;
|
|
2954
|
+
role: "affiliate" | "other" | "store";
|
|
2955
|
+
}, {
|
|
2956
|
+
destinationAccountId: import("convex/values").VString<string, "required">;
|
|
2957
|
+
role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
|
|
2958
|
+
amount: import("convex/values").VFloat64<number, "required">;
|
|
2959
|
+
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
2960
|
+
}, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
|
|
2961
|
+
version: import("convex/values").VFloat64<number, "required">;
|
|
2962
|
+
sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
|
|
2963
|
+
sourceId: import("convex/values").VString<string, "required">;
|
|
2964
|
+
workflowId: import("convex/values").VString<string | undefined, "optional">;
|
|
2965
|
+
status: import("convex/values").VUnion<"canceled" | "completed" | "queued" | "running" | "unknown" | "waiting", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"waiting", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"canceled", "required">], "required", never>;
|
|
2966
|
+
cancelRequested: import("convex/values").VBoolean<boolean, "required">;
|
|
2967
|
+
providerStarted: import("convex/values").VBoolean<boolean, "required">;
|
|
2968
|
+
activePhase: import("convex/values").VUnion<"execute" | "reconcile" | undefined, [import("convex/values").VLiteral<"execute", "required">, import("convex/values").VLiteral<"reconcile", "required">], "optional", never>;
|
|
2969
|
+
resumeQueued: import("convex/values").VBoolean<boolean, "required">;
|
|
2970
|
+
outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
|
|
2971
|
+
}, "required", "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId">, {
|
|
2972
|
+
by_group: ["groupKey", "_creationTime"];
|
|
2973
|
+
by_source: ["sourceKind", "sourceId", "_creationTime"];
|
|
2974
|
+
}, {}, {}>;
|
|
2975
|
+
recoveryWorkflowRequests: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2976
|
+
binding: {
|
|
2977
|
+
accountId: string;
|
|
2978
|
+
allocation?: {
|
|
2979
|
+
adjustmentAmount?: number | undefined;
|
|
2980
|
+
currency: string;
|
|
2981
|
+
gross: number;
|
|
2982
|
+
paymentId?: string | undefined;
|
|
2983
|
+
paymentIntentId?: string | undefined;
|
|
2984
|
+
platformNet: number;
|
|
2985
|
+
processingFee: number;
|
|
2986
|
+
sourceChargeId: string;
|
|
2987
|
+
sourceInvoiceId?: string | undefined;
|
|
2988
|
+
transfers: {
|
|
2989
|
+
amount: number;
|
|
2990
|
+
destinationAccountId: string;
|
|
2991
|
+
role: "affiliate" | "other" | "store";
|
|
2992
|
+
}[];
|
|
2993
|
+
} | undefined;
|
|
2994
|
+
completion?: string | undefined;
|
|
2995
|
+
currency: string;
|
|
2996
|
+
definitionVersion: number;
|
|
2997
|
+
groupKey: string;
|
|
2998
|
+
maxAttempts: number;
|
|
2999
|
+
provider: string;
|
|
3000
|
+
providerApiVersion: string;
|
|
3001
|
+
releaseUncollectible: boolean;
|
|
3002
|
+
retryDelayMs: number;
|
|
3003
|
+
scopeKey: string;
|
|
3004
|
+
};
|
|
3005
|
+
operationId: import("convex/values").GenericId<"recoveryWorkflowOperations">;
|
|
3006
|
+
requestKey: string;
|
|
3007
|
+
}, {
|
|
3008
|
+
requestKey: import("convex/values").VString<string, "required">;
|
|
3009
|
+
binding: import("convex/values").VObject<{
|
|
3010
|
+
accountId: string;
|
|
3011
|
+
allocation?: {
|
|
3012
|
+
adjustmentAmount?: number | undefined;
|
|
3013
|
+
currency: string;
|
|
3014
|
+
gross: number;
|
|
3015
|
+
paymentId?: string | undefined;
|
|
3016
|
+
paymentIntentId?: string | undefined;
|
|
3017
|
+
platformNet: number;
|
|
3018
|
+
processingFee: number;
|
|
3019
|
+
sourceChargeId: string;
|
|
3020
|
+
sourceInvoiceId?: string | undefined;
|
|
3021
|
+
transfers: {
|
|
3022
|
+
amount: number;
|
|
3023
|
+
destinationAccountId: string;
|
|
3024
|
+
role: "affiliate" | "other" | "store";
|
|
3025
|
+
}[];
|
|
3026
|
+
} | undefined;
|
|
3027
|
+
completion?: string | undefined;
|
|
3028
|
+
currency: string;
|
|
3029
|
+
definitionVersion: number;
|
|
3030
|
+
groupKey: string;
|
|
3031
|
+
maxAttempts: number;
|
|
3032
|
+
provider: string;
|
|
3033
|
+
providerApiVersion: string;
|
|
3034
|
+
releaseUncollectible: boolean;
|
|
3035
|
+
retryDelayMs: number;
|
|
3036
|
+
scopeKey: string;
|
|
3037
|
+
}, {
|
|
3038
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
3039
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
3040
|
+
currency: import("convex/values").VString<string, "required">;
|
|
3041
|
+
groupKey: import("convex/values").VString<string, "required">;
|
|
3042
|
+
provider: import("convex/values").VString<string, "required">;
|
|
3043
|
+
completion: import("convex/values").VString<string | undefined, "optional">;
|
|
3044
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
3045
|
+
definitionVersion: import("convex/values").VFloat64<number, "required">;
|
|
3046
|
+
releaseUncollectible: import("convex/values").VBoolean<boolean, "required">;
|
|
3047
|
+
maxAttempts: import("convex/values").VFloat64<number, "required">;
|
|
3048
|
+
retryDelayMs: import("convex/values").VFloat64<number, "required">;
|
|
3049
|
+
allocation: import("convex/values").VObject<{
|
|
3050
|
+
adjustmentAmount?: number | undefined;
|
|
3051
|
+
currency: string;
|
|
3052
|
+
gross: number;
|
|
3053
|
+
paymentId?: string | undefined;
|
|
3054
|
+
paymentIntentId?: string | undefined;
|
|
3055
|
+
platformNet: number;
|
|
3056
|
+
processingFee: number;
|
|
3057
|
+
sourceChargeId: string;
|
|
3058
|
+
sourceInvoiceId?: string | undefined;
|
|
3059
|
+
transfers: {
|
|
3060
|
+
amount: number;
|
|
3061
|
+
destinationAccountId: string;
|
|
3062
|
+
role: "affiliate" | "other" | "store";
|
|
3063
|
+
}[];
|
|
3064
|
+
} | undefined, {
|
|
3065
|
+
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
3066
|
+
paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
3067
|
+
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
3068
|
+
gross: import("convex/values").VFloat64<number, "required">;
|
|
3069
|
+
currency: import("convex/values").VString<string, "required">;
|
|
3070
|
+
processingFee: import("convex/values").VFloat64<number, "required">;
|
|
3071
|
+
platformNet: import("convex/values").VFloat64<number, "required">;
|
|
3072
|
+
adjustmentAmount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3073
|
+
paymentId: import("convex/values").VString<string | undefined, "optional">;
|
|
3074
|
+
transfers: import("convex/values").VArray<{
|
|
3075
|
+
amount: number;
|
|
3076
|
+
destinationAccountId: string;
|
|
3077
|
+
role: "affiliate" | "other" | "store";
|
|
3078
|
+
}[], import("convex/values").VObject<{
|
|
3079
|
+
amount: number;
|
|
3080
|
+
destinationAccountId: string;
|
|
3081
|
+
role: "affiliate" | "other" | "store";
|
|
3082
|
+
}, {
|
|
3083
|
+
destinationAccountId: import("convex/values").VString<string, "required">;
|
|
3084
|
+
role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
|
|
3085
|
+
amount: import("convex/values").VFloat64<number, "required">;
|
|
3086
|
+
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
3087
|
+
}, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
|
|
3088
|
+
}, "required", "accountId" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "provider" | "providerApiVersion" | "releaseUncollectible" | "retryDelayMs" | "scopeKey">;
|
|
3089
|
+
operationId: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
|
|
3090
|
+
}, "required", "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "binding.allocation.currency" | "binding.allocation.gross" | "binding.allocation.paymentId" | "binding.allocation.paymentIntentId" | "binding.allocation.platformNet" | "binding.allocation.processingFee" | "binding.allocation.sourceChargeId" | "binding.allocation.sourceInvoiceId" | "binding.allocation.transfers" | "binding.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey">, {
|
|
3091
|
+
by_key: ["requestKey", "_creationTime"];
|
|
3092
|
+
}, {}, {}>;
|
|
2469
3093
|
balanceFundingPreparations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2470
3094
|
accountId: string;
|
|
2471
3095
|
activeOperationId?: import("convex/values").GenericId<"balanceFundingOperations"> | undefined;
|
|
@@ -2517,6 +3141,48 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
2517
3141
|
accountId: string;
|
|
2518
3142
|
cancelRequested: boolean;
|
|
2519
3143
|
enabled: boolean;
|
|
3144
|
+
execution?: {
|
|
3145
|
+
apply?: {
|
|
3146
|
+
receipt?: {
|
|
3147
|
+
customerAccount: string;
|
|
3148
|
+
enabled?: boolean | undefined;
|
|
3149
|
+
paymentMethodId: string | null;
|
|
3150
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
3151
|
+
phase: "apply" | "attach" | "create";
|
|
3152
|
+
providerApiVersion: string;
|
|
3153
|
+
stripeSubscriptionId: string;
|
|
3154
|
+
} | undefined;
|
|
3155
|
+
state: "running" | "succeeded" | "unknown";
|
|
3156
|
+
} | undefined;
|
|
3157
|
+
attach?: {
|
|
3158
|
+
receipt?: {
|
|
3159
|
+
customerAccount: string;
|
|
3160
|
+
enabled?: boolean | undefined;
|
|
3161
|
+
paymentMethodId: string | null;
|
|
3162
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
3163
|
+
phase: "apply" | "attach" | "create";
|
|
3164
|
+
providerApiVersion: string;
|
|
3165
|
+
stripeSubscriptionId: string;
|
|
3166
|
+
} | undefined;
|
|
3167
|
+
state: "running" | "succeeded" | "unknown";
|
|
3168
|
+
} | undefined;
|
|
3169
|
+
create?: {
|
|
3170
|
+
receipt?: {
|
|
3171
|
+
customerAccount: string;
|
|
3172
|
+
enabled?: boolean | undefined;
|
|
3173
|
+
paymentMethodId: string | null;
|
|
3174
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
3175
|
+
phase: "apply" | "attach" | "create";
|
|
3176
|
+
providerApiVersion: string;
|
|
3177
|
+
stripeSubscriptionId: string;
|
|
3178
|
+
} | undefined;
|
|
3179
|
+
state: "running" | "succeeded" | "unknown";
|
|
3180
|
+
} | undefined;
|
|
3181
|
+
definitionVersion: string;
|
|
3182
|
+
providerAction: string;
|
|
3183
|
+
providerApiVersion: string;
|
|
3184
|
+
workflowId?: string | undefined;
|
|
3185
|
+
} | undefined;
|
|
2520
3186
|
failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
|
|
2521
3187
|
kind: "apply" | "prepare";
|
|
2522
3188
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
@@ -2572,7 +3238,147 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
2572
3238
|
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>;
|
|
2573
3239
|
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
2574
3240
|
}, "optional", "customerAccount" | "paymentMethodId" | "paymentMethodTypes" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
2575
|
-
|
|
3241
|
+
execution: import("convex/values").VObject<{
|
|
3242
|
+
apply?: {
|
|
3243
|
+
receipt?: {
|
|
3244
|
+
customerAccount: string;
|
|
3245
|
+
enabled?: boolean | undefined;
|
|
3246
|
+
paymentMethodId: string | null;
|
|
3247
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
3248
|
+
phase: "apply" | "attach" | "create";
|
|
3249
|
+
providerApiVersion: string;
|
|
3250
|
+
stripeSubscriptionId: string;
|
|
3251
|
+
} | undefined;
|
|
3252
|
+
state: "running" | "succeeded" | "unknown";
|
|
3253
|
+
} | undefined;
|
|
3254
|
+
attach?: {
|
|
3255
|
+
receipt?: {
|
|
3256
|
+
customerAccount: string;
|
|
3257
|
+
enabled?: boolean | undefined;
|
|
3258
|
+
paymentMethodId: string | null;
|
|
3259
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
3260
|
+
phase: "apply" | "attach" | "create";
|
|
3261
|
+
providerApiVersion: string;
|
|
3262
|
+
stripeSubscriptionId: string;
|
|
3263
|
+
} | undefined;
|
|
3264
|
+
state: "running" | "succeeded" | "unknown";
|
|
3265
|
+
} | undefined;
|
|
3266
|
+
create?: {
|
|
3267
|
+
receipt?: {
|
|
3268
|
+
customerAccount: string;
|
|
3269
|
+
enabled?: boolean | undefined;
|
|
3270
|
+
paymentMethodId: string | null;
|
|
3271
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
3272
|
+
phase: "apply" | "attach" | "create";
|
|
3273
|
+
providerApiVersion: string;
|
|
3274
|
+
stripeSubscriptionId: string;
|
|
3275
|
+
} | undefined;
|
|
3276
|
+
state: "running" | "succeeded" | "unknown";
|
|
3277
|
+
} | undefined;
|
|
3278
|
+
definitionVersion: string;
|
|
3279
|
+
providerAction: string;
|
|
3280
|
+
providerApiVersion: string;
|
|
3281
|
+
workflowId?: string | undefined;
|
|
3282
|
+
} | undefined, {
|
|
3283
|
+
workflowId: import("convex/values").VString<string | undefined, "optional">;
|
|
3284
|
+
definitionVersion: import("convex/values").VString<string, "required">;
|
|
3285
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
3286
|
+
providerAction: import("convex/values").VString<string, "required">;
|
|
3287
|
+
create: import("convex/values").VObject<{
|
|
3288
|
+
receipt?: {
|
|
3289
|
+
customerAccount: string;
|
|
3290
|
+
enabled?: boolean | undefined;
|
|
3291
|
+
paymentMethodId: string | null;
|
|
3292
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
3293
|
+
phase: "apply" | "attach" | "create";
|
|
3294
|
+
providerApiVersion: string;
|
|
3295
|
+
stripeSubscriptionId: string;
|
|
3296
|
+
} | undefined;
|
|
3297
|
+
state: "running" | "succeeded" | "unknown";
|
|
3298
|
+
} | undefined, {
|
|
3299
|
+
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>;
|
|
3300
|
+
receipt: import("convex/values").VObject<{
|
|
3301
|
+
customerAccount: string;
|
|
3302
|
+
enabled?: boolean | undefined;
|
|
3303
|
+
paymentMethodId: string | null;
|
|
3304
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
3305
|
+
phase: "apply" | "attach" | "create";
|
|
3306
|
+
providerApiVersion: string;
|
|
3307
|
+
stripeSubscriptionId: string;
|
|
3308
|
+
} | undefined, {
|
|
3309
|
+
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>;
|
|
3310
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
3311
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
3312
|
+
paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
3313
|
+
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>;
|
|
3314
|
+
enabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
3315
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
3316
|
+
}, "optional", "customerAccount" | "enabled" | "paymentMethodId" | "paymentMethodTypes" | "phase" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
3317
|
+
}, "optional", "receipt" | "receipt.customerAccount" | "receipt.enabled" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.phase" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "state">;
|
|
3318
|
+
attach: import("convex/values").VObject<{
|
|
3319
|
+
receipt?: {
|
|
3320
|
+
customerAccount: string;
|
|
3321
|
+
enabled?: boolean | undefined;
|
|
3322
|
+
paymentMethodId: string | null;
|
|
3323
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
3324
|
+
phase: "apply" | "attach" | "create";
|
|
3325
|
+
providerApiVersion: string;
|
|
3326
|
+
stripeSubscriptionId: string;
|
|
3327
|
+
} | undefined;
|
|
3328
|
+
state: "running" | "succeeded" | "unknown";
|
|
3329
|
+
} | undefined, {
|
|
3330
|
+
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>;
|
|
3331
|
+
receipt: import("convex/values").VObject<{
|
|
3332
|
+
customerAccount: string;
|
|
3333
|
+
enabled?: boolean | undefined;
|
|
3334
|
+
paymentMethodId: string | null;
|
|
3335
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
3336
|
+
phase: "apply" | "attach" | "create";
|
|
3337
|
+
providerApiVersion: string;
|
|
3338
|
+
stripeSubscriptionId: string;
|
|
3339
|
+
} | undefined, {
|
|
3340
|
+
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>;
|
|
3341
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
3342
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
3343
|
+
paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
3344
|
+
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>;
|
|
3345
|
+
enabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
3346
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
3347
|
+
}, "optional", "customerAccount" | "enabled" | "paymentMethodId" | "paymentMethodTypes" | "phase" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
3348
|
+
}, "optional", "receipt" | "receipt.customerAccount" | "receipt.enabled" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.phase" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "state">;
|
|
3349
|
+
apply: import("convex/values").VObject<{
|
|
3350
|
+
receipt?: {
|
|
3351
|
+
customerAccount: string;
|
|
3352
|
+
enabled?: boolean | undefined;
|
|
3353
|
+
paymentMethodId: string | null;
|
|
3354
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
3355
|
+
phase: "apply" | "attach" | "create";
|
|
3356
|
+
providerApiVersion: string;
|
|
3357
|
+
stripeSubscriptionId: string;
|
|
3358
|
+
} | undefined;
|
|
3359
|
+
state: "running" | "succeeded" | "unknown";
|
|
3360
|
+
} | undefined, {
|
|
3361
|
+
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>;
|
|
3362
|
+
receipt: import("convex/values").VObject<{
|
|
3363
|
+
customerAccount: string;
|
|
3364
|
+
enabled?: boolean | undefined;
|
|
3365
|
+
paymentMethodId: string | null;
|
|
3366
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
3367
|
+
phase: "apply" | "attach" | "create";
|
|
3368
|
+
providerApiVersion: string;
|
|
3369
|
+
stripeSubscriptionId: string;
|
|
3370
|
+
} | undefined, {
|
|
3371
|
+
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>;
|
|
3372
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
3373
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
3374
|
+
paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
3375
|
+
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>;
|
|
3376
|
+
enabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
3377
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
3378
|
+
}, "optional", "customerAccount" | "enabled" | "paymentMethodId" | "paymentMethodTypes" | "phase" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
3379
|
+
}, "optional", "receipt" | "receipt.customerAccount" | "receipt.enabled" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.phase" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "state">;
|
|
3380
|
+
}, "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">;
|
|
3381
|
+
}, "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">, {
|
|
2576
3382
|
by_preparation_version: ["preparationId", "version", "_creationTime"];
|
|
2577
3383
|
}, {}, {}>;
|
|
2578
3384
|
balanceFundingRequests: import("convex/server").TableDefinition<import("convex/values").VObject<{
|