@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
|
@@ -9,6 +9,17 @@ export declare const bridge: import("convex/server").RegisteredAction<"internal"
|
|
|
9
9
|
stripeSubscriptionId: string;
|
|
10
10
|
version: number;
|
|
11
11
|
}, Promise<{
|
|
12
|
+
status: "ready";
|
|
13
|
+
value: {
|
|
14
|
+
customerAccount: string;
|
|
15
|
+
enabled?: boolean | undefined;
|
|
16
|
+
paymentMethodId: string | null;
|
|
17
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
18
|
+
phase: "apply" | "attach" | "create";
|
|
19
|
+
providerApiVersion: string;
|
|
20
|
+
stripeSubscriptionId: string;
|
|
21
|
+
};
|
|
22
|
+
} | {
|
|
12
23
|
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
13
24
|
retryable: false;
|
|
14
25
|
status: "unknown";
|
|
@@ -24,16 +35,5 @@ export declare const bridge: import("convex/server").RegisteredAction<"internal"
|
|
|
24
35
|
reason: "provider_pending";
|
|
25
36
|
retryable: true;
|
|
26
37
|
status: "not_ready";
|
|
27
|
-
} | {
|
|
28
|
-
status: "ready";
|
|
29
|
-
value: {
|
|
30
|
-
customerAccount: string;
|
|
31
|
-
enabled?: boolean | undefined;
|
|
32
|
-
paymentMethodId: string | null;
|
|
33
|
-
paymentMethodTypes?: string[] | null | undefined;
|
|
34
|
-
phase: "apply" | "attach" | "create";
|
|
35
|
-
providerApiVersion: string;
|
|
36
|
-
stripeSubscriptionId: string;
|
|
37
|
-
};
|
|
38
38
|
}>>;
|
|
39
39
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -595,6 +595,22 @@ export declare const startWorkflow: import("convex/server").RegisteredMutation<"
|
|
|
595
595
|
} & {
|
|
596
596
|
providerAction: string;
|
|
597
597
|
}, Promise<{
|
|
598
|
+
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
599
|
+
retryable: false;
|
|
600
|
+
status: "unknown";
|
|
601
|
+
} | {
|
|
602
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
603
|
+
retryable: false;
|
|
604
|
+
status: "conflict";
|
|
605
|
+
} | {
|
|
606
|
+
reason: "invalid_scope" | "policy_invalid" | "unsupported_source";
|
|
607
|
+
retryable: false;
|
|
608
|
+
status: "rejected";
|
|
609
|
+
} | {
|
|
610
|
+
reason: "provider_pending";
|
|
611
|
+
retryable: true;
|
|
612
|
+
status: "not_ready";
|
|
613
|
+
} | {
|
|
598
614
|
operation: {
|
|
599
615
|
accountId: string;
|
|
600
616
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -611,7 +627,16 @@ export declare const startWorkflow: import("convex/server").RegisteredMutation<"
|
|
|
611
627
|
version: number;
|
|
612
628
|
};
|
|
613
629
|
status: "canceled";
|
|
614
|
-
}
|
|
630
|
+
}>>;
|
|
631
|
+
export declare const resumeWorkflow: import("convex/server").RegisteredMutation<"public", {
|
|
632
|
+
accountId: string;
|
|
633
|
+
definitionVersion: string;
|
|
634
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
635
|
+
providerApiVersion: string;
|
|
636
|
+
scopeKey: string;
|
|
637
|
+
stripeSubscriptionId: string;
|
|
638
|
+
version: number;
|
|
639
|
+
}, Promise<{
|
|
615
640
|
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
616
641
|
retryable: false;
|
|
617
642
|
status: "unknown";
|
|
@@ -627,16 +652,7 @@ export declare const startWorkflow: import("convex/server").RegisteredMutation<"
|
|
|
627
652
|
reason: "provider_pending";
|
|
628
653
|
retryable: true;
|
|
629
654
|
status: "not_ready";
|
|
630
|
-
}
|
|
631
|
-
export declare const resumeWorkflow: import("convex/server").RegisteredMutation<"public", {
|
|
632
|
-
accountId: string;
|
|
633
|
-
definitionVersion: string;
|
|
634
|
-
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
635
|
-
providerApiVersion: string;
|
|
636
|
-
scopeKey: string;
|
|
637
|
-
stripeSubscriptionId: string;
|
|
638
|
-
version: number;
|
|
639
|
-
}, Promise<{
|
|
655
|
+
} | {
|
|
640
656
|
operation: {
|
|
641
657
|
accountId: string;
|
|
642
658
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -653,22 +669,6 @@ export declare const resumeWorkflow: import("convex/server").RegisteredMutation<
|
|
|
653
669
|
version: number;
|
|
654
670
|
};
|
|
655
671
|
status: "canceled";
|
|
656
|
-
} | {
|
|
657
|
-
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
658
|
-
retryable: false;
|
|
659
|
-
status: "unknown";
|
|
660
|
-
} | {
|
|
661
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
662
|
-
retryable: false;
|
|
663
|
-
status: "conflict";
|
|
664
|
-
} | {
|
|
665
|
-
reason: "invalid_scope" | "policy_invalid" | "unsupported_source";
|
|
666
|
-
retryable: false;
|
|
667
|
-
status: "rejected";
|
|
668
|
-
} | {
|
|
669
|
-
reason: "provider_pending";
|
|
670
|
-
retryable: true;
|
|
671
|
-
status: "not_ready";
|
|
672
672
|
}>>;
|
|
673
673
|
export declare const cancelWorkflow: import("convex/server").RegisteredMutation<"public", {
|
|
674
674
|
accountId: string;
|
|
@@ -1700,6 +1700,15 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1700
1700
|
activePhase?: "execute" | "reconcile" | undefined;
|
|
1701
1701
|
allocation?: {
|
|
1702
1702
|
adjustmentAmount?: number | undefined;
|
|
1703
|
+
creditSource?: {
|
|
1704
|
+
creditGrantId: string;
|
|
1705
|
+
customerAccount: string;
|
|
1706
|
+
livemode: boolean;
|
|
1707
|
+
purchaseId: string;
|
|
1708
|
+
stripeAccountId: string;
|
|
1709
|
+
stripePriceId: string;
|
|
1710
|
+
stripeProductId: string;
|
|
1711
|
+
} | undefined;
|
|
1703
1712
|
currency: string;
|
|
1704
1713
|
gross: number;
|
|
1705
1714
|
paymentId?: string | undefined;
|
|
@@ -1713,6 +1722,22 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1713
1722
|
destinationAccountId: string;
|
|
1714
1723
|
role: "affiliate" | "other" | "store";
|
|
1715
1724
|
}[];
|
|
1725
|
+
usageSource?: {
|
|
1726
|
+
customerAccount: string;
|
|
1727
|
+
invoicePaymentId: string;
|
|
1728
|
+
livemode: boolean;
|
|
1729
|
+
meterId: string;
|
|
1730
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1731
|
+
period: {
|
|
1732
|
+
end: number;
|
|
1733
|
+
start: number;
|
|
1734
|
+
};
|
|
1735
|
+
stripeAccountId: string;
|
|
1736
|
+
stripePriceId: string;
|
|
1737
|
+
stripeProductId: string;
|
|
1738
|
+
subscriptionId: string;
|
|
1739
|
+
subscriptionItemId: string;
|
|
1740
|
+
} | undefined;
|
|
1716
1741
|
} | undefined;
|
|
1717
1742
|
cancelRequested: boolean;
|
|
1718
1743
|
completion?: string | undefined;
|
|
@@ -1734,7 +1759,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1734
1759
|
version: number;
|
|
1735
1760
|
workflowId?: string | undefined;
|
|
1736
1761
|
};
|
|
1737
|
-
fieldPaths: "_id" | ("_creationTime" | "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");
|
|
1762
|
+
fieldPaths: "_id" | ("_creationTime" | "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");
|
|
1738
1763
|
indexes: {
|
|
1739
1764
|
by_id: ["_id"];
|
|
1740
1765
|
by_creation_time: ["_creationTime"];
|
|
@@ -1752,6 +1777,15 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1752
1777
|
accountId: string;
|
|
1753
1778
|
allocation?: {
|
|
1754
1779
|
adjustmentAmount?: number | undefined;
|
|
1780
|
+
creditSource?: {
|
|
1781
|
+
creditGrantId: string;
|
|
1782
|
+
customerAccount: string;
|
|
1783
|
+
livemode: boolean;
|
|
1784
|
+
purchaseId: string;
|
|
1785
|
+
stripeAccountId: string;
|
|
1786
|
+
stripePriceId: string;
|
|
1787
|
+
stripeProductId: string;
|
|
1788
|
+
} | undefined;
|
|
1755
1789
|
currency: string;
|
|
1756
1790
|
gross: number;
|
|
1757
1791
|
paymentId?: string | undefined;
|
|
@@ -1765,6 +1799,22 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1765
1799
|
destinationAccountId: string;
|
|
1766
1800
|
role: "affiliate" | "other" | "store";
|
|
1767
1801
|
}[];
|
|
1802
|
+
usageSource?: {
|
|
1803
|
+
customerAccount: string;
|
|
1804
|
+
invoicePaymentId: string;
|
|
1805
|
+
livemode: boolean;
|
|
1806
|
+
meterId: string;
|
|
1807
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1808
|
+
period: {
|
|
1809
|
+
end: number;
|
|
1810
|
+
start: number;
|
|
1811
|
+
};
|
|
1812
|
+
stripeAccountId: string;
|
|
1813
|
+
stripePriceId: string;
|
|
1814
|
+
stripeProductId: string;
|
|
1815
|
+
subscriptionId: string;
|
|
1816
|
+
subscriptionItemId: string;
|
|
1817
|
+
} | undefined;
|
|
1768
1818
|
} | undefined;
|
|
1769
1819
|
completion?: string | undefined;
|
|
1770
1820
|
currency: string;
|
|
@@ -1780,7 +1830,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1780
1830
|
operationId: import("convex/values").GenericId<"recoveryWorkflowOperations">;
|
|
1781
1831
|
requestKey: string;
|
|
1782
1832
|
};
|
|
1783
|
-
fieldPaths: "_id" | ("_creationTime" | "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");
|
|
1833
|
+
fieldPaths: "_id" | ("_creationTime" | "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");
|
|
1784
1834
|
indexes: {
|
|
1785
1835
|
by_id: ["_id"];
|
|
1786
1836
|
by_creation_time: ["_creationTime"];
|
|
@@ -1854,6 +1904,15 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1854
1904
|
_creationTime: number;
|
|
1855
1905
|
_id: import("convex/values").GenericId<"settlementAllocations">;
|
|
1856
1906
|
adjustmentAmount?: number | undefined;
|
|
1907
|
+
creditSource?: {
|
|
1908
|
+
creditGrantId: string;
|
|
1909
|
+
customerAccount: string;
|
|
1910
|
+
livemode: boolean;
|
|
1911
|
+
purchaseId: string;
|
|
1912
|
+
stripeAccountId: string;
|
|
1913
|
+
stripePriceId: string;
|
|
1914
|
+
stripeProductId: string;
|
|
1915
|
+
} | undefined;
|
|
1857
1916
|
currency: string;
|
|
1858
1917
|
gross: number;
|
|
1859
1918
|
paymentId?: string | undefined;
|
|
@@ -1867,8 +1926,24 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1867
1926
|
destinationAccountId: string;
|
|
1868
1927
|
role: "affiliate" | "other" | "store";
|
|
1869
1928
|
}[];
|
|
1929
|
+
usageSource?: {
|
|
1930
|
+
customerAccount: string;
|
|
1931
|
+
invoicePaymentId: string;
|
|
1932
|
+
livemode: boolean;
|
|
1933
|
+
meterId: string;
|
|
1934
|
+
model: "included_overage" | "pay_as_you_go";
|
|
1935
|
+
period: {
|
|
1936
|
+
end: number;
|
|
1937
|
+
start: number;
|
|
1938
|
+
};
|
|
1939
|
+
stripeAccountId: string;
|
|
1940
|
+
stripePriceId: string;
|
|
1941
|
+
stripeProductId: string;
|
|
1942
|
+
subscriptionId: string;
|
|
1943
|
+
subscriptionItemId: string;
|
|
1944
|
+
} | undefined;
|
|
1870
1945
|
};
|
|
1871
|
-
fieldPaths: "_id" | ("_creationTime" | "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers");
|
|
1946
|
+
fieldPaths: "_id" | ("_creationTime" | "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");
|
|
1872
1947
|
indexes: {
|
|
1873
1948
|
by_id: ["_id"];
|
|
1874
1949
|
by_creation_time: ["_creationTime"];
|
|
@@ -2195,13 +2270,16 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2195
2270
|
nativeExpired?: boolean | undefined;
|
|
2196
2271
|
nativeObservationJson?: string | undefined;
|
|
2197
2272
|
nativeUnused: boolean;
|
|
2273
|
+
observationConflictAt?: number | undefined;
|
|
2274
|
+
observationStartedAt?: number | undefined;
|
|
2198
2275
|
observedAt?: number | undefined;
|
|
2199
2276
|
paymentIntentId: string;
|
|
2200
2277
|
proofJson: string;
|
|
2278
|
+
proofStartedAt?: number | undefined;
|
|
2201
2279
|
purchaseKey: string;
|
|
2202
2280
|
reserved: string;
|
|
2203
2281
|
};
|
|
2204
|
-
fieldPaths: "_id" | ("_creationTime" | "accountKey" | "available" | "chargeId" | "consumed" | "creditGrantId" | "effectiveAt" | "expiresAt" | "frozen" | "nativeCreated" | "nativeCustomerKey" | "nativeExpired" | "nativeObservationJson" | "nativeUnused" | "observedAt" | "paymentIntentId" | "proofJson" | "purchaseKey" | "reserved");
|
|
2282
|
+
fieldPaths: "_id" | ("_creationTime" | "accountKey" | "available" | "chargeId" | "consumed" | "creditGrantId" | "effectiveAt" | "expiresAt" | "frozen" | "nativeCreated" | "nativeCustomerKey" | "nativeExpired" | "nativeObservationJson" | "nativeUnused" | "observationConflictAt" | "observationStartedAt" | "observedAt" | "paymentIntentId" | "proofJson" | "proofStartedAt" | "purchaseKey" | "reserved");
|
|
2205
2283
|
indexes: {
|
|
2206
2284
|
by_id: ["_id"];
|
|
2207
2285
|
by_creation_time: ["_creationTime"];
|
|
@@ -2251,11 +2329,12 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2251
2329
|
paymentIntentId?: string | undefined;
|
|
2252
2330
|
paymentKey?: string | undefined;
|
|
2253
2331
|
paymentProofJson?: string | undefined;
|
|
2332
|
+
recoveryReason?: "native_state_changed" | "payment_disputed" | "payment_refunded" | undefined;
|
|
2254
2333
|
refundedAmount?: number | undefined;
|
|
2255
2334
|
state: "canceled" | "frozen" | "pending" | "ready";
|
|
2256
2335
|
termsJson: string;
|
|
2257
2336
|
};
|
|
2258
|
-
fieldPaths: "_id" | ("_creationTime" | "accountKey" | "capacityReserved" | "creditGrantId" | "firstAttemptAt" | "grantFirstAttemptAt" | "key" | "nativeCustomerKey" | "paymentAttemptedAt" | "paymentIntentId" | "paymentKey" | "paymentProofJson" | "refundedAmount" | "state" | "termsJson");
|
|
2337
|
+
fieldPaths: "_id" | ("_creationTime" | "accountKey" | "capacityReserved" | "creditGrantId" | "firstAttemptAt" | "grantFirstAttemptAt" | "key" | "nativeCustomerKey" | "paymentAttemptedAt" | "paymentIntentId" | "paymentKey" | "paymentProofJson" | "recoveryReason" | "refundedAmount" | "state" | "termsJson");
|
|
2259
2338
|
indexes: {
|
|
2260
2339
|
by_id: ["_id"];
|
|
2261
2340
|
by_creation_time: ["_creationTime"];
|
|
@@ -2507,6 +2586,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2507
2586
|
historyCount?: number | undefined;
|
|
2508
2587
|
key: string;
|
|
2509
2588
|
method: "checkout" | "direct";
|
|
2589
|
+
observationStartedAt?: number | undefined;
|
|
2510
2590
|
providerId?: string | undefined;
|
|
2511
2591
|
retiredAt?: number | undefined;
|
|
2512
2592
|
retirementInvoiceId?: string | undefined;
|
|
@@ -2515,7 +2595,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2515
2595
|
termsJson: string;
|
|
2516
2596
|
viewJson?: string | undefined;
|
|
2517
2597
|
};
|
|
2518
|
-
fieldPaths: "_id" | ("_creationTime" | "abandonedId" | "checkoutId" | "controlKey" | "firstAttemptAt" | "historyCount" | "key" | "method" | "providerId" | "retiredAt" | "retirementInvoiceId" | "scopeKey" | "startedAt" | "termsJson" | "viewJson");
|
|
2598
|
+
fieldPaths: "_id" | ("_creationTime" | "abandonedId" | "checkoutId" | "controlKey" | "firstAttemptAt" | "historyCount" | "key" | "method" | "observationStartedAt" | "providerId" | "retiredAt" | "retirementInvoiceId" | "scopeKey" | "startedAt" | "termsJson" | "viewJson");
|
|
2519
2599
|
indexes: {
|
|
2520
2600
|
by_id: ["_id"];
|
|
2521
2601
|
by_creation_time: ["_creationTime"];
|
|
@@ -4268,6 +4348,15 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4268
4348
|
activePhase?: "execute" | "reconcile" | undefined;
|
|
4269
4349
|
allocation?: {
|
|
4270
4350
|
adjustmentAmount?: number | undefined;
|
|
4351
|
+
creditSource?: {
|
|
4352
|
+
creditGrantId: string;
|
|
4353
|
+
customerAccount: string;
|
|
4354
|
+
livemode: boolean;
|
|
4355
|
+
purchaseId: string;
|
|
4356
|
+
stripeAccountId: string;
|
|
4357
|
+
stripePriceId: string;
|
|
4358
|
+
stripeProductId: string;
|
|
4359
|
+
} | undefined;
|
|
4271
4360
|
currency: string;
|
|
4272
4361
|
gross: number;
|
|
4273
4362
|
paymentId?: string | undefined;
|
|
@@ -4281,6 +4370,22 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4281
4370
|
destinationAccountId: string;
|
|
4282
4371
|
role: "affiliate" | "other" | "store";
|
|
4283
4372
|
}[];
|
|
4373
|
+
usageSource?: {
|
|
4374
|
+
customerAccount: string;
|
|
4375
|
+
invoicePaymentId: string;
|
|
4376
|
+
livemode: boolean;
|
|
4377
|
+
meterId: string;
|
|
4378
|
+
model: "included_overage" | "pay_as_you_go";
|
|
4379
|
+
period: {
|
|
4380
|
+
end: number;
|
|
4381
|
+
start: number;
|
|
4382
|
+
};
|
|
4383
|
+
stripeAccountId: string;
|
|
4384
|
+
stripePriceId: string;
|
|
4385
|
+
stripeProductId: string;
|
|
4386
|
+
subscriptionId: string;
|
|
4387
|
+
subscriptionItemId: string;
|
|
4388
|
+
} | undefined;
|
|
4284
4389
|
} | undefined;
|
|
4285
4390
|
cancelRequested: boolean;
|
|
4286
4391
|
completion?: string | undefined;
|
|
@@ -4302,7 +4407,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4302
4407
|
version: number;
|
|
4303
4408
|
workflowId?: string | undefined;
|
|
4304
4409
|
};
|
|
4305
|
-
fieldPaths: "_id" | ("_creationTime" | "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");
|
|
4410
|
+
fieldPaths: "_id" | ("_creationTime" | "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");
|
|
4306
4411
|
indexes: {
|
|
4307
4412
|
by_id: ["_id"];
|
|
4308
4413
|
by_creation_time: ["_creationTime"];
|
|
@@ -4320,6 +4425,15 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4320
4425
|
accountId: string;
|
|
4321
4426
|
allocation?: {
|
|
4322
4427
|
adjustmentAmount?: number | undefined;
|
|
4428
|
+
creditSource?: {
|
|
4429
|
+
creditGrantId: string;
|
|
4430
|
+
customerAccount: string;
|
|
4431
|
+
livemode: boolean;
|
|
4432
|
+
purchaseId: string;
|
|
4433
|
+
stripeAccountId: string;
|
|
4434
|
+
stripePriceId: string;
|
|
4435
|
+
stripeProductId: string;
|
|
4436
|
+
} | undefined;
|
|
4323
4437
|
currency: string;
|
|
4324
4438
|
gross: number;
|
|
4325
4439
|
paymentId?: string | undefined;
|
|
@@ -4333,6 +4447,22 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4333
4447
|
destinationAccountId: string;
|
|
4334
4448
|
role: "affiliate" | "other" | "store";
|
|
4335
4449
|
}[];
|
|
4450
|
+
usageSource?: {
|
|
4451
|
+
customerAccount: string;
|
|
4452
|
+
invoicePaymentId: string;
|
|
4453
|
+
livemode: boolean;
|
|
4454
|
+
meterId: string;
|
|
4455
|
+
model: "included_overage" | "pay_as_you_go";
|
|
4456
|
+
period: {
|
|
4457
|
+
end: number;
|
|
4458
|
+
start: number;
|
|
4459
|
+
};
|
|
4460
|
+
stripeAccountId: string;
|
|
4461
|
+
stripePriceId: string;
|
|
4462
|
+
stripeProductId: string;
|
|
4463
|
+
subscriptionId: string;
|
|
4464
|
+
subscriptionItemId: string;
|
|
4465
|
+
} | undefined;
|
|
4336
4466
|
} | undefined;
|
|
4337
4467
|
completion?: string | undefined;
|
|
4338
4468
|
currency: string;
|
|
@@ -4348,7 +4478,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4348
4478
|
operationId: import("convex/values").GenericId<"recoveryWorkflowOperations">;
|
|
4349
4479
|
requestKey: string;
|
|
4350
4480
|
};
|
|
4351
|
-
fieldPaths: "_id" | ("_creationTime" | "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");
|
|
4481
|
+
fieldPaths: "_id" | ("_creationTime" | "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");
|
|
4352
4482
|
indexes: {
|
|
4353
4483
|
by_id: ["_id"];
|
|
4354
4484
|
by_creation_time: ["_creationTime"];
|
|
@@ -4422,6 +4552,15 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4422
4552
|
_creationTime: number;
|
|
4423
4553
|
_id: import("convex/values").GenericId<"settlementAllocations">;
|
|
4424
4554
|
adjustmentAmount?: number | undefined;
|
|
4555
|
+
creditSource?: {
|
|
4556
|
+
creditGrantId: string;
|
|
4557
|
+
customerAccount: string;
|
|
4558
|
+
livemode: boolean;
|
|
4559
|
+
purchaseId: string;
|
|
4560
|
+
stripeAccountId: string;
|
|
4561
|
+
stripePriceId: string;
|
|
4562
|
+
stripeProductId: string;
|
|
4563
|
+
} | undefined;
|
|
4425
4564
|
currency: string;
|
|
4426
4565
|
gross: number;
|
|
4427
4566
|
paymentId?: string | undefined;
|
|
@@ -4435,8 +4574,24 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4435
4574
|
destinationAccountId: string;
|
|
4436
4575
|
role: "affiliate" | "other" | "store";
|
|
4437
4576
|
}[];
|
|
4577
|
+
usageSource?: {
|
|
4578
|
+
customerAccount: string;
|
|
4579
|
+
invoicePaymentId: string;
|
|
4580
|
+
livemode: boolean;
|
|
4581
|
+
meterId: string;
|
|
4582
|
+
model: "included_overage" | "pay_as_you_go";
|
|
4583
|
+
period: {
|
|
4584
|
+
end: number;
|
|
4585
|
+
start: number;
|
|
4586
|
+
};
|
|
4587
|
+
stripeAccountId: string;
|
|
4588
|
+
stripePriceId: string;
|
|
4589
|
+
stripeProductId: string;
|
|
4590
|
+
subscriptionId: string;
|
|
4591
|
+
subscriptionItemId: string;
|
|
4592
|
+
} | undefined;
|
|
4438
4593
|
};
|
|
4439
|
-
fieldPaths: "_id" | ("_creationTime" | "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers");
|
|
4594
|
+
fieldPaths: "_id" | ("_creationTime" | "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");
|
|
4440
4595
|
indexes: {
|
|
4441
4596
|
by_id: ["_id"];
|
|
4442
4597
|
by_creation_time: ["_creationTime"];
|
|
@@ -4763,13 +4918,16 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4763
4918
|
nativeExpired?: boolean | undefined;
|
|
4764
4919
|
nativeObservationJson?: string | undefined;
|
|
4765
4920
|
nativeUnused: boolean;
|
|
4921
|
+
observationConflictAt?: number | undefined;
|
|
4922
|
+
observationStartedAt?: number | undefined;
|
|
4766
4923
|
observedAt?: number | undefined;
|
|
4767
4924
|
paymentIntentId: string;
|
|
4768
4925
|
proofJson: string;
|
|
4926
|
+
proofStartedAt?: number | undefined;
|
|
4769
4927
|
purchaseKey: string;
|
|
4770
4928
|
reserved: string;
|
|
4771
4929
|
};
|
|
4772
|
-
fieldPaths: "_id" | ("_creationTime" | "accountKey" | "available" | "chargeId" | "consumed" | "creditGrantId" | "effectiveAt" | "expiresAt" | "frozen" | "nativeCreated" | "nativeCustomerKey" | "nativeExpired" | "nativeObservationJson" | "nativeUnused" | "observedAt" | "paymentIntentId" | "proofJson" | "purchaseKey" | "reserved");
|
|
4930
|
+
fieldPaths: "_id" | ("_creationTime" | "accountKey" | "available" | "chargeId" | "consumed" | "creditGrantId" | "effectiveAt" | "expiresAt" | "frozen" | "nativeCreated" | "nativeCustomerKey" | "nativeExpired" | "nativeObservationJson" | "nativeUnused" | "observationConflictAt" | "observationStartedAt" | "observedAt" | "paymentIntentId" | "proofJson" | "proofStartedAt" | "purchaseKey" | "reserved");
|
|
4773
4931
|
indexes: {
|
|
4774
4932
|
by_id: ["_id"];
|
|
4775
4933
|
by_creation_time: ["_creationTime"];
|
|
@@ -4819,11 +4977,12 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4819
4977
|
paymentIntentId?: string | undefined;
|
|
4820
4978
|
paymentKey?: string | undefined;
|
|
4821
4979
|
paymentProofJson?: string | undefined;
|
|
4980
|
+
recoveryReason?: "native_state_changed" | "payment_disputed" | "payment_refunded" | undefined;
|
|
4822
4981
|
refundedAmount?: number | undefined;
|
|
4823
4982
|
state: "canceled" | "frozen" | "pending" | "ready";
|
|
4824
4983
|
termsJson: string;
|
|
4825
4984
|
};
|
|
4826
|
-
fieldPaths: "_id" | ("_creationTime" | "accountKey" | "capacityReserved" | "creditGrantId" | "firstAttemptAt" | "grantFirstAttemptAt" | "key" | "nativeCustomerKey" | "paymentAttemptedAt" | "paymentIntentId" | "paymentKey" | "paymentProofJson" | "refundedAmount" | "state" | "termsJson");
|
|
4985
|
+
fieldPaths: "_id" | ("_creationTime" | "accountKey" | "capacityReserved" | "creditGrantId" | "firstAttemptAt" | "grantFirstAttemptAt" | "key" | "nativeCustomerKey" | "paymentAttemptedAt" | "paymentIntentId" | "paymentKey" | "paymentProofJson" | "recoveryReason" | "refundedAmount" | "state" | "termsJson");
|
|
4827
4986
|
indexes: {
|
|
4828
4987
|
by_id: ["_id"];
|
|
4829
4988
|
by_creation_time: ["_creationTime"];
|
|
@@ -5075,6 +5234,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
5075
5234
|
historyCount?: number | undefined;
|
|
5076
5235
|
key: string;
|
|
5077
5236
|
method: "checkout" | "direct";
|
|
5237
|
+
observationStartedAt?: number | undefined;
|
|
5078
5238
|
providerId?: string | undefined;
|
|
5079
5239
|
retiredAt?: number | undefined;
|
|
5080
5240
|
retirementInvoiceId?: string | undefined;
|
|
@@ -5083,7 +5243,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
5083
5243
|
termsJson: string;
|
|
5084
5244
|
viewJson?: string | undefined;
|
|
5085
5245
|
};
|
|
5086
|
-
fieldPaths: "_id" | ("_creationTime" | "abandonedId" | "checkoutId" | "controlKey" | "firstAttemptAt" | "historyCount" | "key" | "method" | "providerId" | "retiredAt" | "retirementInvoiceId" | "scopeKey" | "startedAt" | "termsJson" | "viewJson");
|
|
5246
|
+
fieldPaths: "_id" | ("_creationTime" | "abandonedId" | "checkoutId" | "controlKey" | "firstAttemptAt" | "historyCount" | "key" | "method" | "observationStartedAt" | "providerId" | "retiredAt" | "retirementInvoiceId" | "scopeKey" | "startedAt" | "termsJson" | "viewJson");
|
|
5087
5247
|
indexes: {
|
|
5088
5248
|
by_id: ["_id"];
|
|
5089
5249
|
by_creation_time: ["_creationTime"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../../../src/component/earnings/triggers.ts"],"names":[],"mappings":"AA6GA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../../../src/component/earnings/triggers.ts"],"names":[],"mappings":"AA6GA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AChB,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAC,EAAE,iBAQpD;AACD,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,GAAG,CAAC,uBAAuB,CAAC,EACjC,IAAI,EAAE,GAAG,CAAC,qBAAqB,CAAC,EAAE,WAenC;AAED,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,GAAG,CAAC,uBAAuB,CAAC,
|
|
1
|
+
{"version":3,"file":"settlementHelpers.d.ts","sourceRoot":"","sources":["../../../src/component/financialObservations/settlementHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAO3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,KAAK,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,EAAE,KAAK,GAAG,eAAe,CAAC,CAAC;AAC/D,wBAAsB,YAAY,CAChC,GAAG,EAAE,WAAW,EAChB,SAAS,EAAE,MAAM,EACjB,KAAK,EACD,IAAI,CAAC,GAAG,CAAC,qBAAqB,CAAC,EAAE,gBAAgB,GAAG,QAAQ,GAAG,OAAO,CAAC,GACvE,SAAS;;;;qBAeuB,WAAW;;;;;qBAAX,WAAW;;;;;qBACM,SAAS;;;;;qBAAT,SAAS;;;;;qBAO1B,eAAe;;;;;qBAAf,eAAe;;;;;qBAKhC,YAAY;GAEhC;AACD,wBAAsB,UAAU,CAC9B,GAAG,EAAE,WAAW,EAChB,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAC,EAAE,iBAQpD;AACD,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,GAAG,CAAC,uBAAuB,CAAC,EACjC,IAAI,EAAE,GAAG,CAAC,qBAAqB,CAAC,EAAE,WAenC;AAED,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,GAAG,CAAC,uBAAuB,CAAC,mBAe5E"}
|
|
@@ -58,6 +58,8 @@ export async function settlementFingerprint(row) {
|
|
|
58
58
|
sourceChargeId: row.sourceChargeId,
|
|
59
59
|
paymentIntentId: row.paymentIntentId,
|
|
60
60
|
sourceInvoiceId: row.sourceInvoiceId,
|
|
61
|
+
...(row.usageSource ? { usageSource: row.usageSource } : {}),
|
|
62
|
+
...(row.creditSource ? { creditSource: row.creditSource } : {}),
|
|
61
63
|
gross: row.gross,
|
|
62
64
|
currency: row.currency,
|
|
63
65
|
processingFee: row.processingFee,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settlementHelpers.js","sourceRoot":"","sources":["../../../src/component/financialObservations/settlementHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EACL,4BAA4B,EAC5B,WAAW,EACX,UAAU,GACX,MAAM,kBAAkB,CAAC;AAI1B,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,GAAgB,EAChB,SAAiB,EACjB,KAEa;IAEb,MAAM,aAAa,GAAG,MAAM,GAAG,CAAC,EAAE;SAC/B,KAAK,CAAC,oBAAoB,CAAC;SAC3B,SAAS,CAAC,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;SAC/D,IAAI,CAAC,CAAC,CAAC,CAAC;IACX,MAAM,YAAY,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;IACtC,MAAM,GAAG,GAAG,KAAK,EAAE,cAAc;QAC/B,CAAC,CAAC;YACE,cAAc,EAAE,KAAK,CAAC,cAAc;YACpC,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,KAAK,EAAE,KAAK,CAAC,KAAK;SAC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AG,IAAI,GAAG,EAAU,CAAC;IAChC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;QACvB,MAAM,QAAQ,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC7C,MAAM,SAAS,GACb,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC;YACvB,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC;YAC/B,CAAC,QAAQ;YACT,GAAG,CAAC,cAAc,KAAK,GAAG,CAAC,cAAc;YACzC,GAAG,CAAC,SAAS,KAAK,QAAQ,CAAC,oBAAoB;YAC/C,GAAG,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI,CAAC;QAC7B,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACxB,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,GAAiC;IAC3E,OAAO,sBAAsB,CAAC,sCAAsC,EAAE;QACpE,cAAc,EAAE,GAAG,CAAC,cAAc;QAClC,eAAe,EAAE,GAAG,CAAC,eAAe;QACpC,eAAe,EAAE,GAAG,CAAC,eAAe;QACpC,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,QAAQ,EAAE,GAAG,CAAC,QAAQ;QACtB,aAAa,EAAE,GAAG,CAAC,aAAa;QAChC,WAAW,EAAE,GAAG,CAAC,WAAW;QAC5B,gBAAgB,EAAE,GAAG,CAAC,gBAAgB;QACtC,SAAS,EAAE,GAAG,CAAC,SAAS;QACxB,SAAS,EAAE,GAAG,CAAC,SAAS;KACzB,CAAC,CAAC;AACL,CAAC"}
|
|
1
|
+
{"version":3,"file":"settlementHelpers.js","sourceRoot":"","sources":["../../../src/component/financialObservations/settlementHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAA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AAC,KAAK,UAAU,qBAAqB,CAAC,GAAiC;IAC3E,OAAO,sBAAsB,CAAC,sCAAsC,EAAE;QACpE,cAAc,EAAE,GAAG,CAAC,cAAc;QAClC,eAAe,EAAE,GAAG,CAAC,eAAe;QACpC,eAAe,EAAE,GAAG,CAAC,eAAe;QACpC,GAAG,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC5D,GAAG,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,GAAG,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/D,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,QAAQ,EAAE,GAAG,CAAC,QAAQ;QACtB,aAAa,EAAE,GAAG,CAAC,aAAa;QAChC,WAAW,EAAE,GAAG,CAAC,WAAW;QAC5B,gBAAgB,EAAE,GAAG,CAAC,gBAAgB;QACtC,SAAS,EAAE,GAAG,CAAC,SAAS;QACxB,SAAS,EAAE,GAAG,CAAC,SAAS;KACzB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -43,6 +43,15 @@ export declare function read(ctx: QueryCtx | MutationCtx, args: OperationRef): P
|
|
|
43
43
|
activePhase?: "execute" | "reconcile" | undefined;
|
|
44
44
|
allocation?: {
|
|
45
45
|
adjustmentAmount?: number | undefined;
|
|
46
|
+
creditSource?: {
|
|
47
|
+
creditGrantId: string;
|
|
48
|
+
customerAccount: string;
|
|
49
|
+
livemode: boolean;
|
|
50
|
+
purchaseId: string;
|
|
51
|
+
stripeAccountId: string;
|
|
52
|
+
stripePriceId: string;
|
|
53
|
+
stripeProductId: string;
|
|
54
|
+
} | undefined;
|
|
46
55
|
currency: string;
|
|
47
56
|
gross: number;
|
|
48
57
|
paymentId?: string | undefined;
|
|
@@ -56,6 +65,22 @@ export declare function read(ctx: QueryCtx | MutationCtx, args: OperationRef): P
|
|
|
56
65
|
destinationAccountId: string;
|
|
57
66
|
role: "affiliate" | "other" | "store";
|
|
58
67
|
}[];
|
|
68
|
+
usageSource?: {
|
|
69
|
+
customerAccount: string;
|
|
70
|
+
invoicePaymentId: string;
|
|
71
|
+
livemode: boolean;
|
|
72
|
+
meterId: string;
|
|
73
|
+
model: "included_overage" | "pay_as_you_go";
|
|
74
|
+
period: {
|
|
75
|
+
end: number;
|
|
76
|
+
start: number;
|
|
77
|
+
};
|
|
78
|
+
stripeAccountId: string;
|
|
79
|
+
stripePriceId: string;
|
|
80
|
+
stripeProductId: string;
|
|
81
|
+
subscriptionId: string;
|
|
82
|
+
subscriptionItemId: string;
|
|
83
|
+
} | undefined;
|
|
59
84
|
} | undefined;
|
|
60
85
|
cancelRequested: boolean;
|
|
61
86
|
completion?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/component/recoveryWorkflow/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAG3C,QAAA,MAAM,IAAI;;;;;;;;;;;;;;8FAAsB,CAAC;AACjC,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAC9C,eAAO,MAAM,gBAAgB;aAC3B,MAAM,EAAE,UAAU;aAClB,MAAM,EAAE,kBAAkB;aAC1B,SAAS;CACD,CAAC;AACX,wBAAgB,SAAS,CAAC,EAAE,EAAE,GAAG,CAAC,4BAA4B,CAAC,GAAG,YAAY,CAS7E;AACD,wBAAgB,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,4BAA4B,CAAC;;;;;;;;;;;;EAS3D;AACD,wBAAsB,IAAI,CAAC,GAA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