@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
|
@@ -1418,6 +1418,19 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
1418
1418
|
}[];
|
|
1419
1419
|
usageSource?: {
|
|
1420
1420
|
customerAccount: string;
|
|
1421
|
+
invoiceLines?: {
|
|
1422
|
+
amount: number;
|
|
1423
|
+
kind: "fixed" | "metered";
|
|
1424
|
+
lineId: string;
|
|
1425
|
+
period: {
|
|
1426
|
+
end: number;
|
|
1427
|
+
start: number;
|
|
1428
|
+
};
|
|
1429
|
+
quantity: string;
|
|
1430
|
+
stripePriceId: string;
|
|
1431
|
+
stripeProductId: string;
|
|
1432
|
+
subscriptionItemId: string;
|
|
1433
|
+
}[] | undefined;
|
|
1421
1434
|
invoicePaymentId: string;
|
|
1422
1435
|
livemode: boolean;
|
|
1423
1436
|
meterId: string;
|
|
@@ -1495,6 +1508,19 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
1495
1508
|
}[];
|
|
1496
1509
|
usageSource?: {
|
|
1497
1510
|
customerAccount: string;
|
|
1511
|
+
invoiceLines?: {
|
|
1512
|
+
amount: number;
|
|
1513
|
+
kind: "fixed" | "metered";
|
|
1514
|
+
lineId: string;
|
|
1515
|
+
period: {
|
|
1516
|
+
end: number;
|
|
1517
|
+
start: number;
|
|
1518
|
+
};
|
|
1519
|
+
quantity: string;
|
|
1520
|
+
stripePriceId: string;
|
|
1521
|
+
stripeProductId: string;
|
|
1522
|
+
subscriptionItemId: string;
|
|
1523
|
+
}[] | undefined;
|
|
1498
1524
|
invoicePaymentId: string;
|
|
1499
1525
|
livemode: boolean;
|
|
1500
1526
|
meterId: string;
|
|
@@ -1524,6 +1550,19 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
1524
1550
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
1525
1551
|
usageSource: import("convex/values").VObject<{
|
|
1526
1552
|
customerAccount: string;
|
|
1553
|
+
invoiceLines?: {
|
|
1554
|
+
amount: number;
|
|
1555
|
+
kind: "fixed" | "metered";
|
|
1556
|
+
lineId: string;
|
|
1557
|
+
period: {
|
|
1558
|
+
end: number;
|
|
1559
|
+
start: number;
|
|
1560
|
+
};
|
|
1561
|
+
quantity: string;
|
|
1562
|
+
stripePriceId: string;
|
|
1563
|
+
stripeProductId: string;
|
|
1564
|
+
subscriptionItemId: string;
|
|
1565
|
+
}[] | undefined;
|
|
1527
1566
|
invoicePaymentId: string;
|
|
1528
1567
|
livemode: boolean;
|
|
1529
1568
|
meterId: string;
|
|
@@ -1538,6 +1577,46 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
1538
1577
|
subscriptionId: string;
|
|
1539
1578
|
subscriptionItemId: string;
|
|
1540
1579
|
} | undefined, {
|
|
1580
|
+
invoiceLines: import("convex/values").VArray<{
|
|
1581
|
+
amount: number;
|
|
1582
|
+
kind: "fixed" | "metered";
|
|
1583
|
+
lineId: string;
|
|
1584
|
+
period: {
|
|
1585
|
+
end: number;
|
|
1586
|
+
start: number;
|
|
1587
|
+
};
|
|
1588
|
+
quantity: string;
|
|
1589
|
+
stripePriceId: string;
|
|
1590
|
+
stripeProductId: string;
|
|
1591
|
+
subscriptionItemId: string;
|
|
1592
|
+
}[] | undefined, import("convex/values").VObject<{
|
|
1593
|
+
amount: number;
|
|
1594
|
+
kind: "fixed" | "metered";
|
|
1595
|
+
lineId: string;
|
|
1596
|
+
period: {
|
|
1597
|
+
end: number;
|
|
1598
|
+
start: number;
|
|
1599
|
+
};
|
|
1600
|
+
quantity: string;
|
|
1601
|
+
stripePriceId: string;
|
|
1602
|
+
stripeProductId: string;
|
|
1603
|
+
subscriptionItemId: string;
|
|
1604
|
+
}, {
|
|
1605
|
+
lineId: import("convex/values").VString<string, "required">;
|
|
1606
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
1607
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
1608
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
1609
|
+
period: import("convex/values").VObject<{
|
|
1610
|
+
end: number;
|
|
1611
|
+
start: number;
|
|
1612
|
+
}, {
|
|
1613
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
1614
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
1615
|
+
}, "required", "end" | "start">;
|
|
1616
|
+
amount: import("convex/values").VFloat64<number, "required">;
|
|
1617
|
+
quantity: import("convex/values").VString<string, "required">;
|
|
1618
|
+
kind: import("convex/values").VUnion<"fixed" | "metered", [import("convex/values").VLiteral<"fixed", "required">, import("convex/values").VLiteral<"metered", "required">], "required", never>;
|
|
1619
|
+
}, "required", "amount" | "kind" | "lineId" | "period" | "period.end" | "period.start" | "quantity" | "stripePriceId" | "stripeProductId" | "subscriptionItemId">, "optional">;
|
|
1541
1620
|
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
1542
1621
|
customerAccount: import("convex/values").VString<string, "required">;
|
|
1543
1622
|
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
@@ -1555,7 +1634,7 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
1555
1634
|
end: import("convex/values").VFloat64<number, "required">;
|
|
1556
1635
|
}, "required", "end" | "start">;
|
|
1557
1636
|
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>;
|
|
1558
|
-
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
1637
|
+
}, "optional", "customerAccount" | "invoiceLines" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
1559
1638
|
creditSource: import("convex/values").VObject<{
|
|
1560
1639
|
creditGrantId: string;
|
|
1561
1640
|
customerAccount: string;
|
|
@@ -1592,7 +1671,7 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
1592
1671
|
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>;
|
|
1593
1672
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
1594
1673
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
1595
|
-
}, "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}`>;
|
|
1674
|
+
}, "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}`>;
|
|
1596
1675
|
version: import("convex/values").VFloat64<number, "required">;
|
|
1597
1676
|
sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
|
|
1598
1677
|
sourceId: import("convex/values").VString<string, "required">;
|
|
@@ -1603,7 +1682,7 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
1603
1682
|
activePhase: import("convex/values").VUnion<"execute" | "reconcile" | undefined, [import("convex/values").VLiteral<"execute", "required">, import("convex/values").VLiteral<"reconcile", "required">], "optional", never>;
|
|
1604
1683
|
resumeQueued: import("convex/values").VBoolean<boolean, "required">;
|
|
1605
1684
|
outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
|
|
1606
|
-
}, "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}`>, {
|
|
1685
|
+
}, "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}`>, {
|
|
1607
1686
|
by_group: ["groupKey", "_creationTime"];
|
|
1608
1687
|
by_source: ["sourceKind", "sourceId", "_creationTime"];
|
|
1609
1688
|
}, {}, {}>;
|
|
@@ -1641,6 +1720,19 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
1641
1720
|
}[];
|
|
1642
1721
|
usageSource?: {
|
|
1643
1722
|
customerAccount: string;
|
|
1723
|
+
invoiceLines?: {
|
|
1724
|
+
amount: number;
|
|
1725
|
+
kind: "fixed" | "metered";
|
|
1726
|
+
lineId: string;
|
|
1727
|
+
period: {
|
|
1728
|
+
end: number;
|
|
1729
|
+
start: number;
|
|
1730
|
+
};
|
|
1731
|
+
quantity: string;
|
|
1732
|
+
stripePriceId: string;
|
|
1733
|
+
stripeProductId: string;
|
|
1734
|
+
subscriptionItemId: string;
|
|
1735
|
+
}[] | undefined;
|
|
1644
1736
|
invoicePaymentId: string;
|
|
1645
1737
|
livemode: boolean;
|
|
1646
1738
|
meterId: string;
|
|
@@ -1704,6 +1796,19 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
1704
1796
|
}[];
|
|
1705
1797
|
usageSource?: {
|
|
1706
1798
|
customerAccount: string;
|
|
1799
|
+
invoiceLines?: {
|
|
1800
|
+
amount: number;
|
|
1801
|
+
kind: "fixed" | "metered";
|
|
1802
|
+
lineId: string;
|
|
1803
|
+
period: {
|
|
1804
|
+
end: number;
|
|
1805
|
+
start: number;
|
|
1806
|
+
};
|
|
1807
|
+
quantity: string;
|
|
1808
|
+
stripePriceId: string;
|
|
1809
|
+
stripeProductId: string;
|
|
1810
|
+
subscriptionItemId: string;
|
|
1811
|
+
}[] | undefined;
|
|
1707
1812
|
invoicePaymentId: string;
|
|
1708
1813
|
livemode: boolean;
|
|
1709
1814
|
meterId: string;
|
|
@@ -1772,6 +1877,19 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
1772
1877
|
}[];
|
|
1773
1878
|
usageSource?: {
|
|
1774
1879
|
customerAccount: string;
|
|
1880
|
+
invoiceLines?: {
|
|
1881
|
+
amount: number;
|
|
1882
|
+
kind: "fixed" | "metered";
|
|
1883
|
+
lineId: string;
|
|
1884
|
+
period: {
|
|
1885
|
+
end: number;
|
|
1886
|
+
start: number;
|
|
1887
|
+
};
|
|
1888
|
+
quantity: string;
|
|
1889
|
+
stripePriceId: string;
|
|
1890
|
+
stripeProductId: string;
|
|
1891
|
+
subscriptionItemId: string;
|
|
1892
|
+
}[] | undefined;
|
|
1775
1893
|
invoicePaymentId: string;
|
|
1776
1894
|
livemode: boolean;
|
|
1777
1895
|
meterId: string;
|
|
@@ -1801,6 +1919,19 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
1801
1919
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
1802
1920
|
usageSource: import("convex/values").VObject<{
|
|
1803
1921
|
customerAccount: string;
|
|
1922
|
+
invoiceLines?: {
|
|
1923
|
+
amount: number;
|
|
1924
|
+
kind: "fixed" | "metered";
|
|
1925
|
+
lineId: string;
|
|
1926
|
+
period: {
|
|
1927
|
+
end: number;
|
|
1928
|
+
start: number;
|
|
1929
|
+
};
|
|
1930
|
+
quantity: string;
|
|
1931
|
+
stripePriceId: string;
|
|
1932
|
+
stripeProductId: string;
|
|
1933
|
+
subscriptionItemId: string;
|
|
1934
|
+
}[] | undefined;
|
|
1804
1935
|
invoicePaymentId: string;
|
|
1805
1936
|
livemode: boolean;
|
|
1806
1937
|
meterId: string;
|
|
@@ -1815,6 +1946,46 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
1815
1946
|
subscriptionId: string;
|
|
1816
1947
|
subscriptionItemId: string;
|
|
1817
1948
|
} | undefined, {
|
|
1949
|
+
invoiceLines: import("convex/values").VArray<{
|
|
1950
|
+
amount: number;
|
|
1951
|
+
kind: "fixed" | "metered";
|
|
1952
|
+
lineId: string;
|
|
1953
|
+
period: {
|
|
1954
|
+
end: number;
|
|
1955
|
+
start: number;
|
|
1956
|
+
};
|
|
1957
|
+
quantity: string;
|
|
1958
|
+
stripePriceId: string;
|
|
1959
|
+
stripeProductId: string;
|
|
1960
|
+
subscriptionItemId: string;
|
|
1961
|
+
}[] | undefined, import("convex/values").VObject<{
|
|
1962
|
+
amount: number;
|
|
1963
|
+
kind: "fixed" | "metered";
|
|
1964
|
+
lineId: string;
|
|
1965
|
+
period: {
|
|
1966
|
+
end: number;
|
|
1967
|
+
start: number;
|
|
1968
|
+
};
|
|
1969
|
+
quantity: string;
|
|
1970
|
+
stripePriceId: string;
|
|
1971
|
+
stripeProductId: string;
|
|
1972
|
+
subscriptionItemId: string;
|
|
1973
|
+
}, {
|
|
1974
|
+
lineId: import("convex/values").VString<string, "required">;
|
|
1975
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
1976
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
1977
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
1978
|
+
period: import("convex/values").VObject<{
|
|
1979
|
+
end: number;
|
|
1980
|
+
start: number;
|
|
1981
|
+
}, {
|
|
1982
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
1983
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
1984
|
+
}, "required", "end" | "start">;
|
|
1985
|
+
amount: import("convex/values").VFloat64<number, "required">;
|
|
1986
|
+
quantity: import("convex/values").VString<string, "required">;
|
|
1987
|
+
kind: import("convex/values").VUnion<"fixed" | "metered", [import("convex/values").VLiteral<"fixed", "required">, import("convex/values").VLiteral<"metered", "required">], "required", never>;
|
|
1988
|
+
}, "required", "amount" | "kind" | "lineId" | "period" | "period.end" | "period.start" | "quantity" | "stripePriceId" | "stripeProductId" | "subscriptionItemId">, "optional">;
|
|
1818
1989
|
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
1819
1990
|
customerAccount: import("convex/values").VString<string, "required">;
|
|
1820
1991
|
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
@@ -1832,7 +2003,7 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
1832
2003
|
end: import("convex/values").VFloat64<number, "required">;
|
|
1833
2004
|
}, "required", "end" | "start">;
|
|
1834
2005
|
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>;
|
|
1835
|
-
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
2006
|
+
}, "optional", "customerAccount" | "invoiceLines" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
1836
2007
|
creditSource: import("convex/values").VObject<{
|
|
1837
2008
|
creditGrantId: string;
|
|
1838
2009
|
customerAccount: string;
|
|
@@ -1869,10 +2040,10 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
1869
2040
|
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>;
|
|
1870
2041
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
1871
2042
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
1872
|
-
}, "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}`>;
|
|
1873
|
-
}, "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}`>;
|
|
2043
|
+
}, "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}`>;
|
|
2044
|
+
}, "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}`>;
|
|
1874
2045
|
operationId: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
|
|
1875
|
-
}, "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}`>, {
|
|
2046
|
+
}, "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}`>, {
|
|
1876
2047
|
by_key: ["requestKey", "_creationTime"];
|
|
1877
2048
|
}, {}, {}>;
|
|
1878
2049
|
balanceFundingPreparations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -2180,6 +2351,14 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
2180
2351
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
2181
2352
|
requestKey: string;
|
|
2182
2353
|
result?: {
|
|
2354
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2355
|
+
retryable: false;
|
|
2356
|
+
status: "conflict";
|
|
2357
|
+
} | {
|
|
2358
|
+
reason: "policy_invalid";
|
|
2359
|
+
retryable: false;
|
|
2360
|
+
status: "rejected";
|
|
2361
|
+
} | {
|
|
2183
2362
|
operation: {
|
|
2184
2363
|
accountId: string;
|
|
2185
2364
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2190,14 +2369,6 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
2190
2369
|
} | {
|
|
2191
2370
|
enabled: boolean;
|
|
2192
2371
|
status: "unchanged";
|
|
2193
|
-
} | {
|
|
2194
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2195
|
-
retryable: false;
|
|
2196
|
-
status: "conflict";
|
|
2197
|
-
} | {
|
|
2198
|
-
reason: "policy_invalid";
|
|
2199
|
-
retryable: false;
|
|
2200
|
-
status: "rejected";
|
|
2201
2372
|
} | {
|
|
2202
2373
|
reason: "provider_pending";
|
|
2203
2374
|
retryable: true;
|
|
@@ -2208,6 +2379,14 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
2208
2379
|
payload: import("convex/values").VString<string, "required">;
|
|
2209
2380
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
2210
2381
|
result: import("convex/values").VUnion<{
|
|
2382
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2383
|
+
retryable: false;
|
|
2384
|
+
status: "conflict";
|
|
2385
|
+
} | {
|
|
2386
|
+
reason: "policy_invalid";
|
|
2387
|
+
retryable: false;
|
|
2388
|
+
status: "rejected";
|
|
2389
|
+
} | {
|
|
2211
2390
|
operation: {
|
|
2212
2391
|
accountId: string;
|
|
2213
2392
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2218,14 +2397,6 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
2218
2397
|
} | {
|
|
2219
2398
|
enabled: boolean;
|
|
2220
2399
|
status: "unchanged";
|
|
2221
|
-
} | {
|
|
2222
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2223
|
-
retryable: false;
|
|
2224
|
-
status: "conflict";
|
|
2225
|
-
} | {
|
|
2226
|
-
reason: "policy_invalid";
|
|
2227
|
-
retryable: false;
|
|
2228
|
-
status: "rejected";
|
|
2229
2400
|
} | {
|
|
2230
2401
|
reason: "provider_pending";
|
|
2231
2402
|
retryable: true;
|
|
@@ -3700,6 +3871,19 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
3700
3871
|
}[];
|
|
3701
3872
|
usageSource?: {
|
|
3702
3873
|
customerAccount: string;
|
|
3874
|
+
invoiceLines?: {
|
|
3875
|
+
amount: number;
|
|
3876
|
+
kind: "fixed" | "metered";
|
|
3877
|
+
lineId: string;
|
|
3878
|
+
period: {
|
|
3879
|
+
end: number;
|
|
3880
|
+
start: number;
|
|
3881
|
+
};
|
|
3882
|
+
quantity: string;
|
|
3883
|
+
stripePriceId: string;
|
|
3884
|
+
stripeProductId: string;
|
|
3885
|
+
subscriptionItemId: string;
|
|
3886
|
+
}[] | undefined;
|
|
3703
3887
|
invoicePaymentId: string;
|
|
3704
3888
|
livemode: boolean;
|
|
3705
3889
|
meterId: string;
|
|
@@ -3729,6 +3913,19 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
3729
3913
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
3730
3914
|
usageSource: import("convex/values").VObject<{
|
|
3731
3915
|
customerAccount: string;
|
|
3916
|
+
invoiceLines?: {
|
|
3917
|
+
amount: number;
|
|
3918
|
+
kind: "fixed" | "metered";
|
|
3919
|
+
lineId: string;
|
|
3920
|
+
period: {
|
|
3921
|
+
end: number;
|
|
3922
|
+
start: number;
|
|
3923
|
+
};
|
|
3924
|
+
quantity: string;
|
|
3925
|
+
stripePriceId: string;
|
|
3926
|
+
stripeProductId: string;
|
|
3927
|
+
subscriptionItemId: string;
|
|
3928
|
+
}[] | undefined;
|
|
3732
3929
|
invoicePaymentId: string;
|
|
3733
3930
|
livemode: boolean;
|
|
3734
3931
|
meterId: string;
|
|
@@ -3743,6 +3940,46 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
3743
3940
|
subscriptionId: string;
|
|
3744
3941
|
subscriptionItemId: string;
|
|
3745
3942
|
} | undefined, {
|
|
3943
|
+
invoiceLines: import("convex/values").VArray<{
|
|
3944
|
+
amount: number;
|
|
3945
|
+
kind: "fixed" | "metered";
|
|
3946
|
+
lineId: string;
|
|
3947
|
+
period: {
|
|
3948
|
+
end: number;
|
|
3949
|
+
start: number;
|
|
3950
|
+
};
|
|
3951
|
+
quantity: string;
|
|
3952
|
+
stripePriceId: string;
|
|
3953
|
+
stripeProductId: string;
|
|
3954
|
+
subscriptionItemId: string;
|
|
3955
|
+
}[] | undefined, import("convex/values").VObject<{
|
|
3956
|
+
amount: number;
|
|
3957
|
+
kind: "fixed" | "metered";
|
|
3958
|
+
lineId: string;
|
|
3959
|
+
period: {
|
|
3960
|
+
end: number;
|
|
3961
|
+
start: number;
|
|
3962
|
+
};
|
|
3963
|
+
quantity: string;
|
|
3964
|
+
stripePriceId: string;
|
|
3965
|
+
stripeProductId: string;
|
|
3966
|
+
subscriptionItemId: string;
|
|
3967
|
+
}, {
|
|
3968
|
+
lineId: import("convex/values").VString<string, "required">;
|
|
3969
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
3970
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
3971
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
3972
|
+
period: import("convex/values").VObject<{
|
|
3973
|
+
end: number;
|
|
3974
|
+
start: number;
|
|
3975
|
+
}, {
|
|
3976
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
3977
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
3978
|
+
}, "required", "end" | "start">;
|
|
3979
|
+
amount: import("convex/values").VFloat64<number, "required">;
|
|
3980
|
+
quantity: import("convex/values").VString<string, "required">;
|
|
3981
|
+
kind: import("convex/values").VUnion<"fixed" | "metered", [import("convex/values").VLiteral<"fixed", "required">, import("convex/values").VLiteral<"metered", "required">], "required", never>;
|
|
3982
|
+
}, "required", "amount" | "kind" | "lineId" | "period" | "period.end" | "period.start" | "quantity" | "stripePriceId" | "stripeProductId" | "subscriptionItemId">, "optional">;
|
|
3746
3983
|
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
3747
3984
|
customerAccount: import("convex/values").VString<string, "required">;
|
|
3748
3985
|
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
@@ -3760,7 +3997,7 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
3760
3997
|
end: import("convex/values").VFloat64<number, "required">;
|
|
3761
3998
|
}, "required", "end" | "start">;
|
|
3762
3999
|
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>;
|
|
3763
|
-
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
4000
|
+
}, "optional", "customerAccount" | "invoiceLines" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
3764
4001
|
creditSource: import("convex/values").VObject<{
|
|
3765
4002
|
creditGrantId: string;
|
|
3766
4003
|
customerAccount: string;
|
|
@@ -3797,7 +4034,7 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
3797
4034
|
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>;
|
|
3798
4035
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
3799
4036
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
3800
|
-
}, "required", "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}`>, {
|
|
4037
|
+
}, "required", "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}`>, {
|
|
3801
4038
|
by_source_charge: ["sourceChargeId", "_creationTime"];
|
|
3802
4039
|
}, {}, {}>;
|
|
3803
4040
|
commissionTerms: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -6037,6 +6274,19 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
6037
6274
|
}[];
|
|
6038
6275
|
usageSource?: {
|
|
6039
6276
|
customerAccount: string;
|
|
6277
|
+
invoiceLines?: {
|
|
6278
|
+
amount: number;
|
|
6279
|
+
kind: "fixed" | "metered";
|
|
6280
|
+
lineId: string;
|
|
6281
|
+
period: {
|
|
6282
|
+
end: number;
|
|
6283
|
+
start: number;
|
|
6284
|
+
};
|
|
6285
|
+
quantity: string;
|
|
6286
|
+
stripePriceId: string;
|
|
6287
|
+
stripeProductId: string;
|
|
6288
|
+
subscriptionItemId: string;
|
|
6289
|
+
}[] | undefined;
|
|
6040
6290
|
invoicePaymentId: string;
|
|
6041
6291
|
livemode: boolean;
|
|
6042
6292
|
meterId: string;
|
|
@@ -6114,6 +6364,19 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
6114
6364
|
}[];
|
|
6115
6365
|
usageSource?: {
|
|
6116
6366
|
customerAccount: string;
|
|
6367
|
+
invoiceLines?: {
|
|
6368
|
+
amount: number;
|
|
6369
|
+
kind: "fixed" | "metered";
|
|
6370
|
+
lineId: string;
|
|
6371
|
+
period: {
|
|
6372
|
+
end: number;
|
|
6373
|
+
start: number;
|
|
6374
|
+
};
|
|
6375
|
+
quantity: string;
|
|
6376
|
+
stripePriceId: string;
|
|
6377
|
+
stripeProductId: string;
|
|
6378
|
+
subscriptionItemId: string;
|
|
6379
|
+
}[] | undefined;
|
|
6117
6380
|
invoicePaymentId: string;
|
|
6118
6381
|
livemode: boolean;
|
|
6119
6382
|
meterId: string;
|
|
@@ -6143,6 +6406,19 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
6143
6406
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
6144
6407
|
usageSource: import("convex/values").VObject<{
|
|
6145
6408
|
customerAccount: string;
|
|
6409
|
+
invoiceLines?: {
|
|
6410
|
+
amount: number;
|
|
6411
|
+
kind: "fixed" | "metered";
|
|
6412
|
+
lineId: string;
|
|
6413
|
+
period: {
|
|
6414
|
+
end: number;
|
|
6415
|
+
start: number;
|
|
6416
|
+
};
|
|
6417
|
+
quantity: string;
|
|
6418
|
+
stripePriceId: string;
|
|
6419
|
+
stripeProductId: string;
|
|
6420
|
+
subscriptionItemId: string;
|
|
6421
|
+
}[] | undefined;
|
|
6146
6422
|
invoicePaymentId: string;
|
|
6147
6423
|
livemode: boolean;
|
|
6148
6424
|
meterId: string;
|
|
@@ -6157,6 +6433,46 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
6157
6433
|
subscriptionId: string;
|
|
6158
6434
|
subscriptionItemId: string;
|
|
6159
6435
|
} | undefined, {
|
|
6436
|
+
invoiceLines: import("convex/values").VArray<{
|
|
6437
|
+
amount: number;
|
|
6438
|
+
kind: "fixed" | "metered";
|
|
6439
|
+
lineId: string;
|
|
6440
|
+
period: {
|
|
6441
|
+
end: number;
|
|
6442
|
+
start: number;
|
|
6443
|
+
};
|
|
6444
|
+
quantity: string;
|
|
6445
|
+
stripePriceId: string;
|
|
6446
|
+
stripeProductId: string;
|
|
6447
|
+
subscriptionItemId: string;
|
|
6448
|
+
}[] | undefined, import("convex/values").VObject<{
|
|
6449
|
+
amount: number;
|
|
6450
|
+
kind: "fixed" | "metered";
|
|
6451
|
+
lineId: string;
|
|
6452
|
+
period: {
|
|
6453
|
+
end: number;
|
|
6454
|
+
start: number;
|
|
6455
|
+
};
|
|
6456
|
+
quantity: string;
|
|
6457
|
+
stripePriceId: string;
|
|
6458
|
+
stripeProductId: string;
|
|
6459
|
+
subscriptionItemId: string;
|
|
6460
|
+
}, {
|
|
6461
|
+
lineId: import("convex/values").VString<string, "required">;
|
|
6462
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
6463
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
6464
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
6465
|
+
period: import("convex/values").VObject<{
|
|
6466
|
+
end: number;
|
|
6467
|
+
start: number;
|
|
6468
|
+
}, {
|
|
6469
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
6470
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
6471
|
+
}, "required", "end" | "start">;
|
|
6472
|
+
amount: import("convex/values").VFloat64<number, "required">;
|
|
6473
|
+
quantity: import("convex/values").VString<string, "required">;
|
|
6474
|
+
kind: import("convex/values").VUnion<"fixed" | "metered", [import("convex/values").VLiteral<"fixed", "required">, import("convex/values").VLiteral<"metered", "required">], "required", never>;
|
|
6475
|
+
}, "required", "amount" | "kind" | "lineId" | "period" | "period.end" | "period.start" | "quantity" | "stripePriceId" | "stripeProductId" | "subscriptionItemId">, "optional">;
|
|
6160
6476
|
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
6161
6477
|
customerAccount: import("convex/values").VString<string, "required">;
|
|
6162
6478
|
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
@@ -6174,7 +6490,7 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
6174
6490
|
end: import("convex/values").VFloat64<number, "required">;
|
|
6175
6491
|
}, "required", "end" | "start">;
|
|
6176
6492
|
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>;
|
|
6177
|
-
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
6493
|
+
}, "optional", "customerAccount" | "invoiceLines" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
6178
6494
|
creditSource: import("convex/values").VObject<{
|
|
6179
6495
|
creditGrantId: string;
|
|
6180
6496
|
customerAccount: string;
|
|
@@ -6211,7 +6527,7 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
6211
6527
|
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>;
|
|
6212
6528
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
6213
6529
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
6214
|
-
}, "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}`>;
|
|
6530
|
+
}, "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}`>;
|
|
6215
6531
|
version: import("convex/values").VFloat64<number, "required">;
|
|
6216
6532
|
sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
|
|
6217
6533
|
sourceId: import("convex/values").VString<string, "required">;
|
|
@@ -6222,7 +6538,7 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
6222
6538
|
activePhase: import("convex/values").VUnion<"execute" | "reconcile" | undefined, [import("convex/values").VLiteral<"execute", "required">, import("convex/values").VLiteral<"reconcile", "required">], "optional", never>;
|
|
6223
6539
|
resumeQueued: import("convex/values").VBoolean<boolean, "required">;
|
|
6224
6540
|
outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
|
|
6225
|
-
}, "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}`>, {
|
|
6541
|
+
}, "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}`>, {
|
|
6226
6542
|
by_group: ["groupKey", "_creationTime"];
|
|
6227
6543
|
by_source: ["sourceKind", "sourceId", "_creationTime"];
|
|
6228
6544
|
}, {}, {}>;
|
|
@@ -6260,6 +6576,19 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
6260
6576
|
}[];
|
|
6261
6577
|
usageSource?: {
|
|
6262
6578
|
customerAccount: string;
|
|
6579
|
+
invoiceLines?: {
|
|
6580
|
+
amount: number;
|
|
6581
|
+
kind: "fixed" | "metered";
|
|
6582
|
+
lineId: string;
|
|
6583
|
+
period: {
|
|
6584
|
+
end: number;
|
|
6585
|
+
start: number;
|
|
6586
|
+
};
|
|
6587
|
+
quantity: string;
|
|
6588
|
+
stripePriceId: string;
|
|
6589
|
+
stripeProductId: string;
|
|
6590
|
+
subscriptionItemId: string;
|
|
6591
|
+
}[] | undefined;
|
|
6263
6592
|
invoicePaymentId: string;
|
|
6264
6593
|
livemode: boolean;
|
|
6265
6594
|
meterId: string;
|
|
@@ -6323,6 +6652,19 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
6323
6652
|
}[];
|
|
6324
6653
|
usageSource?: {
|
|
6325
6654
|
customerAccount: string;
|
|
6655
|
+
invoiceLines?: {
|
|
6656
|
+
amount: number;
|
|
6657
|
+
kind: "fixed" | "metered";
|
|
6658
|
+
lineId: string;
|
|
6659
|
+
period: {
|
|
6660
|
+
end: number;
|
|
6661
|
+
start: number;
|
|
6662
|
+
};
|
|
6663
|
+
quantity: string;
|
|
6664
|
+
stripePriceId: string;
|
|
6665
|
+
stripeProductId: string;
|
|
6666
|
+
subscriptionItemId: string;
|
|
6667
|
+
}[] | undefined;
|
|
6326
6668
|
invoicePaymentId: string;
|
|
6327
6669
|
livemode: boolean;
|
|
6328
6670
|
meterId: string;
|
|
@@ -6391,6 +6733,19 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
6391
6733
|
}[];
|
|
6392
6734
|
usageSource?: {
|
|
6393
6735
|
customerAccount: string;
|
|
6736
|
+
invoiceLines?: {
|
|
6737
|
+
amount: number;
|
|
6738
|
+
kind: "fixed" | "metered";
|
|
6739
|
+
lineId: string;
|
|
6740
|
+
period: {
|
|
6741
|
+
end: number;
|
|
6742
|
+
start: number;
|
|
6743
|
+
};
|
|
6744
|
+
quantity: string;
|
|
6745
|
+
stripePriceId: string;
|
|
6746
|
+
stripeProductId: string;
|
|
6747
|
+
subscriptionItemId: string;
|
|
6748
|
+
}[] | undefined;
|
|
6394
6749
|
invoicePaymentId: string;
|
|
6395
6750
|
livemode: boolean;
|
|
6396
6751
|
meterId: string;
|
|
@@ -6420,6 +6775,19 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
6420
6775
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
6421
6776
|
usageSource: import("convex/values").VObject<{
|
|
6422
6777
|
customerAccount: string;
|
|
6778
|
+
invoiceLines?: {
|
|
6779
|
+
amount: number;
|
|
6780
|
+
kind: "fixed" | "metered";
|
|
6781
|
+
lineId: string;
|
|
6782
|
+
period: {
|
|
6783
|
+
end: number;
|
|
6784
|
+
start: number;
|
|
6785
|
+
};
|
|
6786
|
+
quantity: string;
|
|
6787
|
+
stripePriceId: string;
|
|
6788
|
+
stripeProductId: string;
|
|
6789
|
+
subscriptionItemId: string;
|
|
6790
|
+
}[] | undefined;
|
|
6423
6791
|
invoicePaymentId: string;
|
|
6424
6792
|
livemode: boolean;
|
|
6425
6793
|
meterId: string;
|
|
@@ -6434,6 +6802,46 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
6434
6802
|
subscriptionId: string;
|
|
6435
6803
|
subscriptionItemId: string;
|
|
6436
6804
|
} | undefined, {
|
|
6805
|
+
invoiceLines: import("convex/values").VArray<{
|
|
6806
|
+
amount: number;
|
|
6807
|
+
kind: "fixed" | "metered";
|
|
6808
|
+
lineId: string;
|
|
6809
|
+
period: {
|
|
6810
|
+
end: number;
|
|
6811
|
+
start: number;
|
|
6812
|
+
};
|
|
6813
|
+
quantity: string;
|
|
6814
|
+
stripePriceId: string;
|
|
6815
|
+
stripeProductId: string;
|
|
6816
|
+
subscriptionItemId: string;
|
|
6817
|
+
}[] | undefined, import("convex/values").VObject<{
|
|
6818
|
+
amount: number;
|
|
6819
|
+
kind: "fixed" | "metered";
|
|
6820
|
+
lineId: string;
|
|
6821
|
+
period: {
|
|
6822
|
+
end: number;
|
|
6823
|
+
start: number;
|
|
6824
|
+
};
|
|
6825
|
+
quantity: string;
|
|
6826
|
+
stripePriceId: string;
|
|
6827
|
+
stripeProductId: string;
|
|
6828
|
+
subscriptionItemId: string;
|
|
6829
|
+
}, {
|
|
6830
|
+
lineId: import("convex/values").VString<string, "required">;
|
|
6831
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
6832
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
6833
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
6834
|
+
period: import("convex/values").VObject<{
|
|
6835
|
+
end: number;
|
|
6836
|
+
start: number;
|
|
6837
|
+
}, {
|
|
6838
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
6839
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
6840
|
+
}, "required", "end" | "start">;
|
|
6841
|
+
amount: import("convex/values").VFloat64<number, "required">;
|
|
6842
|
+
quantity: import("convex/values").VString<string, "required">;
|
|
6843
|
+
kind: import("convex/values").VUnion<"fixed" | "metered", [import("convex/values").VLiteral<"fixed", "required">, import("convex/values").VLiteral<"metered", "required">], "required", never>;
|
|
6844
|
+
}, "required", "amount" | "kind" | "lineId" | "period" | "period.end" | "period.start" | "quantity" | "stripePriceId" | "stripeProductId" | "subscriptionItemId">, "optional">;
|
|
6437
6845
|
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
6438
6846
|
customerAccount: import("convex/values").VString<string, "required">;
|
|
6439
6847
|
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
@@ -6451,7 +6859,7 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
6451
6859
|
end: import("convex/values").VFloat64<number, "required">;
|
|
6452
6860
|
}, "required", "end" | "start">;
|
|
6453
6861
|
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>;
|
|
6454
|
-
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
6862
|
+
}, "optional", "customerAccount" | "invoiceLines" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
6455
6863
|
creditSource: import("convex/values").VObject<{
|
|
6456
6864
|
creditGrantId: string;
|
|
6457
6865
|
customerAccount: string;
|
|
@@ -6488,10 +6896,10 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
6488
6896
|
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>;
|
|
6489
6897
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
6490
6898
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
6491
|
-
}, "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}`>;
|
|
6492
|
-
}, "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}`>;
|
|
6899
|
+
}, "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}`>;
|
|
6900
|
+
}, "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}`>;
|
|
6493
6901
|
operationId: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
|
|
6494
|
-
}, "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}`>, {
|
|
6902
|
+
}, "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}`>, {
|
|
6495
6903
|
by_key: ["requestKey", "_creationTime"];
|
|
6496
6904
|
}, {}, {}>;
|
|
6497
6905
|
balanceFundingPreparations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -6799,6 +7207,14 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
6799
7207
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
6800
7208
|
requestKey: string;
|
|
6801
7209
|
result?: {
|
|
7210
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7211
|
+
retryable: false;
|
|
7212
|
+
status: "conflict";
|
|
7213
|
+
} | {
|
|
7214
|
+
reason: "policy_invalid";
|
|
7215
|
+
retryable: false;
|
|
7216
|
+
status: "rejected";
|
|
7217
|
+
} | {
|
|
6802
7218
|
operation: {
|
|
6803
7219
|
accountId: string;
|
|
6804
7220
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -6809,14 +7225,6 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
6809
7225
|
} | {
|
|
6810
7226
|
enabled: boolean;
|
|
6811
7227
|
status: "unchanged";
|
|
6812
|
-
} | {
|
|
6813
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
6814
|
-
retryable: false;
|
|
6815
|
-
status: "conflict";
|
|
6816
|
-
} | {
|
|
6817
|
-
reason: "policy_invalid";
|
|
6818
|
-
retryable: false;
|
|
6819
|
-
status: "rejected";
|
|
6820
7228
|
} | {
|
|
6821
7229
|
reason: "provider_pending";
|
|
6822
7230
|
retryable: true;
|
|
@@ -6827,6 +7235,14 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
6827
7235
|
payload: import("convex/values").VString<string, "required">;
|
|
6828
7236
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
6829
7237
|
result: import("convex/values").VUnion<{
|
|
7238
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7239
|
+
retryable: false;
|
|
7240
|
+
status: "conflict";
|
|
7241
|
+
} | {
|
|
7242
|
+
reason: "policy_invalid";
|
|
7243
|
+
retryable: false;
|
|
7244
|
+
status: "rejected";
|
|
7245
|
+
} | {
|
|
6830
7246
|
operation: {
|
|
6831
7247
|
accountId: string;
|
|
6832
7248
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -6837,14 +7253,6 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
6837
7253
|
} | {
|
|
6838
7254
|
enabled: boolean;
|
|
6839
7255
|
status: "unchanged";
|
|
6840
|
-
} | {
|
|
6841
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
6842
|
-
retryable: false;
|
|
6843
|
-
status: "conflict";
|
|
6844
|
-
} | {
|
|
6845
|
-
reason: "policy_invalid";
|
|
6846
|
-
retryable: false;
|
|
6847
|
-
status: "rejected";
|
|
6848
7256
|
} | {
|
|
6849
7257
|
reason: "provider_pending";
|
|
6850
7258
|
retryable: true;
|
|
@@ -8319,6 +8727,19 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
8319
8727
|
}[];
|
|
8320
8728
|
usageSource?: {
|
|
8321
8729
|
customerAccount: string;
|
|
8730
|
+
invoiceLines?: {
|
|
8731
|
+
amount: number;
|
|
8732
|
+
kind: "fixed" | "metered";
|
|
8733
|
+
lineId: string;
|
|
8734
|
+
period: {
|
|
8735
|
+
end: number;
|
|
8736
|
+
start: number;
|
|
8737
|
+
};
|
|
8738
|
+
quantity: string;
|
|
8739
|
+
stripePriceId: string;
|
|
8740
|
+
stripeProductId: string;
|
|
8741
|
+
subscriptionItemId: string;
|
|
8742
|
+
}[] | undefined;
|
|
8322
8743
|
invoicePaymentId: string;
|
|
8323
8744
|
livemode: boolean;
|
|
8324
8745
|
meterId: string;
|
|
@@ -8348,6 +8769,19 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
8348
8769
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
8349
8770
|
usageSource: import("convex/values").VObject<{
|
|
8350
8771
|
customerAccount: string;
|
|
8772
|
+
invoiceLines?: {
|
|
8773
|
+
amount: number;
|
|
8774
|
+
kind: "fixed" | "metered";
|
|
8775
|
+
lineId: string;
|
|
8776
|
+
period: {
|
|
8777
|
+
end: number;
|
|
8778
|
+
start: number;
|
|
8779
|
+
};
|
|
8780
|
+
quantity: string;
|
|
8781
|
+
stripePriceId: string;
|
|
8782
|
+
stripeProductId: string;
|
|
8783
|
+
subscriptionItemId: string;
|
|
8784
|
+
}[] | undefined;
|
|
8351
8785
|
invoicePaymentId: string;
|
|
8352
8786
|
livemode: boolean;
|
|
8353
8787
|
meterId: string;
|
|
@@ -8362,6 +8796,46 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
8362
8796
|
subscriptionId: string;
|
|
8363
8797
|
subscriptionItemId: string;
|
|
8364
8798
|
} | undefined, {
|
|
8799
|
+
invoiceLines: import("convex/values").VArray<{
|
|
8800
|
+
amount: number;
|
|
8801
|
+
kind: "fixed" | "metered";
|
|
8802
|
+
lineId: string;
|
|
8803
|
+
period: {
|
|
8804
|
+
end: number;
|
|
8805
|
+
start: number;
|
|
8806
|
+
};
|
|
8807
|
+
quantity: string;
|
|
8808
|
+
stripePriceId: string;
|
|
8809
|
+
stripeProductId: string;
|
|
8810
|
+
subscriptionItemId: string;
|
|
8811
|
+
}[] | undefined, import("convex/values").VObject<{
|
|
8812
|
+
amount: number;
|
|
8813
|
+
kind: "fixed" | "metered";
|
|
8814
|
+
lineId: string;
|
|
8815
|
+
period: {
|
|
8816
|
+
end: number;
|
|
8817
|
+
start: number;
|
|
8818
|
+
};
|
|
8819
|
+
quantity: string;
|
|
8820
|
+
stripePriceId: string;
|
|
8821
|
+
stripeProductId: string;
|
|
8822
|
+
subscriptionItemId: string;
|
|
8823
|
+
}, {
|
|
8824
|
+
lineId: import("convex/values").VString<string, "required">;
|
|
8825
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
8826
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
8827
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
8828
|
+
period: import("convex/values").VObject<{
|
|
8829
|
+
end: number;
|
|
8830
|
+
start: number;
|
|
8831
|
+
}, {
|
|
8832
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
8833
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
8834
|
+
}, "required", "end" | "start">;
|
|
8835
|
+
amount: import("convex/values").VFloat64<number, "required">;
|
|
8836
|
+
quantity: import("convex/values").VString<string, "required">;
|
|
8837
|
+
kind: import("convex/values").VUnion<"fixed" | "metered", [import("convex/values").VLiteral<"fixed", "required">, import("convex/values").VLiteral<"metered", "required">], "required", never>;
|
|
8838
|
+
}, "required", "amount" | "kind" | "lineId" | "period" | "period.end" | "period.start" | "quantity" | "stripePriceId" | "stripeProductId" | "subscriptionItemId">, "optional">;
|
|
8365
8839
|
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
8366
8840
|
customerAccount: import("convex/values").VString<string, "required">;
|
|
8367
8841
|
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
@@ -8379,7 +8853,7 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
8379
8853
|
end: import("convex/values").VFloat64<number, "required">;
|
|
8380
8854
|
}, "required", "end" | "start">;
|
|
8381
8855
|
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>;
|
|
8382
|
-
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
8856
|
+
}, "optional", "customerAccount" | "invoiceLines" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
8383
8857
|
creditSource: import("convex/values").VObject<{
|
|
8384
8858
|
creditGrantId: string;
|
|
8385
8859
|
customerAccount: string;
|
|
@@ -8416,7 +8890,7 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
8416
8890
|
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>;
|
|
8417
8891
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
8418
8892
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
8419
|
-
}, "required", "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}`>, {
|
|
8893
|
+
}, "required", "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}`>, {
|
|
8420
8894
|
by_source_charge: ["sourceChargeId", "_creationTime"];
|
|
8421
8895
|
}, {}, {}>;
|
|
8422
8896
|
commissionTerms: import("convex/server").TableDefinition<import("convex/values").VObject<{
|