@fantastic.dev/better-stripe 0.59.0 → 0.60.1
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 +12 -0
- package/README.md +5 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +676 -50
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +322 -9
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +644 -18
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +338 -25
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/index.d.ts +4 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/paymentSource/resolver.d.ts +12 -1
- package/dist/client/paymentSource/resolver.d.ts.map +1 -1
- package/dist/client/paymentSource/resolver.fixtures.d.ts +220 -0
- package/dist/client/paymentSource/resolver.fixtures.d.ts.map +1 -0
- package/dist/client/paymentSource/resolver.fixtures.js +189 -0
- package/dist/client/paymentSource/resolver.fixtures.js.map +1 -0
- package/dist/client/paymentSource/resolver.js +28 -3
- package/dist/client/paymentSource/resolver.js.map +1 -1
- package/dist/client/settlement/execution.d.ts +25 -0
- package/dist/client/settlement/execution.d.ts.map +1 -1
- package/dist/client/settlement/execution.js +2 -0
- package/dist/client/settlement/execution.js.map +1 -1
- package/dist/client/usage/catalogPrices.d.ts +1 -1
- package/dist/client/usage/catalogPrices.d.ts.map +1 -1
- package/dist/client/usage/catalogPrices.js +4 -4
- package/dist/client/usage/catalogPrices.js.map +1 -1
- package/dist/client/usage/client.d.ts +2 -2
- package/dist/client/usage/client.js +2 -2
- package/dist/client/usage/creditCapacity.d.ts.map +1 -1
- package/dist/client/usage/creditCapacity.js +7 -1
- package/dist/client/usage/creditCapacity.js.map +1 -1
- package/dist/client/usage/creditClient.d.ts +3 -0
- package/dist/client/usage/creditClient.d.ts.map +1 -1
- package/dist/client/usage/creditDelivery.d.ts.map +1 -1
- package/dist/client/usage/creditDelivery.js +4 -1
- package/dist/client/usage/creditDelivery.js.map +1 -1
- package/dist/client/usage/creditLifecycle.d.ts.map +1 -1
- package/dist/client/usage/creditLifecycle.js +2 -1
- package/dist/client/usage/creditLifecycle.js.map +1 -1
- package/dist/client/usage/creditNative.d.ts +3 -0
- package/dist/client/usage/creditNative.d.ts.map +1 -1
- package/dist/client/usage/creditNative.js +3 -0
- package/dist/client/usage/creditNative.js.map +1 -1
- package/dist/client/usage/creditProvider.d.ts.map +1 -1
- package/dist/client/usage/creditProvider.js +2 -1
- package/dist/client/usage/creditProvider.js.map +1 -1
- package/dist/client/usage/creditRead.d.ts +1 -0
- package/dist/client/usage/creditRead.d.ts.map +1 -1
- package/dist/client/usage/creditReconciliation.d.ts.map +1 -1
- package/dist/client/usage/creditReconciliation.js +11 -3
- package/dist/client/usage/creditReconciliation.js.map +1 -1
- package/dist/client/usage/creditRevenue.d.ts +22 -0
- package/dist/client/usage/creditRevenue.d.ts.map +1 -0
- package/dist/client/usage/creditRevenue.js +118 -0
- package/dist/client/usage/creditRevenue.js.map +1 -0
- package/dist/client/usage/creditSettlement.d.ts +29 -0
- package/dist/client/usage/creditSettlement.d.ts.map +1 -0
- package/dist/client/usage/creditSettlement.fixtures.d.ts +216 -0
- package/dist/client/usage/creditSettlement.fixtures.d.ts.map +1 -0
- package/dist/client/usage/creditSettlement.fixtures.js +59 -0
- package/dist/client/usage/creditSettlement.fixtures.js.map +1 -0
- package/dist/client/usage/creditSettlement.js +70 -0
- package/dist/client/usage/creditSettlement.js.map +1 -0
- package/dist/client/usage/creditTransport.fixtures.d.ts +8 -1
- package/dist/client/usage/creditTransport.fixtures.d.ts.map +1 -1
- package/dist/client/usage/creditTransport.fixtures.js +27 -5
- package/dist/client/usage/creditTransport.fixtures.js.map +1 -1
- package/dist/client/usage/index.d.ts +4 -0
- package/dist/client/usage/index.d.ts.map +1 -1
- package/dist/client/usage/invoiceSale.d.ts +22 -0
- package/dist/client/usage/invoiceSale.d.ts.map +1 -0
- package/dist/client/usage/invoiceSale.fixtures.d.ts +285 -0
- package/dist/client/usage/invoiceSale.fixtures.d.ts.map +1 -0
- package/dist/client/usage/invoiceSale.fixtures.js +104 -0
- package/dist/client/usage/invoiceSale.fixtures.js.map +1 -0
- package/dist/client/usage/invoiceSale.js +117 -0
- package/dist/client/usage/invoiceSale.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/settlement.d.ts +32 -0
- package/dist/client/usage/settlement.d.ts.map +1 -0
- package/dist/client/usage/settlement.js +60 -0
- package/dist/client/usage/settlement.js.map +1 -0
- package/dist/client/usage/settlementClient.d.ts +51 -0
- package/dist/client/usage/settlementClient.d.ts.map +1 -0
- package/dist/client/usage/settlementClient.js +35 -0
- package/dist/client/usage/settlementClient.js.map +1 -0
- package/dist/client/usage/subscriptionCancellation.d.ts.map +1 -1
- package/dist/client/usage/subscriptionCancellation.js +3 -2
- package/dist/client/usage/subscriptionCancellation.js.map +1 -1
- package/dist/client/usage/subscriptionCheckout.d.ts.map +1 -1
- package/dist/client/usage/subscriptionCheckout.js +3 -2
- package/dist/client/usage/subscriptionCheckout.js.map +1 -1
- package/dist/client/usage/subscriptionLifecycle.d.ts +1 -0
- package/dist/client/usage/subscriptionLifecycle.d.ts.map +1 -1
- package/dist/client/usage/subscriptionLifecycle.js +3 -2
- package/dist/client/usage/subscriptionLifecycle.js.map +1 -1
- package/dist/client/usage/subscriptionProvider.d.ts +2 -0
- package/dist/client/usage/subscriptionProvider.d.ts.map +1 -1
- package/dist/client/usage/subscriptionProvider.js +9 -2
- package/dist/client/usage/subscriptionProvider.js.map +1 -1
- package/dist/component/_generated/component.d.ts +146 -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 +27 -27
- package/dist/component/earnings/triggers.d.ts +172 -12
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/financialObservations/settlementHelpers.d.ts.map +1 -1
- package/dist/component/financialObservations/settlementHelpers.js +2 -0
- package/dist/component/financialObservations/settlementHelpers.js.map +1 -1
- package/dist/component/recoveryWorkflow/helpers.d.ts +25 -0
- package/dist/component/recoveryWorkflow/helpers.d.ts.map +1 -1
- package/dist/component/recoveryWorkflow/mutations.d.ts +25 -0
- package/dist/component/recoveryWorkflow/mutations.d.ts.map +1 -1
- package/dist/component/recoveryWorkflow/queries.d.ts +50 -0
- package/dist/component/recoveryWorkflow/queries.d.ts.map +1 -1
- package/dist/component/recoveryWorkflow/schema.d.ts +566 -10
- package/dist/component/recoveryWorkflow/schema.d.ts.map +1 -1
- package/dist/component/schema.d.ts +322 -9
- package/dist/component/settlement/mutations.d.ts +50 -0
- package/dist/component/settlement/mutations.d.ts.map +1 -1
- package/dist/component/settlement/mutations.js +8 -1
- package/dist/component/settlement/mutations.js.map +1 -1
- package/dist/component/settlement/queries.d.ts +25 -0
- package/dist/component/settlement/queries.d.ts.map +1 -1
- package/dist/component/settlement/schema.d.ts +128 -1
- package/dist/component/settlement/schema.d.ts.map +1 -1
- package/dist/component/settlement/schema.js +22 -0
- package/dist/component/settlement/schema.js.map +1 -1
- package/dist/component/usage/allowance.fixtures.d.ts +4212 -0
- package/dist/component/usage/allowance.fixtures.d.ts.map +1 -0
- package/dist/component/usage/allowance.fixtures.js +67 -0
- package/dist/component/usage/allowance.fixtures.js.map +1 -0
- package/dist/component/usageCredits/accounting.fixtures.d.ts +4235 -0
- package/dist/component/usageCredits/accounting.fixtures.d.ts.map +1 -0
- package/dist/component/usageCredits/accounting.fixtures.js +89 -0
- package/dist/component/usageCredits/accounting.fixtures.js.map +1 -0
- package/dist/component/usageCredits/helpers.d.ts +7 -0
- package/dist/component/usageCredits/helpers.d.ts.map +1 -1
- package/dist/component/usageCredits/helpers.js +5 -0
- package/dist/component/usageCredits/helpers.js.map +1 -1
- package/dist/component/usageCredits/mutations.d.ts +6 -0
- package/dist/component/usageCredits/mutations.d.ts.map +1 -1
- package/dist/component/usageCredits/mutations.js +70 -7
- package/dist/component/usageCredits/mutations.js.map +1 -1
- package/dist/component/usageCredits/purchase.d.ts +1 -0
- package/dist/component/usageCredits/purchase.d.ts.map +1 -1
- package/dist/component/usageCredits/queries.d.ts +10 -0
- package/dist/component/usageCredits/queries.d.ts.map +1 -1
- package/dist/component/usageCredits/schema.d.ts +24 -4
- package/dist/component/usageCredits/schema.d.ts.map +1 -1
- package/dist/component/usageCredits/schema.js +4 -0
- package/dist/component/usageCredits/schema.js.map +1 -1
- package/dist/component/usageSubscriptions/history.d.ts.map +1 -1
- package/dist/component/usageSubscriptions/history.js +3 -1
- package/dist/component/usageSubscriptions/history.js.map +1 -1
- package/dist/component/usageSubscriptions/mutations.d.ts +5 -0
- package/dist/component/usageSubscriptions/mutations.d.ts.map +1 -1
- package/dist/component/usageSubscriptions/mutations.js +19 -0
- package/dist/component/usageSubscriptions/mutations.js.map +1 -1
- package/dist/component/usageSubscriptions/queries.d.ts +2 -0
- package/dist/component/usageSubscriptions/queries.d.ts.map +1 -1
- package/dist/component/usageSubscriptions/schema.d.ts +7 -2
- package/dist/component/usageSubscriptions/schema.d.ts.map +1 -1
- package/dist/component/usageSubscriptions/schema.js +1 -0
- package/dist/component/usageSubscriptions/schema.js.map +1 -1
- package/docs/README.md +4 -0
- package/docs/settlement.md +4 -0
- package/docs/usage-credits.md +6 -1
- package/docs/usage-security.md +130 -0
- package/docs/usage-settlement.md +162 -0
- package/package.json +3 -1
- package/src/client/index.ts +9 -0
- package/src/client/paymentSource/resolver.fixtures.ts +216 -0
- package/src/client/paymentSource/resolver.test.ts +11 -207
- package/src/client/paymentSource/resolver.ts +54 -2
- package/src/client/settlement/execution.ts +24 -0
- package/src/client/usage/catalogPrices.ts +4 -2
- package/src/client/usage/client.ts +2 -2
- package/src/client/usage/creditBackingIsolation.test.ts +110 -0
- package/src/client/usage/creditCapacity.test.ts +80 -1
- package/src/client/usage/creditCapacity.ts +10 -1
- package/src/client/usage/creditDelivery.ts +4 -0
- package/src/client/usage/creditLifecycle.ts +2 -0
- package/src/client/usage/creditNative.ts +5 -0
- package/src/client/usage/creditProofBounds.test.ts +187 -0
- package/src/client/usage/creditProvider.test.ts +74 -0
- package/src/client/usage/creditProvider.ts +2 -0
- package/src/client/usage/creditReconciliation.ts +18 -3
- package/src/client/usage/creditRevenue.test.ts +105 -0
- package/src/client/usage/creditRevenue.ts +163 -0
- package/src/client/usage/creditSettlement.fixtures.ts +70 -0
- package/src/client/usage/creditSettlement.test.ts +66 -0
- package/src/client/usage/creditSettlement.ts +94 -0
- package/src/client/usage/creditSettlementRecovery.test.ts +173 -0
- package/src/client/usage/creditTransport.fixtures.ts +31 -5
- package/src/client/usage/index.ts +9 -0
- package/src/client/usage/invoiceSale.fixtures.ts +103 -0
- package/src/client/usage/invoiceSale.test.ts +184 -0
- package/src/client/usage/invoiceSale.ts +155 -0
- package/src/client/usage/settlement.test.ts +179 -0
- package/src/client/usage/settlement.ts +81 -0
- package/src/client/usage/settlementClient.ts +84 -0
- package/src/client/usage/subscriptionCancellation.ts +3 -2
- package/src/client/usage/subscriptionCheckout.ts +7 -2
- package/src/client/usage/subscriptionClient.test.ts +60 -1
- package/src/client/usage/subscriptionLifecycle.ts +3 -2
- package/src/client/usage/subscriptionProvider.ts +27 -3
- package/src/component/_generated/component.ts +150 -1
- package/src/component/financialObservations/settlementHelpers.ts +2 -0
- package/src/component/settlement/mutations.ts +10 -1
- package/src/component/settlement/schema.ts +26 -0
- package/src/component/settlement/settlement-claims.test.ts +54 -0
- package/src/component/usage/allowance.fixtures.ts +77 -0
- package/src/component/usage/allowance.test.ts +3 -66
- package/src/component/usage/allowanceBounds.test.ts +79 -0
- package/src/component/usage/historyIsolation.test.ts +124 -0
- package/src/component/usageCredits/accounting.fixtures.ts +96 -0
- package/src/component/usageCredits/accounting.test.ts +176 -82
- package/src/component/usageCredits/freshness.test.ts +33 -0
- package/src/component/usageCredits/helpers.ts +8 -0
- package/src/component/usageCredits/mutations.ts +83 -5
- package/src/component/usageCredits/quotas.test.ts +63 -0
- package/src/component/usageCredits/schema.ts +10 -0
- package/src/component/usageSubscriptions/history.test.ts +57 -0
- package/src/component/usageSubscriptions/history.ts +3 -1
- package/src/component/usageSubscriptions/mutations.ts +23 -0
- package/src/component/usageSubscriptions/schema.ts +1 -0
|
@@ -184,6 +184,7 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
184
184
|
historyCount?: number | undefined;
|
|
185
185
|
key: string;
|
|
186
186
|
method: "checkout" | "direct";
|
|
187
|
+
observationStartedAt?: number | undefined;
|
|
187
188
|
providerId?: string | undefined;
|
|
188
189
|
retiredAt?: number | undefined;
|
|
189
190
|
retirementInvoiceId?: string | undefined;
|
|
@@ -201,12 +202,13 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
201
202
|
checkoutId: import("convex/values").VString<string | undefined, "optional">;
|
|
202
203
|
viewJson: import("convex/values").VString<string | undefined, "optional">;
|
|
203
204
|
startedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
205
|
+
observationStartedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
204
206
|
controlKey: import("convex/values").VString<string | undefined, "optional">;
|
|
205
207
|
historyCount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
206
208
|
retiredAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
207
209
|
abandonedId: import("convex/values").VString<string | undefined, "optional">;
|
|
208
210
|
retirementInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
209
|
-
}, "required", "abandonedId" | "checkoutId" | "controlKey" | "firstAttemptAt" | "historyCount" | "key" | "method" | "providerId" | "retiredAt" | "retirementInvoiceId" | "scopeKey" | "startedAt" | "termsJson" | "viewJson">, {
|
|
211
|
+
}, "required", "abandonedId" | "checkoutId" | "controlKey" | "firstAttemptAt" | "historyCount" | "key" | "method" | "observationStartedAt" | "providerId" | "retiredAt" | "retirementInvoiceId" | "scopeKey" | "startedAt" | "termsJson" | "viewJson">, {
|
|
210
212
|
by_key: ["key", "_creationTime"];
|
|
211
213
|
by_provider: ["providerId", "_creationTime"];
|
|
212
214
|
}, {}, {}>;
|
|
@@ -486,6 +488,7 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
486
488
|
paymentIntentId?: string | undefined;
|
|
487
489
|
paymentKey?: string | undefined;
|
|
488
490
|
paymentProofJson?: string | undefined;
|
|
491
|
+
recoveryReason?: "native_state_changed" | "payment_disputed" | "payment_refunded" | undefined;
|
|
489
492
|
refundedAmount?: number | undefined;
|
|
490
493
|
state: "canceled" | "frozen" | "pending" | "ready";
|
|
491
494
|
termsJson: string;
|
|
@@ -502,9 +505,10 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
502
505
|
paymentKey: import("convex/values").VString<string | undefined, "optional">;
|
|
503
506
|
paymentProofJson: import("convex/values").VString<string | undefined, "optional">;
|
|
504
507
|
refundedAmount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
508
|
+
recoveryReason: import("convex/values").VUnion<"native_state_changed" | "payment_disputed" | "payment_refunded" | undefined, [import("convex/values").VLiteral<"payment_refunded", "required">, import("convex/values").VLiteral<"payment_disputed", "required">, import("convex/values").VLiteral<"native_state_changed", "required">], "optional", never>;
|
|
505
509
|
grantFirstAttemptAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
506
510
|
creditGrantId: import("convex/values").VString<string | undefined, "optional">;
|
|
507
|
-
}, "required", "accountKey" | "capacityReserved" | "creditGrantId" | "firstAttemptAt" | "grantFirstAttemptAt" | "key" | "nativeCustomerKey" | "paymentAttemptedAt" | "paymentIntentId" | "paymentKey" | "paymentProofJson" | "refundedAmount" | "state" | "termsJson">, {
|
|
511
|
+
}, "required", "accountKey" | "capacityReserved" | "creditGrantId" | "firstAttemptAt" | "grantFirstAttemptAt" | "key" | "nativeCustomerKey" | "paymentAttemptedAt" | "paymentIntentId" | "paymentKey" | "paymentProofJson" | "recoveryReason" | "refundedAmount" | "state" | "termsJson">, {
|
|
508
512
|
by_account: ["accountKey", "_creationTime"];
|
|
509
513
|
by_customer_capacity: ["nativeCustomerKey", "capacityReserved", "_creationTime"];
|
|
510
514
|
by_key: ["key", "_creationTime"];
|
|
@@ -524,9 +528,12 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
524
528
|
nativeExpired?: boolean | undefined;
|
|
525
529
|
nativeObservationJson?: string | undefined;
|
|
526
530
|
nativeUnused: boolean;
|
|
531
|
+
observationConflictAt?: number | undefined;
|
|
532
|
+
observationStartedAt?: number | undefined;
|
|
527
533
|
observedAt?: number | undefined;
|
|
528
534
|
paymentIntentId: string;
|
|
529
535
|
proofJson: string;
|
|
536
|
+
proofStartedAt?: number | undefined;
|
|
530
537
|
purchaseKey: string;
|
|
531
538
|
reserved: string;
|
|
532
539
|
}, {
|
|
@@ -548,7 +555,10 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
548
555
|
nativeExpired: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
549
556
|
nativeObservationJson: import("convex/values").VString<string | undefined, "optional">;
|
|
550
557
|
observedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
551
|
-
|
|
558
|
+
proofStartedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
559
|
+
observationStartedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
560
|
+
observationConflictAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
561
|
+
}, "required", "accountKey" | "available" | "chargeId" | "consumed" | "creditGrantId" | "effectiveAt" | "expiresAt" | "frozen" | "nativeCreated" | "nativeCustomerKey" | "nativeExpired" | "nativeObservationJson" | "nativeUnused" | "observationConflictAt" | "observationStartedAt" | "observedAt" | "paymentIntentId" | "proofJson" | "proofStartedAt" | "purchaseKey" | "reserved">, {
|
|
552
562
|
by_account: ["accountKey", "_creationTime"];
|
|
553
563
|
by_customer_unused: ["nativeCustomerKey", "nativeUnused", "_creationTime"];
|
|
554
564
|
by_native: ["creditGrantId", "_creationTime"];
|
|
@@ -1114,6 +1124,15 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1114
1124
|
activePhase?: "execute" | "reconcile" | undefined;
|
|
1115
1125
|
allocation?: {
|
|
1116
1126
|
adjustmentAmount?: number | undefined;
|
|
1127
|
+
creditSource?: {
|
|
1128
|
+
creditGrantId: string;
|
|
1129
|
+
customerAccount: string;
|
|
1130
|
+
livemode: boolean;
|
|
1131
|
+
purchaseId: string;
|
|
1132
|
+
stripeAccountId: string;
|
|
1133
|
+
stripePriceId: string;
|
|
1134
|
+
stripeProductId: string;
|
|
1135
|
+
} | undefined;
|
|
1117
1136
|
currency: string;
|
|
1118
1137
|
gross: number;
|
|
1119
1138
|
paymentId?: string | undefined;
|
|
@@ -1127,6 +1146,22 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1127
1146
|
destinationAccountId: string;
|
|
1128
1147
|
role: "affiliate" | "other" | "store";
|
|
1129
1148
|
}[];
|
|
1149
|
+
usageSource?: {
|
|
1150
|
+
customerAccount: string;
|
|
1151
|
+
invoicePaymentId: string;
|
|
1152
|
+
livemode: boolean;
|
|
1153
|
+
meterId: string;
|
|
1154
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1155
|
+
period: {
|
|
1156
|
+
end: number;
|
|
1157
|
+
start: number;
|
|
1158
|
+
};
|
|
1159
|
+
stripeAccountId: string;
|
|
1160
|
+
stripePriceId: string;
|
|
1161
|
+
stripeProductId: string;
|
|
1162
|
+
subscriptionId: string;
|
|
1163
|
+
subscriptionItemId: string;
|
|
1164
|
+
} | undefined;
|
|
1130
1165
|
} | undefined;
|
|
1131
1166
|
cancelRequested: boolean;
|
|
1132
1167
|
completion?: string | undefined;
|
|
@@ -1161,6 +1196,15 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1161
1196
|
retryDelayMs: import("convex/values").VFloat64<number, "required">;
|
|
1162
1197
|
allocation: import("convex/values").VObject<{
|
|
1163
1198
|
adjustmentAmount?: number | undefined;
|
|
1199
|
+
creditSource?: {
|
|
1200
|
+
creditGrantId: string;
|
|
1201
|
+
customerAccount: string;
|
|
1202
|
+
livemode: boolean;
|
|
1203
|
+
purchaseId: string;
|
|
1204
|
+
stripeAccountId: string;
|
|
1205
|
+
stripePriceId: string;
|
|
1206
|
+
stripeProductId: string;
|
|
1207
|
+
} | undefined;
|
|
1164
1208
|
currency: string;
|
|
1165
1209
|
gross: number;
|
|
1166
1210
|
paymentId?: string | undefined;
|
|
@@ -1174,10 +1218,77 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1174
1218
|
destinationAccountId: string;
|
|
1175
1219
|
role: "affiliate" | "other" | "store";
|
|
1176
1220
|
}[];
|
|
1221
|
+
usageSource?: {
|
|
1222
|
+
customerAccount: string;
|
|
1223
|
+
invoicePaymentId: string;
|
|
1224
|
+
livemode: boolean;
|
|
1225
|
+
meterId: string;
|
|
1226
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1227
|
+
period: {
|
|
1228
|
+
end: number;
|
|
1229
|
+
start: number;
|
|
1230
|
+
};
|
|
1231
|
+
stripeAccountId: string;
|
|
1232
|
+
stripePriceId: string;
|
|
1233
|
+
stripeProductId: string;
|
|
1234
|
+
subscriptionId: string;
|
|
1235
|
+
subscriptionItemId: string;
|
|
1236
|
+
} | undefined;
|
|
1177
1237
|
} | undefined, {
|
|
1178
1238
|
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
1179
1239
|
paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
1180
1240
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
1241
|
+
usageSource: import("convex/values").VObject<{
|
|
1242
|
+
customerAccount: string;
|
|
1243
|
+
invoicePaymentId: string;
|
|
1244
|
+
livemode: boolean;
|
|
1245
|
+
meterId: string;
|
|
1246
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1247
|
+
period: {
|
|
1248
|
+
end: number;
|
|
1249
|
+
start: number;
|
|
1250
|
+
};
|
|
1251
|
+
stripeAccountId: string;
|
|
1252
|
+
stripePriceId: string;
|
|
1253
|
+
stripeProductId: string;
|
|
1254
|
+
subscriptionId: string;
|
|
1255
|
+
subscriptionItemId: string;
|
|
1256
|
+
} | undefined, {
|
|
1257
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
1258
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
1259
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
1260
|
+
meterId: import("convex/values").VString<string, "required">;
|
|
1261
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
1262
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
1263
|
+
subscriptionId: import("convex/values").VString<string, "required">;
|
|
1264
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
1265
|
+
invoicePaymentId: import("convex/values").VString<string, "required">;
|
|
1266
|
+
period: import("convex/values").VObject<{
|
|
1267
|
+
end: number;
|
|
1268
|
+
start: number;
|
|
1269
|
+
}, {
|
|
1270
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
1271
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
1272
|
+
}, "required", "end" | "start">;
|
|
1273
|
+
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>;
|
|
1274
|
+
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
1275
|
+
creditSource: import("convex/values").VObject<{
|
|
1276
|
+
creditGrantId: string;
|
|
1277
|
+
customerAccount: string;
|
|
1278
|
+
livemode: boolean;
|
|
1279
|
+
purchaseId: string;
|
|
1280
|
+
stripeAccountId: string;
|
|
1281
|
+
stripePriceId: string;
|
|
1282
|
+
stripeProductId: string;
|
|
1283
|
+
} | undefined, {
|
|
1284
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
1285
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
1286
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
1287
|
+
purchaseId: import("convex/values").VString<string, "required">;
|
|
1288
|
+
creditGrantId: import("convex/values").VString<string, "required">;
|
|
1289
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
1290
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
1291
|
+
}, "optional", "creditGrantId" | "customerAccount" | "livemode" | "purchaseId" | "stripeAccountId" | "stripePriceId" | "stripeProductId">;
|
|
1181
1292
|
gross: import("convex/values").VFloat64<number, "required">;
|
|
1182
1293
|
currency: import("convex/values").VString<string, "required">;
|
|
1183
1294
|
processingFee: import("convex/values").VFloat64<number, "required">;
|
|
@@ -1197,7 +1308,7 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1197
1308
|
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>;
|
|
1198
1309
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
1199
1310
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
1200
|
-
}, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
|
|
1311
|
+
}, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "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">;
|
|
1201
1312
|
version: import("convex/values").VFloat64<number, "required">;
|
|
1202
1313
|
sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
|
|
1203
1314
|
sourceId: import("convex/values").VString<string, "required">;
|
|
@@ -1208,7 +1319,7 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1208
1319
|
activePhase: import("convex/values").VUnion<"execute" | "reconcile" | undefined, [import("convex/values").VLiteral<"execute", "required">, import("convex/values").VLiteral<"reconcile", "required">], "optional", never>;
|
|
1209
1320
|
resumeQueued: import("convex/values").VBoolean<boolean, "required">;
|
|
1210
1321
|
outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
|
|
1211
|
-
}, "required", "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId">, {
|
|
1322
|
+
}, "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.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">, {
|
|
1212
1323
|
by_group: ["groupKey", "_creationTime"];
|
|
1213
1324
|
by_source: ["sourceKind", "sourceId", "_creationTime"];
|
|
1214
1325
|
}, {}, {}>;
|
|
@@ -1217,6 +1328,15 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1217
1328
|
accountId: string;
|
|
1218
1329
|
allocation?: {
|
|
1219
1330
|
adjustmentAmount?: number | undefined;
|
|
1331
|
+
creditSource?: {
|
|
1332
|
+
creditGrantId: string;
|
|
1333
|
+
customerAccount: string;
|
|
1334
|
+
livemode: boolean;
|
|
1335
|
+
purchaseId: string;
|
|
1336
|
+
stripeAccountId: string;
|
|
1337
|
+
stripePriceId: string;
|
|
1338
|
+
stripeProductId: string;
|
|
1339
|
+
} | undefined;
|
|
1220
1340
|
currency: string;
|
|
1221
1341
|
gross: number;
|
|
1222
1342
|
paymentId?: string | undefined;
|
|
@@ -1230,6 +1350,22 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1230
1350
|
destinationAccountId: string;
|
|
1231
1351
|
role: "affiliate" | "other" | "store";
|
|
1232
1352
|
}[];
|
|
1353
|
+
usageSource?: {
|
|
1354
|
+
customerAccount: string;
|
|
1355
|
+
invoicePaymentId: string;
|
|
1356
|
+
livemode: boolean;
|
|
1357
|
+
meterId: string;
|
|
1358
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1359
|
+
period: {
|
|
1360
|
+
end: number;
|
|
1361
|
+
start: number;
|
|
1362
|
+
};
|
|
1363
|
+
stripeAccountId: string;
|
|
1364
|
+
stripePriceId: string;
|
|
1365
|
+
stripeProductId: string;
|
|
1366
|
+
subscriptionId: string;
|
|
1367
|
+
subscriptionItemId: string;
|
|
1368
|
+
} | undefined;
|
|
1233
1369
|
} | undefined;
|
|
1234
1370
|
completion?: string | undefined;
|
|
1235
1371
|
currency: string;
|
|
@@ -1250,6 +1386,15 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1250
1386
|
accountId: string;
|
|
1251
1387
|
allocation?: {
|
|
1252
1388
|
adjustmentAmount?: number | undefined;
|
|
1389
|
+
creditSource?: {
|
|
1390
|
+
creditGrantId: string;
|
|
1391
|
+
customerAccount: string;
|
|
1392
|
+
livemode: boolean;
|
|
1393
|
+
purchaseId: string;
|
|
1394
|
+
stripeAccountId: string;
|
|
1395
|
+
stripePriceId: string;
|
|
1396
|
+
stripeProductId: string;
|
|
1397
|
+
} | undefined;
|
|
1253
1398
|
currency: string;
|
|
1254
1399
|
gross: number;
|
|
1255
1400
|
paymentId?: string | undefined;
|
|
@@ -1263,6 +1408,22 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1263
1408
|
destinationAccountId: string;
|
|
1264
1409
|
role: "affiliate" | "other" | "store";
|
|
1265
1410
|
}[];
|
|
1411
|
+
usageSource?: {
|
|
1412
|
+
customerAccount: string;
|
|
1413
|
+
invoicePaymentId: string;
|
|
1414
|
+
livemode: boolean;
|
|
1415
|
+
meterId: string;
|
|
1416
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1417
|
+
period: {
|
|
1418
|
+
end: number;
|
|
1419
|
+
start: number;
|
|
1420
|
+
};
|
|
1421
|
+
stripeAccountId: string;
|
|
1422
|
+
stripePriceId: string;
|
|
1423
|
+
stripeProductId: string;
|
|
1424
|
+
subscriptionId: string;
|
|
1425
|
+
subscriptionItemId: string;
|
|
1426
|
+
} | undefined;
|
|
1266
1427
|
} | undefined;
|
|
1267
1428
|
completion?: string | undefined;
|
|
1268
1429
|
currency: string;
|
|
@@ -1288,6 +1449,15 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1288
1449
|
retryDelayMs: import("convex/values").VFloat64<number, "required">;
|
|
1289
1450
|
allocation: import("convex/values").VObject<{
|
|
1290
1451
|
adjustmentAmount?: number | undefined;
|
|
1452
|
+
creditSource?: {
|
|
1453
|
+
creditGrantId: string;
|
|
1454
|
+
customerAccount: string;
|
|
1455
|
+
livemode: boolean;
|
|
1456
|
+
purchaseId: string;
|
|
1457
|
+
stripeAccountId: string;
|
|
1458
|
+
stripePriceId: string;
|
|
1459
|
+
stripeProductId: string;
|
|
1460
|
+
} | undefined;
|
|
1291
1461
|
currency: string;
|
|
1292
1462
|
gross: number;
|
|
1293
1463
|
paymentId?: string | undefined;
|
|
@@ -1301,10 +1471,77 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1301
1471
|
destinationAccountId: string;
|
|
1302
1472
|
role: "affiliate" | "other" | "store";
|
|
1303
1473
|
}[];
|
|
1474
|
+
usageSource?: {
|
|
1475
|
+
customerAccount: string;
|
|
1476
|
+
invoicePaymentId: string;
|
|
1477
|
+
livemode: boolean;
|
|
1478
|
+
meterId: string;
|
|
1479
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1480
|
+
period: {
|
|
1481
|
+
end: number;
|
|
1482
|
+
start: number;
|
|
1483
|
+
};
|
|
1484
|
+
stripeAccountId: string;
|
|
1485
|
+
stripePriceId: string;
|
|
1486
|
+
stripeProductId: string;
|
|
1487
|
+
subscriptionId: string;
|
|
1488
|
+
subscriptionItemId: string;
|
|
1489
|
+
} | undefined;
|
|
1304
1490
|
} | undefined, {
|
|
1305
1491
|
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
1306
1492
|
paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
1307
1493
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
1494
|
+
usageSource: import("convex/values").VObject<{
|
|
1495
|
+
customerAccount: string;
|
|
1496
|
+
invoicePaymentId: string;
|
|
1497
|
+
livemode: boolean;
|
|
1498
|
+
meterId: string;
|
|
1499
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1500
|
+
period: {
|
|
1501
|
+
end: number;
|
|
1502
|
+
start: number;
|
|
1503
|
+
};
|
|
1504
|
+
stripeAccountId: string;
|
|
1505
|
+
stripePriceId: string;
|
|
1506
|
+
stripeProductId: string;
|
|
1507
|
+
subscriptionId: string;
|
|
1508
|
+
subscriptionItemId: string;
|
|
1509
|
+
} | undefined, {
|
|
1510
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
1511
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
1512
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
1513
|
+
meterId: import("convex/values").VString<string, "required">;
|
|
1514
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
1515
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
1516
|
+
subscriptionId: import("convex/values").VString<string, "required">;
|
|
1517
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
1518
|
+
invoicePaymentId: import("convex/values").VString<string, "required">;
|
|
1519
|
+
period: import("convex/values").VObject<{
|
|
1520
|
+
end: number;
|
|
1521
|
+
start: number;
|
|
1522
|
+
}, {
|
|
1523
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
1524
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
1525
|
+
}, "required", "end" | "start">;
|
|
1526
|
+
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>;
|
|
1527
|
+
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
1528
|
+
creditSource: import("convex/values").VObject<{
|
|
1529
|
+
creditGrantId: string;
|
|
1530
|
+
customerAccount: string;
|
|
1531
|
+
livemode: boolean;
|
|
1532
|
+
purchaseId: string;
|
|
1533
|
+
stripeAccountId: string;
|
|
1534
|
+
stripePriceId: string;
|
|
1535
|
+
stripeProductId: string;
|
|
1536
|
+
} | undefined, {
|
|
1537
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
1538
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
1539
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
1540
|
+
purchaseId: import("convex/values").VString<string, "required">;
|
|
1541
|
+
creditGrantId: import("convex/values").VString<string, "required">;
|
|
1542
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
1543
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
1544
|
+
}, "optional", "creditGrantId" | "customerAccount" | "livemode" | "purchaseId" | "stripeAccountId" | "stripePriceId" | "stripeProductId">;
|
|
1308
1545
|
gross: import("convex/values").VFloat64<number, "required">;
|
|
1309
1546
|
currency: import("convex/values").VString<string, "required">;
|
|
1310
1547
|
processingFee: import("convex/values").VFloat64<number, "required">;
|
|
@@ -1324,10 +1561,10 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1324
1561
|
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>;
|
|
1325
1562
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
1326
1563
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
1327
|
-
}, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
|
|
1328
|
-
}, "required", "accountId" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "provider" | "providerApiVersion" | "releaseUncollectible" | "retryDelayMs" | "scopeKey">;
|
|
1564
|
+
}, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "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">;
|
|
1565
|
+
}, "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.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">;
|
|
1329
1566
|
operationId: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
|
|
1330
|
-
}, "required", "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "binding.allocation.currency" | "binding.allocation.gross" | "binding.allocation.paymentId" | "binding.allocation.paymentIntentId" | "binding.allocation.platformNet" | "binding.allocation.processingFee" | "binding.allocation.sourceChargeId" | "binding.allocation.sourceInvoiceId" | "binding.allocation.transfers" | "binding.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey">, {
|
|
1567
|
+
}, "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.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">, {
|
|
1331
1568
|
by_key: ["requestKey", "_creationTime"];
|
|
1332
1569
|
}, {}, {}>;
|
|
1333
1570
|
balanceFundingPreparations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -1635,14 +1872,6 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1635
1872
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
1636
1873
|
requestKey: string;
|
|
1637
1874
|
result?: {
|
|
1638
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
1639
|
-
retryable: false;
|
|
1640
|
-
status: "conflict";
|
|
1641
|
-
} | {
|
|
1642
|
-
reason: "policy_invalid";
|
|
1643
|
-
retryable: false;
|
|
1644
|
-
status: "rejected";
|
|
1645
|
-
} | {
|
|
1646
1875
|
operation: {
|
|
1647
1876
|
accountId: string;
|
|
1648
1877
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -1653,6 +1882,14 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1653
1882
|
} | {
|
|
1654
1883
|
enabled: boolean;
|
|
1655
1884
|
status: "unchanged";
|
|
1885
|
+
} | {
|
|
1886
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
1887
|
+
retryable: false;
|
|
1888
|
+
status: "conflict";
|
|
1889
|
+
} | {
|
|
1890
|
+
reason: "policy_invalid";
|
|
1891
|
+
retryable: false;
|
|
1892
|
+
status: "rejected";
|
|
1656
1893
|
} | {
|
|
1657
1894
|
reason: "provider_pending";
|
|
1658
1895
|
retryable: true;
|
|
@@ -1663,14 +1900,6 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1663
1900
|
payload: import("convex/values").VString<string, "required">;
|
|
1664
1901
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
1665
1902
|
result: import("convex/values").VUnion<{
|
|
1666
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
1667
|
-
retryable: false;
|
|
1668
|
-
status: "conflict";
|
|
1669
|
-
} | {
|
|
1670
|
-
reason: "policy_invalid";
|
|
1671
|
-
retryable: false;
|
|
1672
|
-
status: "rejected";
|
|
1673
|
-
} | {
|
|
1674
1903
|
operation: {
|
|
1675
1904
|
accountId: string;
|
|
1676
1905
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -1681,6 +1910,14 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1681
1910
|
} | {
|
|
1682
1911
|
enabled: boolean;
|
|
1683
1912
|
status: "unchanged";
|
|
1913
|
+
} | {
|
|
1914
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
1915
|
+
retryable: false;
|
|
1916
|
+
status: "conflict";
|
|
1917
|
+
} | {
|
|
1918
|
+
reason: "policy_invalid";
|
|
1919
|
+
retryable: false;
|
|
1920
|
+
status: "rejected";
|
|
1684
1921
|
} | {
|
|
1685
1922
|
reason: "provider_pending";
|
|
1686
1923
|
retryable: true;
|
|
@@ -3125,6 +3362,15 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
3125
3362
|
}, {}, {}>;
|
|
3126
3363
|
settlementAllocations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3127
3364
|
adjustmentAmount?: number | undefined;
|
|
3365
|
+
creditSource?: {
|
|
3366
|
+
creditGrantId: string;
|
|
3367
|
+
customerAccount: string;
|
|
3368
|
+
livemode: boolean;
|
|
3369
|
+
purchaseId: string;
|
|
3370
|
+
stripeAccountId: string;
|
|
3371
|
+
stripePriceId: string;
|
|
3372
|
+
stripeProductId: string;
|
|
3373
|
+
} | undefined;
|
|
3128
3374
|
currency: string;
|
|
3129
3375
|
gross: number;
|
|
3130
3376
|
paymentId?: string | undefined;
|
|
@@ -3138,10 +3384,77 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
3138
3384
|
destinationAccountId: string;
|
|
3139
3385
|
role: "affiliate" | "other" | "store";
|
|
3140
3386
|
}[];
|
|
3387
|
+
usageSource?: {
|
|
3388
|
+
customerAccount: string;
|
|
3389
|
+
invoicePaymentId: string;
|
|
3390
|
+
livemode: boolean;
|
|
3391
|
+
meterId: string;
|
|
3392
|
+
model: "included_overage" | "pay_as_you_go";
|
|
3393
|
+
period: {
|
|
3394
|
+
end: number;
|
|
3395
|
+
start: number;
|
|
3396
|
+
};
|
|
3397
|
+
stripeAccountId: string;
|
|
3398
|
+
stripePriceId: string;
|
|
3399
|
+
stripeProductId: string;
|
|
3400
|
+
subscriptionId: string;
|
|
3401
|
+
subscriptionItemId: string;
|
|
3402
|
+
} | undefined;
|
|
3141
3403
|
}, {
|
|
3142
3404
|
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
3143
3405
|
paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
3144
3406
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
3407
|
+
usageSource: import("convex/values").VObject<{
|
|
3408
|
+
customerAccount: string;
|
|
3409
|
+
invoicePaymentId: string;
|
|
3410
|
+
livemode: boolean;
|
|
3411
|
+
meterId: string;
|
|
3412
|
+
model: "included_overage" | "pay_as_you_go";
|
|
3413
|
+
period: {
|
|
3414
|
+
end: number;
|
|
3415
|
+
start: number;
|
|
3416
|
+
};
|
|
3417
|
+
stripeAccountId: string;
|
|
3418
|
+
stripePriceId: string;
|
|
3419
|
+
stripeProductId: string;
|
|
3420
|
+
subscriptionId: string;
|
|
3421
|
+
subscriptionItemId: string;
|
|
3422
|
+
} | undefined, {
|
|
3423
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
3424
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
3425
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
3426
|
+
meterId: import("convex/values").VString<string, "required">;
|
|
3427
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
3428
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
3429
|
+
subscriptionId: import("convex/values").VString<string, "required">;
|
|
3430
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
3431
|
+
invoicePaymentId: import("convex/values").VString<string, "required">;
|
|
3432
|
+
period: import("convex/values").VObject<{
|
|
3433
|
+
end: number;
|
|
3434
|
+
start: number;
|
|
3435
|
+
}, {
|
|
3436
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
3437
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
3438
|
+
}, "required", "end" | "start">;
|
|
3439
|
+
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>;
|
|
3440
|
+
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
3441
|
+
creditSource: import("convex/values").VObject<{
|
|
3442
|
+
creditGrantId: string;
|
|
3443
|
+
customerAccount: string;
|
|
3444
|
+
livemode: boolean;
|
|
3445
|
+
purchaseId: string;
|
|
3446
|
+
stripeAccountId: string;
|
|
3447
|
+
stripePriceId: string;
|
|
3448
|
+
stripeProductId: string;
|
|
3449
|
+
} | undefined, {
|
|
3450
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
3451
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
3452
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
3453
|
+
purchaseId: import("convex/values").VString<string, "required">;
|
|
3454
|
+
creditGrantId: import("convex/values").VString<string, "required">;
|
|
3455
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
3456
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
3457
|
+
}, "optional", "creditGrantId" | "customerAccount" | "livemode" | "purchaseId" | "stripeAccountId" | "stripePriceId" | "stripeProductId">;
|
|
3145
3458
|
gross: import("convex/values").VFloat64<number, "required">;
|
|
3146
3459
|
currency: import("convex/values").VString<string, "required">;
|
|
3147
3460
|
processingFee: import("convex/values").VFloat64<number, "required">;
|
|
@@ -3161,7 +3474,7 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
3161
3474
|
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>;
|
|
3162
3475
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
3163
3476
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
3164
|
-
}, "required", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">, {
|
|
3477
|
+
}, "required", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "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">, {
|
|
3165
3478
|
by_source_charge: ["sourceChargeId", "_creationTime"];
|
|
3166
3479
|
}, {}, {}>;
|
|
3167
3480
|
commissionTerms: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -4157,6 +4470,7 @@ export declare function historical(currency?: string): Promise<{
|
|
|
4157
4470
|
historyCount?: number | undefined;
|
|
4158
4471
|
key: string;
|
|
4159
4472
|
method: "checkout" | "direct";
|
|
4473
|
+
observationStartedAt?: number | undefined;
|
|
4160
4474
|
providerId?: string | undefined;
|
|
4161
4475
|
retiredAt?: number | undefined;
|
|
4162
4476
|
retirementInvoiceId?: string | undefined;
|
|
@@ -4174,12 +4488,13 @@ export declare function historical(currency?: string): Promise<{
|
|
|
4174
4488
|
checkoutId: import("convex/values").VString<string | undefined, "optional">;
|
|
4175
4489
|
viewJson: import("convex/values").VString<string | undefined, "optional">;
|
|
4176
4490
|
startedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4491
|
+
observationStartedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4177
4492
|
controlKey: import("convex/values").VString<string | undefined, "optional">;
|
|
4178
4493
|
historyCount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4179
4494
|
retiredAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4180
4495
|
abandonedId: import("convex/values").VString<string | undefined, "optional">;
|
|
4181
4496
|
retirementInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
4182
|
-
}, "required", "abandonedId" | "checkoutId" | "controlKey" | "firstAttemptAt" | "historyCount" | "key" | "method" | "providerId" | "retiredAt" | "retirementInvoiceId" | "scopeKey" | "startedAt" | "termsJson" | "viewJson">, {
|
|
4497
|
+
}, "required", "abandonedId" | "checkoutId" | "controlKey" | "firstAttemptAt" | "historyCount" | "key" | "method" | "observationStartedAt" | "providerId" | "retiredAt" | "retirementInvoiceId" | "scopeKey" | "startedAt" | "termsJson" | "viewJson">, {
|
|
4183
4498
|
by_key: ["key", "_creationTime"];
|
|
4184
4499
|
by_provider: ["providerId", "_creationTime"];
|
|
4185
4500
|
}, {}, {}>;
|
|
@@ -4459,6 +4774,7 @@ export declare function historical(currency?: string): Promise<{
|
|
|
4459
4774
|
paymentIntentId?: string | undefined;
|
|
4460
4775
|
paymentKey?: string | undefined;
|
|
4461
4776
|
paymentProofJson?: string | undefined;
|
|
4777
|
+
recoveryReason?: "native_state_changed" | "payment_disputed" | "payment_refunded" | undefined;
|
|
4462
4778
|
refundedAmount?: number | undefined;
|
|
4463
4779
|
state: "canceled" | "frozen" | "pending" | "ready";
|
|
4464
4780
|
termsJson: string;
|
|
@@ -4475,9 +4791,10 @@ export declare function historical(currency?: string): Promise<{
|
|
|
4475
4791
|
paymentKey: import("convex/values").VString<string | undefined, "optional">;
|
|
4476
4792
|
paymentProofJson: import("convex/values").VString<string | undefined, "optional">;
|
|
4477
4793
|
refundedAmount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4794
|
+
recoveryReason: import("convex/values").VUnion<"native_state_changed" | "payment_disputed" | "payment_refunded" | undefined, [import("convex/values").VLiteral<"payment_refunded", "required">, import("convex/values").VLiteral<"payment_disputed", "required">, import("convex/values").VLiteral<"native_state_changed", "required">], "optional", never>;
|
|
4478
4795
|
grantFirstAttemptAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4479
4796
|
creditGrantId: import("convex/values").VString<string | undefined, "optional">;
|
|
4480
|
-
}, "required", "accountKey" | "capacityReserved" | "creditGrantId" | "firstAttemptAt" | "grantFirstAttemptAt" | "key" | "nativeCustomerKey" | "paymentAttemptedAt" | "paymentIntentId" | "paymentKey" | "paymentProofJson" | "refundedAmount" | "state" | "termsJson">, {
|
|
4797
|
+
}, "required", "accountKey" | "capacityReserved" | "creditGrantId" | "firstAttemptAt" | "grantFirstAttemptAt" | "key" | "nativeCustomerKey" | "paymentAttemptedAt" | "paymentIntentId" | "paymentKey" | "paymentProofJson" | "recoveryReason" | "refundedAmount" | "state" | "termsJson">, {
|
|
4481
4798
|
by_account: ["accountKey", "_creationTime"];
|
|
4482
4799
|
by_customer_capacity: ["nativeCustomerKey", "capacityReserved", "_creationTime"];
|
|
4483
4800
|
by_key: ["key", "_creationTime"];
|
|
@@ -4497,9 +4814,12 @@ export declare function historical(currency?: string): Promise<{
|
|
|
4497
4814
|
nativeExpired?: boolean | undefined;
|
|
4498
4815
|
nativeObservationJson?: string | undefined;
|
|
4499
4816
|
nativeUnused: boolean;
|
|
4817
|
+
observationConflictAt?: number | undefined;
|
|
4818
|
+
observationStartedAt?: number | undefined;
|
|
4500
4819
|
observedAt?: number | undefined;
|
|
4501
4820
|
paymentIntentId: string;
|
|
4502
4821
|
proofJson: string;
|
|
4822
|
+
proofStartedAt?: number | undefined;
|
|
4503
4823
|
purchaseKey: string;
|
|
4504
4824
|
reserved: string;
|
|
4505
4825
|
}, {
|
|
@@ -4521,7 +4841,10 @@ export declare function historical(currency?: string): Promise<{
|
|
|
4521
4841
|
nativeExpired: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
4522
4842
|
nativeObservationJson: import("convex/values").VString<string | undefined, "optional">;
|
|
4523
4843
|
observedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4524
|
-
|
|
4844
|
+
proofStartedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4845
|
+
observationStartedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4846
|
+
observationConflictAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4847
|
+
}, "required", "accountKey" | "available" | "chargeId" | "consumed" | "creditGrantId" | "effectiveAt" | "expiresAt" | "frozen" | "nativeCreated" | "nativeCustomerKey" | "nativeExpired" | "nativeObservationJson" | "nativeUnused" | "observationConflictAt" | "observationStartedAt" | "observedAt" | "paymentIntentId" | "proofJson" | "proofStartedAt" | "purchaseKey" | "reserved">, {
|
|
4525
4848
|
by_account: ["accountKey", "_creationTime"];
|
|
4526
4849
|
by_customer_unused: ["nativeCustomerKey", "nativeUnused", "_creationTime"];
|
|
4527
4850
|
by_native: ["creditGrantId", "_creationTime"];
|
|
@@ -5087,6 +5410,15 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5087
5410
|
activePhase?: "execute" | "reconcile" | undefined;
|
|
5088
5411
|
allocation?: {
|
|
5089
5412
|
adjustmentAmount?: number | undefined;
|
|
5413
|
+
creditSource?: {
|
|
5414
|
+
creditGrantId: string;
|
|
5415
|
+
customerAccount: string;
|
|
5416
|
+
livemode: boolean;
|
|
5417
|
+
purchaseId: string;
|
|
5418
|
+
stripeAccountId: string;
|
|
5419
|
+
stripePriceId: string;
|
|
5420
|
+
stripeProductId: string;
|
|
5421
|
+
} | undefined;
|
|
5090
5422
|
currency: string;
|
|
5091
5423
|
gross: number;
|
|
5092
5424
|
paymentId?: string | undefined;
|
|
@@ -5100,6 +5432,22 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5100
5432
|
destinationAccountId: string;
|
|
5101
5433
|
role: "affiliate" | "other" | "store";
|
|
5102
5434
|
}[];
|
|
5435
|
+
usageSource?: {
|
|
5436
|
+
customerAccount: string;
|
|
5437
|
+
invoicePaymentId: string;
|
|
5438
|
+
livemode: boolean;
|
|
5439
|
+
meterId: string;
|
|
5440
|
+
model: "included_overage" | "pay_as_you_go";
|
|
5441
|
+
period: {
|
|
5442
|
+
end: number;
|
|
5443
|
+
start: number;
|
|
5444
|
+
};
|
|
5445
|
+
stripeAccountId: string;
|
|
5446
|
+
stripePriceId: string;
|
|
5447
|
+
stripeProductId: string;
|
|
5448
|
+
subscriptionId: string;
|
|
5449
|
+
subscriptionItemId: string;
|
|
5450
|
+
} | undefined;
|
|
5103
5451
|
} | undefined;
|
|
5104
5452
|
cancelRequested: boolean;
|
|
5105
5453
|
completion?: string | undefined;
|
|
@@ -5134,6 +5482,15 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5134
5482
|
retryDelayMs: import("convex/values").VFloat64<number, "required">;
|
|
5135
5483
|
allocation: import("convex/values").VObject<{
|
|
5136
5484
|
adjustmentAmount?: number | undefined;
|
|
5485
|
+
creditSource?: {
|
|
5486
|
+
creditGrantId: string;
|
|
5487
|
+
customerAccount: string;
|
|
5488
|
+
livemode: boolean;
|
|
5489
|
+
purchaseId: string;
|
|
5490
|
+
stripeAccountId: string;
|
|
5491
|
+
stripePriceId: string;
|
|
5492
|
+
stripeProductId: string;
|
|
5493
|
+
} | undefined;
|
|
5137
5494
|
currency: string;
|
|
5138
5495
|
gross: number;
|
|
5139
5496
|
paymentId?: string | undefined;
|
|
@@ -5147,10 +5504,77 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5147
5504
|
destinationAccountId: string;
|
|
5148
5505
|
role: "affiliate" | "other" | "store";
|
|
5149
5506
|
}[];
|
|
5507
|
+
usageSource?: {
|
|
5508
|
+
customerAccount: string;
|
|
5509
|
+
invoicePaymentId: string;
|
|
5510
|
+
livemode: boolean;
|
|
5511
|
+
meterId: string;
|
|
5512
|
+
model: "included_overage" | "pay_as_you_go";
|
|
5513
|
+
period: {
|
|
5514
|
+
end: number;
|
|
5515
|
+
start: number;
|
|
5516
|
+
};
|
|
5517
|
+
stripeAccountId: string;
|
|
5518
|
+
stripePriceId: string;
|
|
5519
|
+
stripeProductId: string;
|
|
5520
|
+
subscriptionId: string;
|
|
5521
|
+
subscriptionItemId: string;
|
|
5522
|
+
} | undefined;
|
|
5150
5523
|
} | undefined, {
|
|
5151
5524
|
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
5152
5525
|
paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
5153
5526
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
5527
|
+
usageSource: import("convex/values").VObject<{
|
|
5528
|
+
customerAccount: string;
|
|
5529
|
+
invoicePaymentId: string;
|
|
5530
|
+
livemode: boolean;
|
|
5531
|
+
meterId: string;
|
|
5532
|
+
model: "included_overage" | "pay_as_you_go";
|
|
5533
|
+
period: {
|
|
5534
|
+
end: number;
|
|
5535
|
+
start: number;
|
|
5536
|
+
};
|
|
5537
|
+
stripeAccountId: string;
|
|
5538
|
+
stripePriceId: string;
|
|
5539
|
+
stripeProductId: string;
|
|
5540
|
+
subscriptionId: string;
|
|
5541
|
+
subscriptionItemId: string;
|
|
5542
|
+
} | undefined, {
|
|
5543
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
5544
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
5545
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
5546
|
+
meterId: import("convex/values").VString<string, "required">;
|
|
5547
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
5548
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
5549
|
+
subscriptionId: import("convex/values").VString<string, "required">;
|
|
5550
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
5551
|
+
invoicePaymentId: import("convex/values").VString<string, "required">;
|
|
5552
|
+
period: import("convex/values").VObject<{
|
|
5553
|
+
end: number;
|
|
5554
|
+
start: number;
|
|
5555
|
+
}, {
|
|
5556
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
5557
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
5558
|
+
}, "required", "end" | "start">;
|
|
5559
|
+
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>;
|
|
5560
|
+
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
5561
|
+
creditSource: import("convex/values").VObject<{
|
|
5562
|
+
creditGrantId: string;
|
|
5563
|
+
customerAccount: string;
|
|
5564
|
+
livemode: boolean;
|
|
5565
|
+
purchaseId: string;
|
|
5566
|
+
stripeAccountId: string;
|
|
5567
|
+
stripePriceId: string;
|
|
5568
|
+
stripeProductId: string;
|
|
5569
|
+
} | undefined, {
|
|
5570
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
5571
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
5572
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
5573
|
+
purchaseId: import("convex/values").VString<string, "required">;
|
|
5574
|
+
creditGrantId: import("convex/values").VString<string, "required">;
|
|
5575
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
5576
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
5577
|
+
}, "optional", "creditGrantId" | "customerAccount" | "livemode" | "purchaseId" | "stripeAccountId" | "stripePriceId" | "stripeProductId">;
|
|
5154
5578
|
gross: import("convex/values").VFloat64<number, "required">;
|
|
5155
5579
|
currency: import("convex/values").VString<string, "required">;
|
|
5156
5580
|
processingFee: import("convex/values").VFloat64<number, "required">;
|
|
@@ -5170,7 +5594,7 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5170
5594
|
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>;
|
|
5171
5595
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
5172
5596
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
5173
|
-
}, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
|
|
5597
|
+
}, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "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">;
|
|
5174
5598
|
version: import("convex/values").VFloat64<number, "required">;
|
|
5175
5599
|
sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
|
|
5176
5600
|
sourceId: import("convex/values").VString<string, "required">;
|
|
@@ -5181,7 +5605,7 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5181
5605
|
activePhase: import("convex/values").VUnion<"execute" | "reconcile" | undefined, [import("convex/values").VLiteral<"execute", "required">, import("convex/values").VLiteral<"reconcile", "required">], "optional", never>;
|
|
5182
5606
|
resumeQueued: import("convex/values").VBoolean<boolean, "required">;
|
|
5183
5607
|
outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
|
|
5184
|
-
}, "required", "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId">, {
|
|
5608
|
+
}, "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.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">, {
|
|
5185
5609
|
by_group: ["groupKey", "_creationTime"];
|
|
5186
5610
|
by_source: ["sourceKind", "sourceId", "_creationTime"];
|
|
5187
5611
|
}, {}, {}>;
|
|
@@ -5190,6 +5614,15 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5190
5614
|
accountId: string;
|
|
5191
5615
|
allocation?: {
|
|
5192
5616
|
adjustmentAmount?: number | undefined;
|
|
5617
|
+
creditSource?: {
|
|
5618
|
+
creditGrantId: string;
|
|
5619
|
+
customerAccount: string;
|
|
5620
|
+
livemode: boolean;
|
|
5621
|
+
purchaseId: string;
|
|
5622
|
+
stripeAccountId: string;
|
|
5623
|
+
stripePriceId: string;
|
|
5624
|
+
stripeProductId: string;
|
|
5625
|
+
} | undefined;
|
|
5193
5626
|
currency: string;
|
|
5194
5627
|
gross: number;
|
|
5195
5628
|
paymentId?: string | undefined;
|
|
@@ -5203,6 +5636,22 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5203
5636
|
destinationAccountId: string;
|
|
5204
5637
|
role: "affiliate" | "other" | "store";
|
|
5205
5638
|
}[];
|
|
5639
|
+
usageSource?: {
|
|
5640
|
+
customerAccount: string;
|
|
5641
|
+
invoicePaymentId: string;
|
|
5642
|
+
livemode: boolean;
|
|
5643
|
+
meterId: string;
|
|
5644
|
+
model: "included_overage" | "pay_as_you_go";
|
|
5645
|
+
period: {
|
|
5646
|
+
end: number;
|
|
5647
|
+
start: number;
|
|
5648
|
+
};
|
|
5649
|
+
stripeAccountId: string;
|
|
5650
|
+
stripePriceId: string;
|
|
5651
|
+
stripeProductId: string;
|
|
5652
|
+
subscriptionId: string;
|
|
5653
|
+
subscriptionItemId: string;
|
|
5654
|
+
} | undefined;
|
|
5206
5655
|
} | undefined;
|
|
5207
5656
|
completion?: string | undefined;
|
|
5208
5657
|
currency: string;
|
|
@@ -5223,6 +5672,15 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5223
5672
|
accountId: string;
|
|
5224
5673
|
allocation?: {
|
|
5225
5674
|
adjustmentAmount?: number | undefined;
|
|
5675
|
+
creditSource?: {
|
|
5676
|
+
creditGrantId: string;
|
|
5677
|
+
customerAccount: string;
|
|
5678
|
+
livemode: boolean;
|
|
5679
|
+
purchaseId: string;
|
|
5680
|
+
stripeAccountId: string;
|
|
5681
|
+
stripePriceId: string;
|
|
5682
|
+
stripeProductId: string;
|
|
5683
|
+
} | undefined;
|
|
5226
5684
|
currency: string;
|
|
5227
5685
|
gross: number;
|
|
5228
5686
|
paymentId?: string | undefined;
|
|
@@ -5236,6 +5694,22 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5236
5694
|
destinationAccountId: string;
|
|
5237
5695
|
role: "affiliate" | "other" | "store";
|
|
5238
5696
|
}[];
|
|
5697
|
+
usageSource?: {
|
|
5698
|
+
customerAccount: string;
|
|
5699
|
+
invoicePaymentId: string;
|
|
5700
|
+
livemode: boolean;
|
|
5701
|
+
meterId: string;
|
|
5702
|
+
model: "included_overage" | "pay_as_you_go";
|
|
5703
|
+
period: {
|
|
5704
|
+
end: number;
|
|
5705
|
+
start: number;
|
|
5706
|
+
};
|
|
5707
|
+
stripeAccountId: string;
|
|
5708
|
+
stripePriceId: string;
|
|
5709
|
+
stripeProductId: string;
|
|
5710
|
+
subscriptionId: string;
|
|
5711
|
+
subscriptionItemId: string;
|
|
5712
|
+
} | undefined;
|
|
5239
5713
|
} | undefined;
|
|
5240
5714
|
completion?: string | undefined;
|
|
5241
5715
|
currency: string;
|
|
@@ -5261,6 +5735,15 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5261
5735
|
retryDelayMs: import("convex/values").VFloat64<number, "required">;
|
|
5262
5736
|
allocation: import("convex/values").VObject<{
|
|
5263
5737
|
adjustmentAmount?: number | undefined;
|
|
5738
|
+
creditSource?: {
|
|
5739
|
+
creditGrantId: string;
|
|
5740
|
+
customerAccount: string;
|
|
5741
|
+
livemode: boolean;
|
|
5742
|
+
purchaseId: string;
|
|
5743
|
+
stripeAccountId: string;
|
|
5744
|
+
stripePriceId: string;
|
|
5745
|
+
stripeProductId: string;
|
|
5746
|
+
} | undefined;
|
|
5264
5747
|
currency: string;
|
|
5265
5748
|
gross: number;
|
|
5266
5749
|
paymentId?: string | undefined;
|
|
@@ -5274,10 +5757,77 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5274
5757
|
destinationAccountId: string;
|
|
5275
5758
|
role: "affiliate" | "other" | "store";
|
|
5276
5759
|
}[];
|
|
5760
|
+
usageSource?: {
|
|
5761
|
+
customerAccount: string;
|
|
5762
|
+
invoicePaymentId: string;
|
|
5763
|
+
livemode: boolean;
|
|
5764
|
+
meterId: string;
|
|
5765
|
+
model: "included_overage" | "pay_as_you_go";
|
|
5766
|
+
period: {
|
|
5767
|
+
end: number;
|
|
5768
|
+
start: number;
|
|
5769
|
+
};
|
|
5770
|
+
stripeAccountId: string;
|
|
5771
|
+
stripePriceId: string;
|
|
5772
|
+
stripeProductId: string;
|
|
5773
|
+
subscriptionId: string;
|
|
5774
|
+
subscriptionItemId: string;
|
|
5775
|
+
} | undefined;
|
|
5277
5776
|
} | undefined, {
|
|
5278
5777
|
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
5279
5778
|
paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
5280
5779
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
5780
|
+
usageSource: import("convex/values").VObject<{
|
|
5781
|
+
customerAccount: string;
|
|
5782
|
+
invoicePaymentId: string;
|
|
5783
|
+
livemode: boolean;
|
|
5784
|
+
meterId: string;
|
|
5785
|
+
model: "included_overage" | "pay_as_you_go";
|
|
5786
|
+
period: {
|
|
5787
|
+
end: number;
|
|
5788
|
+
start: number;
|
|
5789
|
+
};
|
|
5790
|
+
stripeAccountId: string;
|
|
5791
|
+
stripePriceId: string;
|
|
5792
|
+
stripeProductId: string;
|
|
5793
|
+
subscriptionId: string;
|
|
5794
|
+
subscriptionItemId: string;
|
|
5795
|
+
} | undefined, {
|
|
5796
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
5797
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
5798
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
5799
|
+
meterId: import("convex/values").VString<string, "required">;
|
|
5800
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
5801
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
5802
|
+
subscriptionId: import("convex/values").VString<string, "required">;
|
|
5803
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
5804
|
+
invoicePaymentId: import("convex/values").VString<string, "required">;
|
|
5805
|
+
period: import("convex/values").VObject<{
|
|
5806
|
+
end: number;
|
|
5807
|
+
start: number;
|
|
5808
|
+
}, {
|
|
5809
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
5810
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
5811
|
+
}, "required", "end" | "start">;
|
|
5812
|
+
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>;
|
|
5813
|
+
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
5814
|
+
creditSource: import("convex/values").VObject<{
|
|
5815
|
+
creditGrantId: string;
|
|
5816
|
+
customerAccount: string;
|
|
5817
|
+
livemode: boolean;
|
|
5818
|
+
purchaseId: string;
|
|
5819
|
+
stripeAccountId: string;
|
|
5820
|
+
stripePriceId: string;
|
|
5821
|
+
stripeProductId: string;
|
|
5822
|
+
} | undefined, {
|
|
5823
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
5824
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
5825
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
5826
|
+
purchaseId: import("convex/values").VString<string, "required">;
|
|
5827
|
+
creditGrantId: import("convex/values").VString<string, "required">;
|
|
5828
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
5829
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
5830
|
+
}, "optional", "creditGrantId" | "customerAccount" | "livemode" | "purchaseId" | "stripeAccountId" | "stripePriceId" | "stripeProductId">;
|
|
5281
5831
|
gross: import("convex/values").VFloat64<number, "required">;
|
|
5282
5832
|
currency: import("convex/values").VString<string, "required">;
|
|
5283
5833
|
processingFee: import("convex/values").VFloat64<number, "required">;
|
|
@@ -5297,10 +5847,10 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5297
5847
|
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>;
|
|
5298
5848
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
5299
5849
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
5300
|
-
}, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
|
|
5301
|
-
}, "required", "accountId" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "provider" | "providerApiVersion" | "releaseUncollectible" | "retryDelayMs" | "scopeKey">;
|
|
5850
|
+
}, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "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">;
|
|
5851
|
+
}, "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.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">;
|
|
5302
5852
|
operationId: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
|
|
5303
|
-
}, "required", "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "binding.allocation.currency" | "binding.allocation.gross" | "binding.allocation.paymentId" | "binding.allocation.paymentIntentId" | "binding.allocation.platformNet" | "binding.allocation.processingFee" | "binding.allocation.sourceChargeId" | "binding.allocation.sourceInvoiceId" | "binding.allocation.transfers" | "binding.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey">, {
|
|
5853
|
+
}, "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.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">, {
|
|
5304
5854
|
by_key: ["requestKey", "_creationTime"];
|
|
5305
5855
|
}, {}, {}>;
|
|
5306
5856
|
balanceFundingPreparations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -5608,14 +6158,6 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5608
6158
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
5609
6159
|
requestKey: string;
|
|
5610
6160
|
result?: {
|
|
5611
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
5612
|
-
retryable: false;
|
|
5613
|
-
status: "conflict";
|
|
5614
|
-
} | {
|
|
5615
|
-
reason: "policy_invalid";
|
|
5616
|
-
retryable: false;
|
|
5617
|
-
status: "rejected";
|
|
5618
|
-
} | {
|
|
5619
6161
|
operation: {
|
|
5620
6162
|
accountId: string;
|
|
5621
6163
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -5626,6 +6168,14 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5626
6168
|
} | {
|
|
5627
6169
|
enabled: boolean;
|
|
5628
6170
|
status: "unchanged";
|
|
6171
|
+
} | {
|
|
6172
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
6173
|
+
retryable: false;
|
|
6174
|
+
status: "conflict";
|
|
6175
|
+
} | {
|
|
6176
|
+
reason: "policy_invalid";
|
|
6177
|
+
retryable: false;
|
|
6178
|
+
status: "rejected";
|
|
5629
6179
|
} | {
|
|
5630
6180
|
reason: "provider_pending";
|
|
5631
6181
|
retryable: true;
|
|
@@ -5636,14 +6186,6 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5636
6186
|
payload: import("convex/values").VString<string, "required">;
|
|
5637
6187
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
5638
6188
|
result: import("convex/values").VUnion<{
|
|
5639
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
5640
|
-
retryable: false;
|
|
5641
|
-
status: "conflict";
|
|
5642
|
-
} | {
|
|
5643
|
-
reason: "policy_invalid";
|
|
5644
|
-
retryable: false;
|
|
5645
|
-
status: "rejected";
|
|
5646
|
-
} | {
|
|
5647
6189
|
operation: {
|
|
5648
6190
|
accountId: string;
|
|
5649
6191
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -5654,6 +6196,14 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5654
6196
|
} | {
|
|
5655
6197
|
enabled: boolean;
|
|
5656
6198
|
status: "unchanged";
|
|
6199
|
+
} | {
|
|
6200
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
6201
|
+
retryable: false;
|
|
6202
|
+
status: "conflict";
|
|
6203
|
+
} | {
|
|
6204
|
+
reason: "policy_invalid";
|
|
6205
|
+
retryable: false;
|
|
6206
|
+
status: "rejected";
|
|
5657
6207
|
} | {
|
|
5658
6208
|
reason: "provider_pending";
|
|
5659
6209
|
retryable: true;
|
|
@@ -7098,6 +7648,15 @@ export declare function historical(currency?: string): Promise<{
|
|
|
7098
7648
|
}, {}, {}>;
|
|
7099
7649
|
settlementAllocations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
7100
7650
|
adjustmentAmount?: number | undefined;
|
|
7651
|
+
creditSource?: {
|
|
7652
|
+
creditGrantId: string;
|
|
7653
|
+
customerAccount: string;
|
|
7654
|
+
livemode: boolean;
|
|
7655
|
+
purchaseId: string;
|
|
7656
|
+
stripeAccountId: string;
|
|
7657
|
+
stripePriceId: string;
|
|
7658
|
+
stripeProductId: string;
|
|
7659
|
+
} | undefined;
|
|
7101
7660
|
currency: string;
|
|
7102
7661
|
gross: number;
|
|
7103
7662
|
paymentId?: string | undefined;
|
|
@@ -7111,10 +7670,77 @@ export declare function historical(currency?: string): Promise<{
|
|
|
7111
7670
|
destinationAccountId: string;
|
|
7112
7671
|
role: "affiliate" | "other" | "store";
|
|
7113
7672
|
}[];
|
|
7673
|
+
usageSource?: {
|
|
7674
|
+
customerAccount: string;
|
|
7675
|
+
invoicePaymentId: string;
|
|
7676
|
+
livemode: boolean;
|
|
7677
|
+
meterId: string;
|
|
7678
|
+
model: "included_overage" | "pay_as_you_go";
|
|
7679
|
+
period: {
|
|
7680
|
+
end: number;
|
|
7681
|
+
start: number;
|
|
7682
|
+
};
|
|
7683
|
+
stripeAccountId: string;
|
|
7684
|
+
stripePriceId: string;
|
|
7685
|
+
stripeProductId: string;
|
|
7686
|
+
subscriptionId: string;
|
|
7687
|
+
subscriptionItemId: string;
|
|
7688
|
+
} | undefined;
|
|
7114
7689
|
}, {
|
|
7115
7690
|
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
7116
7691
|
paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
7117
7692
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
7693
|
+
usageSource: import("convex/values").VObject<{
|
|
7694
|
+
customerAccount: string;
|
|
7695
|
+
invoicePaymentId: string;
|
|
7696
|
+
livemode: boolean;
|
|
7697
|
+
meterId: string;
|
|
7698
|
+
model: "included_overage" | "pay_as_you_go";
|
|
7699
|
+
period: {
|
|
7700
|
+
end: number;
|
|
7701
|
+
start: number;
|
|
7702
|
+
};
|
|
7703
|
+
stripeAccountId: string;
|
|
7704
|
+
stripePriceId: string;
|
|
7705
|
+
stripeProductId: string;
|
|
7706
|
+
subscriptionId: string;
|
|
7707
|
+
subscriptionItemId: string;
|
|
7708
|
+
} | undefined, {
|
|
7709
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
7710
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
7711
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
7712
|
+
meterId: import("convex/values").VString<string, "required">;
|
|
7713
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
7714
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
7715
|
+
subscriptionId: import("convex/values").VString<string, "required">;
|
|
7716
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
7717
|
+
invoicePaymentId: import("convex/values").VString<string, "required">;
|
|
7718
|
+
period: import("convex/values").VObject<{
|
|
7719
|
+
end: number;
|
|
7720
|
+
start: number;
|
|
7721
|
+
}, {
|
|
7722
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
7723
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
7724
|
+
}, "required", "end" | "start">;
|
|
7725
|
+
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>;
|
|
7726
|
+
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
7727
|
+
creditSource: import("convex/values").VObject<{
|
|
7728
|
+
creditGrantId: string;
|
|
7729
|
+
customerAccount: string;
|
|
7730
|
+
livemode: boolean;
|
|
7731
|
+
purchaseId: string;
|
|
7732
|
+
stripeAccountId: string;
|
|
7733
|
+
stripePriceId: string;
|
|
7734
|
+
stripeProductId: string;
|
|
7735
|
+
} | undefined, {
|
|
7736
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
7737
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
7738
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
7739
|
+
purchaseId: import("convex/values").VString<string, "required">;
|
|
7740
|
+
creditGrantId: import("convex/values").VString<string, "required">;
|
|
7741
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
7742
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
7743
|
+
}, "optional", "creditGrantId" | "customerAccount" | "livemode" | "purchaseId" | "stripeAccountId" | "stripePriceId" | "stripeProductId">;
|
|
7118
7744
|
gross: import("convex/values").VFloat64<number, "required">;
|
|
7119
7745
|
currency: import("convex/values").VString<string, "required">;
|
|
7120
7746
|
processingFee: import("convex/values").VFloat64<number, "required">;
|
|
@@ -7134,7 +7760,7 @@ export declare function historical(currency?: string): Promise<{
|
|
|
7134
7760
|
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>;
|
|
7135
7761
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
7136
7762
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
7137
|
-
}, "required", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">, {
|
|
7763
|
+
}, "required", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "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">, {
|
|
7138
7764
|
by_source_charge: ["sourceChargeId", "_creationTime"];
|
|
7139
7765
|
}, {}, {}>;
|
|
7140
7766
|
commissionTerms: import("convex/server").TableDefinition<import("convex/values").VObject<{
|