@fantastic.dev/better-stripe 0.42.0 → 0.43.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.
Files changed (126) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +1 -1
  3. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +1022 -0
  4. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
  5. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +511 -0
  6. package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
  7. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +1054 -32
  8. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
  9. package/dist/client/connect/payoutSyncTestHelpers.d.ts +527 -16
  10. package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
  11. package/dist/client/costRecovery-invoices.d.ts +3 -2
  12. package/dist/client/costRecovery-invoices.d.ts.map +1 -1
  13. package/dist/client/costRecovery-invoices.js +10 -5
  14. package/dist/client/costRecovery-invoices.js.map +1 -1
  15. package/dist/client/costRecovery.d.ts +4 -2
  16. package/dist/client/costRecovery.d.ts.map +1 -1
  17. package/dist/client/costRecovery.js +2 -2
  18. package/dist/client/costRecovery.js.map +1 -1
  19. package/dist/client/processingCostReconciliation/client.d.ts +14 -0
  20. package/dist/client/processingCostReconciliation/client.d.ts.map +1 -0
  21. package/dist/client/processingCostReconciliation/client.js +35 -0
  22. package/dist/client/processingCostReconciliation/client.js.map +1 -0
  23. package/dist/client/processingCostReconciliation/contracts.d.ts +172 -0
  24. package/dist/client/processingCostReconciliation/contracts.d.ts.map +1 -0
  25. package/dist/client/processingCostReconciliation/contracts.js +55 -0
  26. package/dist/client/processingCostReconciliation/contracts.js.map +1 -0
  27. package/dist/client/processingCostReconciliation/invoiceFunding.d.ts +15 -0
  28. package/dist/client/processingCostReconciliation/invoiceFunding.d.ts.map +1 -0
  29. package/dist/client/processingCostReconciliation/invoiceFunding.js +195 -0
  30. package/dist/client/processingCostReconciliation/invoiceFunding.js.map +1 -0
  31. package/dist/client/processingCostReconciliation/provider.d.ts +9 -0
  32. package/dist/client/processingCostReconciliation/provider.d.ts.map +1 -0
  33. package/dist/client/processingCostReconciliation/provider.js +148 -0
  34. package/dist/client/processingCostReconciliation/provider.js.map +1 -0
  35. package/dist/client/settlement/processingCostHistory.d.ts +12 -0
  36. package/dist/client/settlement/processingCostHistory.d.ts.map +1 -0
  37. package/dist/client/settlement/processingCostHistory.js +20 -0
  38. package/dist/client/settlement/processingCostHistory.js.map +1 -0
  39. package/dist/client/settlement/processingCosts.d.ts +3 -0
  40. package/dist/client/settlement/processingCosts.d.ts.map +1 -1
  41. package/dist/client/settlement/processingCosts.js +27 -7
  42. package/dist/client/settlement/processingCosts.js.map +1 -1
  43. package/dist/component/_generated/api.d.ts +18 -0
  44. package/dist/component/_generated/api.d.ts.map +1 -1
  45. package/dist/component/_generated/api.js.map +1 -1
  46. package/dist/component/_generated/component.d.ts +515 -0
  47. package/dist/component/_generated/component.d.ts.map +1 -1
  48. package/dist/component/balanceFunding/internal/actions.d.ts +11 -11
  49. package/dist/component/balanceFunding/mutations.d.ts +16 -16
  50. package/dist/component/balanceFunding/stateHandlers.d.ts +8 -8
  51. package/dist/component/balanceFunding/workflowValidators.d.ts +16 -16
  52. package/dist/component/earnings/triggers.d.ts +318 -16
  53. package/dist/component/earnings/triggers.d.ts.map +1 -1
  54. package/dist/component/payoutRelease/queries.d.ts +2 -2
  55. package/dist/component/payoutRelease/queries.d.ts.map +1 -1
  56. package/dist/component/processingCostReconciliation/adoption.d.ts +29 -0
  57. package/dist/component/processingCostReconciliation/adoption.d.ts.map +1 -0
  58. package/dist/component/processingCostReconciliation/adoption.js +58 -0
  59. package/dist/component/processingCostReconciliation/adoption.js.map +1 -0
  60. package/dist/component/processingCostReconciliation/bridge.d.ts +45 -0
  61. package/dist/component/processingCostReconciliation/bridge.d.ts.map +1 -0
  62. package/dist/component/processingCostReconciliation/bridge.js +41 -0
  63. package/dist/component/processingCostReconciliation/bridge.js.map +1 -0
  64. package/dist/component/processingCostReconciliation/helpers.d.ts +327 -0
  65. package/dist/component/processingCostReconciliation/helpers.d.ts.map +1 -0
  66. package/dist/component/processingCostReconciliation/helpers.js +39 -0
  67. package/dist/component/processingCostReconciliation/helpers.js.map +1 -0
  68. package/dist/component/processingCostReconciliation/mutations.d.ts +303 -0
  69. package/dist/component/processingCostReconciliation/mutations.d.ts.map +1 -0
  70. package/dist/component/processingCostReconciliation/mutations.js +121 -0
  71. package/dist/component/processingCostReconciliation/mutations.js.map +1 -0
  72. package/dist/component/processingCostReconciliation/queries.d.ts +422 -0
  73. package/dist/component/processingCostReconciliation/queries.d.ts.map +1 -0
  74. package/dist/component/processingCostReconciliation/queries.js +19 -0
  75. package/dist/component/processingCostReconciliation/queries.js.map +1 -0
  76. package/dist/component/processingCostReconciliation/rollback.d.ts +21 -0
  77. package/dist/component/processingCostReconciliation/rollback.d.ts.map +1 -0
  78. package/dist/component/processingCostReconciliation/rollback.js +54 -0
  79. package/dist/component/processingCostReconciliation/rollback.js.map +1 -0
  80. package/dist/component/processingCostReconciliation/schema.d.ts +2460 -0
  81. package/dist/component/processingCostReconciliation/schema.d.ts.map +1 -0
  82. package/dist/component/processingCostReconciliation/schema.js +137 -0
  83. package/dist/component/processingCostReconciliation/schema.js.map +1 -0
  84. package/dist/component/processingCostReconciliation/steps.d.ts +306 -0
  85. package/dist/component/processingCostReconciliation/steps.d.ts.map +1 -0
  86. package/dist/component/processingCostReconciliation/steps.js +149 -0
  87. package/dist/component/processingCostReconciliation/steps.js.map +1 -0
  88. package/dist/component/processingCostReconciliation/validation.d.ts +13 -0
  89. package/dist/component/processingCostReconciliation/validation.d.ts.map +1 -0
  90. package/dist/component/processingCostReconciliation/validation.js +61 -0
  91. package/dist/component/processingCostReconciliation/validation.js.map +1 -0
  92. package/dist/component/processingCostReconciliation/workflow.d.ts +105 -0
  93. package/dist/component/processingCostReconciliation/workflow.d.ts.map +1 -0
  94. package/dist/component/processingCostReconciliation/workflow.js +33 -0
  95. package/dist/component/processingCostReconciliation/workflow.js.map +1 -0
  96. package/dist/component/schema.d.ts +511 -0
  97. package/dist/component/schema.js +2 -0
  98. package/dist/component/schema.js.map +1 -1
  99. package/package.json +1 -1
  100. package/src/client/costRecovery-invoices.ts +19 -4
  101. package/src/client/costRecovery.ts +4 -2
  102. package/src/client/processingCostReconciliation/client.ts +75 -0
  103. package/src/client/processingCostReconciliation/contracts.ts +176 -0
  104. package/src/client/processingCostReconciliation/invoiceFunding.ts +270 -0
  105. package/src/client/processingCostReconciliation/invoiceProvider.test.ts +353 -0
  106. package/src/client/processingCostReconciliation/provider.test.ts +324 -0
  107. package/src/client/processingCostReconciliation/provider.ts +178 -0
  108. package/src/client/settlement/processingCostHistory.ts +31 -0
  109. package/src/client/settlement/processingCosts.ts +50 -15
  110. package/src/component/_generated/api.ts +18 -0
  111. package/src/component/_generated/component.ts +570 -0
  112. package/src/component/processingCostReconciliation/adoption.test.ts +206 -0
  113. package/src/component/processingCostReconciliation/adoption.ts +77 -0
  114. package/src/component/processingCostReconciliation/bridge.ts +50 -0
  115. package/src/component/processingCostReconciliation/helpers.ts +55 -0
  116. package/src/component/processingCostReconciliation/invoice.test.ts +152 -0
  117. package/src/component/processingCostReconciliation/mutations.ts +148 -0
  118. package/src/component/processingCostReconciliation/queries.ts +18 -0
  119. package/src/component/processingCostReconciliation/rollback.ts +72 -0
  120. package/src/component/processingCostReconciliation/schema.ts +191 -0
  121. package/src/component/processingCostReconciliation/state.test.ts +407 -0
  122. package/src/component/processingCostReconciliation/steps.ts +168 -0
  123. package/src/component/processingCostReconciliation/validation.ts +79 -0
  124. package/src/component/processingCostReconciliation/workflow.test.ts +329 -0
  125. package/src/component/processingCostReconciliation/workflow.ts +50 -0
  126. package/src/component/schema.ts +2 -0
