@fantastic.dev/better-stripe 0.38.0 → 0.40.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 +34 -0
- package/MIGRATION.md +9 -0
- package/README.md +21 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +506 -2
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +253 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +506 -2
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +253 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/costRecovery-invoices.d.ts.map +1 -1
- package/dist/client/costRecovery-invoices.js +3 -5
- package/dist/client/costRecovery-invoices.js.map +1 -1
- package/dist/client/costRecovery.d.ts +18 -0
- package/dist/client/costRecovery.d.ts.map +1 -1
- package/dist/client/costRecovery.js +4 -0
- package/dist/client/costRecovery.js.map +1 -1
- package/dist/client/index.d.ts +4 -2
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +3 -2
- package/dist/client/index.js.map +1 -1
- package/dist/client/paymentSource/client.d.ts +21 -0
- package/dist/client/paymentSource/client.d.ts.map +1 -0
- package/dist/client/paymentSource/client.js +8 -0
- package/dist/client/paymentSource/client.js.map +1 -0
- package/dist/client/paymentSource/contracts.d.ts +30 -0
- package/dist/client/paymentSource/contracts.d.ts.map +1 -0
- package/dist/client/paymentSource/contracts.js +16 -0
- package/dist/client/paymentSource/contracts.js.map +1 -0
- package/dist/client/paymentSource/economics.d.ts +12 -0
- package/dist/client/paymentSource/economics.d.ts.map +1 -0
- package/dist/client/paymentSource/economics.js +13 -0
- package/dist/client/paymentSource/economics.js.map +1 -0
- package/dist/client/paymentSource/funding.d.ts +10 -0
- package/dist/client/paymentSource/funding.d.ts.map +1 -0
- package/dist/client/paymentSource/funding.js +12 -0
- package/dist/client/paymentSource/funding.js.map +1 -0
- package/dist/client/paymentSource/history.d.ts +13 -0
- package/dist/client/paymentSource/history.d.ts.map +1 -0
- package/dist/client/paymentSource/history.js +41 -0
- package/dist/client/paymentSource/history.js.map +1 -0
- package/dist/client/paymentSource/resolver.d.ts +6 -0
- package/dist/client/paymentSource/resolver.d.ts.map +1 -0
- package/dist/client/paymentSource/resolver.js +222 -0
- package/dist/client/paymentSource/resolver.js.map +1 -0
- package/dist/client/processingCostDeficit/index.d.ts +27 -0
- package/dist/client/processingCostDeficit/index.d.ts.map +1 -0
- package/dist/client/processingCostDeficit/index.js +54 -0
- package/dist/client/processingCostDeficit/index.js.map +1 -0
- package/dist/client/settlement/verifiedSale.d.ts.map +1 -1
- package/dist/client/settlement/verifiedSale.js +4 -6
- package/dist/client/settlement/verifiedSale.js.map +1 -1
- package/dist/component/_generated/api.d.ts +284 -0
- package/dist/component/_generated/api.d.ts.map +1 -0
- package/dist/component/_generated/api.js +31 -0
- package/dist/component/_generated/api.js.map +1 -0
- package/dist/component/_generated/component.d.ts +527 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/balanceFunding/helpers.d.ts +86 -0
- package/dist/component/balanceFunding/helpers.d.ts.map +1 -0
- package/dist/component/balanceFunding/helpers.js +68 -0
- package/dist/component/balanceFunding/helpers.js.map +1 -0
- package/dist/component/balanceFunding/importHandler.d.ts +13 -0
- package/dist/component/balanceFunding/importHandler.d.ts.map +1 -0
- package/dist/component/balanceFunding/importHandler.js +130 -0
- package/dist/component/balanceFunding/importHandler.js.map +1 -0
- package/dist/component/balanceFunding/lifecycleHandlers.d.ts +85 -0
- package/dist/component/balanceFunding/lifecycleHandlers.d.ts.map +1 -0
- package/dist/component/balanceFunding/lifecycleHandlers.js +60 -0
- package/dist/component/balanceFunding/lifecycleHandlers.js.map +1 -0
- package/dist/component/balanceFunding/mutationValidators.d.ts +238 -0
- package/dist/component/balanceFunding/mutationValidators.d.ts.map +1 -0
- package/dist/component/balanceFunding/mutationValidators.js +55 -0
- package/dist/component/balanceFunding/mutationValidators.js.map +1 -0
- package/dist/component/balanceFunding/mutations.d.ts +335 -0
- package/dist/component/balanceFunding/mutations.d.ts.map +1 -0
- package/dist/component/balanceFunding/mutations.js +106 -0
- package/dist/component/balanceFunding/mutations.js.map +1 -0
- package/dist/component/balanceFunding/preparationHandlers.d.ts +55 -0
- package/dist/component/balanceFunding/preparationHandlers.d.ts.map +1 -0
- package/dist/component/balanceFunding/preparationHandlers.js +165 -0
- package/dist/component/balanceFunding/preparationHandlers.js.map +1 -0
- package/dist/component/balanceFunding/queries.d.ts +151 -0
- package/dist/component/balanceFunding/queries.d.ts.map +1 -0
- package/dist/component/balanceFunding/queries.js +180 -0
- package/dist/component/balanceFunding/queries.js.map +1 -0
- package/dist/component/balanceFunding/schema.d.ts +748 -0
- package/dist/component/balanceFunding/schema.d.ts.map +1 -0
- package/dist/component/balanceFunding/schema.js +124 -0
- package/dist/component/balanceFunding/schema.js.map +1 -0
- package/dist/component/balanceFunding/stateHandlers.d.ts +58 -0
- package/dist/component/balanceFunding/stateHandlers.d.ts.map +1 -0
- package/dist/component/balanceFunding/stateHandlers.js +160 -0
- package/dist/component/balanceFunding/stateHandlers.js.map +1 -0
- package/dist/component/convex.config.d.ts.map +1 -1
- package/dist/component/convex.config.js +2 -0
- package/dist/component/convex.config.js.map +1 -1
- package/dist/component/costRecovery/completion.d.ts +1 -0
- package/dist/component/costRecovery/completion.d.ts.map +1 -1
- package/dist/component/costRecovery/helpers.d.ts +1 -0
- package/dist/component/costRecovery/helpers.d.ts.map +1 -1
- package/dist/component/costRecovery/mutations.d.ts +5 -0
- package/dist/component/costRecovery/mutations.d.ts.map +1 -1
- package/dist/component/costRecovery/preparation.d.ts +50 -0
- package/dist/component/costRecovery/preparation.d.ts.map +1 -0
- package/dist/component/costRecovery/preparation.js +108 -0
- package/dist/component/costRecovery/preparation.js.map +1 -0
- package/dist/component/costRecovery/queries.d.ts +1 -0
- package/dist/component/costRecovery/queries.d.ts.map +1 -1
- package/dist/component/costRecovery/reservations.d.ts +2 -0
- package/dist/component/costRecovery/reservations.d.ts.map +1 -1
- package/dist/component/costRecovery/schema.d.ts +7 -2
- package/dist/component/costRecovery/schema.d.ts.map +1 -1
- package/dist/component/costRecovery/schema.js +1 -0
- package/dist/component/costRecovery/schema.js.map +1 -1
- package/dist/component/durableExecution/runtime.d.ts +3 -0
- package/dist/component/durableExecution/runtime.d.ts.map +1 -0
- package/dist/component/durableExecution/runtime.js +12 -0
- package/dist/component/durableExecution/runtime.js.map +1 -0
- package/dist/component/earnings/triggers.d.ts +242 -2
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/schema.d.ts +253 -1
- package/dist/component/schema.js +4 -0
- package/dist/component/schema.js.map +1 -1
- package/docs/settlement.md +48 -0
- package/package.json +4 -2
- package/src/client/costRecovery-invoices.ts +3 -7
- package/src/client/costRecovery.test.ts +34 -0
- package/src/client/costRecovery.ts +21 -0
- package/src/client/index.ts +7 -2
- package/src/client/paymentSource/client.ts +13 -0
- package/src/client/paymentSource/contracts.ts +33 -0
- package/src/client/paymentSource/economics.ts +20 -0
- package/src/client/paymentSource/funding.ts +23 -0
- package/src/client/paymentSource/history.ts +48 -0
- package/src/client/paymentSource/resolver.test.ts +582 -0
- package/src/client/paymentSource/resolver.ts +350 -0
- package/src/client/processingCostDeficit/README.md +35 -0
- package/src/client/processingCostDeficit/calculator.test.ts +176 -0
- package/src/client/processingCostDeficit/index.ts +91 -0
- package/src/client/settlement/verifiedSale.ts +4 -10
- package/src/component/_generated/api.ts +23 -1
- package/src/component/_generated/component.ts +693 -0
- package/src/component/balanceFunding/failure.test.ts +116 -0
- package/src/component/balanceFunding/helpers.ts +102 -0
- package/src/component/balanceFunding/import.test.ts +221 -0
- package/src/component/balanceFunding/importHandler.ts +146 -0
- package/src/component/balanceFunding/lifecycleHandlers.ts +90 -0
- package/src/component/balanceFunding/lookup.test.ts +113 -0
- package/src/component/balanceFunding/mutationValidators.ts +63 -0
- package/src/component/balanceFunding/mutations.ts +136 -0
- package/src/component/balanceFunding/preparation.test.ts +146 -0
- package/src/component/balanceFunding/preparationHandlers.ts +204 -0
- package/src/component/balanceFunding/queries.ts +221 -0
- package/src/component/balanceFunding/requestLookup.test.ts +160 -0
- package/src/component/balanceFunding/schema.ts +169 -0
- package/src/component/balanceFunding/state.test.ts +352 -0
- package/src/component/balanceFunding/stateHandlers.ts +198 -0
- package/src/component/balanceFunding/validation.test.ts +100 -0
- package/src/component/convex.config.ts +2 -0
- package/src/component/costRecovery/preparation.test.ts +355 -0
- package/src/component/costRecovery/preparation.ts +124 -0
- package/src/component/costRecovery/schema.ts +1 -0
- package/src/component/durableExecution/composition.test.ts +568 -0
- package/src/component/durableExecution/runtime.ts +12 -0
- package/src/component/schema.ts +8 -0
|
@@ -9,6 +9,256 @@ export declare const scope: {
|
|
|
9
9
|
};
|
|
10
10
|
export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
11
11
|
t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
|
|
12
|
+
balanceFundingPreparations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
13
|
+
accountId: string;
|
|
14
|
+
activeOperationId?: import("convex/values").GenericId<"balanceFundingOperations"> | undefined;
|
|
15
|
+
consentAt: number;
|
|
16
|
+
consentReference: string;
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
operationVersion: number;
|
|
19
|
+
preparation: {
|
|
20
|
+
customerAccount: string;
|
|
21
|
+
paymentMethodId?: string | undefined;
|
|
22
|
+
previousPaymentMethodId: string | null;
|
|
23
|
+
previousPaymentMethodTypes: string[] | null;
|
|
24
|
+
stripeSubscriptionId: string;
|
|
25
|
+
};
|
|
26
|
+
preparationOperationId?: import("convex/values").GenericId<"balanceFundingOperations"> | undefined;
|
|
27
|
+
providerApiVersion: string;
|
|
28
|
+
scopeKey: string;
|
|
29
|
+
startsPaused: boolean;
|
|
30
|
+
verified: boolean;
|
|
31
|
+
}, {
|
|
32
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
33
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
34
|
+
preparation: import("convex/values").VObject<{
|
|
35
|
+
customerAccount: string;
|
|
36
|
+
paymentMethodId?: string | undefined;
|
|
37
|
+
previousPaymentMethodId: string | null;
|
|
38
|
+
previousPaymentMethodTypes: string[] | null;
|
|
39
|
+
stripeSubscriptionId: string;
|
|
40
|
+
}, {
|
|
41
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
42
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
43
|
+
previousPaymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
44
|
+
previousPaymentMethodTypes: 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>;
|
|
45
|
+
paymentMethodId: import("convex/values").VString<string | undefined, "optional">;
|
|
46
|
+
}, "required", "customerAccount" | "paymentMethodId" | "previousPaymentMethodId" | "previousPaymentMethodTypes" | "stripeSubscriptionId">;
|
|
47
|
+
consentAt: import("convex/values").VFloat64<number, "required">;
|
|
48
|
+
consentReference: import("convex/values").VString<string, "required">;
|
|
49
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
50
|
+
enabled: import("convex/values").VBoolean<boolean, "required">;
|
|
51
|
+
startsPaused: import("convex/values").VBoolean<boolean, "required">;
|
|
52
|
+
verified: import("convex/values").VBoolean<boolean, "required">;
|
|
53
|
+
preparationOperationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations"> | undefined, "optional">;
|
|
54
|
+
operationVersion: import("convex/values").VFloat64<number, "required">;
|
|
55
|
+
activeOperationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations"> | undefined, "optional">;
|
|
56
|
+
}, "required", "accountId" | "activeOperationId" | "consentAt" | "consentReference" | "enabled" | "operationVersion" | "preparation" | "preparation.customerAccount" | "preparation.paymentMethodId" | "preparation.previousPaymentMethodId" | "preparation.previousPaymentMethodTypes" | "preparation.stripeSubscriptionId" | "preparationOperationId" | "providerApiVersion" | "scopeKey" | "startsPaused" | "verified">, {
|
|
57
|
+
by_account_subscription: ["accountId", "preparation.stripeSubscriptionId", "_creationTime"];
|
|
58
|
+
}, {}, {}>;
|
|
59
|
+
balanceFundingOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
60
|
+
accountId: string;
|
|
61
|
+
cancelRequested: boolean;
|
|
62
|
+
enabled: boolean;
|
|
63
|
+
failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
|
|
64
|
+
kind: "apply" | "prepare";
|
|
65
|
+
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
66
|
+
providerKey: string;
|
|
67
|
+
providerKeys: {
|
|
68
|
+
attach?: string | undefined;
|
|
69
|
+
create?: string | undefined;
|
|
70
|
+
disable: string;
|
|
71
|
+
enable: string;
|
|
72
|
+
};
|
|
73
|
+
receipt?: {
|
|
74
|
+
customerAccount: string;
|
|
75
|
+
paymentMethodId: string | null;
|
|
76
|
+
paymentMethodTypes: string[] | null;
|
|
77
|
+
providerApiVersion: string;
|
|
78
|
+
stripeSubscriptionId: string;
|
|
79
|
+
} | undefined;
|
|
80
|
+
scopeKey: string;
|
|
81
|
+
state: "canceled" | "failed" | "pending" | "running" | "succeeded" | "unknown";
|
|
82
|
+
version: number;
|
|
83
|
+
}, {
|
|
84
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
85
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
86
|
+
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
87
|
+
version: import("convex/values").VFloat64<number, "required">;
|
|
88
|
+
enabled: import("convex/values").VBoolean<boolean, "required">;
|
|
89
|
+
kind: import("convex/values").VUnion<"apply" | "prepare", [import("convex/values").VLiteral<"prepare", "required">, import("convex/values").VLiteral<"apply", "required">], "required", never>;
|
|
90
|
+
providerKey: import("convex/values").VString<string, "required">;
|
|
91
|
+
state: import("convex/values").VUnion<"canceled" | "failed" | "pending" | "running" | "succeeded" | "unknown", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"succeeded", "required">, import("convex/values").VLiteral<"canceled", "required">, import("convex/values").VLiteral<"failed", "required">], "required", never>;
|
|
92
|
+
cancelRequested: import("convex/values").VBoolean<boolean, "required">;
|
|
93
|
+
failureCode: import("convex/values").VUnion<"invalid_scope" | "policy_invalid" | "unsupported_source" | undefined, [import("convex/values").VLiteral<"invalid_scope", "required">, import("convex/values").VLiteral<"unsupported_source", "required">, import("convex/values").VLiteral<"policy_invalid", "required">], "optional", never>;
|
|
94
|
+
providerKeys: import("convex/values").VObject<{
|
|
95
|
+
attach?: string | undefined;
|
|
96
|
+
create?: string | undefined;
|
|
97
|
+
disable: string;
|
|
98
|
+
enable: string;
|
|
99
|
+
}, {
|
|
100
|
+
enable: import("convex/values").VString<string, "required">;
|
|
101
|
+
disable: import("convex/values").VString<string, "required">;
|
|
102
|
+
create: import("convex/values").VString<string | undefined, "optional">;
|
|
103
|
+
attach: import("convex/values").VString<string | undefined, "optional">;
|
|
104
|
+
}, "required", "attach" | "create" | "disable" | "enable">;
|
|
105
|
+
receipt: import("convex/values").VObject<{
|
|
106
|
+
customerAccount: string;
|
|
107
|
+
paymentMethodId: string | null;
|
|
108
|
+
paymentMethodTypes: string[] | null;
|
|
109
|
+
providerApiVersion: string;
|
|
110
|
+
stripeSubscriptionId: string;
|
|
111
|
+
} | undefined, {
|
|
112
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
113
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
114
|
+
paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
115
|
+
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>;
|
|
116
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
117
|
+
}, "optional", "customerAccount" | "paymentMethodId" | "paymentMethodTypes" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
118
|
+
}, "required", "accountId" | "cancelRequested" | "enabled" | "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">, {
|
|
119
|
+
by_preparation_version: ["preparationId", "version", "_creationTime"];
|
|
120
|
+
}, {}, {}>;
|
|
121
|
+
balanceFundingRequests: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
122
|
+
imported?: {
|
|
123
|
+
operation?: {
|
|
124
|
+
accountId: string;
|
|
125
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
126
|
+
scopeKey: string;
|
|
127
|
+
version: number;
|
|
128
|
+
} | undefined;
|
|
129
|
+
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
130
|
+
} | undefined;
|
|
131
|
+
payload: string;
|
|
132
|
+
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
133
|
+
requestKey: string;
|
|
134
|
+
result?: {
|
|
135
|
+
operation: {
|
|
136
|
+
accountId: string;
|
|
137
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
138
|
+
scopeKey: string;
|
|
139
|
+
version: number;
|
|
140
|
+
};
|
|
141
|
+
status: "accepted";
|
|
142
|
+
} | {
|
|
143
|
+
enabled: boolean;
|
|
144
|
+
status: "unchanged";
|
|
145
|
+
} | {
|
|
146
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
147
|
+
retryable: false;
|
|
148
|
+
status: "conflict";
|
|
149
|
+
} | {
|
|
150
|
+
reason: "policy_invalid";
|
|
151
|
+
retryable: false;
|
|
152
|
+
status: "rejected";
|
|
153
|
+
} | {
|
|
154
|
+
reason: "provider_pending";
|
|
155
|
+
retryable: true;
|
|
156
|
+
status: "not_ready";
|
|
157
|
+
} | undefined;
|
|
158
|
+
}, {
|
|
159
|
+
requestKey: import("convex/values").VString<string, "required">;
|
|
160
|
+
payload: import("convex/values").VString<string, "required">;
|
|
161
|
+
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
162
|
+
result: import("convex/values").VUnion<{
|
|
163
|
+
operation: {
|
|
164
|
+
accountId: string;
|
|
165
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
166
|
+
scopeKey: string;
|
|
167
|
+
version: number;
|
|
168
|
+
};
|
|
169
|
+
status: "accepted";
|
|
170
|
+
} | {
|
|
171
|
+
enabled: boolean;
|
|
172
|
+
status: "unchanged";
|
|
173
|
+
} | {
|
|
174
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
175
|
+
retryable: false;
|
|
176
|
+
status: "conflict";
|
|
177
|
+
} | {
|
|
178
|
+
reason: "policy_invalid";
|
|
179
|
+
retryable: false;
|
|
180
|
+
status: "rejected";
|
|
181
|
+
} | {
|
|
182
|
+
reason: "provider_pending";
|
|
183
|
+
retryable: true;
|
|
184
|
+
status: "not_ready";
|
|
185
|
+
} | undefined, [import("convex/values").VObject<{
|
|
186
|
+
operation: {
|
|
187
|
+
accountId: string;
|
|
188
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
189
|
+
scopeKey: string;
|
|
190
|
+
version: number;
|
|
191
|
+
};
|
|
192
|
+
status: "accepted";
|
|
193
|
+
}, {
|
|
194
|
+
status: import("convex/values").VLiteral<"accepted", "required">;
|
|
195
|
+
operation: import("convex/values").VObject<{
|
|
196
|
+
accountId: string;
|
|
197
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
198
|
+
scopeKey: string;
|
|
199
|
+
version: number;
|
|
200
|
+
}, {
|
|
201
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
202
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
203
|
+
operationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations">, "required">;
|
|
204
|
+
version: import("convex/values").VFloat64<number, "required">;
|
|
205
|
+
}, "required", "accountId" | "operationId" | "scopeKey" | "version">;
|
|
206
|
+
}, "required", "operation" | "operation.accountId" | "operation.operationId" | "operation.scopeKey" | "operation.version" | "status">, import("convex/values").VObject<{
|
|
207
|
+
enabled: boolean;
|
|
208
|
+
status: "unchanged";
|
|
209
|
+
}, {
|
|
210
|
+
status: import("convex/values").VLiteral<"unchanged", "required">;
|
|
211
|
+
enabled: import("convex/values").VBoolean<boolean, "required">;
|
|
212
|
+
}, "required", "enabled" | "status">, import("convex/values").VObject<{
|
|
213
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
214
|
+
retryable: false;
|
|
215
|
+
status: "conflict";
|
|
216
|
+
}, {
|
|
217
|
+
status: import("convex/values").VLiteral<"conflict", "required">;
|
|
218
|
+
reason: import("convex/values").VUnion<"identity_changed" | "revision_changed" | "scope_busy", [import("convex/values").VLiteral<"scope_busy", "required">, import("convex/values").VLiteral<"identity_changed", "required">, import("convex/values").VLiteral<"revision_changed", "required">], "required", never>;
|
|
219
|
+
retryable: import("convex/values").VLiteral<false, "required">;
|
|
220
|
+
}, "required", "reason" | "retryable" | "status">, import("convex/values").VObject<{
|
|
221
|
+
reason: "policy_invalid";
|
|
222
|
+
retryable: false;
|
|
223
|
+
status: "rejected";
|
|
224
|
+
}, {
|
|
225
|
+
status: import("convex/values").VLiteral<"rejected", "required">;
|
|
226
|
+
reason: import("convex/values").VLiteral<"policy_invalid", "required">;
|
|
227
|
+
retryable: import("convex/values").VLiteral<false, "required">;
|
|
228
|
+
}, "required", "reason" | "retryable" | "status">, import("convex/values").VObject<{
|
|
229
|
+
reason: "provider_pending";
|
|
230
|
+
retryable: true;
|
|
231
|
+
status: "not_ready";
|
|
232
|
+
}, {
|
|
233
|
+
status: import("convex/values").VLiteral<"not_ready", "required">;
|
|
234
|
+
reason: import("convex/values").VLiteral<"provider_pending", "required">;
|
|
235
|
+
retryable: import("convex/values").VLiteral<true, "required">;
|
|
236
|
+
}, "required", "reason" | "retryable" | "status">], "optional", "enabled" | "operation" | "operation.accountId" | "operation.operationId" | "operation.scopeKey" | "operation.version" | "reason" | "retryable" | "status">;
|
|
237
|
+
imported: import("convex/values").VObject<{
|
|
238
|
+
operation?: {
|
|
239
|
+
accountId: string;
|
|
240
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
241
|
+
scopeKey: string;
|
|
242
|
+
version: number;
|
|
243
|
+
} | undefined;
|
|
244
|
+
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
245
|
+
} | undefined, {
|
|
246
|
+
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
247
|
+
operation: import("convex/values").VObject<{
|
|
248
|
+
accountId: string;
|
|
249
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
250
|
+
scopeKey: string;
|
|
251
|
+
version: number;
|
|
252
|
+
} | undefined, {
|
|
253
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
254
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
255
|
+
operationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations">, "required">;
|
|
256
|
+
version: import("convex/values").VFloat64<number, "required">;
|
|
257
|
+
}, "optional", "accountId" | "operationId" | "scopeKey" | "version">;
|
|
258
|
+
}, "optional", "operation" | "operation.accountId" | "operation.operationId" | "operation.scopeKey" | "operation.version" | "preparationId">;
|
|
259
|
+
}, "required", "imported" | "imported.operation" | "imported.operation.accountId" | "imported.operation.operationId" | "imported.operation.scopeKey" | "imported.operation.version" | "imported.preparationId" | "payload" | "preparationId" | "requestKey" | "result" | "result.enabled" | "result.operation" | "result.operation.accountId" | "result.operation.operationId" | "result.operation.scopeKey" | "result.operation.version" | "result.reason" | "result.retryable" | "result.status">, {
|
|
260
|
+
by_request: ["requestKey", "_creationTime"];
|
|
261
|
+
}, {}, {}>;
|
|
12
262
|
operationEvidencePayloads: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
13
263
|
commissionExposure?: {
|
|
14
264
|
chargeAmount: number;
|
|
@@ -1301,6 +1551,7 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1301
1551
|
maxCredit: number;
|
|
1302
1552
|
maxDebit: number;
|
|
1303
1553
|
pendingOperations: number;
|
|
1554
|
+
preparationSequence?: number | undefined;
|
|
1304
1555
|
scopeKey: string;
|
|
1305
1556
|
sourceGross?: number | undefined;
|
|
1306
1557
|
sourceId: string;
|
|
@@ -1320,6 +1571,7 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1320
1571
|
maxCredit: import("convex/values").VFloat64<number, "required">;
|
|
1321
1572
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
1322
1573
|
pendingOperations: import("convex/values").VFloat64<number, "required">;
|
|
1574
|
+
preparationSequence: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1323
1575
|
invoiceItemId: import("convex/values").VString<string | undefined, "optional">;
|
|
1324
1576
|
invoiceFunding: import("convex/values").VObject<{
|
|
1325
1577
|
sourceChargeId: string;
|
|
@@ -1331,7 +1583,7 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1331
1583
|
sourceProcessingFee: import("convex/values").VFloat64<number, "required">;
|
|
1332
1584
|
}, "optional", "sourceChargeId" | "sourceGross" | "sourceProcessingFee">;
|
|
1333
1585
|
status: import("convex/values").VUnion<"collected" | "collecting" | "open" | "released" | "releasing" | "sealed", [import("convex/values").VLiteral<"open", "required">, import("convex/values").VLiteral<"sealed", "required">, import("convex/values").VLiteral<"collecting", "required">, import("convex/values").VLiteral<"releasing", "required">, import("convex/values").VLiteral<"collected", "required">, import("convex/values").VLiteral<"released", "required">], "required", never>;
|
|
1334
|
-
}, "required", "accountId" | "amount" | "currency" | "groupKey" | "invoiceFunding" | "invoiceFunding.sourceChargeId" | "invoiceFunding.sourceGross" | "invoiceFunding.sourceProcessingFee" | "invoiceItemId" | "maxCredit" | "maxDebit" | "pendingOperations" | "scopeKey" | "sourceGross" | "sourceId" | "sourceKind" | "sourceProcessingFee" | "status">, {
|
|
1586
|
+
}, "required", "accountId" | "amount" | "currency" | "groupKey" | "invoiceFunding" | "invoiceFunding.sourceChargeId" | "invoiceFunding.sourceGross" | "invoiceFunding.sourceProcessingFee" | "invoiceItemId" | "maxCredit" | "maxDebit" | "pendingOperations" | "preparationSequence" | "scopeKey" | "sourceGross" | "sourceId" | "sourceKind" | "sourceProcessingFee" | "status">, {
|
|
1335
1587
|
by_key: ["groupKey", "_creationTime"];
|
|
1336
1588
|
}, {}, {}>;
|
|
1337
1589
|
recoveryReservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -2222,6 +2474,256 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
2222
2474
|
}>;
|
|
2223
2475
|
export declare function historical(currency?: string): Promise<{
|
|
2224
2476
|
t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
|
|
2477
|
+
balanceFundingPreparations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2478
|
+
accountId: string;
|
|
2479
|
+
activeOperationId?: import("convex/values").GenericId<"balanceFundingOperations"> | undefined;
|
|
2480
|
+
consentAt: number;
|
|
2481
|
+
consentReference: string;
|
|
2482
|
+
enabled: boolean;
|
|
2483
|
+
operationVersion: number;
|
|
2484
|
+
preparation: {
|
|
2485
|
+
customerAccount: string;
|
|
2486
|
+
paymentMethodId?: string | undefined;
|
|
2487
|
+
previousPaymentMethodId: string | null;
|
|
2488
|
+
previousPaymentMethodTypes: string[] | null;
|
|
2489
|
+
stripeSubscriptionId: string;
|
|
2490
|
+
};
|
|
2491
|
+
preparationOperationId?: import("convex/values").GenericId<"balanceFundingOperations"> | undefined;
|
|
2492
|
+
providerApiVersion: string;
|
|
2493
|
+
scopeKey: string;
|
|
2494
|
+
startsPaused: boolean;
|
|
2495
|
+
verified: boolean;
|
|
2496
|
+
}, {
|
|
2497
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
2498
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
2499
|
+
preparation: import("convex/values").VObject<{
|
|
2500
|
+
customerAccount: string;
|
|
2501
|
+
paymentMethodId?: string | undefined;
|
|
2502
|
+
previousPaymentMethodId: string | null;
|
|
2503
|
+
previousPaymentMethodTypes: string[] | null;
|
|
2504
|
+
stripeSubscriptionId: string;
|
|
2505
|
+
}, {
|
|
2506
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
2507
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
2508
|
+
previousPaymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
2509
|
+
previousPaymentMethodTypes: 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>;
|
|
2510
|
+
paymentMethodId: import("convex/values").VString<string | undefined, "optional">;
|
|
2511
|
+
}, "required", "customerAccount" | "paymentMethodId" | "previousPaymentMethodId" | "previousPaymentMethodTypes" | "stripeSubscriptionId">;
|
|
2512
|
+
consentAt: import("convex/values").VFloat64<number, "required">;
|
|
2513
|
+
consentReference: import("convex/values").VString<string, "required">;
|
|
2514
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
2515
|
+
enabled: import("convex/values").VBoolean<boolean, "required">;
|
|
2516
|
+
startsPaused: import("convex/values").VBoolean<boolean, "required">;
|
|
2517
|
+
verified: import("convex/values").VBoolean<boolean, "required">;
|
|
2518
|
+
preparationOperationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations"> | undefined, "optional">;
|
|
2519
|
+
operationVersion: import("convex/values").VFloat64<number, "required">;
|
|
2520
|
+
activeOperationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations"> | undefined, "optional">;
|
|
2521
|
+
}, "required", "accountId" | "activeOperationId" | "consentAt" | "consentReference" | "enabled" | "operationVersion" | "preparation" | "preparation.customerAccount" | "preparation.paymentMethodId" | "preparation.previousPaymentMethodId" | "preparation.previousPaymentMethodTypes" | "preparation.stripeSubscriptionId" | "preparationOperationId" | "providerApiVersion" | "scopeKey" | "startsPaused" | "verified">, {
|
|
2522
|
+
by_account_subscription: ["accountId", "preparation.stripeSubscriptionId", "_creationTime"];
|
|
2523
|
+
}, {}, {}>;
|
|
2524
|
+
balanceFundingOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2525
|
+
accountId: string;
|
|
2526
|
+
cancelRequested: boolean;
|
|
2527
|
+
enabled: boolean;
|
|
2528
|
+
failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
|
|
2529
|
+
kind: "apply" | "prepare";
|
|
2530
|
+
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
2531
|
+
providerKey: string;
|
|
2532
|
+
providerKeys: {
|
|
2533
|
+
attach?: string | undefined;
|
|
2534
|
+
create?: string | undefined;
|
|
2535
|
+
disable: string;
|
|
2536
|
+
enable: string;
|
|
2537
|
+
};
|
|
2538
|
+
receipt?: {
|
|
2539
|
+
customerAccount: string;
|
|
2540
|
+
paymentMethodId: string | null;
|
|
2541
|
+
paymentMethodTypes: string[] | null;
|
|
2542
|
+
providerApiVersion: string;
|
|
2543
|
+
stripeSubscriptionId: string;
|
|
2544
|
+
} | undefined;
|
|
2545
|
+
scopeKey: string;
|
|
2546
|
+
state: "canceled" | "failed" | "pending" | "running" | "succeeded" | "unknown";
|
|
2547
|
+
version: number;
|
|
2548
|
+
}, {
|
|
2549
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
2550
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
2551
|
+
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
2552
|
+
version: import("convex/values").VFloat64<number, "required">;
|
|
2553
|
+
enabled: import("convex/values").VBoolean<boolean, "required">;
|
|
2554
|
+
kind: import("convex/values").VUnion<"apply" | "prepare", [import("convex/values").VLiteral<"prepare", "required">, import("convex/values").VLiteral<"apply", "required">], "required", never>;
|
|
2555
|
+
providerKey: import("convex/values").VString<string, "required">;
|
|
2556
|
+
state: import("convex/values").VUnion<"canceled" | "failed" | "pending" | "running" | "succeeded" | "unknown", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"succeeded", "required">, import("convex/values").VLiteral<"canceled", "required">, import("convex/values").VLiteral<"failed", "required">], "required", never>;
|
|
2557
|
+
cancelRequested: import("convex/values").VBoolean<boolean, "required">;
|
|
2558
|
+
failureCode: import("convex/values").VUnion<"invalid_scope" | "policy_invalid" | "unsupported_source" | undefined, [import("convex/values").VLiteral<"invalid_scope", "required">, import("convex/values").VLiteral<"unsupported_source", "required">, import("convex/values").VLiteral<"policy_invalid", "required">], "optional", never>;
|
|
2559
|
+
providerKeys: import("convex/values").VObject<{
|
|
2560
|
+
attach?: string | undefined;
|
|
2561
|
+
create?: string | undefined;
|
|
2562
|
+
disable: string;
|
|
2563
|
+
enable: string;
|
|
2564
|
+
}, {
|
|
2565
|
+
enable: import("convex/values").VString<string, "required">;
|
|
2566
|
+
disable: import("convex/values").VString<string, "required">;
|
|
2567
|
+
create: import("convex/values").VString<string | undefined, "optional">;
|
|
2568
|
+
attach: import("convex/values").VString<string | undefined, "optional">;
|
|
2569
|
+
}, "required", "attach" | "create" | "disable" | "enable">;
|
|
2570
|
+
receipt: import("convex/values").VObject<{
|
|
2571
|
+
customerAccount: string;
|
|
2572
|
+
paymentMethodId: string | null;
|
|
2573
|
+
paymentMethodTypes: string[] | null;
|
|
2574
|
+
providerApiVersion: string;
|
|
2575
|
+
stripeSubscriptionId: string;
|
|
2576
|
+
} | undefined, {
|
|
2577
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
2578
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
2579
|
+
paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
2580
|
+
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>;
|
|
2581
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
2582
|
+
}, "optional", "customerAccount" | "paymentMethodId" | "paymentMethodTypes" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
2583
|
+
}, "required", "accountId" | "cancelRequested" | "enabled" | "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">, {
|
|
2584
|
+
by_preparation_version: ["preparationId", "version", "_creationTime"];
|
|
2585
|
+
}, {}, {}>;
|
|
2586
|
+
balanceFundingRequests: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2587
|
+
imported?: {
|
|
2588
|
+
operation?: {
|
|
2589
|
+
accountId: string;
|
|
2590
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
2591
|
+
scopeKey: string;
|
|
2592
|
+
version: number;
|
|
2593
|
+
} | undefined;
|
|
2594
|
+
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
2595
|
+
} | undefined;
|
|
2596
|
+
payload: string;
|
|
2597
|
+
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
2598
|
+
requestKey: string;
|
|
2599
|
+
result?: {
|
|
2600
|
+
operation: {
|
|
2601
|
+
accountId: string;
|
|
2602
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
2603
|
+
scopeKey: string;
|
|
2604
|
+
version: number;
|
|
2605
|
+
};
|
|
2606
|
+
status: "accepted";
|
|
2607
|
+
} | {
|
|
2608
|
+
enabled: boolean;
|
|
2609
|
+
status: "unchanged";
|
|
2610
|
+
} | {
|
|
2611
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2612
|
+
retryable: false;
|
|
2613
|
+
status: "conflict";
|
|
2614
|
+
} | {
|
|
2615
|
+
reason: "policy_invalid";
|
|
2616
|
+
retryable: false;
|
|
2617
|
+
status: "rejected";
|
|
2618
|
+
} | {
|
|
2619
|
+
reason: "provider_pending";
|
|
2620
|
+
retryable: true;
|
|
2621
|
+
status: "not_ready";
|
|
2622
|
+
} | undefined;
|
|
2623
|
+
}, {
|
|
2624
|
+
requestKey: import("convex/values").VString<string, "required">;
|
|
2625
|
+
payload: import("convex/values").VString<string, "required">;
|
|
2626
|
+
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
2627
|
+
result: import("convex/values").VUnion<{
|
|
2628
|
+
operation: {
|
|
2629
|
+
accountId: string;
|
|
2630
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
2631
|
+
scopeKey: string;
|
|
2632
|
+
version: number;
|
|
2633
|
+
};
|
|
2634
|
+
status: "accepted";
|
|
2635
|
+
} | {
|
|
2636
|
+
enabled: boolean;
|
|
2637
|
+
status: "unchanged";
|
|
2638
|
+
} | {
|
|
2639
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2640
|
+
retryable: false;
|
|
2641
|
+
status: "conflict";
|
|
2642
|
+
} | {
|
|
2643
|
+
reason: "policy_invalid";
|
|
2644
|
+
retryable: false;
|
|
2645
|
+
status: "rejected";
|
|
2646
|
+
} | {
|
|
2647
|
+
reason: "provider_pending";
|
|
2648
|
+
retryable: true;
|
|
2649
|
+
status: "not_ready";
|
|
2650
|
+
} | undefined, [import("convex/values").VObject<{
|
|
2651
|
+
operation: {
|
|
2652
|
+
accountId: string;
|
|
2653
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
2654
|
+
scopeKey: string;
|
|
2655
|
+
version: number;
|
|
2656
|
+
};
|
|
2657
|
+
status: "accepted";
|
|
2658
|
+
}, {
|
|
2659
|
+
status: import("convex/values").VLiteral<"accepted", "required">;
|
|
2660
|
+
operation: import("convex/values").VObject<{
|
|
2661
|
+
accountId: string;
|
|
2662
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
2663
|
+
scopeKey: string;
|
|
2664
|
+
version: number;
|
|
2665
|
+
}, {
|
|
2666
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
2667
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
2668
|
+
operationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations">, "required">;
|
|
2669
|
+
version: import("convex/values").VFloat64<number, "required">;
|
|
2670
|
+
}, "required", "accountId" | "operationId" | "scopeKey" | "version">;
|
|
2671
|
+
}, "required", "operation" | "operation.accountId" | "operation.operationId" | "operation.scopeKey" | "operation.version" | "status">, import("convex/values").VObject<{
|
|
2672
|
+
enabled: boolean;
|
|
2673
|
+
status: "unchanged";
|
|
2674
|
+
}, {
|
|
2675
|
+
status: import("convex/values").VLiteral<"unchanged", "required">;
|
|
2676
|
+
enabled: import("convex/values").VBoolean<boolean, "required">;
|
|
2677
|
+
}, "required", "enabled" | "status">, import("convex/values").VObject<{
|
|
2678
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2679
|
+
retryable: false;
|
|
2680
|
+
status: "conflict";
|
|
2681
|
+
}, {
|
|
2682
|
+
status: import("convex/values").VLiteral<"conflict", "required">;
|
|
2683
|
+
reason: import("convex/values").VUnion<"identity_changed" | "revision_changed" | "scope_busy", [import("convex/values").VLiteral<"scope_busy", "required">, import("convex/values").VLiteral<"identity_changed", "required">, import("convex/values").VLiteral<"revision_changed", "required">], "required", never>;
|
|
2684
|
+
retryable: import("convex/values").VLiteral<false, "required">;
|
|
2685
|
+
}, "required", "reason" | "retryable" | "status">, import("convex/values").VObject<{
|
|
2686
|
+
reason: "policy_invalid";
|
|
2687
|
+
retryable: false;
|
|
2688
|
+
status: "rejected";
|
|
2689
|
+
}, {
|
|
2690
|
+
status: import("convex/values").VLiteral<"rejected", "required">;
|
|
2691
|
+
reason: import("convex/values").VLiteral<"policy_invalid", "required">;
|
|
2692
|
+
retryable: import("convex/values").VLiteral<false, "required">;
|
|
2693
|
+
}, "required", "reason" | "retryable" | "status">, import("convex/values").VObject<{
|
|
2694
|
+
reason: "provider_pending";
|
|
2695
|
+
retryable: true;
|
|
2696
|
+
status: "not_ready";
|
|
2697
|
+
}, {
|
|
2698
|
+
status: import("convex/values").VLiteral<"not_ready", "required">;
|
|
2699
|
+
reason: import("convex/values").VLiteral<"provider_pending", "required">;
|
|
2700
|
+
retryable: import("convex/values").VLiteral<true, "required">;
|
|
2701
|
+
}, "required", "reason" | "retryable" | "status">], "optional", "enabled" | "operation" | "operation.accountId" | "operation.operationId" | "operation.scopeKey" | "operation.version" | "reason" | "retryable" | "status">;
|
|
2702
|
+
imported: import("convex/values").VObject<{
|
|
2703
|
+
operation?: {
|
|
2704
|
+
accountId: string;
|
|
2705
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
2706
|
+
scopeKey: string;
|
|
2707
|
+
version: number;
|
|
2708
|
+
} | undefined;
|
|
2709
|
+
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
2710
|
+
} | undefined, {
|
|
2711
|
+
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
2712
|
+
operation: import("convex/values").VObject<{
|
|
2713
|
+
accountId: string;
|
|
2714
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
2715
|
+
scopeKey: string;
|
|
2716
|
+
version: number;
|
|
2717
|
+
} | undefined, {
|
|
2718
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
2719
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
2720
|
+
operationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations">, "required">;
|
|
2721
|
+
version: import("convex/values").VFloat64<number, "required">;
|
|
2722
|
+
}, "optional", "accountId" | "operationId" | "scopeKey" | "version">;
|
|
2723
|
+
}, "optional", "operation" | "operation.accountId" | "operation.operationId" | "operation.scopeKey" | "operation.version" | "preparationId">;
|
|
2724
|
+
}, "required", "imported" | "imported.operation" | "imported.operation.accountId" | "imported.operation.operationId" | "imported.operation.scopeKey" | "imported.operation.version" | "imported.preparationId" | "payload" | "preparationId" | "requestKey" | "result" | "result.enabled" | "result.operation" | "result.operation.accountId" | "result.operation.operationId" | "result.operation.scopeKey" | "result.operation.version" | "result.reason" | "result.retryable" | "result.status">, {
|
|
2725
|
+
by_request: ["requestKey", "_creationTime"];
|
|
2726
|
+
}, {}, {}>;
|
|
2225
2727
|
operationEvidencePayloads: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2226
2728
|
commissionExposure?: {
|
|
2227
2729
|
chargeAmount: number;
|
|
@@ -3514,6 +4016,7 @@ export declare function historical(currency?: string): Promise<{
|
|
|
3514
4016
|
maxCredit: number;
|
|
3515
4017
|
maxDebit: number;
|
|
3516
4018
|
pendingOperations: number;
|
|
4019
|
+
preparationSequence?: number | undefined;
|
|
3517
4020
|
scopeKey: string;
|
|
3518
4021
|
sourceGross?: number | undefined;
|
|
3519
4022
|
sourceId: string;
|
|
@@ -3533,6 +4036,7 @@ export declare function historical(currency?: string): Promise<{
|
|
|
3533
4036
|
maxCredit: import("convex/values").VFloat64<number, "required">;
|
|
3534
4037
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
3535
4038
|
pendingOperations: import("convex/values").VFloat64<number, "required">;
|
|
4039
|
+
preparationSequence: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3536
4040
|
invoiceItemId: import("convex/values").VString<string | undefined, "optional">;
|
|
3537
4041
|
invoiceFunding: import("convex/values").VObject<{
|
|
3538
4042
|
sourceChargeId: string;
|
|
@@ -3544,7 +4048,7 @@ export declare function historical(currency?: string): Promise<{
|
|
|
3544
4048
|
sourceProcessingFee: import("convex/values").VFloat64<number, "required">;
|
|
3545
4049
|
}, "optional", "sourceChargeId" | "sourceGross" | "sourceProcessingFee">;
|
|
3546
4050
|
status: import("convex/values").VUnion<"collected" | "collecting" | "open" | "released" | "releasing" | "sealed", [import("convex/values").VLiteral<"open", "required">, import("convex/values").VLiteral<"sealed", "required">, import("convex/values").VLiteral<"collecting", "required">, import("convex/values").VLiteral<"releasing", "required">, import("convex/values").VLiteral<"collected", "required">, import("convex/values").VLiteral<"released", "required">], "required", never>;
|
|
3547
|
-
}, "required", "accountId" | "amount" | "currency" | "groupKey" | "invoiceFunding" | "invoiceFunding.sourceChargeId" | "invoiceFunding.sourceGross" | "invoiceFunding.sourceProcessingFee" | "invoiceItemId" | "maxCredit" | "maxDebit" | "pendingOperations" | "scopeKey" | "sourceGross" | "sourceId" | "sourceKind" | "sourceProcessingFee" | "status">, {
|
|
4051
|
+
}, "required", "accountId" | "amount" | "currency" | "groupKey" | "invoiceFunding" | "invoiceFunding.sourceChargeId" | "invoiceFunding.sourceGross" | "invoiceFunding.sourceProcessingFee" | "invoiceItemId" | "maxCredit" | "maxDebit" | "pendingOperations" | "preparationSequence" | "scopeKey" | "sourceGross" | "sourceId" | "sourceKind" | "sourceProcessingFee" | "status">, {
|
|
3548
4052
|
by_key: ["groupKey", "_creationTime"];
|
|
3549
4053
|
}, {}, {}>;
|
|
3550
4054
|
recoveryReservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutAdoptionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutAdoptionTestHelpers.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAKvD,eAAO,MAAM,SAAS,EAIN,SAAS,CAAC;AAC1B,eAAO,MAAM,KAAK;IAChB,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,sBAAsB;CACvB,CAAC;AACF,wBAAsB,KAAK,CAAC,OAAO,WAAa,EAAE,QAAQ,SAAQ
|
|
1
|
+
{"version":3,"file":"payoutAdoptionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutAdoptionTestHelpers.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAKvD,eAAO,MAAM,SAAS,EAIN,SAAS,CAAC;AAC1B,eAAO,MAAM,KAAK;IAChB,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,sBAAsB;CACvB,CAAC;AACF,wBAAsB,KAAK,CAAC,OAAO,WAAa,EAAE,QAAQ,SAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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