@fantastic.dev/better-stripe 0.71.0 → 0.72.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 +6 -0
- package/README.md +1 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +524 -50
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +246 -9
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +524 -50
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +246 -9
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/paymentSource/resolver.d.ts +6 -1
- package/dist/client/paymentSource/resolver.d.ts.map +1 -1
- package/dist/client/paymentSource/resolver.js +49 -41
- package/dist/client/paymentSource/resolver.js.map +1 -1
- package/dist/client/processingCostReconciliation/provider.d.ts.map +1 -1
- package/dist/client/processingCostReconciliation/provider.js +14 -2
- package/dist/client/processingCostReconciliation/provider.js.map +1 -1
- package/dist/client/settlement/authorization.fixture.d.ts +26 -0
- package/dist/client/settlement/authorization.fixture.d.ts.map +1 -1
- package/dist/client/settlement/execution.d.ts +2 -0
- package/dist/client/settlement/execution.d.ts.map +1 -1
- package/dist/client/settlement/execution.js.map +1 -1
- package/dist/client/usage/index.d.ts +1 -0
- package/dist/client/usage/index.d.ts.map +1 -1
- package/dist/client/usage/invoiceSale.d.ts +8 -0
- package/dist/client/usage/invoiceSale.d.ts.map +1 -1
- package/dist/client/usage/invoiceSale.js +3 -0
- package/dist/client/usage/invoiceSale.js.map +1 -1
- package/dist/client/usage/mixedInvoice.fixtures.d.ts +315 -0
- package/dist/client/usage/mixedInvoice.fixtures.d.ts.map +1 -0
- package/dist/client/usage/mixedInvoice.fixtures.js +55 -0
- package/dist/client/usage/mixedInvoice.fixtures.js.map +1 -0
- package/dist/client/usage/mixedInvoiceSale.d.ts +6 -0
- package/dist/client/usage/mixedInvoiceSale.d.ts.map +1 -0
- package/dist/client/usage/mixedInvoiceSale.js +160 -0
- package/dist/client/usage/mixedInvoiceSale.js.map +1 -0
- package/dist/client/usage/observationClient.d.ts +2 -2
- package/dist/client/usage/observationClient.d.ts.map +1 -1
- package/dist/client/usage/retainedInvoiceSource.d.ts +20 -0
- package/dist/client/usage/retainedInvoiceSource.d.ts.map +1 -0
- package/dist/client/usage/retainedInvoiceSource.js +92 -0
- package/dist/client/usage/retainedInvoiceSource.js.map +1 -0
- package/dist/client/usage/settlement.d.ts +5 -0
- package/dist/client/usage/settlement.d.ts.map +1 -1
- package/dist/client/usage/settlement.js +28 -9
- package/dist/client/usage/settlement.js.map +1 -1
- package/dist/component/_generated/component.d.ts +65 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/balanceFunding/internal/actions.d.ts +11 -11
- package/dist/component/balanceFunding/mutations.d.ts +16 -16
- package/dist/component/balanceFunding/preparationHandlers.d.ts +8 -8
- package/dist/component/balanceFunding/workflowValidators.d.ts +16 -16
- package/dist/component/earnings/triggers.d.ts +84 -6
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/processingCostReconciliation/rollback.d.ts +1 -1
- package/dist/component/recoveryWorkflow/helpers.d.ts +13 -0
- package/dist/component/recoveryWorkflow/helpers.d.ts.map +1 -1
- package/dist/component/recoveryWorkflow/mutations.d.ts +13 -0
- package/dist/component/recoveryWorkflow/mutations.d.ts.map +1 -1
- package/dist/component/recoveryWorkflow/queries.d.ts +26 -0
- package/dist/component/recoveryWorkflow/queries.d.ts.map +1 -1
- package/dist/component/recoveryWorkflow/schema.d.ts +464 -16
- package/dist/component/recoveryWorkflow/schema.d.ts.map +1 -1
- package/dist/component/schema.d.ts +246 -9
- package/dist/component/settlement/mutations.d.ts +26 -0
- package/dist/component/settlement/mutations.d.ts.map +1 -1
- package/dist/component/settlement/queries.d.ts +13 -0
- package/dist/component/settlement/queries.d.ts.map +1 -1
- package/dist/component/settlement/schema.d.ts +122 -3
- package/dist/component/settlement/schema.d.ts.map +1 -1
- package/dist/component/settlement/schema.js +2 -0
- package/dist/component/settlement/schema.js.map +1 -1
- package/dist/component/usage/allowance.fixtures.d.ts +262 -25
- package/dist/component/usage/allowance.fixtures.d.ts.map +1 -1
- package/dist/component/usageCredits/accounting.fixtures.d.ts +246 -9
- package/dist/component/usageCredits/accounting.fixtures.d.ts.map +1 -1
- package/dist/shared/usageInvoiceLines.d.ts +32 -0
- package/dist/shared/usageInvoiceLines.d.ts.map +1 -0
- package/dist/shared/usageInvoiceLines.js +13 -0
- package/dist/shared/usageInvoiceLines.js.map +1 -0
- package/docs/evidence/native-metering/mixed-settlement-2026-10-20.json +284 -0
- package/docs/metering-setup.md +3 -2
- package/docs/usage-example.md +24 -5
- package/docs/usage-settlement.md +74 -8
- package/docs/usage-verification.md +22 -2
- package/package.json +1 -1
- package/src/client/paymentSource/resolver.ts +80 -59
- package/src/client/processingCostReconciliation/provider.ts +20 -2
- package/src/client/settlement/execution.ts +2 -0
- package/src/client/usage/index.ts +2 -0
- package/src/client/usage/invoiceSale.ts +10 -0
- package/src/client/usage/mixedInvoice.fixtures.ts +54 -0
- package/src/client/usage/mixedInvoiceSale.test.ts +92 -0
- package/src/client/usage/mixedInvoiceSale.ts +196 -0
- package/src/client/usage/mixedSettlement.test.ts +187 -0
- package/src/client/usage/retainedInvoiceSource.ts +118 -0
- package/src/client/usage/settlement.ts +47 -9
- package/src/component/_generated/component.ts +50 -0
- package/src/component/settlement/schema.ts +2 -0
- package/src/shared/usageInvoiceLines.ts +14 -0
|
@@ -41,6 +41,19 @@ export declare const bindingFields: {
|
|
|
41
41
|
}[];
|
|
42
42
|
usageSource?: {
|
|
43
43
|
customerAccount: string;
|
|
44
|
+
invoiceLines?: {
|
|
45
|
+
amount: number;
|
|
46
|
+
kind: "fixed" | "metered";
|
|
47
|
+
lineId: string;
|
|
48
|
+
period: {
|
|
49
|
+
end: number;
|
|
50
|
+
start: number;
|
|
51
|
+
};
|
|
52
|
+
quantity: string;
|
|
53
|
+
stripePriceId: string;
|
|
54
|
+
stripeProductId: string;
|
|
55
|
+
subscriptionItemId: string;
|
|
56
|
+
}[] | undefined;
|
|
44
57
|
invoicePaymentId: string;
|
|
45
58
|
livemode: boolean;
|
|
46
59
|
meterId: string;
|
|
@@ -70,6 +83,19 @@ export declare const bindingFields: {
|
|
|
70
83
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
71
84
|
usageSource: import("convex/values").VObject<{
|
|
72
85
|
customerAccount: string;
|
|
86
|
+
invoiceLines?: {
|
|
87
|
+
amount: number;
|
|
88
|
+
kind: "fixed" | "metered";
|
|
89
|
+
lineId: string;
|
|
90
|
+
period: {
|
|
91
|
+
end: number;
|
|
92
|
+
start: number;
|
|
93
|
+
};
|
|
94
|
+
quantity: string;
|
|
95
|
+
stripePriceId: string;
|
|
96
|
+
stripeProductId: string;
|
|
97
|
+
subscriptionItemId: string;
|
|
98
|
+
}[] | undefined;
|
|
73
99
|
invoicePaymentId: string;
|
|
74
100
|
livemode: boolean;
|
|
75
101
|
meterId: string;
|
|
@@ -84,6 +110,46 @@ export declare const bindingFields: {
|
|
|
84
110
|
subscriptionId: string;
|
|
85
111
|
subscriptionItemId: string;
|
|
86
112
|
} | undefined, {
|
|
113
|
+
invoiceLines: import("convex/values").VArray<{
|
|
114
|
+
amount: number;
|
|
115
|
+
kind: "fixed" | "metered";
|
|
116
|
+
lineId: string;
|
|
117
|
+
period: {
|
|
118
|
+
end: number;
|
|
119
|
+
start: number;
|
|
120
|
+
};
|
|
121
|
+
quantity: string;
|
|
122
|
+
stripePriceId: string;
|
|
123
|
+
stripeProductId: string;
|
|
124
|
+
subscriptionItemId: string;
|
|
125
|
+
}[] | undefined, import("convex/values").VObject<{
|
|
126
|
+
amount: number;
|
|
127
|
+
kind: "fixed" | "metered";
|
|
128
|
+
lineId: string;
|
|
129
|
+
period: {
|
|
130
|
+
end: number;
|
|
131
|
+
start: number;
|
|
132
|
+
};
|
|
133
|
+
quantity: string;
|
|
134
|
+
stripePriceId: string;
|
|
135
|
+
stripeProductId: string;
|
|
136
|
+
subscriptionItemId: string;
|
|
137
|
+
}, {
|
|
138
|
+
lineId: import("convex/values").VString<string, "required">;
|
|
139
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
140
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
141
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
142
|
+
period: import("convex/values").VObject<{
|
|
143
|
+
end: number;
|
|
144
|
+
start: number;
|
|
145
|
+
}, {
|
|
146
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
147
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
148
|
+
}, "required", "end" | "start">;
|
|
149
|
+
amount: import("convex/values").VFloat64<number, "required">;
|
|
150
|
+
quantity: import("convex/values").VString<string, "required">;
|
|
151
|
+
kind: import("convex/values").VUnion<"fixed" | "metered", [import("convex/values").VLiteral<"fixed", "required">, import("convex/values").VLiteral<"metered", "required">], "required", never>;
|
|
152
|
+
}, "required", "amount" | "kind" | "lineId" | "period" | "period.end" | "period.start" | "quantity" | "stripePriceId" | "stripeProductId" | "subscriptionItemId">, "optional">;
|
|
87
153
|
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
88
154
|
customerAccount: import("convex/values").VString<string, "required">;
|
|
89
155
|
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
@@ -101,7 +167,7 @@ export declare const bindingFields: {
|
|
|
101
167
|
end: import("convex/values").VFloat64<number, "required">;
|
|
102
168
|
}, "required", "end" | "start">;
|
|
103
169
|
model: import("convex/values").VUnion<"included_overage" | "pay_as_you_go", [import("convex/values").VLiteral<"pay_as_you_go", "required">, import("convex/values").VLiteral<"included_overage", "required">], "required", never>;
|
|
104
|
-
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
170
|
+
}, "optional", "customerAccount" | "invoiceLines" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
105
171
|
creditSource: import("convex/values").VObject<{
|
|
106
172
|
creditGrantId: string;
|
|
107
173
|
customerAccount: string;
|
|
@@ -138,7 +204,7 @@ export declare const bindingFields: {
|
|
|
138
204
|
role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
|
|
139
205
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
140
206
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
141
|
-
}, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "policyContext" | "policyContext.fields" | "policyContext.namespace" | "policyContext.version" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId" | `policyContext.fields.${string}`>;
|
|
207
|
+
}, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "policyContext" | "policyContext.fields" | "policyContext.namespace" | "policyContext.version" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoiceLines" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId" | `policyContext.fields.${string}`>;
|
|
142
208
|
};
|
|
143
209
|
export declare const startFields: {
|
|
144
210
|
accountId: import("convex/values").VString<string, "required">;
|
|
@@ -183,6 +249,19 @@ export declare const startFields: {
|
|
|
183
249
|
}[];
|
|
184
250
|
usageSource?: {
|
|
185
251
|
customerAccount: string;
|
|
252
|
+
invoiceLines?: {
|
|
253
|
+
amount: number;
|
|
254
|
+
kind: "fixed" | "metered";
|
|
255
|
+
lineId: string;
|
|
256
|
+
period: {
|
|
257
|
+
end: number;
|
|
258
|
+
start: number;
|
|
259
|
+
};
|
|
260
|
+
quantity: string;
|
|
261
|
+
stripePriceId: string;
|
|
262
|
+
stripeProductId: string;
|
|
263
|
+
subscriptionItemId: string;
|
|
264
|
+
}[] | undefined;
|
|
186
265
|
invoicePaymentId: string;
|
|
187
266
|
livemode: boolean;
|
|
188
267
|
meterId: string;
|
|
@@ -212,6 +291,19 @@ export declare const startFields: {
|
|
|
212
291
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
213
292
|
usageSource: import("convex/values").VObject<{
|
|
214
293
|
customerAccount: string;
|
|
294
|
+
invoiceLines?: {
|
|
295
|
+
amount: number;
|
|
296
|
+
kind: "fixed" | "metered";
|
|
297
|
+
lineId: string;
|
|
298
|
+
period: {
|
|
299
|
+
end: number;
|
|
300
|
+
start: number;
|
|
301
|
+
};
|
|
302
|
+
quantity: string;
|
|
303
|
+
stripePriceId: string;
|
|
304
|
+
stripeProductId: string;
|
|
305
|
+
subscriptionItemId: string;
|
|
306
|
+
}[] | undefined;
|
|
215
307
|
invoicePaymentId: string;
|
|
216
308
|
livemode: boolean;
|
|
217
309
|
meterId: string;
|
|
@@ -226,6 +318,46 @@ export declare const startFields: {
|
|
|
226
318
|
subscriptionId: string;
|
|
227
319
|
subscriptionItemId: string;
|
|
228
320
|
} | undefined, {
|
|
321
|
+
invoiceLines: import("convex/values").VArray<{
|
|
322
|
+
amount: number;
|
|
323
|
+
kind: "fixed" | "metered";
|
|
324
|
+
lineId: string;
|
|
325
|
+
period: {
|
|
326
|
+
end: number;
|
|
327
|
+
start: number;
|
|
328
|
+
};
|
|
329
|
+
quantity: string;
|
|
330
|
+
stripePriceId: string;
|
|
331
|
+
stripeProductId: string;
|
|
332
|
+
subscriptionItemId: string;
|
|
333
|
+
}[] | undefined, import("convex/values").VObject<{
|
|
334
|
+
amount: number;
|
|
335
|
+
kind: "fixed" | "metered";
|
|
336
|
+
lineId: string;
|
|
337
|
+
period: {
|
|
338
|
+
end: number;
|
|
339
|
+
start: number;
|
|
340
|
+
};
|
|
341
|
+
quantity: string;
|
|
342
|
+
stripePriceId: string;
|
|
343
|
+
stripeProductId: string;
|
|
344
|
+
subscriptionItemId: string;
|
|
345
|
+
}, {
|
|
346
|
+
lineId: import("convex/values").VString<string, "required">;
|
|
347
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
348
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
349
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
350
|
+
period: import("convex/values").VObject<{
|
|
351
|
+
end: number;
|
|
352
|
+
start: number;
|
|
353
|
+
}, {
|
|
354
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
355
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
356
|
+
}, "required", "end" | "start">;
|
|
357
|
+
amount: import("convex/values").VFloat64<number, "required">;
|
|
358
|
+
quantity: import("convex/values").VString<string, "required">;
|
|
359
|
+
kind: import("convex/values").VUnion<"fixed" | "metered", [import("convex/values").VLiteral<"fixed", "required">, import("convex/values").VLiteral<"metered", "required">], "required", never>;
|
|
360
|
+
}, "required", "amount" | "kind" | "lineId" | "period" | "period.end" | "period.start" | "quantity" | "stripePriceId" | "stripeProductId" | "subscriptionItemId">, "optional">;
|
|
229
361
|
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
230
362
|
customerAccount: import("convex/values").VString<string, "required">;
|
|
231
363
|
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
@@ -243,7 +375,7 @@ export declare const startFields: {
|
|
|
243
375
|
end: import("convex/values").VFloat64<number, "required">;
|
|
244
376
|
}, "required", "end" | "start">;
|
|
245
377
|
model: import("convex/values").VUnion<"included_overage" | "pay_as_you_go", [import("convex/values").VLiteral<"pay_as_you_go", "required">, import("convex/values").VLiteral<"included_overage", "required">], "required", never>;
|
|
246
|
-
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
378
|
+
}, "optional", "customerAccount" | "invoiceLines" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
247
379
|
creditSource: import("convex/values").VObject<{
|
|
248
380
|
creditGrantId: string;
|
|
249
381
|
customerAccount: string;
|
|
@@ -280,7 +412,7 @@ export declare const startFields: {
|
|
|
280
412
|
role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
|
|
281
413
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
282
414
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
283
|
-
}, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "policyContext" | "policyContext.fields" | "policyContext.namespace" | "policyContext.version" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId" | `policyContext.fields.${string}`>;
|
|
415
|
+
}, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "policyContext" | "policyContext.fields" | "policyContext.namespace" | "policyContext.version" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoiceLines" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId" | `policyContext.fields.${string}`>;
|
|
284
416
|
requestKey: import("convex/values").VString<string, "required">;
|
|
285
417
|
};
|
|
286
418
|
export declare const refFields: {
|
|
@@ -335,6 +467,19 @@ export declare const operationFields: {
|
|
|
335
467
|
}[];
|
|
336
468
|
usageSource?: {
|
|
337
469
|
customerAccount: string;
|
|
470
|
+
invoiceLines?: {
|
|
471
|
+
amount: number;
|
|
472
|
+
kind: "fixed" | "metered";
|
|
473
|
+
lineId: string;
|
|
474
|
+
period: {
|
|
475
|
+
end: number;
|
|
476
|
+
start: number;
|
|
477
|
+
};
|
|
478
|
+
quantity: string;
|
|
479
|
+
stripePriceId: string;
|
|
480
|
+
stripeProductId: string;
|
|
481
|
+
subscriptionItemId: string;
|
|
482
|
+
}[] | undefined;
|
|
338
483
|
invoicePaymentId: string;
|
|
339
484
|
livemode: boolean;
|
|
340
485
|
meterId: string;
|
|
@@ -364,6 +509,19 @@ export declare const operationFields: {
|
|
|
364
509
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
365
510
|
usageSource: import("convex/values").VObject<{
|
|
366
511
|
customerAccount: string;
|
|
512
|
+
invoiceLines?: {
|
|
513
|
+
amount: number;
|
|
514
|
+
kind: "fixed" | "metered";
|
|
515
|
+
lineId: string;
|
|
516
|
+
period: {
|
|
517
|
+
end: number;
|
|
518
|
+
start: number;
|
|
519
|
+
};
|
|
520
|
+
quantity: string;
|
|
521
|
+
stripePriceId: string;
|
|
522
|
+
stripeProductId: string;
|
|
523
|
+
subscriptionItemId: string;
|
|
524
|
+
}[] | undefined;
|
|
367
525
|
invoicePaymentId: string;
|
|
368
526
|
livemode: boolean;
|
|
369
527
|
meterId: string;
|
|
@@ -378,6 +536,46 @@ export declare const operationFields: {
|
|
|
378
536
|
subscriptionId: string;
|
|
379
537
|
subscriptionItemId: string;
|
|
380
538
|
} | undefined, {
|
|
539
|
+
invoiceLines: import("convex/values").VArray<{
|
|
540
|
+
amount: number;
|
|
541
|
+
kind: "fixed" | "metered";
|
|
542
|
+
lineId: string;
|
|
543
|
+
period: {
|
|
544
|
+
end: number;
|
|
545
|
+
start: number;
|
|
546
|
+
};
|
|
547
|
+
quantity: string;
|
|
548
|
+
stripePriceId: string;
|
|
549
|
+
stripeProductId: string;
|
|
550
|
+
subscriptionItemId: string;
|
|
551
|
+
}[] | undefined, import("convex/values").VObject<{
|
|
552
|
+
amount: number;
|
|
553
|
+
kind: "fixed" | "metered";
|
|
554
|
+
lineId: string;
|
|
555
|
+
period: {
|
|
556
|
+
end: number;
|
|
557
|
+
start: number;
|
|
558
|
+
};
|
|
559
|
+
quantity: string;
|
|
560
|
+
stripePriceId: string;
|
|
561
|
+
stripeProductId: string;
|
|
562
|
+
subscriptionItemId: string;
|
|
563
|
+
}, {
|
|
564
|
+
lineId: import("convex/values").VString<string, "required">;
|
|
565
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
566
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
567
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
568
|
+
period: import("convex/values").VObject<{
|
|
569
|
+
end: number;
|
|
570
|
+
start: number;
|
|
571
|
+
}, {
|
|
572
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
573
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
574
|
+
}, "required", "end" | "start">;
|
|
575
|
+
amount: import("convex/values").VFloat64<number, "required">;
|
|
576
|
+
quantity: import("convex/values").VString<string, "required">;
|
|
577
|
+
kind: import("convex/values").VUnion<"fixed" | "metered", [import("convex/values").VLiteral<"fixed", "required">, import("convex/values").VLiteral<"metered", "required">], "required", never>;
|
|
578
|
+
}, "required", "amount" | "kind" | "lineId" | "period" | "period.end" | "period.start" | "quantity" | "stripePriceId" | "stripeProductId" | "subscriptionItemId">, "optional">;
|
|
381
579
|
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
382
580
|
customerAccount: import("convex/values").VString<string, "required">;
|
|
383
581
|
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
@@ -395,7 +593,7 @@ export declare const operationFields: {
|
|
|
395
593
|
end: import("convex/values").VFloat64<number, "required">;
|
|
396
594
|
}, "required", "end" | "start">;
|
|
397
595
|
model: import("convex/values").VUnion<"included_overage" | "pay_as_you_go", [import("convex/values").VLiteral<"pay_as_you_go", "required">, import("convex/values").VLiteral<"included_overage", "required">], "required", never>;
|
|
398
|
-
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
596
|
+
}, "optional", "customerAccount" | "invoiceLines" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
399
597
|
creditSource: import("convex/values").VObject<{
|
|
400
598
|
creditGrantId: string;
|
|
401
599
|
customerAccount: string;
|
|
@@ -432,7 +630,7 @@ export declare const operationFields: {
|
|
|
432
630
|
role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
|
|
433
631
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
434
632
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
435
|
-
}, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "policyContext" | "policyContext.fields" | "policyContext.namespace" | "policyContext.version" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId" | `policyContext.fields.${string}`>;
|
|
633
|
+
}, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "policyContext" | "policyContext.fields" | "policyContext.namespace" | "policyContext.version" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoiceLines" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId" | `policyContext.fields.${string}`>;
|
|
436
634
|
version: import("convex/values").VFloat64<number, "required">;
|
|
437
635
|
sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
|
|
438
636
|
sourceId: import("convex/values").VString<string, "required">;
|
|
@@ -478,6 +676,19 @@ export declare const operationsTable: import("convex/server").TableDefinition<im
|
|
|
478
676
|
}[];
|
|
479
677
|
usageSource?: {
|
|
480
678
|
customerAccount: string;
|
|
679
|
+
invoiceLines?: {
|
|
680
|
+
amount: number;
|
|
681
|
+
kind: "fixed" | "metered";
|
|
682
|
+
lineId: string;
|
|
683
|
+
period: {
|
|
684
|
+
end: number;
|
|
685
|
+
start: number;
|
|
686
|
+
};
|
|
687
|
+
quantity: string;
|
|
688
|
+
stripePriceId: string;
|
|
689
|
+
stripeProductId: string;
|
|
690
|
+
subscriptionItemId: string;
|
|
691
|
+
}[] | undefined;
|
|
481
692
|
invoicePaymentId: string;
|
|
482
693
|
livemode: boolean;
|
|
483
694
|
meterId: string;
|
|
@@ -555,6 +766,19 @@ export declare const operationsTable: import("convex/server").TableDefinition<im
|
|
|
555
766
|
}[];
|
|
556
767
|
usageSource?: {
|
|
557
768
|
customerAccount: string;
|
|
769
|
+
invoiceLines?: {
|
|
770
|
+
amount: number;
|
|
771
|
+
kind: "fixed" | "metered";
|
|
772
|
+
lineId: string;
|
|
773
|
+
period: {
|
|
774
|
+
end: number;
|
|
775
|
+
start: number;
|
|
776
|
+
};
|
|
777
|
+
quantity: string;
|
|
778
|
+
stripePriceId: string;
|
|
779
|
+
stripeProductId: string;
|
|
780
|
+
subscriptionItemId: string;
|
|
781
|
+
}[] | undefined;
|
|
558
782
|
invoicePaymentId: string;
|
|
559
783
|
livemode: boolean;
|
|
560
784
|
meterId: string;
|
|
@@ -584,6 +808,19 @@ export declare const operationsTable: import("convex/server").TableDefinition<im
|
|
|
584
808
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
585
809
|
usageSource: import("convex/values").VObject<{
|
|
586
810
|
customerAccount: string;
|
|
811
|
+
invoiceLines?: {
|
|
812
|
+
amount: number;
|
|
813
|
+
kind: "fixed" | "metered";
|
|
814
|
+
lineId: string;
|
|
815
|
+
period: {
|
|
816
|
+
end: number;
|
|
817
|
+
start: number;
|
|
818
|
+
};
|
|
819
|
+
quantity: string;
|
|
820
|
+
stripePriceId: string;
|
|
821
|
+
stripeProductId: string;
|
|
822
|
+
subscriptionItemId: string;
|
|
823
|
+
}[] | undefined;
|
|
587
824
|
invoicePaymentId: string;
|
|
588
825
|
livemode: boolean;
|
|
589
826
|
meterId: string;
|
|
@@ -598,6 +835,46 @@ export declare const operationsTable: import("convex/server").TableDefinition<im
|
|
|
598
835
|
subscriptionId: string;
|
|
599
836
|
subscriptionItemId: string;
|
|
600
837
|
} | undefined, {
|
|
838
|
+
invoiceLines: import("convex/values").VArray<{
|
|
839
|
+
amount: number;
|
|
840
|
+
kind: "fixed" | "metered";
|
|
841
|
+
lineId: string;
|
|
842
|
+
period: {
|
|
843
|
+
end: number;
|
|
844
|
+
start: number;
|
|
845
|
+
};
|
|
846
|
+
quantity: string;
|
|
847
|
+
stripePriceId: string;
|
|
848
|
+
stripeProductId: string;
|
|
849
|
+
subscriptionItemId: string;
|
|
850
|
+
}[] | undefined, import("convex/values").VObject<{
|
|
851
|
+
amount: number;
|
|
852
|
+
kind: "fixed" | "metered";
|
|
853
|
+
lineId: string;
|
|
854
|
+
period: {
|
|
855
|
+
end: number;
|
|
856
|
+
start: number;
|
|
857
|
+
};
|
|
858
|
+
quantity: string;
|
|
859
|
+
stripePriceId: string;
|
|
860
|
+
stripeProductId: string;
|
|
861
|
+
subscriptionItemId: string;
|
|
862
|
+
}, {
|
|
863
|
+
lineId: import("convex/values").VString<string, "required">;
|
|
864
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
865
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
866
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
867
|
+
period: import("convex/values").VObject<{
|
|
868
|
+
end: number;
|
|
869
|
+
start: number;
|
|
870
|
+
}, {
|
|
871
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
872
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
873
|
+
}, "required", "end" | "start">;
|
|
874
|
+
amount: import("convex/values").VFloat64<number, "required">;
|
|
875
|
+
quantity: import("convex/values").VString<string, "required">;
|
|
876
|
+
kind: import("convex/values").VUnion<"fixed" | "metered", [import("convex/values").VLiteral<"fixed", "required">, import("convex/values").VLiteral<"metered", "required">], "required", never>;
|
|
877
|
+
}, "required", "amount" | "kind" | "lineId" | "period" | "period.end" | "period.start" | "quantity" | "stripePriceId" | "stripeProductId" | "subscriptionItemId">, "optional">;
|
|
601
878
|
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
602
879
|
customerAccount: import("convex/values").VString<string, "required">;
|
|
603
880
|
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
@@ -615,7 +892,7 @@ export declare const operationsTable: import("convex/server").TableDefinition<im
|
|
|
615
892
|
end: import("convex/values").VFloat64<number, "required">;
|
|
616
893
|
}, "required", "end" | "start">;
|
|
617
894
|
model: import("convex/values").VUnion<"included_overage" | "pay_as_you_go", [import("convex/values").VLiteral<"pay_as_you_go", "required">, import("convex/values").VLiteral<"included_overage", "required">], "required", never>;
|
|
618
|
-
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
895
|
+
}, "optional", "customerAccount" | "invoiceLines" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
619
896
|
creditSource: import("convex/values").VObject<{
|
|
620
897
|
creditGrantId: string;
|
|
621
898
|
customerAccount: string;
|
|
@@ -652,7 +929,7 @@ export declare const operationsTable: import("convex/server").TableDefinition<im
|
|
|
652
929
|
role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
|
|
653
930
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
654
931
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
655
|
-
}, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "policyContext" | "policyContext.fields" | "policyContext.namespace" | "policyContext.version" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId" | `policyContext.fields.${string}`>;
|
|
932
|
+
}, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "policyContext" | "policyContext.fields" | "policyContext.namespace" | "policyContext.version" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoiceLines" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId" | `policyContext.fields.${string}`>;
|
|
656
933
|
version: import("convex/values").VFloat64<number, "required">;
|
|
657
934
|
sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
|
|
658
935
|
sourceId: import("convex/values").VString<string, "required">;
|
|
@@ -663,7 +940,7 @@ export declare const operationsTable: import("convex/server").TableDefinition<im
|
|
|
663
940
|
activePhase: import("convex/values").VUnion<"execute" | "reconcile" | undefined, [import("convex/values").VLiteral<"execute", "required">, import("convex/values").VLiteral<"reconcile", "required">], "optional", never>;
|
|
664
941
|
resumeQueued: import("convex/values").VBoolean<boolean, "required">;
|
|
665
942
|
outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
|
|
666
|
-
}, "required", "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.creditSource" | "allocation.creditSource.creditGrantId" | "allocation.creditSource.customerAccount" | "allocation.creditSource.livemode" | "allocation.creditSource.purchaseId" | "allocation.creditSource.stripeAccountId" | "allocation.creditSource.stripePriceId" | "allocation.creditSource.stripeProductId" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.policyContext" | "allocation.policyContext.fields" | "allocation.policyContext.namespace" | "allocation.policyContext.version" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "allocation.usageSource" | "allocation.usageSource.customerAccount" | "allocation.usageSource.invoicePaymentId" | "allocation.usageSource.livemode" | "allocation.usageSource.meterId" | "allocation.usageSource.model" | "allocation.usageSource.period" | "allocation.usageSource.period.end" | "allocation.usageSource.period.start" | "allocation.usageSource.stripeAccountId" | "allocation.usageSource.stripePriceId" | "allocation.usageSource.stripeProductId" | "allocation.usageSource.subscriptionId" | "allocation.usageSource.subscriptionItemId" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId" | `allocation.policyContext.fields.${string}`>, {
|
|
943
|
+
}, "required", "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.creditSource" | "allocation.creditSource.creditGrantId" | "allocation.creditSource.customerAccount" | "allocation.creditSource.livemode" | "allocation.creditSource.purchaseId" | "allocation.creditSource.stripeAccountId" | "allocation.creditSource.stripePriceId" | "allocation.creditSource.stripeProductId" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.policyContext" | "allocation.policyContext.fields" | "allocation.policyContext.namespace" | "allocation.policyContext.version" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "allocation.usageSource" | "allocation.usageSource.customerAccount" | "allocation.usageSource.invoiceLines" | "allocation.usageSource.invoicePaymentId" | "allocation.usageSource.livemode" | "allocation.usageSource.meterId" | "allocation.usageSource.model" | "allocation.usageSource.period" | "allocation.usageSource.period.end" | "allocation.usageSource.period.start" | "allocation.usageSource.stripeAccountId" | "allocation.usageSource.stripePriceId" | "allocation.usageSource.stripeProductId" | "allocation.usageSource.subscriptionId" | "allocation.usageSource.subscriptionItemId" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId" | `allocation.policyContext.fields.${string}`>, {
|
|
667
944
|
by_group: ["groupKey", "_creationTime"];
|
|
668
945
|
by_source: ["sourceKind", "sourceId", "_creationTime"];
|
|
669
946
|
}, {}, {}>;
|
|
@@ -701,6 +978,19 @@ export declare const requestsTable: import("convex/server").TableDefinition<impo
|
|
|
701
978
|
}[];
|
|
702
979
|
usageSource?: {
|
|
703
980
|
customerAccount: string;
|
|
981
|
+
invoiceLines?: {
|
|
982
|
+
amount: number;
|
|
983
|
+
kind: "fixed" | "metered";
|
|
984
|
+
lineId: string;
|
|
985
|
+
period: {
|
|
986
|
+
end: number;
|
|
987
|
+
start: number;
|
|
988
|
+
};
|
|
989
|
+
quantity: string;
|
|
990
|
+
stripePriceId: string;
|
|
991
|
+
stripeProductId: string;
|
|
992
|
+
subscriptionItemId: string;
|
|
993
|
+
}[] | undefined;
|
|
704
994
|
invoicePaymentId: string;
|
|
705
995
|
livemode: boolean;
|
|
706
996
|
meterId: string;
|
|
@@ -764,6 +1054,19 @@ export declare const requestsTable: import("convex/server").TableDefinition<impo
|
|
|
764
1054
|
}[];
|
|
765
1055
|
usageSource?: {
|
|
766
1056
|
customerAccount: string;
|
|
1057
|
+
invoiceLines?: {
|
|
1058
|
+
amount: number;
|
|
1059
|
+
kind: "fixed" | "metered";
|
|
1060
|
+
lineId: string;
|
|
1061
|
+
period: {
|
|
1062
|
+
end: number;
|
|
1063
|
+
start: number;
|
|
1064
|
+
};
|
|
1065
|
+
quantity: string;
|
|
1066
|
+
stripePriceId: string;
|
|
1067
|
+
stripeProductId: string;
|
|
1068
|
+
subscriptionItemId: string;
|
|
1069
|
+
}[] | undefined;
|
|
767
1070
|
invoicePaymentId: string;
|
|
768
1071
|
livemode: boolean;
|
|
769
1072
|
meterId: string;
|
|
@@ -832,6 +1135,19 @@ export declare const requestsTable: import("convex/server").TableDefinition<impo
|
|
|
832
1135
|
}[];
|
|
833
1136
|
usageSource?: {
|
|
834
1137
|
customerAccount: string;
|
|
1138
|
+
invoiceLines?: {
|
|
1139
|
+
amount: number;
|
|
1140
|
+
kind: "fixed" | "metered";
|
|
1141
|
+
lineId: string;
|
|
1142
|
+
period: {
|
|
1143
|
+
end: number;
|
|
1144
|
+
start: number;
|
|
1145
|
+
};
|
|
1146
|
+
quantity: string;
|
|
1147
|
+
stripePriceId: string;
|
|
1148
|
+
stripeProductId: string;
|
|
1149
|
+
subscriptionItemId: string;
|
|
1150
|
+
}[] | undefined;
|
|
835
1151
|
invoicePaymentId: string;
|
|
836
1152
|
livemode: boolean;
|
|
837
1153
|
meterId: string;
|
|
@@ -861,6 +1177,19 @@ export declare const requestsTable: import("convex/server").TableDefinition<impo
|
|
|
861
1177
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
862
1178
|
usageSource: import("convex/values").VObject<{
|
|
863
1179
|
customerAccount: string;
|
|
1180
|
+
invoiceLines?: {
|
|
1181
|
+
amount: number;
|
|
1182
|
+
kind: "fixed" | "metered";
|
|
1183
|
+
lineId: string;
|
|
1184
|
+
period: {
|
|
1185
|
+
end: number;
|
|
1186
|
+
start: number;
|
|
1187
|
+
};
|
|
1188
|
+
quantity: string;
|
|
1189
|
+
stripePriceId: string;
|
|
1190
|
+
stripeProductId: string;
|
|
1191
|
+
subscriptionItemId: string;
|
|
1192
|
+
}[] | undefined;
|
|
864
1193
|
invoicePaymentId: string;
|
|
865
1194
|
livemode: boolean;
|
|
866
1195
|
meterId: string;
|
|
@@ -875,6 +1204,46 @@ export declare const requestsTable: import("convex/server").TableDefinition<impo
|
|
|
875
1204
|
subscriptionId: string;
|
|
876
1205
|
subscriptionItemId: string;
|
|
877
1206
|
} | undefined, {
|
|
1207
|
+
invoiceLines: import("convex/values").VArray<{
|
|
1208
|
+
amount: number;
|
|
1209
|
+
kind: "fixed" | "metered";
|
|
1210
|
+
lineId: string;
|
|
1211
|
+
period: {
|
|
1212
|
+
end: number;
|
|
1213
|
+
start: number;
|
|
1214
|
+
};
|
|
1215
|
+
quantity: string;
|
|
1216
|
+
stripePriceId: string;
|
|
1217
|
+
stripeProductId: string;
|
|
1218
|
+
subscriptionItemId: string;
|
|
1219
|
+
}[] | undefined, import("convex/values").VObject<{
|
|
1220
|
+
amount: number;
|
|
1221
|
+
kind: "fixed" | "metered";
|
|
1222
|
+
lineId: string;
|
|
1223
|
+
period: {
|
|
1224
|
+
end: number;
|
|
1225
|
+
start: number;
|
|
1226
|
+
};
|
|
1227
|
+
quantity: string;
|
|
1228
|
+
stripePriceId: string;
|
|
1229
|
+
stripeProductId: string;
|
|
1230
|
+
subscriptionItemId: string;
|
|
1231
|
+
}, {
|
|
1232
|
+
lineId: import("convex/values").VString<string, "required">;
|
|
1233
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
1234
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
1235
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
1236
|
+
period: import("convex/values").VObject<{
|
|
1237
|
+
end: number;
|
|
1238
|
+
start: number;
|
|
1239
|
+
}, {
|
|
1240
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
1241
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
1242
|
+
}, "required", "end" | "start">;
|
|
1243
|
+
amount: import("convex/values").VFloat64<number, "required">;
|
|
1244
|
+
quantity: import("convex/values").VString<string, "required">;
|
|
1245
|
+
kind: import("convex/values").VUnion<"fixed" | "metered", [import("convex/values").VLiteral<"fixed", "required">, import("convex/values").VLiteral<"metered", "required">], "required", never>;
|
|
1246
|
+
}, "required", "amount" | "kind" | "lineId" | "period" | "period.end" | "period.start" | "quantity" | "stripePriceId" | "stripeProductId" | "subscriptionItemId">, "optional">;
|
|
878
1247
|
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
879
1248
|
customerAccount: import("convex/values").VString<string, "required">;
|
|
880
1249
|
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
@@ -892,7 +1261,7 @@ export declare const requestsTable: import("convex/server").TableDefinition<impo
|
|
|
892
1261
|
end: import("convex/values").VFloat64<number, "required">;
|
|
893
1262
|
}, "required", "end" | "start">;
|
|
894
1263
|
model: import("convex/values").VUnion<"included_overage" | "pay_as_you_go", [import("convex/values").VLiteral<"pay_as_you_go", "required">, import("convex/values").VLiteral<"included_overage", "required">], "required", never>;
|
|
895
|
-
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
1264
|
+
}, "optional", "customerAccount" | "invoiceLines" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
896
1265
|
creditSource: import("convex/values").VObject<{
|
|
897
1266
|
creditGrantId: string;
|
|
898
1267
|
customerAccount: string;
|
|
@@ -929,10 +1298,10 @@ export declare const requestsTable: import("convex/server").TableDefinition<impo
|
|
|
929
1298
|
role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
|
|
930
1299
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
931
1300
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
932
|
-
}, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "policyContext" | "policyContext.fields" | "policyContext.namespace" | "policyContext.version" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId" | `policyContext.fields.${string}`>;
|
|
933
|
-
}, "required", "accountId" | "allocation" | "allocation.adjustmentAmount" | "allocation.creditSource" | "allocation.creditSource.creditGrantId" | "allocation.creditSource.customerAccount" | "allocation.creditSource.livemode" | "allocation.creditSource.purchaseId" | "allocation.creditSource.stripeAccountId" | "allocation.creditSource.stripePriceId" | "allocation.creditSource.stripeProductId" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.policyContext" | "allocation.policyContext.fields" | "allocation.policyContext.namespace" | "allocation.policyContext.version" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "allocation.usageSource" | "allocation.usageSource.customerAccount" | "allocation.usageSource.invoicePaymentId" | "allocation.usageSource.livemode" | "allocation.usageSource.meterId" | "allocation.usageSource.model" | "allocation.usageSource.period" | "allocation.usageSource.period.end" | "allocation.usageSource.period.start" | "allocation.usageSource.stripeAccountId" | "allocation.usageSource.stripePriceId" | "allocation.usageSource.stripeProductId" | "allocation.usageSource.subscriptionId" | "allocation.usageSource.subscriptionItemId" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "provider" | "providerApiVersion" | "releaseUncollectible" | "retryDelayMs" | "scopeKey" | `allocation.policyContext.fields.${string}`>;
|
|
1301
|
+
}, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "policyContext" | "policyContext.fields" | "policyContext.namespace" | "policyContext.version" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoiceLines" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId" | `policyContext.fields.${string}`>;
|
|
1302
|
+
}, "required", "accountId" | "allocation" | "allocation.adjustmentAmount" | "allocation.creditSource" | "allocation.creditSource.creditGrantId" | "allocation.creditSource.customerAccount" | "allocation.creditSource.livemode" | "allocation.creditSource.purchaseId" | "allocation.creditSource.stripeAccountId" | "allocation.creditSource.stripePriceId" | "allocation.creditSource.stripeProductId" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.policyContext" | "allocation.policyContext.fields" | "allocation.policyContext.namespace" | "allocation.policyContext.version" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "allocation.usageSource" | "allocation.usageSource.customerAccount" | "allocation.usageSource.invoiceLines" | "allocation.usageSource.invoicePaymentId" | "allocation.usageSource.livemode" | "allocation.usageSource.meterId" | "allocation.usageSource.model" | "allocation.usageSource.period" | "allocation.usageSource.period.end" | "allocation.usageSource.period.start" | "allocation.usageSource.stripeAccountId" | "allocation.usageSource.stripePriceId" | "allocation.usageSource.stripeProductId" | "allocation.usageSource.subscriptionId" | "allocation.usageSource.subscriptionItemId" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "provider" | "providerApiVersion" | "releaseUncollectible" | "retryDelayMs" | "scopeKey" | `allocation.policyContext.fields.${string}`>;
|
|
934
1303
|
operationId: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
|
|
935
|
-
}, "required", "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "binding.allocation.creditSource" | "binding.allocation.creditSource.creditGrantId" | "binding.allocation.creditSource.customerAccount" | "binding.allocation.creditSource.livemode" | "binding.allocation.creditSource.purchaseId" | "binding.allocation.creditSource.stripeAccountId" | "binding.allocation.creditSource.stripePriceId" | "binding.allocation.creditSource.stripeProductId" | "binding.allocation.currency" | "binding.allocation.gross" | "binding.allocation.paymentId" | "binding.allocation.paymentIntentId" | "binding.allocation.platformNet" | "binding.allocation.policyContext" | "binding.allocation.policyContext.fields" | "binding.allocation.policyContext.namespace" | "binding.allocation.policyContext.version" | "binding.allocation.processingFee" | "binding.allocation.sourceChargeId" | "binding.allocation.sourceInvoiceId" | "binding.allocation.transfers" | "binding.allocation.usageSource" | "binding.allocation.usageSource.customerAccount" | "binding.allocation.usageSource.invoicePaymentId" | "binding.allocation.usageSource.livemode" | "binding.allocation.usageSource.meterId" | "binding.allocation.usageSource.model" | "binding.allocation.usageSource.period" | "binding.allocation.usageSource.period.end" | "binding.allocation.usageSource.period.start" | "binding.allocation.usageSource.stripeAccountId" | "binding.allocation.usageSource.stripePriceId" | "binding.allocation.usageSource.stripeProductId" | "binding.allocation.usageSource.subscriptionId" | "binding.allocation.usageSource.subscriptionItemId" | "binding.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey" | `binding.allocation.policyContext.fields.${string}`>, {
|
|
1304
|
+
}, "required", "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "binding.allocation.creditSource" | "binding.allocation.creditSource.creditGrantId" | "binding.allocation.creditSource.customerAccount" | "binding.allocation.creditSource.livemode" | "binding.allocation.creditSource.purchaseId" | "binding.allocation.creditSource.stripeAccountId" | "binding.allocation.creditSource.stripePriceId" | "binding.allocation.creditSource.stripeProductId" | "binding.allocation.currency" | "binding.allocation.gross" | "binding.allocation.paymentId" | "binding.allocation.paymentIntentId" | "binding.allocation.platformNet" | "binding.allocation.policyContext" | "binding.allocation.policyContext.fields" | "binding.allocation.policyContext.namespace" | "binding.allocation.policyContext.version" | "binding.allocation.processingFee" | "binding.allocation.sourceChargeId" | "binding.allocation.sourceInvoiceId" | "binding.allocation.transfers" | "binding.allocation.usageSource" | "binding.allocation.usageSource.customerAccount" | "binding.allocation.usageSource.invoiceLines" | "binding.allocation.usageSource.invoicePaymentId" | "binding.allocation.usageSource.livemode" | "binding.allocation.usageSource.meterId" | "binding.allocation.usageSource.model" | "binding.allocation.usageSource.period" | "binding.allocation.usageSource.period.end" | "binding.allocation.usageSource.period.start" | "binding.allocation.usageSource.stripeAccountId" | "binding.allocation.usageSource.stripePriceId" | "binding.allocation.usageSource.stripeProductId" | "binding.allocation.usageSource.subscriptionId" | "binding.allocation.usageSource.subscriptionItemId" | "binding.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey" | `binding.allocation.policyContext.fields.${string}`>, {
|
|
936
1305
|
by_key: ["requestKey", "_creationTime"];
|
|
937
1306
|
}, {}, {}>;
|
|
938
1307
|
export declare const operationDoc: import("convex/values").VObject<{
|
|
@@ -971,6 +1340,19 @@ export declare const operationDoc: import("convex/values").VObject<{
|
|
|
971
1340
|
}[];
|
|
972
1341
|
usageSource?: {
|
|
973
1342
|
customerAccount: string;
|
|
1343
|
+
invoiceLines?: {
|
|
1344
|
+
amount: number;
|
|
1345
|
+
kind: "fixed" | "metered";
|
|
1346
|
+
lineId: string;
|
|
1347
|
+
period: {
|
|
1348
|
+
end: number;
|
|
1349
|
+
start: number;
|
|
1350
|
+
};
|
|
1351
|
+
quantity: string;
|
|
1352
|
+
stripePriceId: string;
|
|
1353
|
+
stripeProductId: string;
|
|
1354
|
+
subscriptionItemId: string;
|
|
1355
|
+
}[] | undefined;
|
|
974
1356
|
invoicePaymentId: string;
|
|
975
1357
|
livemode: boolean;
|
|
976
1358
|
meterId: string;
|
|
@@ -1048,6 +1430,19 @@ export declare const operationDoc: import("convex/values").VObject<{
|
|
|
1048
1430
|
}[];
|
|
1049
1431
|
usageSource?: {
|
|
1050
1432
|
customerAccount: string;
|
|
1433
|
+
invoiceLines?: {
|
|
1434
|
+
amount: number;
|
|
1435
|
+
kind: "fixed" | "metered";
|
|
1436
|
+
lineId: string;
|
|
1437
|
+
period: {
|
|
1438
|
+
end: number;
|
|
1439
|
+
start: number;
|
|
1440
|
+
};
|
|
1441
|
+
quantity: string;
|
|
1442
|
+
stripePriceId: string;
|
|
1443
|
+
stripeProductId: string;
|
|
1444
|
+
subscriptionItemId: string;
|
|
1445
|
+
}[] | undefined;
|
|
1051
1446
|
invoicePaymentId: string;
|
|
1052
1447
|
livemode: boolean;
|
|
1053
1448
|
meterId: string;
|
|
@@ -1077,6 +1472,19 @@ export declare const operationDoc: import("convex/values").VObject<{
|
|
|
1077
1472
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
1078
1473
|
usageSource: import("convex/values").VObject<{
|
|
1079
1474
|
customerAccount: string;
|
|
1475
|
+
invoiceLines?: {
|
|
1476
|
+
amount: number;
|
|
1477
|
+
kind: "fixed" | "metered";
|
|
1478
|
+
lineId: string;
|
|
1479
|
+
period: {
|
|
1480
|
+
end: number;
|
|
1481
|
+
start: number;
|
|
1482
|
+
};
|
|
1483
|
+
quantity: string;
|
|
1484
|
+
stripePriceId: string;
|
|
1485
|
+
stripeProductId: string;
|
|
1486
|
+
subscriptionItemId: string;
|
|
1487
|
+
}[] | undefined;
|
|
1080
1488
|
invoicePaymentId: string;
|
|
1081
1489
|
livemode: boolean;
|
|
1082
1490
|
meterId: string;
|
|
@@ -1091,6 +1499,46 @@ export declare const operationDoc: import("convex/values").VObject<{
|
|
|
1091
1499
|
subscriptionId: string;
|
|
1092
1500
|
subscriptionItemId: string;
|
|
1093
1501
|
} | undefined, {
|
|
1502
|
+
invoiceLines: import("convex/values").VArray<{
|
|
1503
|
+
amount: number;
|
|
1504
|
+
kind: "fixed" | "metered";
|
|
1505
|
+
lineId: string;
|
|
1506
|
+
period: {
|
|
1507
|
+
end: number;
|
|
1508
|
+
start: number;
|
|
1509
|
+
};
|
|
1510
|
+
quantity: string;
|
|
1511
|
+
stripePriceId: string;
|
|
1512
|
+
stripeProductId: string;
|
|
1513
|
+
subscriptionItemId: string;
|
|
1514
|
+
}[] | undefined, import("convex/values").VObject<{
|
|
1515
|
+
amount: number;
|
|
1516
|
+
kind: "fixed" | "metered";
|
|
1517
|
+
lineId: string;
|
|
1518
|
+
period: {
|
|
1519
|
+
end: number;
|
|
1520
|
+
start: number;
|
|
1521
|
+
};
|
|
1522
|
+
quantity: string;
|
|
1523
|
+
stripePriceId: string;
|
|
1524
|
+
stripeProductId: string;
|
|
1525
|
+
subscriptionItemId: string;
|
|
1526
|
+
}, {
|
|
1527
|
+
lineId: import("convex/values").VString<string, "required">;
|
|
1528
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
1529
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
1530
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
1531
|
+
period: import("convex/values").VObject<{
|
|
1532
|
+
end: number;
|
|
1533
|
+
start: number;
|
|
1534
|
+
}, {
|
|
1535
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
1536
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
1537
|
+
}, "required", "end" | "start">;
|
|
1538
|
+
amount: import("convex/values").VFloat64<number, "required">;
|
|
1539
|
+
quantity: import("convex/values").VString<string, "required">;
|
|
1540
|
+
kind: import("convex/values").VUnion<"fixed" | "metered", [import("convex/values").VLiteral<"fixed", "required">, import("convex/values").VLiteral<"metered", "required">], "required", never>;
|
|
1541
|
+
}, "required", "amount" | "kind" | "lineId" | "period" | "period.end" | "period.start" | "quantity" | "stripePriceId" | "stripeProductId" | "subscriptionItemId">, "optional">;
|
|
1094
1542
|
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
1095
1543
|
customerAccount: import("convex/values").VString<string, "required">;
|
|
1096
1544
|
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
@@ -1108,7 +1556,7 @@ export declare const operationDoc: import("convex/values").VObject<{
|
|
|
1108
1556
|
end: import("convex/values").VFloat64<number, "required">;
|
|
1109
1557
|
}, "required", "end" | "start">;
|
|
1110
1558
|
model: import("convex/values").VUnion<"included_overage" | "pay_as_you_go", [import("convex/values").VLiteral<"pay_as_you_go", "required">, import("convex/values").VLiteral<"included_overage", "required">], "required", never>;
|
|
1111
|
-
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
1559
|
+
}, "optional", "customerAccount" | "invoiceLines" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
1112
1560
|
creditSource: import("convex/values").VObject<{
|
|
1113
1561
|
creditGrantId: string;
|
|
1114
1562
|
customerAccount: string;
|
|
@@ -1145,7 +1593,7 @@ export declare const operationDoc: import("convex/values").VObject<{
|
|
|
1145
1593
|
role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
|
|
1146
1594
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
1147
1595
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
1148
|
-
}, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "policyContext" | "policyContext.fields" | "policyContext.namespace" | "policyContext.version" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId" | `policyContext.fields.${string}`>;
|
|
1596
|
+
}, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "policyContext" | "policyContext.fields" | "policyContext.namespace" | "policyContext.version" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoiceLines" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId" | `policyContext.fields.${string}`>;
|
|
1149
1597
|
version: import("convex/values").VFloat64<number, "required">;
|
|
1150
1598
|
sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
|
|
1151
1599
|
sourceId: import("convex/values").VString<string, "required">;
|
|
@@ -1158,7 +1606,7 @@ export declare const operationDoc: import("convex/values").VObject<{
|
|
|
1158
1606
|
outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
|
|
1159
1607
|
_id: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
|
|
1160
1608
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
1161
|
-
}, "required", "_creationTime" | "_id" | "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.creditSource" | "allocation.creditSource.creditGrantId" | "allocation.creditSource.customerAccount" | "allocation.creditSource.livemode" | "allocation.creditSource.purchaseId" | "allocation.creditSource.stripeAccountId" | "allocation.creditSource.stripePriceId" | "allocation.creditSource.stripeProductId" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.policyContext" | "allocation.policyContext.fields" | "allocation.policyContext.namespace" | "allocation.policyContext.version" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "allocation.usageSource" | "allocation.usageSource.customerAccount" | "allocation.usageSource.invoicePaymentId" | "allocation.usageSource.livemode" | "allocation.usageSource.meterId" | "allocation.usageSource.model" | "allocation.usageSource.period" | "allocation.usageSource.period.end" | "allocation.usageSource.period.start" | "allocation.usageSource.stripeAccountId" | "allocation.usageSource.stripePriceId" | "allocation.usageSource.stripeProductId" | "allocation.usageSource.subscriptionId" | "allocation.usageSource.subscriptionItemId" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId" | `allocation.policyContext.fields.${string}`>;
|
|
1609
|
+
}, "required", "_creationTime" | "_id" | "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.creditSource" | "allocation.creditSource.creditGrantId" | "allocation.creditSource.customerAccount" | "allocation.creditSource.livemode" | "allocation.creditSource.purchaseId" | "allocation.creditSource.stripeAccountId" | "allocation.creditSource.stripePriceId" | "allocation.creditSource.stripeProductId" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.policyContext" | "allocation.policyContext.fields" | "allocation.policyContext.namespace" | "allocation.policyContext.version" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "allocation.usageSource" | "allocation.usageSource.customerAccount" | "allocation.usageSource.invoiceLines" | "allocation.usageSource.invoicePaymentId" | "allocation.usageSource.livemode" | "allocation.usageSource.meterId" | "allocation.usageSource.model" | "allocation.usageSource.period" | "allocation.usageSource.period.end" | "allocation.usageSource.period.start" | "allocation.usageSource.stripeAccountId" | "allocation.usageSource.stripePriceId" | "allocation.usageSource.stripeProductId" | "allocation.usageSource.subscriptionId" | "allocation.usageSource.subscriptionItemId" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId" | `allocation.policyContext.fields.${string}`>;
|
|
1162
1610
|
export declare const statusFields: {
|
|
1163
1611
|
accountId: import("convex/values").VString<string, "required">;
|
|
1164
1612
|
scopeKey: import("convex/values").VString<string, "required">;
|