@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutAdoptionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutAdoptionTestHelpers.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAqBvD,eAAO,MAAM,SAAS,EAIN,SAAS,CAAC;AAC1B,eAAO,MAAM,KAAK;IAChB,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,sBAAsB;CACvB,CAAC;AACF,wBAAsB,KAAK,CAAC,OAAO,WAAa,EAAE,QAAQ,SAAQ
|
|
1
|
+
{"version":3,"file":"payoutAdoptionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutAdoptionTestHelpers.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAqBvD,eAAO,MAAM,SAAS,EAIN,SAAS,CAAC;AAC1B,eAAO,MAAM,KAAK;IAChB,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,sBAAsB;CACvB,CAAC;AACF,wBAAsB,KAAK,CAAC,OAAO,WAAa,EAAE,QAAQ,SAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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DrB"}
|
|
@@ -185,6 +185,7 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
185
185
|
historyCount?: number | undefined;
|
|
186
186
|
key: string;
|
|
187
187
|
method: "checkout" | "direct";
|
|
188
|
+
observationStartedAt?: number | undefined;
|
|
188
189
|
providerId?: string | undefined;
|
|
189
190
|
retiredAt?: number | undefined;
|
|
190
191
|
retirementInvoiceId?: string | undefined;
|
|
@@ -202,12 +203,13 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
202
203
|
checkoutId: import("convex/values").VString<string | undefined, "optional">;
|
|
203
204
|
viewJson: import("convex/values").VString<string | undefined, "optional">;
|
|
204
205
|
startedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
206
|
+
observationStartedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
205
207
|
controlKey: import("convex/values").VString<string | undefined, "optional">;
|
|
206
208
|
historyCount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
207
209
|
retiredAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
208
210
|
abandonedId: import("convex/values").VString<string | undefined, "optional">;
|
|
209
211
|
retirementInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
210
|
-
}, "required", "abandonedId" | "checkoutId" | "controlKey" | "firstAttemptAt" | "historyCount" | "key" | "method" | "providerId" | "retiredAt" | "retirementInvoiceId" | "scopeKey" | "startedAt" | "termsJson" | "viewJson">, {
|
|
212
|
+
}, "required", "abandonedId" | "checkoutId" | "controlKey" | "firstAttemptAt" | "historyCount" | "key" | "method" | "observationStartedAt" | "providerId" | "retiredAt" | "retirementInvoiceId" | "scopeKey" | "startedAt" | "termsJson" | "viewJson">, {
|
|
211
213
|
by_key: ["key", "_creationTime"];
|
|
212
214
|
by_provider: ["providerId", "_creationTime"];
|
|
213
215
|
}, {}, {}>;
|
|
@@ -487,6 +489,7 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
487
489
|
paymentIntentId?: string | undefined;
|
|
488
490
|
paymentKey?: string | undefined;
|
|
489
491
|
paymentProofJson?: string | undefined;
|
|
492
|
+
recoveryReason?: "native_state_changed" | "payment_disputed" | "payment_refunded" | undefined;
|
|
490
493
|
refundedAmount?: number | undefined;
|
|
491
494
|
state: "canceled" | "frozen" | "pending" | "ready";
|
|
492
495
|
termsJson: string;
|
|
@@ -503,9 +506,10 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
503
506
|
paymentKey: import("convex/values").VString<string | undefined, "optional">;
|
|
504
507
|
paymentProofJson: import("convex/values").VString<string | undefined, "optional">;
|
|
505
508
|
refundedAmount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
509
|
+
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>;
|
|
506
510
|
grantFirstAttemptAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
507
511
|
creditGrantId: import("convex/values").VString<string | undefined, "optional">;
|
|
508
|
-
}, "required", "accountKey" | "capacityReserved" | "creditGrantId" | "firstAttemptAt" | "grantFirstAttemptAt" | "key" | "nativeCustomerKey" | "paymentAttemptedAt" | "paymentIntentId" | "paymentKey" | "paymentProofJson" | "refundedAmount" | "state" | "termsJson">, {
|
|
512
|
+
}, "required", "accountKey" | "capacityReserved" | "creditGrantId" | "firstAttemptAt" | "grantFirstAttemptAt" | "key" | "nativeCustomerKey" | "paymentAttemptedAt" | "paymentIntentId" | "paymentKey" | "paymentProofJson" | "recoveryReason" | "refundedAmount" | "state" | "termsJson">, {
|
|
509
513
|
by_account: ["accountKey", "_creationTime"];
|
|
510
514
|
by_customer_capacity: ["nativeCustomerKey", "capacityReserved", "_creationTime"];
|
|
511
515
|
by_key: ["key", "_creationTime"];
|
|
@@ -525,9 +529,12 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
525
529
|
nativeExpired?: boolean | undefined;
|
|
526
530
|
nativeObservationJson?: string | undefined;
|
|
527
531
|
nativeUnused: boolean;
|
|
532
|
+
observationConflictAt?: number | undefined;
|
|
533
|
+
observationStartedAt?: number | undefined;
|
|
528
534
|
observedAt?: number | undefined;
|
|
529
535
|
paymentIntentId: string;
|
|
530
536
|
proofJson: string;
|
|
537
|
+
proofStartedAt?: number | undefined;
|
|
531
538
|
purchaseKey: string;
|
|
532
539
|
reserved: string;
|
|
533
540
|
}, {
|
|
@@ -549,7 +556,10 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
549
556
|
nativeExpired: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
550
557
|
nativeObservationJson: import("convex/values").VString<string | undefined, "optional">;
|
|
551
558
|
observedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
552
|
-
|
|
559
|
+
proofStartedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
560
|
+
observationStartedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
561
|
+
observationConflictAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
562
|
+
}, "required", "accountKey" | "available" | "chargeId" | "consumed" | "creditGrantId" | "effectiveAt" | "expiresAt" | "frozen" | "nativeCreated" | "nativeCustomerKey" | "nativeExpired" | "nativeObservationJson" | "nativeUnused" | "observationConflictAt" | "observationStartedAt" | "observedAt" | "paymentIntentId" | "proofJson" | "proofStartedAt" | "purchaseKey" | "reserved">, {
|
|
553
563
|
by_account: ["accountKey", "_creationTime"];
|
|
554
564
|
by_customer_unused: ["nativeCustomerKey", "nativeUnused", "_creationTime"];
|
|
555
565
|
by_native: ["creditGrantId", "_creationTime"];
|
|
@@ -1115,6 +1125,15 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
1115
1125
|
activePhase?: "execute" | "reconcile" | undefined;
|
|
1116
1126
|
allocation?: {
|
|
1117
1127
|
adjustmentAmount?: number | undefined;
|
|
1128
|
+
creditSource?: {
|
|
1129
|
+
creditGrantId: string;
|
|
1130
|
+
customerAccount: string;
|
|
1131
|
+
livemode: boolean;
|
|
1132
|
+
purchaseId: string;
|
|
1133
|
+
stripeAccountId: string;
|
|
1134
|
+
stripePriceId: string;
|
|
1135
|
+
stripeProductId: string;
|
|
1136
|
+
} | undefined;
|
|
1118
1137
|
currency: string;
|
|
1119
1138
|
gross: number;
|
|
1120
1139
|
paymentId?: string | undefined;
|
|
@@ -1128,6 +1147,22 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
1128
1147
|
destinationAccountId: string;
|
|
1129
1148
|
role: "affiliate" | "other" | "store";
|
|
1130
1149
|
}[];
|
|
1150
|
+
usageSource?: {
|
|
1151
|
+
customerAccount: string;
|
|
1152
|
+
invoicePaymentId: string;
|
|
1153
|
+
livemode: boolean;
|
|
1154
|
+
meterId: string;
|
|
1155
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1156
|
+
period: {
|
|
1157
|
+
end: number;
|
|
1158
|
+
start: number;
|
|
1159
|
+
};
|
|
1160
|
+
stripeAccountId: string;
|
|
1161
|
+
stripePriceId: string;
|
|
1162
|
+
stripeProductId: string;
|
|
1163
|
+
subscriptionId: string;
|
|
1164
|
+
subscriptionItemId: string;
|
|
1165
|
+
} | undefined;
|
|
1131
1166
|
} | undefined;
|
|
1132
1167
|
cancelRequested: boolean;
|
|
1133
1168
|
completion?: string | undefined;
|
|
@@ -1162,6 +1197,15 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
1162
1197
|
retryDelayMs: import("convex/values").VFloat64<number, "required">;
|
|
1163
1198
|
allocation: import("convex/values").VObject<{
|
|
1164
1199
|
adjustmentAmount?: number | undefined;
|
|
1200
|
+
creditSource?: {
|
|
1201
|
+
creditGrantId: string;
|
|
1202
|
+
customerAccount: string;
|
|
1203
|
+
livemode: boolean;
|
|
1204
|
+
purchaseId: string;
|
|
1205
|
+
stripeAccountId: string;
|
|
1206
|
+
stripePriceId: string;
|
|
1207
|
+
stripeProductId: string;
|
|
1208
|
+
} | undefined;
|
|
1165
1209
|
currency: string;
|
|
1166
1210
|
gross: number;
|
|
1167
1211
|
paymentId?: string | undefined;
|
|
@@ -1175,10 +1219,77 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
1175
1219
|
destinationAccountId: string;
|
|
1176
1220
|
role: "affiliate" | "other" | "store";
|
|
1177
1221
|
}[];
|
|
1222
|
+
usageSource?: {
|
|
1223
|
+
customerAccount: string;
|
|
1224
|
+
invoicePaymentId: string;
|
|
1225
|
+
livemode: boolean;
|
|
1226
|
+
meterId: string;
|
|
1227
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1228
|
+
period: {
|
|
1229
|
+
end: number;
|
|
1230
|
+
start: number;
|
|
1231
|
+
};
|
|
1232
|
+
stripeAccountId: string;
|
|
1233
|
+
stripePriceId: string;
|
|
1234
|
+
stripeProductId: string;
|
|
1235
|
+
subscriptionId: string;
|
|
1236
|
+
subscriptionItemId: string;
|
|
1237
|
+
} | undefined;
|
|
1178
1238
|
} | undefined, {
|
|
1179
1239
|
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
1180
1240
|
paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
1181
1241
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
1242
|
+
usageSource: import("convex/values").VObject<{
|
|
1243
|
+
customerAccount: string;
|
|
1244
|
+
invoicePaymentId: string;
|
|
1245
|
+
livemode: boolean;
|
|
1246
|
+
meterId: string;
|
|
1247
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1248
|
+
period: {
|
|
1249
|
+
end: number;
|
|
1250
|
+
start: number;
|
|
1251
|
+
};
|
|
1252
|
+
stripeAccountId: string;
|
|
1253
|
+
stripePriceId: string;
|
|
1254
|
+
stripeProductId: string;
|
|
1255
|
+
subscriptionId: string;
|
|
1256
|
+
subscriptionItemId: string;
|
|
1257
|
+
} | undefined, {
|
|
1258
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
1259
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
1260
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
1261
|
+
meterId: import("convex/values").VString<string, "required">;
|
|
1262
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
1263
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
1264
|
+
subscriptionId: import("convex/values").VString<string, "required">;
|
|
1265
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
1266
|
+
invoicePaymentId: import("convex/values").VString<string, "required">;
|
|
1267
|
+
period: import("convex/values").VObject<{
|
|
1268
|
+
end: number;
|
|
1269
|
+
start: number;
|
|
1270
|
+
}, {
|
|
1271
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
1272
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
1273
|
+
}, "required", "end" | "start">;
|
|
1274
|
+
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>;
|
|
1275
|
+
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
1276
|
+
creditSource: import("convex/values").VObject<{
|
|
1277
|
+
creditGrantId: string;
|
|
1278
|
+
customerAccount: string;
|
|
1279
|
+
livemode: boolean;
|
|
1280
|
+
purchaseId: string;
|
|
1281
|
+
stripeAccountId: string;
|
|
1282
|
+
stripePriceId: string;
|
|
1283
|
+
stripeProductId: string;
|
|
1284
|
+
} | undefined, {
|
|
1285
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
1286
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
1287
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
1288
|
+
purchaseId: import("convex/values").VString<string, "required">;
|
|
1289
|
+
creditGrantId: import("convex/values").VString<string, "required">;
|
|
1290
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
1291
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
1292
|
+
}, "optional", "creditGrantId" | "customerAccount" | "livemode" | "purchaseId" | "stripeAccountId" | "stripePriceId" | "stripeProductId">;
|
|
1182
1293
|
gross: import("convex/values").VFloat64<number, "required">;
|
|
1183
1294
|
currency: import("convex/values").VString<string, "required">;
|
|
1184
1295
|
processingFee: import("convex/values").VFloat64<number, "required">;
|
|
@@ -1198,7 +1309,7 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
1198
1309
|
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>;
|
|
1199
1310
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
1200
1311
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
1201
|
-
}, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
|
|
1312
|
+
}, "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">;
|
|
1202
1313
|
version: import("convex/values").VFloat64<number, "required">;
|
|
1203
1314
|
sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
|
|
1204
1315
|
sourceId: import("convex/values").VString<string, "required">;
|
|
@@ -1209,7 +1320,7 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
1209
1320
|
activePhase: import("convex/values").VUnion<"execute" | "reconcile" | undefined, [import("convex/values").VLiteral<"execute", "required">, import("convex/values").VLiteral<"reconcile", "required">], "optional", never>;
|
|
1210
1321
|
resumeQueued: import("convex/values").VBoolean<boolean, "required">;
|
|
1211
1322
|
outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
|
|
1212
|
-
}, "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">, {
|
|
1323
|
+
}, "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">, {
|
|
1213
1324
|
by_group: ["groupKey", "_creationTime"];
|
|
1214
1325
|
by_source: ["sourceKind", "sourceId", "_creationTime"];
|
|
1215
1326
|
}, {}, {}>;
|
|
@@ -1218,6 +1329,15 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
1218
1329
|
accountId: string;
|
|
1219
1330
|
allocation?: {
|
|
1220
1331
|
adjustmentAmount?: number | undefined;
|
|
1332
|
+
creditSource?: {
|
|
1333
|
+
creditGrantId: string;
|
|
1334
|
+
customerAccount: string;
|
|
1335
|
+
livemode: boolean;
|
|
1336
|
+
purchaseId: string;
|
|
1337
|
+
stripeAccountId: string;
|
|
1338
|
+
stripePriceId: string;
|
|
1339
|
+
stripeProductId: string;
|
|
1340
|
+
} | undefined;
|
|
1221
1341
|
currency: string;
|
|
1222
1342
|
gross: number;
|
|
1223
1343
|
paymentId?: string | undefined;
|
|
@@ -1231,6 +1351,22 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
1231
1351
|
destinationAccountId: string;
|
|
1232
1352
|
role: "affiliate" | "other" | "store";
|
|
1233
1353
|
}[];
|
|
1354
|
+
usageSource?: {
|
|
1355
|
+
customerAccount: string;
|
|
1356
|
+
invoicePaymentId: string;
|
|
1357
|
+
livemode: boolean;
|
|
1358
|
+
meterId: string;
|
|
1359
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1360
|
+
period: {
|
|
1361
|
+
end: number;
|
|
1362
|
+
start: number;
|
|
1363
|
+
};
|
|
1364
|
+
stripeAccountId: string;
|
|
1365
|
+
stripePriceId: string;
|
|
1366
|
+
stripeProductId: string;
|
|
1367
|
+
subscriptionId: string;
|
|
1368
|
+
subscriptionItemId: string;
|
|
1369
|
+
} | undefined;
|
|
1234
1370
|
} | undefined;
|
|
1235
1371
|
completion?: string | undefined;
|
|
1236
1372
|
currency: string;
|
|
@@ -1251,6 +1387,15 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
1251
1387
|
accountId: string;
|
|
1252
1388
|
allocation?: {
|
|
1253
1389
|
adjustmentAmount?: number | undefined;
|
|
1390
|
+
creditSource?: {
|
|
1391
|
+
creditGrantId: string;
|
|
1392
|
+
customerAccount: string;
|
|
1393
|
+
livemode: boolean;
|
|
1394
|
+
purchaseId: string;
|
|
1395
|
+
stripeAccountId: string;
|
|
1396
|
+
stripePriceId: string;
|
|
1397
|
+
stripeProductId: string;
|
|
1398
|
+
} | undefined;
|
|
1254
1399
|
currency: string;
|
|
1255
1400
|
gross: number;
|
|
1256
1401
|
paymentId?: string | undefined;
|
|
@@ -1264,6 +1409,22 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
1264
1409
|
destinationAccountId: string;
|
|
1265
1410
|
role: "affiliate" | "other" | "store";
|
|
1266
1411
|
}[];
|
|
1412
|
+
usageSource?: {
|
|
1413
|
+
customerAccount: string;
|
|
1414
|
+
invoicePaymentId: string;
|
|
1415
|
+
livemode: boolean;
|
|
1416
|
+
meterId: string;
|
|
1417
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1418
|
+
period: {
|
|
1419
|
+
end: number;
|
|
1420
|
+
start: number;
|
|
1421
|
+
};
|
|
1422
|
+
stripeAccountId: string;
|
|
1423
|
+
stripePriceId: string;
|
|
1424
|
+
stripeProductId: string;
|
|
1425
|
+
subscriptionId: string;
|
|
1426
|
+
subscriptionItemId: string;
|
|
1427
|
+
} | undefined;
|
|
1267
1428
|
} | undefined;
|
|
1268
1429
|
completion?: string | undefined;
|
|
1269
1430
|
currency: string;
|
|
@@ -1289,6 +1450,15 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
1289
1450
|
retryDelayMs: import("convex/values").VFloat64<number, "required">;
|
|
1290
1451
|
allocation: import("convex/values").VObject<{
|
|
1291
1452
|
adjustmentAmount?: number | undefined;
|
|
1453
|
+
creditSource?: {
|
|
1454
|
+
creditGrantId: string;
|
|
1455
|
+
customerAccount: string;
|
|
1456
|
+
livemode: boolean;
|
|
1457
|
+
purchaseId: string;
|
|
1458
|
+
stripeAccountId: string;
|
|
1459
|
+
stripePriceId: string;
|
|
1460
|
+
stripeProductId: string;
|
|
1461
|
+
} | undefined;
|
|
1292
1462
|
currency: string;
|
|
1293
1463
|
gross: number;
|
|
1294
1464
|
paymentId?: string | undefined;
|
|
@@ -1302,10 +1472,77 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
1302
1472
|
destinationAccountId: string;
|
|
1303
1473
|
role: "affiliate" | "other" | "store";
|
|
1304
1474
|
}[];
|
|
1475
|
+
usageSource?: {
|
|
1476
|
+
customerAccount: string;
|
|
1477
|
+
invoicePaymentId: string;
|
|
1478
|
+
livemode: boolean;
|
|
1479
|
+
meterId: string;
|
|
1480
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1481
|
+
period: {
|
|
1482
|
+
end: number;
|
|
1483
|
+
start: number;
|
|
1484
|
+
};
|
|
1485
|
+
stripeAccountId: string;
|
|
1486
|
+
stripePriceId: string;
|
|
1487
|
+
stripeProductId: string;
|
|
1488
|
+
subscriptionId: string;
|
|
1489
|
+
subscriptionItemId: string;
|
|
1490
|
+
} | undefined;
|
|
1305
1491
|
} | undefined, {
|
|
1306
1492
|
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
1307
1493
|
paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
1308
1494
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
1495
|
+
usageSource: import("convex/values").VObject<{
|
|
1496
|
+
customerAccount: string;
|
|
1497
|
+
invoicePaymentId: string;
|
|
1498
|
+
livemode: boolean;
|
|
1499
|
+
meterId: string;
|
|
1500
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1501
|
+
period: {
|
|
1502
|
+
end: number;
|
|
1503
|
+
start: number;
|
|
1504
|
+
};
|
|
1505
|
+
stripeAccountId: string;
|
|
1506
|
+
stripePriceId: string;
|
|
1507
|
+
stripeProductId: string;
|
|
1508
|
+
subscriptionId: string;
|
|
1509
|
+
subscriptionItemId: string;
|
|
1510
|
+
} | undefined, {
|
|
1511
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
1512
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
1513
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
1514
|
+
meterId: import("convex/values").VString<string, "required">;
|
|
1515
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
1516
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
1517
|
+
subscriptionId: import("convex/values").VString<string, "required">;
|
|
1518
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
1519
|
+
invoicePaymentId: import("convex/values").VString<string, "required">;
|
|
1520
|
+
period: import("convex/values").VObject<{
|
|
1521
|
+
end: number;
|
|
1522
|
+
start: number;
|
|
1523
|
+
}, {
|
|
1524
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
1525
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
1526
|
+
}, "required", "end" | "start">;
|
|
1527
|
+
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>;
|
|
1528
|
+
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
1529
|
+
creditSource: import("convex/values").VObject<{
|
|
1530
|
+
creditGrantId: string;
|
|
1531
|
+
customerAccount: string;
|
|
1532
|
+
livemode: boolean;
|
|
1533
|
+
purchaseId: string;
|
|
1534
|
+
stripeAccountId: string;
|
|
1535
|
+
stripePriceId: string;
|
|
1536
|
+
stripeProductId: string;
|
|
1537
|
+
} | undefined, {
|
|
1538
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
1539
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
1540
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
1541
|
+
purchaseId: import("convex/values").VString<string, "required">;
|
|
1542
|
+
creditGrantId: import("convex/values").VString<string, "required">;
|
|
1543
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
1544
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
1545
|
+
}, "optional", "creditGrantId" | "customerAccount" | "livemode" | "purchaseId" | "stripeAccountId" | "stripePriceId" | "stripeProductId">;
|
|
1309
1546
|
gross: import("convex/values").VFloat64<number, "required">;
|
|
1310
1547
|
currency: import("convex/values").VString<string, "required">;
|
|
1311
1548
|
processingFee: import("convex/values").VFloat64<number, "required">;
|
|
@@ -1325,10 +1562,10 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
1325
1562
|
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>;
|
|
1326
1563
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
1327
1564
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
1328
|
-
}, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
|
|
1329
|
-
}, "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">;
|
|
1565
|
+
}, "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">;
|
|
1566
|
+
}, "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">;
|
|
1330
1567
|
operationId: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
|
|
1331
|
-
}, "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">, {
|
|
1568
|
+
}, "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">, {
|
|
1332
1569
|
by_key: ["requestKey", "_creationTime"];
|
|
1333
1570
|
}, {}, {}>;
|
|
1334
1571
|
balanceFundingPreparations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -3126,6 +3363,15 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
3126
3363
|
}, {}, {}>;
|
|
3127
3364
|
settlementAllocations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3128
3365
|
adjustmentAmount?: number | undefined;
|
|
3366
|
+
creditSource?: {
|
|
3367
|
+
creditGrantId: string;
|
|
3368
|
+
customerAccount: string;
|
|
3369
|
+
livemode: boolean;
|
|
3370
|
+
purchaseId: string;
|
|
3371
|
+
stripeAccountId: string;
|
|
3372
|
+
stripePriceId: string;
|
|
3373
|
+
stripeProductId: string;
|
|
3374
|
+
} | undefined;
|
|
3129
3375
|
currency: string;
|
|
3130
3376
|
gross: number;
|
|
3131
3377
|
paymentId?: string | undefined;
|
|
@@ -3139,10 +3385,77 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
3139
3385
|
destinationAccountId: string;
|
|
3140
3386
|
role: "affiliate" | "other" | "store";
|
|
3141
3387
|
}[];
|
|
3388
|
+
usageSource?: {
|
|
3389
|
+
customerAccount: string;
|
|
3390
|
+
invoicePaymentId: string;
|
|
3391
|
+
livemode: boolean;
|
|
3392
|
+
meterId: string;
|
|
3393
|
+
model: "included_overage" | "pay_as_you_go";
|
|
3394
|
+
period: {
|
|
3395
|
+
end: number;
|
|
3396
|
+
start: number;
|
|
3397
|
+
};
|
|
3398
|
+
stripeAccountId: string;
|
|
3399
|
+
stripePriceId: string;
|
|
3400
|
+
stripeProductId: string;
|
|
3401
|
+
subscriptionId: string;
|
|
3402
|
+
subscriptionItemId: string;
|
|
3403
|
+
} | undefined;
|
|
3142
3404
|
}, {
|
|
3143
3405
|
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
3144
3406
|
paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
3145
3407
|
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
3408
|
+
usageSource: import("convex/values").VObject<{
|
|
3409
|
+
customerAccount: string;
|
|
3410
|
+
invoicePaymentId: string;
|
|
3411
|
+
livemode: boolean;
|
|
3412
|
+
meterId: string;
|
|
3413
|
+
model: "included_overage" | "pay_as_you_go";
|
|
3414
|
+
period: {
|
|
3415
|
+
end: number;
|
|
3416
|
+
start: number;
|
|
3417
|
+
};
|
|
3418
|
+
stripeAccountId: string;
|
|
3419
|
+
stripePriceId: string;
|
|
3420
|
+
stripeProductId: string;
|
|
3421
|
+
subscriptionId: string;
|
|
3422
|
+
subscriptionItemId: string;
|
|
3423
|
+
} | undefined, {
|
|
3424
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
3425
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
3426
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
3427
|
+
meterId: import("convex/values").VString<string, "required">;
|
|
3428
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
3429
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
3430
|
+
subscriptionId: import("convex/values").VString<string, "required">;
|
|
3431
|
+
subscriptionItemId: import("convex/values").VString<string, "required">;
|
|
3432
|
+
invoicePaymentId: import("convex/values").VString<string, "required">;
|
|
3433
|
+
period: import("convex/values").VObject<{
|
|
3434
|
+
end: number;
|
|
3435
|
+
start: number;
|
|
3436
|
+
}, {
|
|
3437
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
3438
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
3439
|
+
}, "required", "end" | "start">;
|
|
3440
|
+
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>;
|
|
3441
|
+
}, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
|
|
3442
|
+
creditSource: import("convex/values").VObject<{
|
|
3443
|
+
creditGrantId: string;
|
|
3444
|
+
customerAccount: string;
|
|
3445
|
+
livemode: boolean;
|
|
3446
|
+
purchaseId: string;
|
|
3447
|
+
stripeAccountId: string;
|
|
3448
|
+
stripePriceId: string;
|
|
3449
|
+
stripeProductId: string;
|
|
3450
|
+
} | undefined, {
|
|
3451
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
3452
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
3453
|
+
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
3454
|
+
purchaseId: import("convex/values").VString<string, "required">;
|
|
3455
|
+
creditGrantId: import("convex/values").VString<string, "required">;
|
|
3456
|
+
stripePriceId: import("convex/values").VString<string, "required">;
|
|
3457
|
+
stripeProductId: import("convex/values").VString<string, "required">;
|
|
3458
|
+
}, "optional", "creditGrantId" | "customerAccount" | "livemode" | "purchaseId" | "stripeAccountId" | "stripePriceId" | "stripeProductId">;
|
|
3146
3459
|
gross: import("convex/values").VFloat64<number, "required">;
|
|
3147
3460
|
currency: import("convex/values").VString<string, "required">;
|
|
3148
3461
|
processingFee: import("convex/values").VFloat64<number, "required">;
|
|
@@ -3162,7 +3475,7 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
3162
3475
|
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>;
|
|
3163
3476
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
3164
3477
|
}, "required", "amount" | "destinationAccountId" | "role">, "required">;
|
|
3165
|
-
}, "required", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">, {
|
|
3478
|
+
}, "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">, {
|
|
3166
3479
|
by_source_charge: ["sourceChargeId", "_creationTime"];
|
|
3167
3480
|
}, {}, {}>;
|
|
3168
3481
|
commissionTerms: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutExecutionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutExecutionTestHelpers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAoBvD,eAAO,MAAM,SAAS,EAIN,SAAS,CAAC;AAC1B,eAAO,MAAM,KAAK;IAChB,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,sBAAsB;CACvB,CAAC;AACF,wBAAsB,KAAK,CAAC,OAAO,WAAa
|
|
1
|
+
{"version":3,"file":"payoutExecutionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutExecutionTestHelpers.ts"],"names":[],"mappings":"AAI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