@fantastic.dev/better-stripe 0.37.1 → 0.39.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 +53 -0
- package/MIGRATION.md +9 -0
- package/README.md +25 -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/core/accountCapabilities.d.ts +20 -0
- package/dist/client/core/accountCapabilities.d.ts.map +1 -0
- package/dist/client/core/accountCapabilities.js +7 -0
- package/dist/client/core/accountCapabilities.js.map +1 -0
- package/dist/client/core/accountConfigurations.d.ts +46 -0
- package/dist/client/core/accountConfigurations.d.ts.map +1 -0
- package/dist/client/core/accountConfigurations.js +99 -0
- package/dist/client/core/accountConfigurations.js.map +1 -0
- package/dist/client/core/accountLinks.d.ts +29 -2
- package/dist/client/core/accountLinks.d.ts.map +1 -1
- package/dist/client/core/accountLinks.js +56 -4
- package/dist/client/core/accountLinks.js.map +1 -1
- package/dist/client/core/accounts.d.ts +2 -36
- package/dist/client/core/accounts.d.ts.map +1 -1
- package/dist/client/core/accounts.js +3 -73
- package/dist/client/core/accounts.js.map +1 -1
- package/dist/client/core/billingPortalClient.d.ts +14 -0
- package/dist/client/core/billingPortalClient.d.ts.map +1 -0
- package/dist/client/core/billingPortalClient.js +18 -0
- package/dist/client/core/billingPortalClient.js.map +1 -0
- package/dist/client/costRecovery-invoices.d.ts +4 -4
- package/dist/client/costRecovery.d.ts +19 -1
- 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/financialOutcomes/adapters.d.ts +18 -0
- package/dist/client/financialOutcomes/adapters.d.ts.map +1 -0
- package/dist/client/financialOutcomes/adapters.js +60 -0
- package/dist/client/financialOutcomes/adapters.js.map +1 -0
- package/dist/client/financialOutcomes/contracts.d.ts +42 -0
- package/dist/client/financialOutcomes/contracts.d.ts.map +1 -0
- package/dist/client/financialOutcomes/contracts.js +39 -0
- package/dist/client/financialOutcomes/contracts.js.map +1 -0
- package/dist/client/financialOutcomes/errors.d.ts +6 -0
- package/dist/client/financialOutcomes/errors.d.ts.map +1 -0
- package/dist/client/financialOutcomes/errors.js +22 -0
- package/dist/client/financialOutcomes/errors.js.map +1 -0
- package/dist/client/financialOutcomes/index.d.ts +6 -0
- package/dist/client/financialOutcomes/index.d.ts.map +1 -0
- package/dist/client/financialOutcomes/index.js +4 -0
- package/dist/client/financialOutcomes/index.js.map +1 -0
- package/dist/client/financialOutcomes/retry.d.ts +24 -0
- package/dist/client/financialOutcomes/retry.d.ts.map +1 -0
- package/dist/client/financialOutcomes/retry.js +31 -0
- package/dist/client/financialOutcomes/retry.js.map +1 -0
- package/dist/client/index.d.ts +21 -111
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +11 -85
- package/dist/client/index.js.map +1 -1
- 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/products/catalog.d.ts +26 -0
- package/dist/client/products/catalog.d.ts.map +1 -0
- package/dist/client/products/catalog.js +140 -0
- package/dist/client/products/catalog.js.map +1 -0
- package/dist/client/products/catalogClient.d.ts +109 -0
- package/dist/client/products/catalogClient.d.ts.map +1 -0
- package/dist/client/products/catalogClient.js +84 -0
- package/dist/client/products/catalogClient.js.map +1 -0
- package/dist/client/products/prices.d.ts +1 -0
- package/dist/client/products/prices.d.ts.map +1 -1
- package/dist/client/products/prices.js +1 -0
- package/dist/client/products/prices.js.map +1 -1
- package/dist/client/publicTypes.d.ts +2 -0
- package/dist/client/publicTypes.d.ts.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 +535 -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/products/mutations.d.ts +9 -0
- package/dist/component/products/mutations.d.ts.map +1 -1
- package/dist/component/products/mutations.js +31 -2
- package/dist/component/products/mutations.js.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/read-contracts.md +33 -0
- package/package.json +4 -2
- package/src/client/core/account-session-client.test.ts +74 -0
- package/src/client/core/accountCapabilities.ts +22 -0
- package/src/client/core/accountConfigurations.test.ts +183 -0
- package/src/client/core/accountConfigurations.ts +161 -0
- package/src/client/core/accountLinks.test.ts +6 -2
- package/src/client/core/accountLinks.ts +122 -5
- package/src/client/core/accounts.ts +8 -115
- package/src/client/core/billingPortal.test.ts +247 -0
- package/src/client/core/billingPortalClient.ts +35 -0
- package/src/client/costRecovery.test.ts +34 -0
- package/src/client/costRecovery.ts +21 -0
- package/src/client/financialOutcomes/adapters.ts +88 -0
- package/src/client/financialOutcomes/contracts.ts +43 -0
- package/src/client/financialOutcomes/errors.ts +29 -0
- package/src/client/financialOutcomes/index.ts +5 -0
- package/src/client/financialOutcomes/outcomes.test.ts +254 -0
- package/src/client/financialOutcomes/retry.ts +52 -0
- package/src/client/index.test.ts +0 -64
- package/src/client/index.ts +35 -185
- 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/products/catalog.test.ts +389 -0
- package/src/client/products/catalog.ts +225 -0
- package/src/client/products/catalogClient.ts +172 -0
- package/src/client/products/prices.test.ts +24 -0
- package/src/client/products/prices.ts +2 -0
- package/src/client/publicTypes.ts +13 -0
- package/src/component/_generated/api.ts +27 -1
- package/src/component/_generated/component.ts +707 -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/products/mutations.ts +39 -2
- package/src/component/schema.ts +8 -0
|
@@ -10,6 +10,256 @@ export declare const scope: {
|
|
|
10
10
|
};
|
|
11
11
|
export declare function setup(amounts?: number[]): Promise<{
|
|
12
12
|
t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
|
|
13
|
+
balanceFundingPreparations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
14
|
+
accountId: string;
|
|
15
|
+
activeOperationId?: import("convex/values").GenericId<"balanceFundingOperations"> | undefined;
|
|
16
|
+
consentAt: number;
|
|
17
|
+
consentReference: string;
|
|
18
|
+
enabled: boolean;
|
|
19
|
+
operationVersion: number;
|
|
20
|
+
preparation: {
|
|
21
|
+
customerAccount: string;
|
|
22
|
+
paymentMethodId?: string | undefined;
|
|
23
|
+
previousPaymentMethodId: string | null;
|
|
24
|
+
previousPaymentMethodTypes: string[] | null;
|
|
25
|
+
stripeSubscriptionId: string;
|
|
26
|
+
};
|
|
27
|
+
preparationOperationId?: import("convex/values").GenericId<"balanceFundingOperations"> | undefined;
|
|
28
|
+
providerApiVersion: string;
|
|
29
|
+
scopeKey: string;
|
|
30
|
+
startsPaused: boolean;
|
|
31
|
+
verified: boolean;
|
|
32
|
+
}, {
|
|
33
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
34
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
35
|
+
preparation: import("convex/values").VObject<{
|
|
36
|
+
customerAccount: string;
|
|
37
|
+
paymentMethodId?: string | undefined;
|
|
38
|
+
previousPaymentMethodId: string | null;
|
|
39
|
+
previousPaymentMethodTypes: string[] | null;
|
|
40
|
+
stripeSubscriptionId: string;
|
|
41
|
+
}, {
|
|
42
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
43
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
44
|
+
previousPaymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
45
|
+
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>;
|
|
46
|
+
paymentMethodId: import("convex/values").VString<string | undefined, "optional">;
|
|
47
|
+
}, "required", "customerAccount" | "paymentMethodId" | "previousPaymentMethodId" | "previousPaymentMethodTypes" | "stripeSubscriptionId">;
|
|
48
|
+
consentAt: import("convex/values").VFloat64<number, "required">;
|
|
49
|
+
consentReference: import("convex/values").VString<string, "required">;
|
|
50
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
51
|
+
enabled: import("convex/values").VBoolean<boolean, "required">;
|
|
52
|
+
startsPaused: import("convex/values").VBoolean<boolean, "required">;
|
|
53
|
+
verified: import("convex/values").VBoolean<boolean, "required">;
|
|
54
|
+
preparationOperationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations"> | undefined, "optional">;
|
|
55
|
+
operationVersion: import("convex/values").VFloat64<number, "required">;
|
|
56
|
+
activeOperationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations"> | undefined, "optional">;
|
|
57
|
+
}, "required", "accountId" | "activeOperationId" | "consentAt" | "consentReference" | "enabled" | "operationVersion" | "preparation" | "preparation.customerAccount" | "preparation.paymentMethodId" | "preparation.previousPaymentMethodId" | "preparation.previousPaymentMethodTypes" | "preparation.stripeSubscriptionId" | "preparationOperationId" | "providerApiVersion" | "scopeKey" | "startsPaused" | "verified">, {
|
|
58
|
+
by_account_subscription: ["accountId", "preparation.stripeSubscriptionId", "_creationTime"];
|
|
59
|
+
}, {}, {}>;
|
|
60
|
+
balanceFundingOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
61
|
+
accountId: string;
|
|
62
|
+
cancelRequested: boolean;
|
|
63
|
+
enabled: boolean;
|
|
64
|
+
failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
|
|
65
|
+
kind: "apply" | "prepare";
|
|
66
|
+
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
67
|
+
providerKey: string;
|
|
68
|
+
providerKeys: {
|
|
69
|
+
attach?: string | undefined;
|
|
70
|
+
create?: string | undefined;
|
|
71
|
+
disable: string;
|
|
72
|
+
enable: string;
|
|
73
|
+
};
|
|
74
|
+
receipt?: {
|
|
75
|
+
customerAccount: string;
|
|
76
|
+
paymentMethodId: string | null;
|
|
77
|
+
paymentMethodTypes: string[] | null;
|
|
78
|
+
providerApiVersion: string;
|
|
79
|
+
stripeSubscriptionId: string;
|
|
80
|
+
} | undefined;
|
|
81
|
+
scopeKey: string;
|
|
82
|
+
state: "canceled" | "failed" | "pending" | "running" | "succeeded" | "unknown";
|
|
83
|
+
version: number;
|
|
84
|
+
}, {
|
|
85
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
86
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
87
|
+
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
88
|
+
version: import("convex/values").VFloat64<number, "required">;
|
|
89
|
+
enabled: import("convex/values").VBoolean<boolean, "required">;
|
|
90
|
+
kind: import("convex/values").VUnion<"apply" | "prepare", [import("convex/values").VLiteral<"prepare", "required">, import("convex/values").VLiteral<"apply", "required">], "required", never>;
|
|
91
|
+
providerKey: import("convex/values").VString<string, "required">;
|
|
92
|
+
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>;
|
|
93
|
+
cancelRequested: import("convex/values").VBoolean<boolean, "required">;
|
|
94
|
+
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>;
|
|
95
|
+
providerKeys: import("convex/values").VObject<{
|
|
96
|
+
attach?: string | undefined;
|
|
97
|
+
create?: string | undefined;
|
|
98
|
+
disable: string;
|
|
99
|
+
enable: string;
|
|
100
|
+
}, {
|
|
101
|
+
enable: import("convex/values").VString<string, "required">;
|
|
102
|
+
disable: import("convex/values").VString<string, "required">;
|
|
103
|
+
create: import("convex/values").VString<string | undefined, "optional">;
|
|
104
|
+
attach: import("convex/values").VString<string | undefined, "optional">;
|
|
105
|
+
}, "required", "attach" | "create" | "disable" | "enable">;
|
|
106
|
+
receipt: import("convex/values").VObject<{
|
|
107
|
+
customerAccount: string;
|
|
108
|
+
paymentMethodId: string | null;
|
|
109
|
+
paymentMethodTypes: string[] | null;
|
|
110
|
+
providerApiVersion: string;
|
|
111
|
+
stripeSubscriptionId: string;
|
|
112
|
+
} | undefined, {
|
|
113
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
114
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
115
|
+
paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
116
|
+
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>;
|
|
117
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
118
|
+
}, "optional", "customerAccount" | "paymentMethodId" | "paymentMethodTypes" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
119
|
+
}, "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">, {
|
|
120
|
+
by_preparation_version: ["preparationId", "version", "_creationTime"];
|
|
121
|
+
}, {}, {}>;
|
|
122
|
+
balanceFundingRequests: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
123
|
+
imported?: {
|
|
124
|
+
operation?: {
|
|
125
|
+
accountId: string;
|
|
126
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
127
|
+
scopeKey: string;
|
|
128
|
+
version: number;
|
|
129
|
+
} | undefined;
|
|
130
|
+
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
131
|
+
} | undefined;
|
|
132
|
+
payload: string;
|
|
133
|
+
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
134
|
+
requestKey: string;
|
|
135
|
+
result?: {
|
|
136
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
137
|
+
retryable: false;
|
|
138
|
+
status: "conflict";
|
|
139
|
+
} | {
|
|
140
|
+
reason: "policy_invalid";
|
|
141
|
+
retryable: false;
|
|
142
|
+
status: "rejected";
|
|
143
|
+
} | {
|
|
144
|
+
operation: {
|
|
145
|
+
accountId: string;
|
|
146
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
147
|
+
scopeKey: string;
|
|
148
|
+
version: number;
|
|
149
|
+
};
|
|
150
|
+
status: "accepted";
|
|
151
|
+
} | {
|
|
152
|
+
enabled: boolean;
|
|
153
|
+
status: "unchanged";
|
|
154
|
+
} | {
|
|
155
|
+
reason: "provider_pending";
|
|
156
|
+
retryable: true;
|
|
157
|
+
status: "not_ready";
|
|
158
|
+
} | undefined;
|
|
159
|
+
}, {
|
|
160
|
+
requestKey: import("convex/values").VString<string, "required">;
|
|
161
|
+
payload: import("convex/values").VString<string, "required">;
|
|
162
|
+
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
163
|
+
result: import("convex/values").VUnion<{
|
|
164
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
165
|
+
retryable: false;
|
|
166
|
+
status: "conflict";
|
|
167
|
+
} | {
|
|
168
|
+
reason: "policy_invalid";
|
|
169
|
+
retryable: false;
|
|
170
|
+
status: "rejected";
|
|
171
|
+
} | {
|
|
172
|
+
operation: {
|
|
173
|
+
accountId: string;
|
|
174
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
175
|
+
scopeKey: string;
|
|
176
|
+
version: number;
|
|
177
|
+
};
|
|
178
|
+
status: "accepted";
|
|
179
|
+
} | {
|
|
180
|
+
enabled: boolean;
|
|
181
|
+
status: "unchanged";
|
|
182
|
+
} | {
|
|
183
|
+
reason: "provider_pending";
|
|
184
|
+
retryable: true;
|
|
185
|
+
status: "not_ready";
|
|
186
|
+
} | undefined, [import("convex/values").VObject<{
|
|
187
|
+
operation: {
|
|
188
|
+
accountId: string;
|
|
189
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
190
|
+
scopeKey: string;
|
|
191
|
+
version: number;
|
|
192
|
+
};
|
|
193
|
+
status: "accepted";
|
|
194
|
+
}, {
|
|
195
|
+
status: import("convex/values").VLiteral<"accepted", "required">;
|
|
196
|
+
operation: import("convex/values").VObject<{
|
|
197
|
+
accountId: string;
|
|
198
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
199
|
+
scopeKey: string;
|
|
200
|
+
version: number;
|
|
201
|
+
}, {
|
|
202
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
203
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
204
|
+
operationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations">, "required">;
|
|
205
|
+
version: import("convex/values").VFloat64<number, "required">;
|
|
206
|
+
}, "required", "accountId" | "operationId" | "scopeKey" | "version">;
|
|
207
|
+
}, "required", "operation" | "operation.accountId" | "operation.operationId" | "operation.scopeKey" | "operation.version" | "status">, import("convex/values").VObject<{
|
|
208
|
+
enabled: boolean;
|
|
209
|
+
status: "unchanged";
|
|
210
|
+
}, {
|
|
211
|
+
status: import("convex/values").VLiteral<"unchanged", "required">;
|
|
212
|
+
enabled: import("convex/values").VBoolean<boolean, "required">;
|
|
213
|
+
}, "required", "enabled" | "status">, import("convex/values").VObject<{
|
|
214
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
215
|
+
retryable: false;
|
|
216
|
+
status: "conflict";
|
|
217
|
+
}, {
|
|
218
|
+
status: import("convex/values").VLiteral<"conflict", "required">;
|
|
219
|
+
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>;
|
|
220
|
+
retryable: import("convex/values").VLiteral<false, "required">;
|
|
221
|
+
}, "required", "reason" | "retryable" | "status">, import("convex/values").VObject<{
|
|
222
|
+
reason: "policy_invalid";
|
|
223
|
+
retryable: false;
|
|
224
|
+
status: "rejected";
|
|
225
|
+
}, {
|
|
226
|
+
status: import("convex/values").VLiteral<"rejected", "required">;
|
|
227
|
+
reason: import("convex/values").VLiteral<"policy_invalid", "required">;
|
|
228
|
+
retryable: import("convex/values").VLiteral<false, "required">;
|
|
229
|
+
}, "required", "reason" | "retryable" | "status">, import("convex/values").VObject<{
|
|
230
|
+
reason: "provider_pending";
|
|
231
|
+
retryable: true;
|
|
232
|
+
status: "not_ready";
|
|
233
|
+
}, {
|
|
234
|
+
status: import("convex/values").VLiteral<"not_ready", "required">;
|
|
235
|
+
reason: import("convex/values").VLiteral<"provider_pending", "required">;
|
|
236
|
+
retryable: import("convex/values").VLiteral<true, "required">;
|
|
237
|
+
}, "required", "reason" | "retryable" | "status">], "optional", "enabled" | "operation" | "operation.accountId" | "operation.operationId" | "operation.scopeKey" | "operation.version" | "reason" | "retryable" | "status">;
|
|
238
|
+
imported: import("convex/values").VObject<{
|
|
239
|
+
operation?: {
|
|
240
|
+
accountId: string;
|
|
241
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
242
|
+
scopeKey: string;
|
|
243
|
+
version: number;
|
|
244
|
+
} | undefined;
|
|
245
|
+
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
246
|
+
} | undefined, {
|
|
247
|
+
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
248
|
+
operation: import("convex/values").VObject<{
|
|
249
|
+
accountId: string;
|
|
250
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
251
|
+
scopeKey: string;
|
|
252
|
+
version: number;
|
|
253
|
+
} | undefined, {
|
|
254
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
255
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
256
|
+
operationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations">, "required">;
|
|
257
|
+
version: import("convex/values").VFloat64<number, "required">;
|
|
258
|
+
}, "optional", "accountId" | "operationId" | "scopeKey" | "version">;
|
|
259
|
+
}, "optional", "operation" | "operation.accountId" | "operation.operationId" | "operation.scopeKey" | "operation.version" | "preparationId">;
|
|
260
|
+
}, "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">, {
|
|
261
|
+
by_request: ["requestKey", "_creationTime"];
|
|
262
|
+
}, {}, {}>;
|
|
13
263
|
operationEvidencePayloads: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
14
264
|
commissionExposure?: {
|
|
15
265
|
chargeAmount: number;
|
|
@@ -1302,6 +1552,7 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
1302
1552
|
maxCredit: number;
|
|
1303
1553
|
maxDebit: number;
|
|
1304
1554
|
pendingOperations: number;
|
|
1555
|
+
preparationSequence?: number | undefined;
|
|
1305
1556
|
scopeKey: string;
|
|
1306
1557
|
sourceGross?: number | undefined;
|
|
1307
1558
|
sourceId: string;
|
|
@@ -1321,6 +1572,7 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
1321
1572
|
maxCredit: import("convex/values").VFloat64<number, "required">;
|
|
1322
1573
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
1323
1574
|
pendingOperations: import("convex/values").VFloat64<number, "required">;
|
|
1575
|
+
preparationSequence: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1324
1576
|
invoiceItemId: import("convex/values").VString<string | undefined, "optional">;
|
|
1325
1577
|
invoiceFunding: import("convex/values").VObject<{
|
|
1326
1578
|
sourceChargeId: string;
|
|
@@ -1332,7 +1584,7 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
1332
1584
|
sourceProcessingFee: import("convex/values").VFloat64<number, "required">;
|
|
1333
1585
|
}, "optional", "sourceChargeId" | "sourceGross" | "sourceProcessingFee">;
|
|
1334
1586
|
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>;
|
|
1335
|
-
}, "required", "accountId" | "amount" | "currency" | "groupKey" | "invoiceFunding" | "invoiceFunding.sourceChargeId" | "invoiceFunding.sourceGross" | "invoiceFunding.sourceProcessingFee" | "invoiceItemId" | "maxCredit" | "maxDebit" | "pendingOperations" | "scopeKey" | "sourceGross" | "sourceId" | "sourceKind" | "sourceProcessingFee" | "status">, {
|
|
1587
|
+
}, "required", "accountId" | "amount" | "currency" | "groupKey" | "invoiceFunding" | "invoiceFunding.sourceChargeId" | "invoiceFunding.sourceGross" | "invoiceFunding.sourceProcessingFee" | "invoiceItemId" | "maxCredit" | "maxDebit" | "pendingOperations" | "preparationSequence" | "scopeKey" | "sourceGross" | "sourceId" | "sourceKind" | "sourceProcessingFee" | "status">, {
|
|
1336
1588
|
by_key: ["groupKey", "_creationTime"];
|
|
1337
1589
|
}, {}, {}>;
|
|
1338
1590
|
recoveryReservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutExecutionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutExecutionTestHelpers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAIvD,eAAO,MAAM,SAAS,EAIN,SAAS,CAAC;AAC1B,eAAO,MAAM,KAAK;IAChB,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,sBAAsB;CACvB,CAAC;AACF,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