@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/component/recoveryWorkflow/schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/component/recoveryWorkflow/schema.ts"],"names":[],"mappings":"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"}
|
|
@@ -1417,6 +1417,19 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1417
1417
|
}[];
|
|
1418
1418
|
usageSource?: {
|
|
1419
1419
|
customerAccount: string;
|
|
1420
|
+
invoiceLines?: {
|
|
1421
|
+
amount: number;
|
|
1422
|
+
kind: "fixed" | "metered";
|
|
1423
|
+
lineId: string;
|
|
1424
|
+
period: {
|
|
1425
|
+
end: number;
|
|
1426
|
+
start: number;
|
|
1427
|
+
};
|
|
1428
|
+
quantity: string;
|
|
1429
|
+
stripePriceId: string;
|
|
1430
|
+
stripeProductId: string;
|
|
1431
|
+
subscriptionItemId: string;
|
|
1432
|
+
}[] | undefined;
|
|
1420
1433
|
invoicePaymentId: string;
|
|
1421
1434
|
livemode: boolean;
|
|
1422
1435
|
meterId: string;
|
|
@@ -1494,6 +1507,19 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1494
1507
|
}[];
|
|
1495
1508
|
usageSource?: {
|
|
1496
1509
|
customerAccount: string;
|
|
1510
|
+
invoiceLines?: {
|
|
1511
|
+
amount: number;
|
|
1512
|
+
kind: "fixed" | "metered";
|
|
1513
|
+
lineId: string;
|
|
1514
|
+
period: {
|
|
1515
|
+
end: number;
|
|
1516
|
+
start: number;
|
|
1517
|
+
};
|
|
1518
|
+
quantity: string;
|
|
1519
|
+
stripePriceId: string;
|
|
1520
|
+
stripeProductId: string;
|
|
1521
|
+
subscriptionItemId: string;
|
|
1522
|
+
}[] | undefined;
|
|
1497
1523
|
invoicePaymentId: string;
|
|
1498
1524
|
livemode: boolean;
|
|
1499
1525
|
meterId: string;
|
|
@@ -1523,6 +1549,19 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1523
1549
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
1524
1550
|
usageSource: import("convex/values").VObject<{
|
|
1525
1551
|
customerAccount: string;
|
|
1552
|
+
invoiceLines?: {
|
|
1553
|
+
amount: number;
|
|
1554
|
+
kind: "fixed" | "metered";
|
|
1555
|
+
lineId: string;
|
|
1556
|
+
period: {
|
|
1557
|
+
end: number;
|
|
1558
|
+
start: number;
|
|
1559
|
+
};
|
|
1560
|
+
quantity: string;
|
|
1561
|
+
stripePriceId: string;
|
|
1562
|
+
stripeProductId: string;
|
|
1563
|
+
subscriptionItemId: string;
|
|
1564
|
+
}[] | undefined;
|
|
1526
1565
|
invoicePaymentId: string;
|
|
1527
1566
|
livemode: boolean;
|
|
1528
1567
|
meterId: string;
|
|
@@ -1537,6 +1576,46 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1537
1576
|
subscriptionId: string;
|
|
1538
1577
|
subscriptionItemId: string;
|
|
1539
1578
|
} | undefined, {
|
|
1579
|
+
invoiceLines: import("convex/values").VArray<{
|
|
1580
|
+
amount: number;
|
|
1581
|
+
kind: "fixed" | "metered";
|
|
1582
|
+
lineId: string;
|
|
1583
|
+
period: {
|
|
1584
|
+
end: number;
|
|
1585
|
+
start: number;
|
|
1586
|
+
};
|
|
1587
|
+
quantity: string;
|
|
1588
|
+
stripePriceId: string;
|
|
1589
|
+
stripeProductId: string;
|
|
1590
|
+
subscriptionItemId: string;
|
|
1591
|
+
}[] | undefined, import("convex/values").VObject<{
|
|
1592
|
+
amount: number;
|
|
1593
|
+
kind: "fixed" | "metered";
|
|
1594
|
+
lineId: string;
|
|
1595
|
+
period: {
|
|
1596
|
+
end: number;
|
|
1597
|
+
start: number;
|
|
1598
|
+
};
|
|
1599
|
+
quantity: string;
|
|
1600
|
+
stripePriceId: string;
|
|
1601
|
+
stripeProductId: string;
|
|
1602
|
+
subscriptionItemId: string;
|
|
1603
|
+
}, {
|
|
1604
|
+
lineId: import("convex/values").VString<string, "required">;
|
|
1605
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
1606
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
1607
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
1608
|
+
period: import("convex/values").VObject<{
|
|
1609
|
+
end: number;
|
|
1610
|
+
start: number;
|
|
1611
|
+
}, {
|
|
1612
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
1613
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
1614
|
+
}, "required", "end" | "start">;
|
|
1615
|
+
amount: import("convex/values").VFloat64<number, "required">;
|
|
1616
|
+
quantity: import("convex/values").VString<string, "required">;
|
|
1617
|
+
kind: import("convex/values").VUnion<"fixed" | "metered", [import("convex/values").VLiteral<"fixed", "required">, import("convex/values").VLiteral<"metered", "required">], "required", never>;
|
|
1618
|
+
}, "required", "amount" | "kind" | "lineId" | "period" | "period.end" | "period.start" | "quantity" | "stripePriceId" | "stripeProductId" | "subscriptionItemId">, "optional">;
|
|
1540
1619
|
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
1541
1620
|
customerAccount: import("convex/values").VString<string, "required">;
|
|
1542
1621
|
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
@@ -1554,7 +1633,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1554
1633
|
end: import("convex/values").VFloat64<number, "required">;
|
|
1555
1634
|
}, "required", "end" | "start">;
|
|
1556
1635
|
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>;
|
|
1557
|
-
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
1636
|
+
}, "optional", "customerAccount" | "invoiceLines" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
1558
1637
|
creditSource: import("convex/values").VObject<{
|
|
1559
1638
|
creditGrantId: string;
|
|
1560
1639
|
customerAccount: string;
|
|
@@ -1591,7 +1670,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1591
1670
|
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>;
|
|
1592
1671
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
1593
1672
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
1594
|
-
}, "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}`>;
|
|
1673
|
+
}, "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}`>;
|
|
1595
1674
|
version: import("convex/values").VFloat64<number, "required">;
|
|
1596
1675
|
sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
|
|
1597
1676
|
sourceId: import("convex/values").VString<string, "required">;
|
|
@@ -1602,7 +1681,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1602
1681
|
activePhase: import("convex/values").VUnion<"execute" | "reconcile" | undefined, [import("convex/values").VLiteral<"execute", "required">, import("convex/values").VLiteral<"reconcile", "required">], "optional", never>;
|
|
1603
1682
|
resumeQueued: import("convex/values").VBoolean<boolean, "required">;
|
|
1604
1683
|
outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
|
|
1605
|
-
}, "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}`>, {
|
|
1684
|
+
}, "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}`>, {
|
|
1606
1685
|
by_group: ["groupKey", "_creationTime"];
|
|
1607
1686
|
by_source: ["sourceKind", "sourceId", "_creationTime"];
|
|
1608
1687
|
}, {}, {}>;
|
|
@@ -1640,6 +1719,19 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1640
1719
|
}[];
|
|
1641
1720
|
usageSource?: {
|
|
1642
1721
|
customerAccount: string;
|
|
1722
|
+
invoiceLines?: {
|
|
1723
|
+
amount: number;
|
|
1724
|
+
kind: "fixed" | "metered";
|
|
1725
|
+
lineId: string;
|
|
1726
|
+
period: {
|
|
1727
|
+
end: number;
|
|
1728
|
+
start: number;
|
|
1729
|
+
};
|
|
1730
|
+
quantity: string;
|
|
1731
|
+
stripePriceId: string;
|
|
1732
|
+
stripeProductId: string;
|
|
1733
|
+
subscriptionItemId: string;
|
|
1734
|
+
}[] | undefined;
|
|
1643
1735
|
invoicePaymentId: string;
|
|
1644
1736
|
livemode: boolean;
|
|
1645
1737
|
meterId: string;
|
|
@@ -1703,6 +1795,19 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1703
1795
|
}[];
|
|
1704
1796
|
usageSource?: {
|
|
1705
1797
|
customerAccount: string;
|
|
1798
|
+
invoiceLines?: {
|
|
1799
|
+
amount: number;
|
|
1800
|
+
kind: "fixed" | "metered";
|
|
1801
|
+
lineId: string;
|
|
1802
|
+
period: {
|
|
1803
|
+
end: number;
|
|
1804
|
+
start: number;
|
|
1805
|
+
};
|
|
1806
|
+
quantity: string;
|
|
1807
|
+
stripePriceId: string;
|
|
1808
|
+
stripeProductId: string;
|
|
1809
|
+
subscriptionItemId: string;
|
|
1810
|
+
}[] | undefined;
|
|
1706
1811
|
invoicePaymentId: string;
|
|
1707
1812
|
livemode: boolean;
|
|
1708
1813
|
meterId: string;
|
|
@@ -1771,6 +1876,19 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1771
1876
|
}[];
|
|
1772
1877
|
usageSource?: {
|
|
1773
1878
|
customerAccount: string;
|
|
1879
|
+
invoiceLines?: {
|
|
1880
|
+
amount: number;
|
|
1881
|
+
kind: "fixed" | "metered";
|
|
1882
|
+
lineId: string;
|
|
1883
|
+
period: {
|
|
1884
|
+
end: number;
|
|
1885
|
+
start: number;
|
|
1886
|
+
};
|
|
1887
|
+
quantity: string;
|
|
1888
|
+
stripePriceId: string;
|
|
1889
|
+
stripeProductId: string;
|
|
1890
|
+
subscriptionItemId: string;
|
|
1891
|
+
}[] | undefined;
|
|
1774
1892
|
invoicePaymentId: string;
|
|
1775
1893
|
livemode: boolean;
|
|
1776
1894
|
meterId: string;
|
|
@@ -1800,6 +1918,19 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1800
1918
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
1801
1919
|
usageSource: import("convex/values").VObject<{
|
|
1802
1920
|
customerAccount: string;
|
|
1921
|
+
invoiceLines?: {
|
|
1922
|
+
amount: number;
|
|
1923
|
+
kind: "fixed" | "metered";
|
|
1924
|
+
lineId: string;
|
|
1925
|
+
period: {
|
|
1926
|
+
end: number;
|
|
1927
|
+
start: number;
|
|
1928
|
+
};
|
|
1929
|
+
quantity: string;
|
|
1930
|
+
stripePriceId: string;
|
|
1931
|
+
stripeProductId: string;
|
|
1932
|
+
subscriptionItemId: string;
|
|
1933
|
+
}[] | undefined;
|
|
1803
1934
|
invoicePaymentId: string;
|
|
1804
1935
|
livemode: boolean;
|
|
1805
1936
|
meterId: string;
|
|
@@ -1814,6 +1945,46 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1814
1945
|
subscriptionId: string;
|
|
1815
1946
|
subscriptionItemId: string;
|
|
1816
1947
|
} | undefined, {
|
|
1948
|
+
invoiceLines: import("convex/values").VArray<{
|
|
1949
|
+
amount: number;
|
|
1950
|
+
kind: "fixed" | "metered";
|
|
1951
|
+
lineId: string;
|
|
1952
|
+
period: {
|
|
1953
|
+
end: number;
|
|
1954
|
+
start: number;
|
|
1955
|
+
};
|
|
1956
|
+
quantity: string;
|
|
1957
|
+
stripePriceId: string;
|
|
1958
|
+
stripeProductId: string;
|
|
1959
|
+
subscriptionItemId: string;
|
|
1960
|
+
}[] | undefined, import("convex/values").VObject<{
|
|
1961
|
+
amount: number;
|
|
1962
|
+
kind: "fixed" | "metered";
|
|
1963
|
+
lineId: string;
|
|
1964
|
+
period: {
|
|
1965
|
+
end: number;
|
|
1966
|
+
start: number;
|
|
1967
|
+
};
|
|
1968
|
+
quantity: string;
|
|
1969
|
+
stripePriceId: string;
|
|
1970
|
+
stripeProductId: string;
|
|
1971
|
+
subscriptionItemId: string;
|
|
1972
|
+
}, {
|
|
1973
|
+
lineId: import("convex/values").VString<string, "required">;
|
|
1974
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
1975
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
1976
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
1977
|
+
period: import("convex/values").VObject<{
|
|
1978
|
+
end: number;
|
|
1979
|
+
start: number;
|
|
1980
|
+
}, {
|
|
1981
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
1982
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
1983
|
+
}, "required", "end" | "start">;
|
|
1984
|
+
amount: import("convex/values").VFloat64<number, "required">;
|
|
1985
|
+
quantity: import("convex/values").VString<string, "required">;
|
|
1986
|
+
kind: import("convex/values").VUnion<"fixed" | "metered", [import("convex/values").VLiteral<"fixed", "required">, import("convex/values").VLiteral<"metered", "required">], "required", never>;
|
|
1987
|
+
}, "required", "amount" | "kind" | "lineId" | "period" | "period.end" | "period.start" | "quantity" | "stripePriceId" | "stripeProductId" | "subscriptionItemId">, "optional">;
|
|
1817
1988
|
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
1818
1989
|
customerAccount: import("convex/values").VString<string, "required">;
|
|
1819
1990
|
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
@@ -1831,7 +2002,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1831
2002
|
end: import("convex/values").VFloat64<number, "required">;
|
|
1832
2003
|
}, "required", "end" | "start">;
|
|
1833
2004
|
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>;
|
|
1834
|
-
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
2005
|
+
}, "optional", "customerAccount" | "invoiceLines" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
1835
2006
|
creditSource: import("convex/values").VObject<{
|
|
1836
2007
|
creditGrantId: string;
|
|
1837
2008
|
customerAccount: string;
|
|
@@ -1868,10 +2039,10 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1868
2039
|
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>;
|
|
1869
2040
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
1870
2041
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
1871
|
-
}, "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}`>;
|
|
1872
|
-
}, "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}`>;
|
|
2042
|
+
}, "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}`>;
|
|
2043
|
+
}, "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}`>;
|
|
1873
2044
|
operationId: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
|
|
1874
|
-
}, "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}`>, {
|
|
2045
|
+
}, "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}`>, {
|
|
1875
2046
|
by_key: ["requestKey", "_creationTime"];
|
|
1876
2047
|
}, {}, {}>;
|
|
1877
2048
|
balanceFundingPreparations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -3699,6 +3870,19 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
3699
3870
|
}[];
|
|
3700
3871
|
usageSource?: {
|
|
3701
3872
|
customerAccount: string;
|
|
3873
|
+
invoiceLines?: {
|
|
3874
|
+
amount: number;
|
|
3875
|
+
kind: "fixed" | "metered";
|
|
3876
|
+
lineId: string;
|
|
3877
|
+
period: {
|
|
3878
|
+
end: number;
|
|
3879
|
+
start: number;
|
|
3880
|
+
};
|
|
3881
|
+
quantity: string;
|
|
3882
|
+
stripePriceId: string;
|
|
3883
|
+
stripeProductId: string;
|
|
3884
|
+
subscriptionItemId: string;
|
|
3885
|
+
}[] | undefined;
|
|
3702
3886
|
invoicePaymentId: string;
|
|
3703
3887
|
livemode: boolean;
|
|
3704
3888
|
meterId: string;
|
|
@@ -3728,6 +3912,19 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
3728
3912
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
3729
3913
|
usageSource: import("convex/values").VObject<{
|
|
3730
3914
|
customerAccount: string;
|
|
3915
|
+
invoiceLines?: {
|
|
3916
|
+
amount: number;
|
|
3917
|
+
kind: "fixed" | "metered";
|
|
3918
|
+
lineId: string;
|
|
3919
|
+
period: {
|
|
3920
|
+
end: number;
|
|
3921
|
+
start: number;
|
|
3922
|
+
};
|
|
3923
|
+
quantity: string;
|
|
3924
|
+
stripePriceId: string;
|
|
3925
|
+
stripeProductId: string;
|
|
3926
|
+
subscriptionItemId: string;
|
|
3927
|
+
}[] | undefined;
|
|
3731
3928
|
invoicePaymentId: string;
|
|
3732
3929
|
livemode: boolean;
|
|
3733
3930
|
meterId: string;
|
|
@@ -3742,6 +3939,46 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
3742
3939
|
subscriptionId: string;
|
|
3743
3940
|
subscriptionItemId: string;
|
|
3744
3941
|
} | undefined, {
|
|
3942
|
+
invoiceLines: import("convex/values").VArray<{
|
|
3943
|
+
amount: number;
|
|
3944
|
+
kind: "fixed" | "metered";
|
|
3945
|
+
lineId: string;
|
|
3946
|
+
period: {
|
|
3947
|
+
end: number;
|
|
3948
|
+
start: number;
|
|
3949
|
+
};
|
|
3950
|
+
quantity: string;
|
|
3951
|
+
stripePriceId: string;
|
|
3952
|
+
stripeProductId: string;
|
|
3953
|
+
subscriptionItemId: string;
|
|
3954
|
+
}[] | undefined, import("convex/values").VObject<{
|
|
3955
|
+
amount: number;
|
|
3956
|
+
kind: "fixed" | "metered";
|
|
3957
|
+
lineId: string;
|
|
3958
|
+
period: {
|
|
3959
|
+
end: number;
|
|
3960
|
+
start: number;
|
|
3961
|
+
};
|
|
3962
|
+
quantity: string;
|
|
3963
|
+
stripePriceId: string;
|
|
3964
|
+
stripeProductId: string;
|
|
3965
|
+
subscriptionItemId: string;
|
|
3966
|
+
}, {
|
|
3967
|
+
lineId: import("convex/values").VString<string, "required">;
|
|
3968
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
3969
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
3970
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
3971
|
+
period: import("convex/values").VObject<{
|
|
3972
|
+
end: number;
|
|
3973
|
+
start: number;
|
|
3974
|
+
}, {
|
|
3975
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
3976
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
3977
|
+
}, "required", "end" | "start">;
|
|
3978
|
+
amount: import("convex/values").VFloat64<number, "required">;
|
|
3979
|
+
quantity: import("convex/values").VString<string, "required">;
|
|
3980
|
+
kind: import("convex/values").VUnion<"fixed" | "metered", [import("convex/values").VLiteral<"fixed", "required">, import("convex/values").VLiteral<"metered", "required">], "required", never>;
|
|
3981
|
+
}, "required", "amount" | "kind" | "lineId" | "period" | "period.end" | "period.start" | "quantity" | "stripePriceId" | "stripeProductId" | "subscriptionItemId">, "optional">;
|
|
3745
3982
|
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
3746
3983
|
customerAccount: import("convex/values").VString<string, "required">;
|
|
3747
3984
|
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
@@ -3759,7 +3996,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
3759
3996
|
end: import("convex/values").VFloat64<number, "required">;
|
|
3760
3997
|
}, "required", "end" | "start">;
|
|
3761
3998
|
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>;
|
|
3762
|
-
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
3999
|
+
}, "optional", "customerAccount" | "invoiceLines" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
3763
4000
|
creditSource: import("convex/values").VObject<{
|
|
3764
4001
|
creditGrantId: string;
|
|
3765
4002
|
customerAccount: string;
|
|
@@ -3796,7 +4033,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
3796
4033
|
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>;
|
|
3797
4034
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
3798
4035
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
3799
|
-
}, "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}`>, {
|
|
4036
|
+
}, "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}`>, {
|
|
3800
4037
|
by_source_charge: ["sourceChargeId", "_creationTime"];
|
|
3801
4038
|
}, {}, {}>;
|
|
3802
4039
|
commissionTerms: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -29,6 +29,19 @@ export declare const reserveSettlementAllocation: import("convex/server").Regist
|
|
|
29
29
|
}[];
|
|
30
30
|
usageSource?: {
|
|
31
31
|
customerAccount: string;
|
|
32
|
+
invoiceLines?: {
|
|
33
|
+
amount: number;
|
|
34
|
+
kind: "fixed" | "metered";
|
|
35
|
+
lineId: string;
|
|
36
|
+
period: {
|
|
37
|
+
end: number;
|
|
38
|
+
start: number;
|
|
39
|
+
};
|
|
40
|
+
quantity: string;
|
|
41
|
+
stripePriceId: string;
|
|
42
|
+
stripeProductId: string;
|
|
43
|
+
subscriptionItemId: string;
|
|
44
|
+
}[] | undefined;
|
|
32
45
|
invoicePaymentId: string;
|
|
33
46
|
livemode: boolean;
|
|
34
47
|
meterId: string;
|
|
@@ -76,6 +89,19 @@ export declare const reserveSettlementAllocation: import("convex/server").Regist
|
|
|
76
89
|
}[];
|
|
77
90
|
usageSource?: {
|
|
78
91
|
customerAccount: string;
|
|
92
|
+
invoiceLines?: {
|
|
93
|
+
amount: number;
|
|
94
|
+
kind: "fixed" | "metered";
|
|
95
|
+
lineId: string;
|
|
96
|
+
period: {
|
|
97
|
+
end: number;
|
|
98
|
+
start: number;
|
|
99
|
+
};
|
|
100
|
+
quantity: string;
|
|
101
|
+
stripePriceId: string;
|
|
102
|
+
stripeProductId: string;
|
|
103
|
+
subscriptionItemId: string;
|
|
104
|
+
}[] | undefined;
|
|
79
105
|
invoicePaymentId: string;
|
|
80
106
|
livemode: boolean;
|
|
81
107
|
meterId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/component/settlement/mutations.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/component/settlement/mutations.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DtC,CAAC;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;GA2DjC,CAAC;AAEH,+EAA+E;AAC/E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;GA8CtC,CAAC"}
|
|
@@ -33,6 +33,19 @@ export declare const getSettlementAllocation: import("convex/server").Registered
|
|
|
33
33
|
}[];
|
|
34
34
|
usageSource?: {
|
|
35
35
|
customerAccount: string;
|
|
36
|
+
invoiceLines?: {
|
|
37
|
+
amount: number;
|
|
38
|
+
kind: "fixed" | "metered";
|
|
39
|
+
lineId: string;
|
|
40
|
+
period: {
|
|
41
|
+
end: number;
|
|
42
|
+
start: number;
|
|
43
|
+
};
|
|
44
|
+
quantity: string;
|
|
45
|
+
stripePriceId: string;
|
|
46
|
+
stripeProductId: string;
|
|
47
|
+
subscriptionItemId: string;
|
|
48
|
+
}[] | undefined;
|
|
36
49
|
invoicePaymentId: string;
|
|
37
50
|
livemode: boolean;
|
|
38
51
|
meterId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/component/settlement/queries.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/component/settlement/queries.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAUlC,CAAC;AACH,eAAO,MAAM,iBAAiB;;;;;;;UAkB5B,CAAC;AAEH,iFAAiF;AACjF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyBnC,CAAC"}
|