@@ -1 +1 @@
1
- {"version":3,"file":"payoutLargeAdoptionTestHelpers.d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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAGtC,MAAM;yBACT;gBAAE,gBAAgB,EAAE,MAAM,CAAC;gBAAC,MAAM,EAAE,MAAM,CAAA;aAAE,EAAE;;;GA2C9D"}
@@ -14,6 +14,517 @@ type Sync = (stripe: Stripe, component: Component, ctx: RunCtx, opts: {
14
14
  export declare function operation(): Promise<Sync>;
15
15
  export declare function setup(scope?: Scope): Promise<{
16
16
  t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
17
+ processingCostReconciliationOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
18
+ accountId: string;
19
+ claimKey: string;
20
+ currency: string;
21
+ definitionVersion: number;
22
+ expectedRevision: number;
23
+ failure?: {
24
+ reason: "fee_pending" | "history_incomplete" | "provider_pending";
25
+ retryable: true;
26
+ status: "not_ready";
27
+ } | {
28
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
29
+ retryable: false;
30
+ status: "conflict";
31
+ } | {
32
+ reason: "currency_mismatch" | "invalid_scope" | "payment_not_payable" | "policy_invalid" | "unsupported_source";
33
+ retryable: false;
34
+ status: "rejected";
35
+ } | {
36
+ reason: "history_incomplete" | "provider_outcome_unknown";
37
+ retryable: false;
38
+ status: "unknown";
39
+ } | undefined;
40
+ importHook?: string | undefined;
41
+ maxAttempts: number;
42
+ policy: {
43
+ liability: {
44
+ disputeCosts: "all" | "none";
45
+ processingCosts: "all" | "none" | "uncovered";
46
+ };
47
+ rounding: "ceil" | "floor" | "nearest";
48
+ sellingFee: number;
49
+ };
50
+ projection?: string | undefined;
51
+ provider: string;
52
+ providerApiVersion: string;
53
+ requestKey: string;
54
+ result?: {
55
+ claim: {
56
+ _creationTime: number;
57
+ _id: import("convex/values").GenericId<"recoveryClaims">;
58
+ accountId: string;
59
+ amountDue: number;
60
+ claimKey: string;
61
+ collectedAmount: number;
62
+ currency: string;
63
+ openingCollection?: {
64
+ amountDue: number;
65
+ collectedAmount: number;
66
+ operationKey: string;
67
+ revision: number;
68
+ } | undefined;
69
+ outstanding: number;
70
+ reservedAmount: number;
71
+ revision: number;
72
+ scopeKey: string;
73
+ sign: "negative" | "positive" | "zero";
74
+ sourceChargeId: string;
75
+ sourceGross: number;
76
+ sourceProcessingFee: number;
77
+ };
78
+ deficit: {
79
+ amountDue: number;
80
+ currency: string;
81
+ disputeLiability: number;
82
+ processingLiability: number;
83
+ retainedFee: number;
84
+ };
85
+ observation: {
86
+ currency: string;
87
+ disputeFees: number;
88
+ gross: number;
89
+ originalProcessingFee: number;
90
+ paymentIntentId: string;
91
+ principalReturned: number;
92
+ processingFee: number;
93
+ provenance: {
94
+ customerAccountId: string;
95
+ invoiceId: string;
96
+ invoicePaymentId: string;
97
+ recoveryInvoiceItemId?: string | undefined;
98
+ stripePriceId?: string | undefined;
99
+ stripeProductId?: string | undefined;
100
+ subscriptionId?: string | undefined;
101
+ };
102
+ sourceChargeId: string;
103
+ };
104
+ rollbackClaim?: {
105
+ _creationTime: number;
106
+ _id: import("convex/values").GenericId<"recoveryClaims">;
107
+ accountId: string;
108
+ amountDue: number;
109
+ claimKey: string;
110
+ collectedAmount: number;
111
+ currency: string;
112
+ openingCollection?: {
113
+ amountDue: number;
114
+ collectedAmount: number;
115
+ operationKey: string;
116
+ revision: number;
117
+ } | undefined;
118
+ outstanding: number;
119
+ reservedAmount: number;
120
+ revision: number;
121
+ scopeKey: string;
122
+ sign: "negative" | "positive" | "zero";
123
+ sourceChargeId: string;
124
+ sourceGross: number;
125
+ sourceProcessingFee: number;
126
+ } | undefined;
127
+ } | undefined;
128
+ retryDelayMs: number;
129
+ rollback?: {
130
+ expectedRevision: number;
131
+ groupKey: string;
132
+ } | undefined;
133
+ scopeKey: string;
134
+ source: {
135
+ customerAccountId: string;
136
+ gross: number;
137
+ invoiceId?: string | undefined;
138
+ kind: "sale";
139
+ paymentIntentId: string;
140
+ stripeAccountId?: string | undefined;
141
+ stripePriceId?: string | undefined;
142
+ stripeProductId?: string | undefined;
143
+ subscriptionId?: string | undefined;
144
+ } | {
145
+ gross: number;
146
+ groupKey: string;
147
+ kind: "invoice_recovery";
148
+ paymentIntentId: string;
149
+ };
150
+ status: "completed" | "conflict" | "queued" | "rejected" | "running" | "unknown" | "waiting";
151
+ version: number;
152
+ workflowId?: string | undefined;
153
+ }, {
154
+ accountId: import("convex/values").VString<string, "required">;
155
+ scopeKey: import("convex/values").VString<string, "required">;
156
+ currency: import("convex/values").VString<string, "required">;
157
+ claimKey: import("convex/values").VString<string, "required">;
158
+ source: import("convex/values").VUnion<{
159
+ customerAccountId: string;
160
+ gross: number;
161
+ invoiceId?: string | undefined;
162
+ kind: "sale";
163
+ paymentIntentId: string;
164
+ stripeAccountId?: string | undefined;
165
+ stripePriceId?: string | undefined;
166
+ stripeProductId?: string | undefined;
167
+ subscriptionId?: string | undefined;
168
+ } | {
169
+ gross: number;
170
+ groupKey: string;
171
+ kind: "invoice_recovery";
172
+ paymentIntentId: string;
173
+ }, [import("convex/values").VObject<{
174
+ customerAccountId: string;
175
+ gross: number;
176
+ invoiceId?: string | undefined;
177
+ kind: "sale";
178
+ paymentIntentId: string;
179
+ stripeAccountId?: string | undefined;
180
+ stripePriceId?: string | undefined;
181
+ stripeProductId?: string | undefined;
182
+ subscriptionId?: string | undefined;
183
+ }, {
184
+ kind: import("convex/values").VLiteral<"sale", "required">;
185
+ paymentIntentId: import("convex/values").VString<string, "required">;
186
+ gross: import("convex/values").VFloat64<number, "required">;
187
+ customerAccountId: import("convex/values").VString<string, "required">;
188
+ invoiceId: import("convex/values").VString<string | undefined, "optional">;
189
+ subscriptionId: import("convex/values").VString<string | undefined, "optional">;
190
+ stripeAccountId: import("convex/values").VString<string | undefined, "optional">;
191
+ stripePriceId: import("convex/values").VString<string | undefined, "optional">;
192
+ stripeProductId: import("convex/values").VString<string | undefined, "optional">;
193
+ }, "required", "customerAccountId" | "gross" | "invoiceId" | "kind" | "paymentIntentId" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId">, import("convex/values").VObject<{
194
+ gross: number;
195
+ groupKey: string;
196
+ kind: "invoice_recovery";
197
+ paymentIntentId: string;
198
+ }, {
199
+ kind: import("convex/values").VLiteral<"invoice_recovery", "required">;
200
+ paymentIntentId: import("convex/values").VString<string, "required">;
201
+ gross: import("convex/values").VFloat64<number, "required">;
202
+ groupKey: import("convex/values").VString<string, "required">;
203
+ }, "required", "gross" | "groupKey" | "kind" | "paymentIntentId">], "required", "customerAccountId" | "gross" | "groupKey" | "invoiceId" | "kind" | "paymentIntentId" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId">;
204
+ policy: import("convex/values").VObject<{
205
+ liability: {
206
+ disputeCosts: "all" | "none";
207
+ processingCosts: "all" | "none" | "uncovered";
208
+ };
209
+ rounding: "ceil" | "floor" | "nearest";
210
+ sellingFee: number;
211
+ }, {
212
+ sellingFee: import("convex/values").VFloat64<number, "required">;
213
+ liability: import("convex/values").VObject<{
214
+ disputeCosts: "all" | "none";
215
+ processingCosts: "all" | "none" | "uncovered";
216
+ }, {
217
+ processingCosts: import("convex/values").VUnion<"all" | "none" | "uncovered", [import("convex/values").VLiteral<"uncovered", "required">, import("convex/values").VLiteral<"all", "required">, import("convex/values").VLiteral<"none", "required">], "required", never>;
218
+ disputeCosts: import("convex/values").VUnion<"all" | "none", [import("convex/values").VLiteral<"all", "required">, import("convex/values").VLiteral<"none", "required">], "required", never>;
219
+ }, "required", "disputeCosts" | "processingCosts">;
220
+ rounding: import("convex/values").VUnion<"ceil" | "floor" | "nearest", [import("convex/values").VLiteral<"nearest", "required">, import("convex/values").VLiteral<"floor", "required">, import("convex/values").VLiteral<"ceil", "required">], "required", never>;
221
+ }, "required", "liability" | "liability.disputeCosts" | "liability.processingCosts" | "rounding" | "sellingFee">;
222
+ expectedRevision: import("convex/values").VFloat64<number, "required">;
223
+ rollback: import("convex/values").VObject<{
224
+ expectedRevision: number;
225
+ groupKey: string;
226
+ } | undefined, {
227
+ groupKey: import("convex/values").VString<string, "required">;
228
+ expectedRevision: import("convex/values").VFloat64<number, "required">;
229
+ }, "optional", "expectedRevision" | "groupKey">;
230
+ provider: import("convex/values").VString<string, "required">;
231
+ projection: import("convex/values").VString<string | undefined, "optional">;
232
+ importHook: import("convex/values").VString<string | undefined, "optional">;
233
+ providerApiVersion: import("convex/values").VString<string, "required">;
234
+ definitionVersion: import("convex/values").VFloat64<number, "required">;
235
+ maxAttempts: import("convex/values").VFloat64<number, "required">;
236
+ retryDelayMs: import("convex/values").VFloat64<number, "required">;
237
+ requestKey: import("convex/values").VString<string, "required">;
238
+ version: import("convex/values").VFloat64<number, "required">;
239
+ workflowId: import("convex/values").VString<string | undefined, "optional">;
240
+ status: import("convex/values").VUnion<"completed" | "conflict" | "queued" | "rejected" | "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<"completed", "required">, import("convex/values").VLiteral<"conflict", "required">, import("convex/values").VLiteral<"rejected", "required">, import("convex/values").VLiteral<"unknown", "required">], "required", never>;
241
+ failure: import("convex/values").VUnion<{
242
+ reason: "fee_pending" | "history_incomplete" | "provider_pending";
243
+ retryable: true;
244
+ status: "not_ready";
245
+ } | {
246
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
247
+ retryable: false;
248
+ status: "conflict";
249
+ } | {
250
+ reason: "currency_mismatch" | "invalid_scope" | "payment_not_payable" | "policy_invalid" | "unsupported_source";
251
+ retryable: false;
252
+ status: "rejected";
253
+ } | {
254
+ reason: "history_incomplete" | "provider_outcome_unknown";
255
+ retryable: false;
256
+ status: "unknown";
257
+ } | undefined, [import("convex/values").VObject<{
258
+ reason: "fee_pending" | "history_incomplete" | "provider_pending";
259
+ retryable: true;
260
+ status: "not_ready";
261
+ }, {
262
+ status: import("convex/values").VLiteral<"not_ready", "required">;
263
+ reason: import("convex/values").VUnion<"fee_pending" | "history_incomplete" | "provider_pending", [import("convex/values").VLiteral<"provider_pending", "required">, import("convex/values").VLiteral<"fee_pending", "required">, import("convex/values").VLiteral<"history_incomplete", "required">], "required", never>;
264
+ retryable: import("convex/values").VLiteral<true, "required">;
265
+ }, "required", "reason" | "retryable" | "status">, import("convex/values").VObject<{
266
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
267
+ retryable: false;
268
+ status: "conflict";
269
+ }, {
270
+ status: import("convex/values").VLiteral<"conflict", "required">;
271
+ reason: import("convex/values").VUnion<"identity_changed" | "revision_changed" | "scope_busy", [import("convex/values").VLiteral<"scope_busy", "required">, import("convex/values").VLiteral<"revision_changed", "required">, import("convex/values").VLiteral<"identity_changed", "required">], "required", never>;
272
+ retryable: import("convex/values").VLiteral<false, "required">;
273
+ }, "required", "reason" | "retryable" | "status">, import("convex/values").VObject<{
274
+ reason: "currency_mismatch" | "invalid_scope" | "payment_not_payable" | "policy_invalid" | "unsupported_source";
275
+ retryable: false;
276
+ status: "rejected";
277
+ }, {
278
+ status: import("convex/values").VLiteral<"rejected", "required">;
279
+ reason: import("convex/values").VUnion<"currency_mismatch" | "invalid_scope" | "payment_not_payable" | "policy_invalid" | "unsupported_source", [import("convex/values").VLiteral<"invalid_scope", "required">, import("convex/values").VLiteral<"unsupported_source", "required">, import("convex/values").VLiteral<"policy_invalid", "required">, import("convex/values").VLiteral<"payment_not_payable", "required">, import("convex/values").VLiteral<"currency_mismatch", "required">], "required", never>;
280
+ retryable: import("convex/values").VLiteral<false, "required">;
281
+ }, "required", "reason" | "retryable" | "status">, import("convex/values").VObject<{
282
+ reason: "history_incomplete" | "provider_outcome_unknown";
283
+ retryable: false;
284
+ status: "unknown";
285
+ }, {
286
+ status: import("convex/values").VLiteral<"unknown", "required">;
287
+ reason: import("convex/values").VUnion<"history_incomplete" | "provider_outcome_unknown", [import("convex/values").VLiteral<"provider_outcome_unknown", "required">, import("convex/values").VLiteral<"history_incomplete", "required">], "required", never>;
288
+ retryable: import("convex/values").VLiteral<false, "required">;
289
+ }, "required", "reason" | "retryable" | "status">], "optional", "reason" | "retryable" | "status">;
290
+ result: import("convex/values").VObject<{
291
+ claim: {
292
+ _creationTime: number;
293
+ _id: import("convex/values").GenericId<"recoveryClaims">;
294
+ accountId: string;
295
+ amountDue: number;
296
+ claimKey: string;
297
+ collectedAmount: number;
298
+ currency: string;
299
+ openingCollection?: {
300
+ amountDue: number;
301
+ collectedAmount: number;
302
+ operationKey: string;
303
+ revision: number;
304
+ } | undefined;
305
+ outstanding: number;
306
+ reservedAmount: number;
307
+ revision: number;
308
+ scopeKey: string;
309
+ sign: "negative" | "positive" | "zero";
310
+ sourceChargeId: string;
311
+ sourceGross: number;
312
+ sourceProcessingFee: number;
313
+ };
314
+ deficit: {
315
+ amountDue: number;
316
+ currency: string;
317
+ disputeLiability: number;
318
+ processingLiability: number;
319
+ retainedFee: number;
320
+ };
321
+ observation: {
322
+ currency: string;
323
+ disputeFees: number;
324
+ gross: number;
325
+ originalProcessingFee: number;
326
+ paymentIntentId: string;
327
+ principalReturned: number;
328
+ processingFee: number;
329
+ provenance: {
330
+ customerAccountId: string;
331
+ invoiceId: string;
332
+ invoicePaymentId: string;
333
+ recoveryInvoiceItemId?: string | undefined;
334
+ stripePriceId?: string | undefined;
335
+ stripeProductId?: string | undefined;
336
+ subscriptionId?: string | undefined;
337
+ };
338
+ sourceChargeId: string;
339
+ };
340
+ rollbackClaim?: {
341
+ _creationTime: number;
342
+ _id: import("convex/values").GenericId<"recoveryClaims">;
343
+ accountId: string;
344
+ amountDue: number;
345
+ claimKey: string;
346
+ collectedAmount: number;
347
+ currency: string;
348
+ openingCollection?: {
349
+ amountDue: number;
350
+ collectedAmount: number;
351
+ operationKey: string;
352
+ revision: number;
353
+ } | undefined;
354
+ outstanding: number;
355
+ reservedAmount: number;
356
+ revision: number;
357
+ scopeKey: string;
358
+ sign: "negative" | "positive" | "zero";
359
+ sourceChargeId: string;
360
+ sourceGross: number;
361
+ sourceProcessingFee: number;
362
+ } | undefined;
363
+ } | undefined, {
364
+ claim: import("convex/values").VObject<{
365
+ _creationTime: number;
366
+ _id: import("convex/values").GenericId<"recoveryClaims">;
367
+ accountId: string;
368
+ amountDue: number;
369
+ claimKey: string;
370
+ collectedAmount: number;
371
+ currency: string;
372
+ openingCollection?: {
373
+ amountDue: number;
374
+ collectedAmount: number;
375
+ operationKey: string;
376
+ revision: number;
377
+ } | undefined;
378
+ outstanding: number;
379
+ reservedAmount: number;
380
+ revision: number;
381
+ scopeKey: string;
382
+ sign: "negative" | "positive" | "zero";
383
+ sourceChargeId: string;
384
+ sourceGross: number;
385
+ sourceProcessingFee: number;
386
+ }, {
387
+ accountId: import("convex/values").VString<string, "required">;
388
+ scopeKey: import("convex/values").VString<string, "required">;
389
+ currency: import("convex/values").VString<string, "required">;
390
+ claimKey: import("convex/values").VString<string, "required">;
391
+ sourceChargeId: import("convex/values").VString<string, "required">;
392
+ sourceGross: import("convex/values").VFloat64<number, "required">;
393
+ sourceProcessingFee: import("convex/values").VFloat64<number, "required">;
394
+ amountDue: import("convex/values").VFloat64<number, "required">;
395
+ revision: import("convex/values").VFloat64<number, "required">;
396
+ collectedAmount: import("convex/values").VFloat64<number, "required">;
397
+ reservedAmount: import("convex/values").VFloat64<number, "required">;
398
+ outstanding: import("convex/values").VFloat64<number, "required">;
399
+ sign: import("convex/values").VUnion<"negative" | "positive" | "zero", [import("convex/values").VLiteral<"positive", "required">, import("convex/values").VLiteral<"negative", "required">, import("convex/values").VLiteral<"zero", "required">], "required", never>;
400
+ openingCollection: import("convex/values").VObject<{
401
+ amountDue: number;
402
+ collectedAmount: number;
403
+ operationKey: string;
404
+ revision: number;
405
+ } | undefined, {
406
+ operationKey: import("convex/values").VString<string, "required">;
407
+ amountDue: import("convex/values").VFloat64<number, "required">;
408
+ revision: import("convex/values").VFloat64<number, "required">;
409
+ collectedAmount: import("convex/values").VFloat64<number, "required">;
410
+ }, "optional", "amountDue" | "collectedAmount" | "operationKey" | "revision">;
411
+ _id: import("convex/values").VId<import("convex/values").GenericId<"recoveryClaims">, "required">;
412
+ _creationTime: import("convex/values").VFloat64<number, "required">;
413
+ }, "required", "_creationTime" | "_id" | "accountId" | "amountDue" | "claimKey" | "collectedAmount" | "currency" | "openingCollection" | "openingCollection.amountDue" | "openingCollection.collectedAmount" | "openingCollection.operationKey" | "openingCollection.revision" | "outstanding" | "reservedAmount" | "revision" | "scopeKey" | "sign" | "sourceChargeId" | "sourceGross" | "sourceProcessingFee">;
414
+ rollbackClaim: import("convex/values").VObject<{
415
+ _creationTime: number;
416
+ _id: import("convex/values").GenericId<"recoveryClaims">;
417
+ accountId: string;
418
+ amountDue: number;
419
+ claimKey: string;
420
+ collectedAmount: number;
421
+ currency: string;
422
+ openingCollection?: {
423
+ amountDue: number;
424
+ collectedAmount: number;
425
+ operationKey: string;
426
+ revision: number;
427
+ } | undefined;
428
+ outstanding: number;
429
+ reservedAmount: number;
430
+ revision: number;
431
+ scopeKey: string;
432
+ sign: "negative" | "positive" | "zero";
433
+ sourceChargeId: string;
434
+ sourceGross: number;
435
+ sourceProcessingFee: number;
436
+ } | undefined, {
437
+ accountId: import("convex/values").VString<string, "required">;
438
+ scopeKey: import("convex/values").VString<string, "required">;
439
+ currency: import("convex/values").VString<string, "required">;
440
+ claimKey: import("convex/values").VString<string, "required">;
441
+ sourceChargeId: import("convex/values").VString<string, "required">;
442
+ sourceGross: import("convex/values").VFloat64<number, "required">;
443
+ sourceProcessingFee: import("convex/values").VFloat64<number, "required">;
444
+ amountDue: import("convex/values").VFloat64<number, "required">;
445
+ revision: import("convex/values").VFloat64<number, "required">;
446
+ collectedAmount: import("convex/values").VFloat64<number, "required">;
447
+ reservedAmount: import("convex/values").VFloat64<number, "required">;
448
+ outstanding: import("convex/values").VFloat64<number, "required">;
449
+ sign: import("convex/values").VUnion<"negative" | "positive" | "zero", [import("convex/values").VLiteral<"positive", "required">, import("convex/values").VLiteral<"negative", "required">, import("convex/values").VLiteral<"zero", "required">], "required", never>;
450
+ openingCollection: import("convex/values").VObject<{
451
+ amountDue: number;
452
+ collectedAmount: number;
453
+ operationKey: string;
454
+ revision: number;
455
+ } | undefined, {
456
+ operationKey: import("convex/values").VString<string, "required">;
457
+ amountDue: import("convex/values").VFloat64<number, "required">;
458
+ revision: import("convex/values").VFloat64<number, "required">;
459
+ collectedAmount: import("convex/values").VFloat64<number, "required">;
460
+ }, "optional", "amountDue" | "collectedAmount" | "operationKey" | "revision">;
461
+ _id: import("convex/values").VId<import("convex/values").GenericId<"recoveryClaims">, "required">;
462
+ _creationTime: import("convex/values").VFloat64<number, "required">;
463
+ }, "optional", "_creationTime" | "_id" | "accountId" | "amountDue" | "claimKey" | "collectedAmount" | "currency" | "openingCollection" | "openingCollection.amountDue" | "openingCollection.collectedAmount" | "openingCollection.operationKey" | "openingCollection.revision" | "outstanding" | "reservedAmount" | "revision" | "scopeKey" | "sign" | "sourceChargeId" | "sourceGross" | "sourceProcessingFee">;
464
+ deficit: import("convex/values").VObject<{
465
+ amountDue: number;
466
+ currency: string;
467
+ disputeLiability: number;
468
+ processingLiability: number;
469
+ retainedFee: number;
470
+ }, {
471
+ currency: import("convex/values").VString<string, "required">;
472
+ retainedFee: import("convex/values").VFloat64<number, "required">;
473
+ processingLiability: import("convex/values").VFloat64<number, "required">;
474
+ disputeLiability: import("convex/values").VFloat64<number, "required">;
475
+ amountDue: import("convex/values").VFloat64<number, "required">;
476
+ }, "required", "amountDue" | "currency" | "disputeLiability" | "processingLiability" | "retainedFee">;
477
+ observation: import("convex/values").VObject<{
478
+ currency: string;
479
+ disputeFees: number;
480
+ gross: number;
481
+ originalProcessingFee: number;
482
+ paymentIntentId: string;
483
+ principalReturned: number;
484
+ processingFee: number;
485
+ provenance: {
486
+ customerAccountId: string;
487
+ invoiceId: string;
488
+ invoicePaymentId: string;
489
+ recoveryInvoiceItemId?: string | undefined;
490
+ stripePriceId?: string | undefined;
491
+ stripeProductId?: string | undefined;
492
+ subscriptionId?: string | undefined;
493
+ };
494
+ sourceChargeId: string;
495
+ }, {
496
+ paymentIntentId: import("convex/values").VString<string, "required">;
497
+ sourceChargeId: import("convex/values").VString<string, "required">;
498
+ currency: import("convex/values").VString<string, "required">;
499
+ gross: import("convex/values").VFloat64<number, "required">;
500
+ originalProcessingFee: import("convex/values").VFloat64<number, "required">;
501
+ processingFee: import("convex/values").VFloat64<number, "required">;
502
+ disputeFees: import("convex/values").VFloat64<number, "required">;
503
+ principalReturned: import("convex/values").VFloat64<number, "required">;
504
+ provenance: import("convex/values").VObject<{
505
+ customerAccountId: string;
506
+ invoiceId: string;
507
+ invoicePaymentId: string;
508
+ recoveryInvoiceItemId?: string | undefined;
509
+ stripePriceId?: string | undefined;
510
+ stripeProductId?: string | undefined;
511
+ subscriptionId?: string | undefined;
512
+ }, {
513
+ invoiceId: import("convex/values").VString<string, "required">;
514
+ invoicePaymentId: import("convex/values").VString<string, "required">;
515
+ recoveryInvoiceItemId: import("convex/values").VString<string | undefined, "optional">;
516
+ customerAccountId: import("convex/values").VString<string, "required">;
517
+ subscriptionId: import("convex/values").VString<string | undefined, "optional">;
518
+ stripePriceId: import("convex/values").VString<string | undefined, "optional">;
519
+ stripeProductId: import("convex/values").VString<string | undefined, "optional">;
520
+ }, "required", "customerAccountId" | "invoiceId" | "invoicePaymentId" | "recoveryInvoiceItemId" | "stripePriceId" | "stripeProductId" | "subscriptionId">;
521
+ }, "required", "currency" | "disputeFees" | "gross" | "originalProcessingFee" | "paymentIntentId" | "principalReturned" | "processingFee" | "provenance" | "provenance.customerAccountId" | "provenance.invoiceId" | "provenance.invoicePaymentId" | "provenance.recoveryInvoiceItemId" | "provenance.stripePriceId" | "provenance.stripeProductId" | "provenance.subscriptionId" | "sourceChargeId">;
522
+ }, "optional", "claim" | "claim._creationTime" | "claim._id" | "claim.accountId" | "claim.amountDue" | "claim.claimKey" | "claim.collectedAmount" | "claim.currency" | "claim.openingCollection" | "claim.openingCollection.amountDue" | "claim.openingCollection.collectedAmount" | "claim.openingCollection.operationKey" | "claim.openingCollection.revision" | "claim.outstanding" | "claim.reservedAmount" | "claim.revision" | "claim.scopeKey" | "claim.sign" | "claim.sourceChargeId" | "claim.sourceGross" | "claim.sourceProcessingFee" | "deficit" | "deficit.amountDue" | "deficit.currency" | "deficit.disputeLiability" | "deficit.processingLiability" | "deficit.retainedFee" | "observation" | "observation.currency" | "observation.disputeFees" | "observation.gross" | "observation.originalProcessingFee" | "observation.paymentIntentId" | "observation.principalReturned" | "observation.processingFee" | "observation.provenance" | "observation.provenance.customerAccountId" | "observation.provenance.invoiceId" | "observation.provenance.invoicePaymentId" | "observation.provenance.recoveryInvoiceItemId" | "observation.provenance.stripePriceId" | "observation.provenance.stripeProductId" | "observation.provenance.subscriptionId" | "observation.sourceChargeId" | "rollbackClaim" | "rollbackClaim._creationTime" | "rollbackClaim._id" | "rollbackClaim.accountId" | "rollbackClaim.amountDue" | "rollbackClaim.claimKey" | "rollbackClaim.collectedAmount" | "rollbackClaim.currency" | "rollbackClaim.openingCollection" | "rollbackClaim.openingCollection.amountDue" | "rollbackClaim.openingCollection.collectedAmount" | "rollbackClaim.openingCollection.operationKey" | "rollbackClaim.openingCollection.revision" | "rollbackClaim.outstanding" | "rollbackClaim.reservedAmount" | "rollbackClaim.revision" | "rollbackClaim.scopeKey" | "rollbackClaim.sign" | "rollbackClaim.sourceChargeId" | "rollbackClaim.sourceGross" | "rollbackClaim.sourceProcessingFee">;
523
+ }, "required", "accountId" | "claimKey" | "currency" | "definitionVersion" | "expectedRevision" | "failure" | "failure.reason" | "failure.retryable" | "failure.status" | "importHook" | "maxAttempts" | "policy" | "policy.liability" | "policy.liability.disputeCosts" | "policy.liability.processingCosts" | "policy.rounding" | "policy.sellingFee" | "projection" | "provider" | "providerApiVersion" | "requestKey" | "result" | "result.claim" | "result.claim._creationTime" | "result.claim._id" | "result.claim.accountId" | "result.claim.amountDue" | "result.claim.claimKey" | "result.claim.collectedAmount" | "result.claim.currency" | "result.claim.openingCollection" | "result.claim.openingCollection.amountDue" | "result.claim.openingCollection.collectedAmount" | "result.claim.openingCollection.operationKey" | "result.claim.openingCollection.revision" | "result.claim.outstanding" | "result.claim.reservedAmount" | "result.claim.revision" | "result.claim.scopeKey" | "result.claim.sign" | "result.claim.sourceChargeId" | "result.claim.sourceGross" | "result.claim.sourceProcessingFee" | "result.deficit" | "result.deficit.amountDue" | "result.deficit.currency" | "result.deficit.disputeLiability" | "result.deficit.processingLiability" | "result.deficit.retainedFee" | "result.observation" | "result.observation.currency" | "result.observation.disputeFees" | "result.observation.gross" | "result.observation.originalProcessingFee" | "result.observation.paymentIntentId" | "result.observation.principalReturned" | "result.observation.processingFee" | "result.observation.provenance" | "result.observation.provenance.customerAccountId" | "result.observation.provenance.invoiceId" | "result.observation.provenance.invoicePaymentId" | "result.observation.provenance.recoveryInvoiceItemId" | "result.observation.provenance.stripePriceId" | "result.observation.provenance.stripeProductId" | "result.observation.provenance.subscriptionId" | "result.observation.sourceChargeId" | "result.rollbackClaim" | "result.rollbackClaim._creationTime" | "result.rollbackClaim._id" | "result.rollbackClaim.accountId" | "result.rollbackClaim.amountDue" | "result.rollbackClaim.claimKey" | "result.rollbackClaim.collectedAmount" | "result.rollbackClaim.currency" | "result.rollbackClaim.openingCollection" | "result.rollbackClaim.openingCollection.amountDue" | "result.rollbackClaim.openingCollection.collectedAmount" | "result.rollbackClaim.openingCollection.operationKey" | "result.rollbackClaim.openingCollection.revision" | "result.rollbackClaim.outstanding" | "result.rollbackClaim.reservedAmount" | "result.rollbackClaim.revision" | "result.rollbackClaim.scopeKey" | "result.rollbackClaim.sign" | "result.rollbackClaim.sourceChargeId" | "result.rollbackClaim.sourceGross" | "result.rollbackClaim.sourceProcessingFee" | "retryDelayMs" | "rollback" | "rollback.expectedRevision" | "rollback.groupKey" | "scopeKey" | "source" | "source.customerAccountId" | "source.gross" | "source.groupKey" | "source.invoiceId" | "source.kind" | "source.paymentIntentId" | "source.stripeAccountId" | "source.stripePriceId" | "source.stripeProductId" | "source.subscriptionId" | "status" | "version" | "workflowId">, {
524
+ by_claim_status: ["claimKey", "status", "_creationTime"];
525
+ by_payment_scope: ["accountId", "scopeKey", "currency", "source.paymentIntentId", "_creationTime"];
526
+ by_request: ["requestKey", "_creationTime"];
527
+ }, {}, {}>;
17
528
  recoveryWorkflowOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
18
529
  accountId: string;
19
530
  activePhase?: "execute" | "reconcile" | undefined;
@@ -540,14 +1051,6 @@ export declare function setup(scope?: Scope): Promise<{
540
1051
  preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
541
1052
  requestKey: string;
542
1053
  result?: {
543
- reason: "identity_changed" | "revision_changed" | "scope_busy";
544
- retryable: false;
545
- status: "conflict";
546
- } | {
547
- reason: "policy_invalid";
548
- retryable: false;
549
- status: "rejected";
550
- } | {
551
1054
  operation: {
552
1055
  accountId: string;
553
1056
  operationId: import("convex/values").GenericId<"balanceFundingOperations">;
@@ -558,6 +1061,14 @@ export declare function setup(scope?: Scope): Promise<{
558
1061
  } | {
559
1062
  enabled: boolean;
560
1063
  status: "unchanged";
1064
+ } | {
1065
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
1066
+ retryable: false;
1067
+ status: "conflict";
1068
+ } | {
1069
+ reason: "policy_invalid";
1070
+ retryable: false;
1071
+ status: "rejected";
561
1072
  } | {
562
1073
  reason: "provider_pending";
563
1074
  retryable: true;
@@ -568,14 +1079,6 @@ export declare function setup(scope?: Scope): Promise<{
568
1079
  payload: import("convex/values").VString<string, "required">;
569
1080
  preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
570
1081
  result: import("convex/values").VUnion<{
571
- reason: "identity_changed" | "revision_changed" | "scope_busy";
572
- retryable: false;
573
- status: "conflict";
574
- } | {
575
- reason: "policy_invalid";
576
- retryable: false;
577
- status: "rejected";
578
- } | {
579
1082
  operation: {
580
1083
  accountId: string;
581
1084
  operationId: import("convex/values").GenericId<"balanceFundingOperations">;
@@ -586,6 +1089,14 @@ export declare function setup(scope?: Scope): Promise<{
586
1089
  } | {
587
1090
  enabled: boolean;
588
1091
  status: "unchanged";
1092
+ } | {
1093
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
1094
+ retryable: false;
1095
+ status: "conflict";
1096
+ } | {
1097
+ reason: "policy_invalid";
1098
+ retryable: false;
1099
+ status: "rejected";
589
1100
  } | {
590
1101
  reason: "provider_pending";
591
1102
  retryable: true;