@fantastic.dev/better-stripe 0.41.0 → 0.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/README.md +1 -1
- package/dist/client/balanceFundingWorkflow/client.d.ts +172 -0
- package/dist/client/balanceFundingWorkflow/client.d.ts.map +1 -0
- package/dist/client/balanceFundingWorkflow/client.js +289 -0
- package/dist/client/balanceFundingWorkflow/client.js.map +1 -0
- package/dist/client/billing/balanceFunding.d.ts +5 -0
- package/dist/client/billing/balanceFunding.d.ts.map +1 -1
- package/dist/client/billing/balanceFunding.js +30 -0
- package/dist/client/billing/balanceFunding.js.map +1 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +1388 -2
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +710 -17
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +1420 -34
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +694 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/costRecovery-invoices.d.ts +3 -2
- package/dist/client/costRecovery-invoices.d.ts.map +1 -1
- package/dist/client/costRecovery-invoices.js +10 -5
- package/dist/client/costRecovery-invoices.js.map +1 -1
- package/dist/client/costRecovery.d.ts +4 -2
- package/dist/client/costRecovery.d.ts.map +1 -1
- package/dist/client/costRecovery.js +2 -2
- package/dist/client/costRecovery.js.map +1 -1
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +4 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/processingCostReconciliation/client.d.ts +14 -0
- package/dist/client/processingCostReconciliation/client.d.ts.map +1 -0
- package/dist/client/processingCostReconciliation/client.js +35 -0
- package/dist/client/processingCostReconciliation/client.js.map +1 -0
- package/dist/client/processingCostReconciliation/contracts.d.ts +172 -0
- package/dist/client/processingCostReconciliation/contracts.d.ts.map +1 -0
- package/dist/client/processingCostReconciliation/contracts.js +55 -0
- package/dist/client/processingCostReconciliation/contracts.js.map +1 -0
- package/dist/client/processingCostReconciliation/invoiceFunding.d.ts +15 -0
- package/dist/client/processingCostReconciliation/invoiceFunding.d.ts.map +1 -0
- package/dist/client/processingCostReconciliation/invoiceFunding.js +195 -0
- package/dist/client/processingCostReconciliation/invoiceFunding.js.map +1 -0
- package/dist/client/processingCostReconciliation/provider.d.ts +9 -0
- package/dist/client/processingCostReconciliation/provider.d.ts.map +1 -0
- package/dist/client/processingCostReconciliation/provider.js +148 -0
- package/dist/client/processingCostReconciliation/provider.js.map +1 -0
- package/dist/client/settlement/processingCostHistory.d.ts +12 -0
- package/dist/client/settlement/processingCostHistory.d.ts.map +1 -0
- package/dist/client/settlement/processingCostHistory.js +20 -0
- package/dist/client/settlement/processingCostHistory.js.map +1 -0
- package/dist/client/settlement/processingCosts.d.ts +3 -0
- package/dist/client/settlement/processingCosts.d.ts.map +1 -1
- package/dist/client/settlement/processingCosts.js +27 -7
- package/dist/client/settlement/processingCosts.js.map +1 -1
- package/dist/component/_generated/api.d.ts +36 -0
- package/dist/component/_generated/api.d.ts.map +1 -1
- package/dist/component/_generated/api.js.map +1 -1
- package/dist/component/_generated/component.d.ts +988 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/balanceFunding/helpers.d.ts +42 -0
- package/dist/component/balanceFunding/helpers.d.ts.map +1 -1
- package/dist/component/balanceFunding/internal/actions.d.ts +39 -0
- package/dist/component/balanceFunding/internal/actions.d.ts.map +1 -0
- package/dist/component/balanceFunding/internal/actions.js +80 -0
- package/dist/component/balanceFunding/internal/actions.js.map +1 -0
- package/dist/component/balanceFunding/internal/mutations.d.ts +55 -0
- package/dist/component/balanceFunding/internal/mutations.d.ts.map +1 -0
- package/dist/component/balanceFunding/internal/mutations.js +54 -0
- package/dist/component/balanceFunding/internal/mutations.js.map +1 -0
- package/dist/component/balanceFunding/internal/queries.d.ts +116 -0
- package/dist/component/balanceFunding/internal/queries.d.ts.map +1 -0
- package/dist/component/balanceFunding/internal/queries.js +35 -0
- package/dist/component/balanceFunding/internal/queries.js.map +1 -0
- package/dist/component/balanceFunding/internal/workflow.d.ts +10 -0
- package/dist/component/balanceFunding/internal/workflow.d.ts.map +1 -0
- package/dist/component/balanceFunding/internal/workflow.js +31 -0
- package/dist/component/balanceFunding/internal/workflow.js.map +1 -0
- package/dist/component/balanceFunding/lifecycleHandlers.d.ts +126 -0
- package/dist/component/balanceFunding/lifecycleHandlers.d.ts.map +1 -1
- package/dist/component/balanceFunding/mutations.d.ts +419 -16
- package/dist/component/balanceFunding/mutations.d.ts.map +1 -1
- package/dist/component/balanceFunding/mutations.js +24 -0
- package/dist/component/balanceFunding/mutations.js.map +1 -1
- package/dist/component/balanceFunding/preparationHandlers.d.ts +42 -0
- package/dist/component/balanceFunding/preparationHandlers.d.ts.map +1 -1
- package/dist/component/balanceFunding/queries.d.ts +78 -0
- package/dist/component/balanceFunding/queries.d.ts.map +1 -1
- package/dist/component/balanceFunding/queries.js +35 -0
- package/dist/component/balanceFunding/queries.js.map +1 -1
- package/dist/component/balanceFunding/receipt.d.ts +5 -0
- package/dist/component/balanceFunding/receipt.d.ts.map +1 -0
- package/dist/component/balanceFunding/receipt.js +37 -0
- package/dist/component/balanceFunding/receipt.js.map +1 -0
- package/dist/component/balanceFunding/schema.d.ts +506 -2
- package/dist/component/balanceFunding/schema.d.ts.map +1 -1
- package/dist/component/balanceFunding/schema.js +2 -0
- package/dist/component/balanceFunding/schema.js.map +1 -1
- package/dist/component/balanceFunding/stateHandlers.d.ts +42 -0
- package/dist/component/balanceFunding/stateHandlers.d.ts.map +1 -1
- package/dist/component/balanceFunding/workflowControl.d.ts +19 -0
- package/dist/component/balanceFunding/workflowControl.d.ts.map +1 -0
- package/dist/component/balanceFunding/workflowControl.js +149 -0
- package/dist/component/balanceFunding/workflowControl.js.map +1 -0
- package/dist/component/balanceFunding/workflowSchema.d.ts +356 -0
- package/dist/component/balanceFunding/workflowSchema.d.ts.map +1 -0
- package/dist/component/balanceFunding/workflowSchema.js +48 -0
- package/dist/component/balanceFunding/workflowSchema.js.map +1 -0
- package/dist/component/balanceFunding/workflowState.d.ts +157 -0
- package/dist/component/balanceFunding/workflowState.d.ts.map +1 -0
- package/dist/component/balanceFunding/workflowState.js +194 -0
- package/dist/component/balanceFunding/workflowState.js.map +1 -0
- package/dist/component/balanceFunding/workflowValidators.d.ts +306 -0
- package/dist/component/balanceFunding/workflowValidators.d.ts.map +1 -0
- package/dist/component/balanceFunding/workflowValidators.js +27 -0
- package/dist/component/balanceFunding/workflowValidators.js.map +1 -0
- package/dist/component/earnings/triggers.d.ts +388 -2
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/payoutRelease/queries.d.ts +2 -2
- package/dist/component/payoutRelease/queries.d.ts.map +1 -1
- package/dist/component/processingCostReconciliation/adoption.d.ts +29 -0
- package/dist/component/processingCostReconciliation/adoption.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/adoption.js +58 -0
- package/dist/component/processingCostReconciliation/adoption.js.map +1 -0
- package/dist/component/processingCostReconciliation/bridge.d.ts +45 -0
- package/dist/component/processingCostReconciliation/bridge.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/bridge.js +41 -0
- package/dist/component/processingCostReconciliation/bridge.js.map +1 -0
- package/dist/component/processingCostReconciliation/helpers.d.ts +327 -0
- package/dist/component/processingCostReconciliation/helpers.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/helpers.js +39 -0
- package/dist/component/processingCostReconciliation/helpers.js.map +1 -0
- package/dist/component/processingCostReconciliation/mutations.d.ts +303 -0
- package/dist/component/processingCostReconciliation/mutations.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/mutations.js +121 -0
- package/dist/component/processingCostReconciliation/mutations.js.map +1 -0
- package/dist/component/processingCostReconciliation/queries.d.ts +422 -0
- package/dist/component/processingCostReconciliation/queries.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/queries.js +19 -0
- package/dist/component/processingCostReconciliation/queries.js.map +1 -0
- package/dist/component/processingCostReconciliation/rollback.d.ts +21 -0
- package/dist/component/processingCostReconciliation/rollback.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/rollback.js +54 -0
- package/dist/component/processingCostReconciliation/rollback.js.map +1 -0
- package/dist/component/processingCostReconciliation/schema.d.ts +2460 -0
- package/dist/component/processingCostReconciliation/schema.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/schema.js +137 -0
- package/dist/component/processingCostReconciliation/schema.js.map +1 -0
- package/dist/component/processingCostReconciliation/steps.d.ts +306 -0
- package/dist/component/processingCostReconciliation/steps.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/steps.js +149 -0
- package/dist/component/processingCostReconciliation/steps.js.map +1 -0
- package/dist/component/processingCostReconciliation/validation.d.ts +13 -0
- package/dist/component/processingCostReconciliation/validation.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/validation.js +61 -0
- package/dist/component/processingCostReconciliation/validation.js.map +1 -0
- package/dist/component/processingCostReconciliation/workflow.d.ts +105 -0
- package/dist/component/processingCostReconciliation/workflow.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/workflow.js +33 -0
- package/dist/component/processingCostReconciliation/workflow.js.map +1 -0
- package/dist/component/schema.d.ts +694 -1
- package/dist/component/schema.js +2 -0
- package/dist/component/schema.js.map +1 -1
- package/package.json +1 -1
- package/src/client/balanceFundingWorkflow/capture.test.ts +144 -0
- package/src/client/balanceFundingWorkflow/client.ts +419 -0
- package/src/client/billing/balanceFunding.ts +50 -0
- package/src/client/costRecovery-invoices.ts +19 -4
- package/src/client/costRecovery.ts +4 -2
- package/src/client/index.ts +15 -0
- package/src/client/processingCostReconciliation/client.ts +75 -0
- package/src/client/processingCostReconciliation/contracts.ts +176 -0
- package/src/client/processingCostReconciliation/invoiceFunding.ts +270 -0
- package/src/client/processingCostReconciliation/invoiceProvider.test.ts +353 -0
- package/src/client/processingCostReconciliation/provider.test.ts +324 -0
- package/src/client/processingCostReconciliation/provider.ts +178 -0
- package/src/client/settlement/processingCostHistory.ts +31 -0
- package/src/client/settlement/processingCosts.ts +50 -15
- package/src/component/_generated/api.ts +36 -0
- package/src/component/_generated/component.ts +1094 -0
- package/src/component/balanceFunding/internal/actions.ts +107 -0
- package/src/component/balanceFunding/internal/mutations.ts +66 -0
- package/src/component/balanceFunding/internal/queries.ts +34 -0
- package/src/component/balanceFunding/internal/workflow.ts +49 -0
- package/src/component/balanceFunding/mutations.ts +34 -0
- package/src/component/balanceFunding/queries.ts +38 -0
- package/src/component/balanceFunding/receipt.ts +48 -0
- package/src/component/balanceFunding/schema.ts +2 -0
- package/src/component/balanceFunding/scopeLookup.test.ts +94 -0
- package/src/component/balanceFunding/workflow.fixtures.ts +366 -0
- package/src/component/balanceFunding/workflow.test.ts +552 -0
- package/src/component/balanceFunding/workflowControl.ts +198 -0
- package/src/component/balanceFunding/workflowSchema.ts +78 -0
- package/src/component/balanceFunding/workflowState.ts +285 -0
- package/src/component/balanceFunding/workflowValidators.ts +40 -0
- package/src/component/processingCostReconciliation/adoption.test.ts +206 -0
- package/src/component/processingCostReconciliation/adoption.ts +77 -0
- package/src/component/processingCostReconciliation/bridge.ts +50 -0
- package/src/component/processingCostReconciliation/helpers.ts +55 -0
- package/src/component/processingCostReconciliation/invoice.test.ts +152 -0
- package/src/component/processingCostReconciliation/mutations.ts +148 -0
- package/src/component/processingCostReconciliation/queries.ts +18 -0
- package/src/component/processingCostReconciliation/rollback.ts +72 -0
- package/src/component/processingCostReconciliation/schema.ts +191 -0
- package/src/component/processingCostReconciliation/state.test.ts +407 -0
- package/src/component/processingCostReconciliation/steps.ts +168 -0
- package/src/component/processingCostReconciliation/validation.ts +79 -0
- package/src/component/processingCostReconciliation/workflow.test.ts +329 -0
- package/src/component/processingCostReconciliation/workflow.ts +50 -0
- package/src/component/schema.ts +2 -0
|
@@ -251,6 +251,48 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
251
251
|
accountId: string;
|
|
252
252
|
cancelRequested: boolean;
|
|
253
253
|
enabled: boolean;
|
|
254
|
+
execution?: {
|
|
255
|
+
apply?: {
|
|
256
|
+
receipt?: {
|
|
257
|
+
customerAccount: string;
|
|
258
|
+
enabled?: boolean | undefined;
|
|
259
|
+
paymentMethodId: string | null;
|
|
260
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
261
|
+
phase: "apply" | "attach" | "create";
|
|
262
|
+
providerApiVersion: string;
|
|
263
|
+
stripeSubscriptionId: string;
|
|
264
|
+
} | undefined;
|
|
265
|
+
state: "running" | "succeeded" | "unknown";
|
|
266
|
+
} | undefined;
|
|
267
|
+
attach?: {
|
|
268
|
+
receipt?: {
|
|
269
|
+
customerAccount: string;
|
|
270
|
+
enabled?: boolean | undefined;
|
|
271
|
+
paymentMethodId: string | null;
|
|
272
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
273
|
+
phase: "apply" | "attach" | "create";
|
|
274
|
+
providerApiVersion: string;
|
|
275
|
+
stripeSubscriptionId: string;
|
|
276
|
+
} | undefined;
|
|
277
|
+
state: "running" | "succeeded" | "unknown";
|
|
278
|
+
} | undefined;
|
|
279
|
+
create?: {
|
|
280
|
+
receipt?: {
|
|
281
|
+
customerAccount: string;
|
|
282
|
+
enabled?: boolean | undefined;
|
|
283
|
+
paymentMethodId: string | null;
|
|
284
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
285
|
+
phase: "apply" | "attach" | "create";
|
|
286
|
+
providerApiVersion: string;
|
|
287
|
+
stripeSubscriptionId: string;
|
|
288
|
+
} | undefined;
|
|
289
|
+
state: "running" | "succeeded" | "unknown";
|
|
290
|
+
} | undefined;
|
|
291
|
+
definitionVersion: string;
|
|
292
|
+
providerAction: string;
|
|
293
|
+
providerApiVersion: string;
|
|
294
|
+
workflowId?: string | undefined;
|
|
295
|
+
} | undefined;
|
|
254
296
|
failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
|
|
255
297
|
kind: "apply" | "prepare";
|
|
256
298
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
@@ -272,7 +314,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
272
314
|
state: "canceled" | "failed" | "pending" | "running" | "succeeded" | "unknown";
|
|
273
315
|
version: number;
|
|
274
316
|
};
|
|
275
|
-
fieldPaths: "_id" | ("_creationTime" | "accountId" | "cancelRequested" | "enabled" | "failureCode" | "kind" | "preparationId" | "providerKey" | "providerKeys" | "providerKeys.attach" | "providerKeys.create" | "providerKeys.disable" | "providerKeys.enable" | "receipt" | "receipt.customerAccount" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "scopeKey" | "state" | "version");
|
|
317
|
+
fieldPaths: "_id" | ("_creationTime" | "accountId" | "cancelRequested" | "enabled" | "execution" | "execution.apply" | "execution.apply.receipt" | "execution.apply.receipt.customerAccount" | "execution.apply.receipt.enabled" | "execution.apply.receipt.paymentMethodId" | "execution.apply.receipt.paymentMethodTypes" | "execution.apply.receipt.phase" | "execution.apply.receipt.providerApiVersion" | "execution.apply.receipt.stripeSubscriptionId" | "execution.apply.state" | "execution.attach" | "execution.attach.receipt" | "execution.attach.receipt.customerAccount" | "execution.attach.receipt.enabled" | "execution.attach.receipt.paymentMethodId" | "execution.attach.receipt.paymentMethodTypes" | "execution.attach.receipt.phase" | "execution.attach.receipt.providerApiVersion" | "execution.attach.receipt.stripeSubscriptionId" | "execution.attach.state" | "execution.create" | "execution.create.receipt" | "execution.create.receipt.customerAccount" | "execution.create.receipt.enabled" | "execution.create.receipt.paymentMethodId" | "execution.create.receipt.paymentMethodTypes" | "execution.create.receipt.phase" | "execution.create.receipt.providerApiVersion" | "execution.create.receipt.stripeSubscriptionId" | "execution.create.state" | "execution.definitionVersion" | "execution.providerAction" | "execution.providerApiVersion" | "execution.workflowId" | "failureCode" | "kind" | "preparationId" | "providerKey" | "providerKeys" | "providerKeys.attach" | "providerKeys.create" | "providerKeys.disable" | "providerKeys.enable" | "receipt" | "receipt.customerAccount" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "scopeKey" | "state" | "version");
|
|
276
318
|
indexes: {
|
|
277
319
|
by_id: ["_id"];
|
|
278
320
|
by_creation_time: ["_creationTime"];
|
|
@@ -1357,6 +1399,157 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1357
1399
|
searchIndexes: {};
|
|
1358
1400
|
vectorIndexes: {};
|
|
1359
1401
|
};
|
|
1402
|
+
processingCostReconciliationOperations: {
|
|
1403
|
+
document: {
|
|
1404
|
+
_creationTime: number;
|
|
1405
|
+
_id: import("convex/values").GenericId<"processingCostReconciliationOperations">;
|
|
1406
|
+
accountId: string;
|
|
1407
|
+
claimKey: string;
|
|
1408
|
+
currency: string;
|
|
1409
|
+
definitionVersion: number;
|
|
1410
|
+
expectedRevision: number;
|
|
1411
|
+
failure?: {
|
|
1412
|
+
reason: "fee_pending" | "history_incomplete" | "provider_pending";
|
|
1413
|
+
retryable: true;
|
|
1414
|
+
status: "not_ready";
|
|
1415
|
+
} | {
|
|
1416
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
1417
|
+
retryable: false;
|
|
1418
|
+
status: "conflict";
|
|
1419
|
+
} | {
|
|
1420
|
+
reason: "currency_mismatch" | "invalid_scope" | "payment_not_payable" | "policy_invalid" | "unsupported_source";
|
|
1421
|
+
retryable: false;
|
|
1422
|
+
status: "rejected";
|
|
1423
|
+
} | {
|
|
1424
|
+
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
1425
|
+
retryable: false;
|
|
1426
|
+
status: "unknown";
|
|
1427
|
+
} | undefined;
|
|
1428
|
+
importHook?: string | undefined;
|
|
1429
|
+
maxAttempts: number;
|
|
1430
|
+
policy: {
|
|
1431
|
+
liability: {
|
|
1432
|
+
disputeCosts: "all" | "none";
|
|
1433
|
+
processingCosts: "all" | "none" | "uncovered";
|
|
1434
|
+
};
|
|
1435
|
+
rounding: "ceil" | "floor" | "nearest";
|
|
1436
|
+
sellingFee: number;
|
|
1437
|
+
};
|
|
1438
|
+
projection?: string | undefined;
|
|
1439
|
+
provider: string;
|
|
1440
|
+
providerApiVersion: string;
|
|
1441
|
+
requestKey: string;
|
|
1442
|
+
result?: {
|
|
1443
|
+
claim: {
|
|
1444
|
+
_creationTime: number;
|
|
1445
|
+
_id: import("convex/values").GenericId<"recoveryClaims">;
|
|
1446
|
+
accountId: string;
|
|
1447
|
+
amountDue: number;
|
|
1448
|
+
claimKey: string;
|
|
1449
|
+
collectedAmount: number;
|
|
1450
|
+
currency: string;
|
|
1451
|
+
openingCollection?: {
|
|
1452
|
+
amountDue: number;
|
|
1453
|
+
collectedAmount: number;
|
|
1454
|
+
operationKey: string;
|
|
1455
|
+
revision: number;
|
|
1456
|
+
} | undefined;
|
|
1457
|
+
outstanding: number;
|
|
1458
|
+
reservedAmount: number;
|
|
1459
|
+
revision: number;
|
|
1460
|
+
scopeKey: string;
|
|
1461
|
+
sign: "negative" | "positive" | "zero";
|
|
1462
|
+
sourceChargeId: string;
|
|
1463
|
+
sourceGross: number;
|
|
1464
|
+
sourceProcessingFee: number;
|
|
1465
|
+
};
|
|
1466
|
+
deficit: {
|
|
1467
|
+
amountDue: number;
|
|
1468
|
+
currency: string;
|
|
1469
|
+
disputeLiability: number;
|
|
1470
|
+
processingLiability: number;
|
|
1471
|
+
retainedFee: number;
|
|
1472
|
+
};
|
|
1473
|
+
observation: {
|
|
1474
|
+
currency: string;
|
|
1475
|
+
disputeFees: number;
|
|
1476
|
+
gross: number;
|
|
1477
|
+
originalProcessingFee: number;
|
|
1478
|
+
paymentIntentId: string;
|
|
1479
|
+
principalReturned: number;
|
|
1480
|
+
processingFee: number;
|
|
1481
|
+
provenance: {
|
|
1482
|
+
customerAccountId: string;
|
|
1483
|
+
invoiceId: string;
|
|
1484
|
+
invoicePaymentId: string;
|
|
1485
|
+
recoveryInvoiceItemId?: string | undefined;
|
|
1486
|
+
stripePriceId?: string | undefined;
|
|
1487
|
+
stripeProductId?: string | undefined;
|
|
1488
|
+
subscriptionId?: string | undefined;
|
|
1489
|
+
};
|
|
1490
|
+
sourceChargeId: string;
|
|
1491
|
+
};
|
|
1492
|
+
rollbackClaim?: {
|
|
1493
|
+
_creationTime: number;
|
|
1494
|
+
_id: import("convex/values").GenericId<"recoveryClaims">;
|
|
1495
|
+
accountId: string;
|
|
1496
|
+
amountDue: number;
|
|
1497
|
+
claimKey: string;
|
|
1498
|
+
collectedAmount: number;
|
|
1499
|
+
currency: string;
|
|
1500
|
+
openingCollection?: {
|
|
1501
|
+
amountDue: number;
|
|
1502
|
+
collectedAmount: number;
|
|
1503
|
+
operationKey: string;
|
|
1504
|
+
revision: number;
|
|
1505
|
+
} | undefined;
|
|
1506
|
+
outstanding: number;
|
|
1507
|
+
reservedAmount: number;
|
|
1508
|
+
revision: number;
|
|
1509
|
+
scopeKey: string;
|
|
1510
|
+
sign: "negative" | "positive" | "zero";
|
|
1511
|
+
sourceChargeId: string;
|
|
1512
|
+
sourceGross: number;
|
|
1513
|
+
sourceProcessingFee: number;
|
|
1514
|
+
} | undefined;
|
|
1515
|
+
} | undefined;
|
|
1516
|
+
retryDelayMs: number;
|
|
1517
|
+
rollback?: {
|
|
1518
|
+
expectedRevision: number;
|
|
1519
|
+
groupKey: string;
|
|
1520
|
+
} | undefined;
|
|
1521
|
+
scopeKey: string;
|
|
1522
|
+
source: {
|
|
1523
|
+
customerAccountId: string;
|
|
1524
|
+
gross: number;
|
|
1525
|
+
invoiceId?: string | undefined;
|
|
1526
|
+
kind: "sale";
|
|
1527
|
+
paymentIntentId: string;
|
|
1528
|
+
stripeAccountId?: string | undefined;
|
|
1529
|
+
stripePriceId?: string | undefined;
|
|
1530
|
+
stripeProductId?: string | undefined;
|
|
1531
|
+
subscriptionId?: string | undefined;
|
|
1532
|
+
} | {
|
|
1533
|
+
gross: number;
|
|
1534
|
+
groupKey: string;
|
|
1535
|
+
kind: "invoice_recovery";
|
|
1536
|
+
paymentIntentId: string;
|
|
1537
|
+
};
|
|
1538
|
+
status: "completed" | "conflict" | "queued" | "rejected" | "running" | "unknown" | "waiting";
|
|
1539
|
+
version: number;
|
|
1540
|
+
workflowId?: string | undefined;
|
|
1541
|
+
};
|
|
1542
|
+
fieldPaths: "_id" | ("_creationTime" | "accountId" | "claimKey" | "currency" | "definitionVersion" | "expectedRevision" | "failure" | "failure.reason" | "failure.retryable" | "failure.status" | "importHook" | "maxAttempts" | "policy" | "policy.liability" | "policy.liability.disputeCosts" | "policy.liability.processingCosts" | "policy.rounding" | "policy.sellingFee" | "projection" | "provider" | "providerApiVersion" | "requestKey" | "result" | "result.claim" | "result.claim._creationTime" | "result.claim._id" | "result.claim.accountId" | "result.claim.amountDue" | "result.claim.claimKey" | "result.claim.collectedAmount" | "result.claim.currency" | "result.claim.openingCollection" | "result.claim.openingCollection.amountDue" | "result.claim.openingCollection.collectedAmount" | "result.claim.openingCollection.operationKey" | "result.claim.openingCollection.revision" | "result.claim.outstanding" | "result.claim.reservedAmount" | "result.claim.revision" | "result.claim.scopeKey" | "result.claim.sign" | "result.claim.sourceChargeId" | "result.claim.sourceGross" | "result.claim.sourceProcessingFee" | "result.deficit" | "result.deficit.amountDue" | "result.deficit.currency" | "result.deficit.disputeLiability" | "result.deficit.processingLiability" | "result.deficit.retainedFee" | "result.observation" | "result.observation.currency" | "result.observation.disputeFees" | "result.observation.gross" | "result.observation.originalProcessingFee" | "result.observation.paymentIntentId" | "result.observation.principalReturned" | "result.observation.processingFee" | "result.observation.provenance" | "result.observation.provenance.customerAccountId" | "result.observation.provenance.invoiceId" | "result.observation.provenance.invoicePaymentId" | "result.observation.provenance.recoveryInvoiceItemId" | "result.observation.provenance.stripePriceId" | "result.observation.provenance.stripeProductId" | "result.observation.provenance.subscriptionId" | "result.observation.sourceChargeId" | "result.rollbackClaim" | "result.rollbackClaim._creationTime" | "result.rollbackClaim._id" | "result.rollbackClaim.accountId" | "result.rollbackClaim.amountDue" | "result.rollbackClaim.claimKey" | "result.rollbackClaim.collectedAmount" | "result.rollbackClaim.currency" | "result.rollbackClaim.openingCollection" | "result.rollbackClaim.openingCollection.amountDue" | "result.rollbackClaim.openingCollection.collectedAmount" | "result.rollbackClaim.openingCollection.operationKey" | "result.rollbackClaim.openingCollection.revision" | "result.rollbackClaim.outstanding" | "result.rollbackClaim.reservedAmount" | "result.rollbackClaim.revision" | "result.rollbackClaim.scopeKey" | "result.rollbackClaim.sign" | "result.rollbackClaim.sourceChargeId" | "result.rollbackClaim.sourceGross" | "result.rollbackClaim.sourceProcessingFee" | "retryDelayMs" | "rollback" | "rollback.expectedRevision" | "rollback.groupKey" | "scopeKey" | "source" | "source.customerAccountId" | "source.gross" | "source.groupKey" | "source.invoiceId" | "source.kind" | "source.paymentIntentId" | "source.stripeAccountId" | "source.stripePriceId" | "source.stripeProductId" | "source.subscriptionId" | "status" | "version" | "workflowId");
|
|
1543
|
+
indexes: {
|
|
1544
|
+
by_id: ["_id"];
|
|
1545
|
+
by_creation_time: ["_creationTime"];
|
|
1546
|
+
by_claim_status: ["claimKey", "status", "_creationTime"];
|
|
1547
|
+
by_payment_scope: ["accountId", "scopeKey", "currency", "source.paymentIntentId", "_creationTime"];
|
|
1548
|
+
by_request: ["requestKey", "_creationTime"];
|
|
1549
|
+
};
|
|
1550
|
+
searchIndexes: {};
|
|
1551
|
+
vectorIndexes: {};
|
|
1552
|
+
};
|
|
1360
1553
|
products: {
|
|
1361
1554
|
document: {
|
|
1362
1555
|
_creationTime: number;
|
|
@@ -2046,6 +2239,48 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2046
2239
|
accountId: string;
|
|
2047
2240
|
cancelRequested: boolean;
|
|
2048
2241
|
enabled: boolean;
|
|
2242
|
+
execution?: {
|
|
2243
|
+
apply?: {
|
|
2244
|
+
receipt?: {
|
|
2245
|
+
customerAccount: string;
|
|
2246
|
+
enabled?: boolean | undefined;
|
|
2247
|
+
paymentMethodId: string | null;
|
|
2248
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
2249
|
+
phase: "apply" | "attach" | "create";
|
|
2250
|
+
providerApiVersion: string;
|
|
2251
|
+
stripeSubscriptionId: string;
|
|
2252
|
+
} | undefined;
|
|
2253
|
+
state: "running" | "succeeded" | "unknown";
|
|
2254
|
+
} | undefined;
|
|
2255
|
+
attach?: {
|
|
2256
|
+
receipt?: {
|
|
2257
|
+
customerAccount: string;
|
|
2258
|
+
enabled?: boolean | undefined;
|
|
2259
|
+
paymentMethodId: string | null;
|
|
2260
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
2261
|
+
phase: "apply" | "attach" | "create";
|
|
2262
|
+
providerApiVersion: string;
|
|
2263
|
+
stripeSubscriptionId: string;
|
|
2264
|
+
} | undefined;
|
|
2265
|
+
state: "running" | "succeeded" | "unknown";
|
|
2266
|
+
} | undefined;
|
|
2267
|
+
create?: {
|
|
2268
|
+
receipt?: {
|
|
2269
|
+
customerAccount: string;
|
|
2270
|
+
enabled?: boolean | undefined;
|
|
2271
|
+
paymentMethodId: string | null;
|
|
2272
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
2273
|
+
phase: "apply" | "attach" | "create";
|
|
2274
|
+
providerApiVersion: string;
|
|
2275
|
+
stripeSubscriptionId: string;
|
|
2276
|
+
} | undefined;
|
|
2277
|
+
state: "running" | "succeeded" | "unknown";
|
|
2278
|
+
} | undefined;
|
|
2279
|
+
definitionVersion: string;
|
|
2280
|
+
providerAction: string;
|
|
2281
|
+
providerApiVersion: string;
|
|
2282
|
+
workflowId?: string | undefined;
|
|
2283
|
+
} | undefined;
|
|
2049
2284
|
failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
|
|
2050
2285
|
kind: "apply" | "prepare";
|
|
2051
2286
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
@@ -2067,7 +2302,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2067
2302
|
state: "canceled" | "failed" | "pending" | "running" | "succeeded" | "unknown";
|
|
2068
2303
|
version: number;
|
|
2069
2304
|
};
|
|
2070
|
-
fieldPaths: "_id" | ("_creationTime" | "accountId" | "cancelRequested" | "enabled" | "failureCode" | "kind" | "preparationId" | "providerKey" | "providerKeys" | "providerKeys.attach" | "providerKeys.create" | "providerKeys.disable" | "providerKeys.enable" | "receipt" | "receipt.customerAccount" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "scopeKey" | "state" | "version");
|
|
2305
|
+
fieldPaths: "_id" | ("_creationTime" | "accountId" | "cancelRequested" | "enabled" | "execution" | "execution.apply" | "execution.apply.receipt" | "execution.apply.receipt.customerAccount" | "execution.apply.receipt.enabled" | "execution.apply.receipt.paymentMethodId" | "execution.apply.receipt.paymentMethodTypes" | "execution.apply.receipt.phase" | "execution.apply.receipt.providerApiVersion" | "execution.apply.receipt.stripeSubscriptionId" | "execution.apply.state" | "execution.attach" | "execution.attach.receipt" | "execution.attach.receipt.customerAccount" | "execution.attach.receipt.enabled" | "execution.attach.receipt.paymentMethodId" | "execution.attach.receipt.paymentMethodTypes" | "execution.attach.receipt.phase" | "execution.attach.receipt.providerApiVersion" | "execution.attach.receipt.stripeSubscriptionId" | "execution.attach.state" | "execution.create" | "execution.create.receipt" | "execution.create.receipt.customerAccount" | "execution.create.receipt.enabled" | "execution.create.receipt.paymentMethodId" | "execution.create.receipt.paymentMethodTypes" | "execution.create.receipt.phase" | "execution.create.receipt.providerApiVersion" | "execution.create.receipt.stripeSubscriptionId" | "execution.create.state" | "execution.definitionVersion" | "execution.providerAction" | "execution.providerApiVersion" | "execution.workflowId" | "failureCode" | "kind" | "preparationId" | "providerKey" | "providerKeys" | "providerKeys.attach" | "providerKeys.create" | "providerKeys.disable" | "providerKeys.enable" | "receipt" | "receipt.customerAccount" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "scopeKey" | "state" | "version");
|
|
2071
2306
|
indexes: {
|
|
2072
2307
|
by_id: ["_id"];
|
|
2073
2308
|
by_creation_time: ["_creationTime"];
|
|
@@ -3152,6 +3387,157 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
3152
3387
|
searchIndexes: {};
|
|
3153
3388
|
vectorIndexes: {};
|
|
3154
3389
|
};
|
|
3390
|
+
processingCostReconciliationOperations: {
|
|
3391
|
+
document: {
|
|
3392
|
+
_creationTime: number;
|
|
3393
|
+
_id: import("convex/values").GenericId<"processingCostReconciliationOperations">;
|
|
3394
|
+
accountId: string;
|
|
3395
|
+
claimKey: string;
|
|
3396
|
+
currency: string;
|
|
3397
|
+
definitionVersion: number;
|
|
3398
|
+
expectedRevision: number;
|
|
3399
|
+
failure?: {
|
|
3400
|
+
reason: "fee_pending" | "history_incomplete" | "provider_pending";
|
|
3401
|
+
retryable: true;
|
|
3402
|
+
status: "not_ready";
|
|
3403
|
+
} | {
|
|
3404
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
3405
|
+
retryable: false;
|
|
3406
|
+
status: "conflict";
|
|
3407
|
+
} | {
|
|
3408
|
+
reason: "currency_mismatch" | "invalid_scope" | "payment_not_payable" | "policy_invalid" | "unsupported_source";
|
|
3409
|
+
retryable: false;
|
|
3410
|
+
status: "rejected";
|
|
3411
|
+
} | {
|
|
3412
|
+
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
3413
|
+
retryable: false;
|
|
3414
|
+
status: "unknown";
|
|
3415
|
+
} | undefined;
|
|
3416
|
+
importHook?: string | undefined;
|
|
3417
|
+
maxAttempts: number;
|
|
3418
|
+
policy: {
|
|
3419
|
+
liability: {
|
|
3420
|
+
disputeCosts: "all" | "none";
|
|
3421
|
+
processingCosts: "all" | "none" | "uncovered";
|
|
3422
|
+
};
|
|
3423
|
+
rounding: "ceil" | "floor" | "nearest";
|
|
3424
|
+
sellingFee: number;
|
|
3425
|
+
};
|
|
3426
|
+
projection?: string | undefined;
|
|
3427
|
+
provider: string;
|
|
3428
|
+
providerApiVersion: string;
|
|
3429
|
+
requestKey: string;
|
|
3430
|
+
result?: {
|
|
3431
|
+
claim: {
|
|
3432
|
+
_creationTime: number;
|
|
3433
|
+
_id: import("convex/values").GenericId<"recoveryClaims">;
|
|
3434
|
+
accountId: string;
|
|
3435
|
+
amountDue: number;
|
|
3436
|
+
claimKey: string;
|
|
3437
|
+
collectedAmount: number;
|
|
3438
|
+
currency: string;
|
|
3439
|
+
openingCollection?: {
|
|
3440
|
+
amountDue: number;
|
|
3441
|
+
collectedAmount: number;
|
|
3442
|
+
operationKey: string;
|
|
3443
|
+
revision: number;
|
|
3444
|
+
} | undefined;
|
|
3445
|
+
outstanding: number;
|
|
3446
|
+
reservedAmount: number;
|
|
3447
|
+
revision: number;
|
|
3448
|
+
scopeKey: string;
|
|
3449
|
+
sign: "negative" | "positive" | "zero";
|
|
3450
|
+
sourceChargeId: string;
|
|
3451
|
+
sourceGross: number;
|
|
3452
|
+
sourceProcessingFee: number;
|
|
3453
|
+
};
|
|
3454
|
+
deficit: {
|
|
3455
|
+
amountDue: number;
|
|
3456
|
+
currency: string;
|
|
3457
|
+
disputeLiability: number;
|
|
3458
|
+
processingLiability: number;
|
|
3459
|
+
retainedFee: number;
|
|
3460
|
+
};
|
|
3461
|
+
observation: {
|
|
3462
|
+
currency: string;
|
|
3463
|
+
disputeFees: number;
|
|
3464
|
+
gross: number;
|
|
3465
|
+
originalProcessingFee: number;
|
|
3466
|
+
paymentIntentId: string;
|
|
3467
|
+
principalReturned: number;
|
|
3468
|
+
processingFee: number;
|
|
3469
|
+
provenance: {
|
|
3470
|
+
customerAccountId: string;
|
|
3471
|
+
invoiceId: string;
|
|
3472
|
+
invoicePaymentId: string;
|
|
3473
|
+
recoveryInvoiceItemId?: string | undefined;
|
|
3474
|
+
stripePriceId?: string | undefined;
|
|
3475
|
+
stripeProductId?: string | undefined;
|
|
3476
|
+
subscriptionId?: string | undefined;
|
|
3477
|
+
};
|
|
3478
|
+
sourceChargeId: string;
|
|
3479
|
+
};
|
|
3480
|
+
rollbackClaim?: {
|
|
3481
|
+
_creationTime: number;
|
|
3482
|
+
_id: import("convex/values").GenericId<"recoveryClaims">;
|
|
3483
|
+
accountId: string;
|
|
3484
|
+
amountDue: number;
|
|
3485
|
+
claimKey: string;
|
|
3486
|
+
collectedAmount: number;
|
|
3487
|
+
currency: string;
|
|
3488
|
+
openingCollection?: {
|
|
3489
|
+
amountDue: number;
|
|
3490
|
+
collectedAmount: number;
|
|
3491
|
+
operationKey: string;
|
|
3492
|
+
revision: number;
|
|
3493
|
+
} | undefined;
|
|
3494
|
+
outstanding: number;
|
|
3495
|
+
reservedAmount: number;
|
|
3496
|
+
revision: number;
|
|
3497
|
+
scopeKey: string;
|
|
3498
|
+
sign: "negative" | "positive" | "zero";
|
|
3499
|
+
sourceChargeId: string;
|
|
3500
|
+
sourceGross: number;
|
|
3501
|
+
sourceProcessingFee: number;
|
|
3502
|
+
} | undefined;
|
|
3503
|
+
} | undefined;
|
|
3504
|
+
retryDelayMs: number;
|
|
3505
|
+
rollback?: {
|
|
3506
|
+
expectedRevision: number;
|
|
3507
|
+
groupKey: string;
|
|
3508
|
+
} | undefined;
|
|
3509
|
+
scopeKey: string;
|
|
3510
|
+
source: {
|
|
3511
|
+
customerAccountId: string;
|
|
3512
|
+
gross: number;
|
|
3513
|
+
invoiceId?: string | undefined;
|
|
3514
|
+
kind: "sale";
|
|
3515
|
+
paymentIntentId: string;
|
|
3516
|
+
stripeAccountId?: string | undefined;
|
|
3517
|
+
stripePriceId?: string | undefined;
|
|
3518
|
+
stripeProductId?: string | undefined;
|
|
3519
|
+
subscriptionId?: string | undefined;
|
|
3520
|
+
} | {
|
|
3521
|
+
gross: number;
|
|
3522
|
+
groupKey: string;
|
|
3523
|
+
kind: "invoice_recovery";
|
|
3524
|
+
paymentIntentId: string;
|
|
3525
|
+
};
|
|
3526
|
+
status: "completed" | "conflict" | "queued" | "rejected" | "running" | "unknown" | "waiting";
|
|
3527
|
+
version: number;
|
|
3528
|
+
workflowId?: string | undefined;
|
|
3529
|
+
};
|
|
3530
|
+
fieldPaths: "_id" | ("_creationTime" | "accountId" | "claimKey" | "currency" | "definitionVersion" | "expectedRevision" | "failure" | "failure.reason" | "failure.retryable" | "failure.status" | "importHook" | "maxAttempts" | "policy" | "policy.liability" | "policy.liability.disputeCosts" | "policy.liability.processingCosts" | "policy.rounding" | "policy.sellingFee" | "projection" | "provider" | "providerApiVersion" | "requestKey" | "result" | "result.claim" | "result.claim._creationTime" | "result.claim._id" | "result.claim.accountId" | "result.claim.amountDue" | "result.claim.claimKey" | "result.claim.collectedAmount" | "result.claim.currency" | "result.claim.openingCollection" | "result.claim.openingCollection.amountDue" | "result.claim.openingCollection.collectedAmount" | "result.claim.openingCollection.operationKey" | "result.claim.openingCollection.revision" | "result.claim.outstanding" | "result.claim.reservedAmount" | "result.claim.revision" | "result.claim.scopeKey" | "result.claim.sign" | "result.claim.sourceChargeId" | "result.claim.sourceGross" | "result.claim.sourceProcessingFee" | "result.deficit" | "result.deficit.amountDue" | "result.deficit.currency" | "result.deficit.disputeLiability" | "result.deficit.processingLiability" | "result.deficit.retainedFee" | "result.observation" | "result.observation.currency" | "result.observation.disputeFees" | "result.observation.gross" | "result.observation.originalProcessingFee" | "result.observation.paymentIntentId" | "result.observation.principalReturned" | "result.observation.processingFee" | "result.observation.provenance" | "result.observation.provenance.customerAccountId" | "result.observation.provenance.invoiceId" | "result.observation.provenance.invoicePaymentId" | "result.observation.provenance.recoveryInvoiceItemId" | "result.observation.provenance.stripePriceId" | "result.observation.provenance.stripeProductId" | "result.observation.provenance.subscriptionId" | "result.observation.sourceChargeId" | "result.rollbackClaim" | "result.rollbackClaim._creationTime" | "result.rollbackClaim._id" | "result.rollbackClaim.accountId" | "result.rollbackClaim.amountDue" | "result.rollbackClaim.claimKey" | "result.rollbackClaim.collectedAmount" | "result.rollbackClaim.currency" | "result.rollbackClaim.openingCollection" | "result.rollbackClaim.openingCollection.amountDue" | "result.rollbackClaim.openingCollection.collectedAmount" | "result.rollbackClaim.openingCollection.operationKey" | "result.rollbackClaim.openingCollection.revision" | "result.rollbackClaim.outstanding" | "result.rollbackClaim.reservedAmount" | "result.rollbackClaim.revision" | "result.rollbackClaim.scopeKey" | "result.rollbackClaim.sign" | "result.rollbackClaim.sourceChargeId" | "result.rollbackClaim.sourceGross" | "result.rollbackClaim.sourceProcessingFee" | "retryDelayMs" | "rollback" | "rollback.expectedRevision" | "rollback.groupKey" | "scopeKey" | "source" | "source.customerAccountId" | "source.gross" | "source.groupKey" | "source.invoiceId" | "source.kind" | "source.paymentIntentId" | "source.stripeAccountId" | "source.stripePriceId" | "source.stripeProductId" | "source.subscriptionId" | "status" | "version" | "workflowId");
|
|
3531
|
+
indexes: {
|
|
3532
|
+
by_id: ["_id"];
|
|
3533
|
+
by_creation_time: ["_creationTime"];
|
|
3534
|
+
by_claim_status: ["claimKey", "status", "_creationTime"];
|
|
3535
|
+
by_payment_scope: ["accountId", "scopeKey", "currency", "source.paymentIntentId", "_creationTime"];
|
|
3536
|
+
by_request: ["requestKey", "_creationTime"];
|
|
3537
|
+
};
|
|
3538
|
+
searchIndexes: {};
|
|
3539
|
+
vectorIndexes: {};
|
|
3540
|
+
};
|
|
3155
3541
|
products: {
|
|
3156
3542
|
document: {
|
|
3157
3543
|
_creationTime: number;
|
|
@@ -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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|
163
163
|
accountId: string;
|
|
164
164
|
ownerKey: string;
|
|
165
165
|
}, Promise<{
|
|
166
|
-
status: "held";
|
|
167
|
-
reason: "snapshot_limit";
|
|
168
166
|
transfers?: undefined;
|
|
169
167
|
claims?: undefined;
|
|
168
|
+
status: "held";
|
|
169
|
+
reason: "snapshot_limit";
|
|
170
170
|
} | {
|
|
171
171
|
reason?: undefined;
|
|
172
172
|
status: "ready";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/component/payoutRelease/queries.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIlB,CAAC;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAiBd,CAAC;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BlB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;GAQf,CAAC;AAEH,4FAA4F;AAC5F,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/component/payoutRelease/queries.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIlB,CAAC;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAiBd,CAAC;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BlB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;GAQf,CAAC;AAEH,4FAA4F;AAC5F,eAAO,MAAM,QAAQ;;;;;;YAsBE,MAAM;YAAmB,gBAAgB;;;YAS3C,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAE1B,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Infer } from "convex/values";
|
|
2
|
+
import type { MutationCtx } from "../_generated/server.js";
|
|
3
|
+
import type { Doc } from "../_generated/dataModel.js";
|
|
4
|
+
import { observation } from "./schema.js";
|
|
5
|
+
/** Host verifies its historical record. Adoption and host marker share this transaction. */
|
|
6
|
+
export declare function adopt(ctx: MutationCtx, op: Doc<"processingCostReconciliationOperations">, o: Infer<typeof observation>): Promise<{
|
|
7
|
+
_creationTime: number;
|
|
8
|
+
_id: import("convex/values").GenericId<"recoveryClaims">;
|
|
9
|
+
accountId: string;
|
|
10
|
+
amountDue: number;
|
|
11
|
+
claimKey: string;
|
|
12
|
+
collectedAmount: number;
|
|
13
|
+
currency: string;
|
|
14
|
+
openingCollection?: {
|
|
15
|
+
amountDue: number;
|
|
16
|
+
collectedAmount: number;
|
|
17
|
+
operationKey: string;
|
|
18
|
+
revision: number;
|
|
19
|
+
} | undefined;
|
|
20
|
+
outstanding: number;
|
|
21
|
+
reservedAmount: number;
|
|
22
|
+
revision: number;
|
|
23
|
+
scopeKey: string;
|
|
24
|
+
sign: "negative" | "positive" | "zero";
|
|
25
|
+
sourceChargeId: string;
|
|
26
|
+
sourceGross: number;
|
|
27
|
+
sourceProcessingFee: number;
|
|
28
|
+
} | null>;
|
|
29
|
+
//# sourceMappingURL=adoption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adoption.d.ts","sourceRoot":"","sources":["../../../src/component/processingCostReconciliation/adoption.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,4BAA4B,CAAC;AAEtD,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAyB1D,4FAA4F;AAC5F,wBAAsB,KAAK,CACzB,GAAG,EAAE,WAAW,EAChB,EAAE,EAAE,GAAG,CAAC,wCAAwC,CAAC,EACjD,CAAC,EAAE,KAAK,CAAC,OAAO,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;UA0C7B"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { importOpeningClaim } from "../costRecovery/imports.js";
|
|
2
|
+
import { reference } from "./helpers.js";
|
|
3
|
+
function opening(value) {
|
|
4
|
+
if (value === null)
|
|
5
|
+
return null;
|
|
6
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
7
|
+
throw new Error("Invalid opening snapshot.");
|
|
8
|
+
const r = value;
|
|
9
|
+
if (Object.keys(r).some((k) => !["operationKey", "amountDue", "collectedAmount", "revision"].includes(k)) ||
|
|
10
|
+
typeof r.operationKey !== "string" ||
|
|
11
|
+
!r.operationKey.trim() ||
|
|
12
|
+
![r.amountDue, r.collectedAmount, r.revision].every((n) => typeof n === "number" && Number.isSafeInteger(n)) ||
|
|
13
|
+
r.revision < 0)
|
|
14
|
+
throw new Error("Invalid opening snapshot.");
|
|
15
|
+
return r;
|
|
16
|
+
}
|
|
17
|
+
/** Host verifies its historical record. Adoption and host marker share this transaction. */
|
|
18
|
+
export async function adopt(ctx, op, o) {
|
|
19
|
+
try {
|
|
20
|
+
const snapshot = opening(await ctx.runMutation(op.importHook, {
|
|
21
|
+
...reference(op),
|
|
22
|
+
claimKey: op.claimKey,
|
|
23
|
+
expectedRevision: op.expectedRevision,
|
|
24
|
+
sourceChargeId: o.sourceChargeId,
|
|
25
|
+
sourceGross: o.gross,
|
|
26
|
+
sourceProcessingFee: o.originalProcessingFee,
|
|
27
|
+
}));
|
|
28
|
+
if (!snapshot) {
|
|
29
|
+
const current = await ctx.db
|
|
30
|
+
.query("recoveryClaims")
|
|
31
|
+
.withIndex("by_key", (q) => q.eq("claimKey", op.claimKey))
|
|
32
|
+
.unique();
|
|
33
|
+
if (current)
|
|
34
|
+
throw new Error("Opening hook changed the live claim.");
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
const imported = await importOpeningClaim(ctx, {
|
|
38
|
+
accountId: op.accountId,
|
|
39
|
+
scopeKey: op.scopeKey,
|
|
40
|
+
currency: op.currency,
|
|
41
|
+
claimKey: op.claimKey,
|
|
42
|
+
sourceChargeId: o.sourceChargeId,
|
|
43
|
+
sourceGross: o.gross,
|
|
44
|
+
sourceProcessingFee: o.originalProcessingFee,
|
|
45
|
+
...snapshot,
|
|
46
|
+
});
|
|
47
|
+
if (imported.revision !== snapshot.revision ||
|
|
48
|
+
imported.amountDue !== snapshot.amountDue ||
|
|
49
|
+
imported.collectedAmount !== snapshot.collectedAmount ||
|
|
50
|
+
imported.reservedAmount !== 0)
|
|
51
|
+
throw new Error("Opening claim changed during adoption.");
|
|
52
|
+
return imported;
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
throw new Error("Processing-cost import failed.");
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=adoption.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adoption.js","sourceRoot":"","sources":["../../../src/component/processingCostReconciliation/adoption.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,SAAS,OAAO,CAAC,KAAc;IAC7B,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAChC,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAC7D,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;IAC/C,MAAM,CAAC,GAAG,KAAgC,CAA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C,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC;iBACzD,MAAM,EAAE,CAAC;YACZ,IAAI,OAAO;gBAAE,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;YACrE,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,kBAAkB,CAAC,GAAG,EAAE;YAC7C,SAAS,EAAE,EAAE,CAAC,SAAS;YACvB,QAAQ,EAAE,EAAE,CAAC,QAAQ;YACrB,QAAQ,EAAE,EAAE,CAAC,QAAQ;YACrB,QAAQ,EAAE,EAAE,CAAC,QAAQ;YACrB,cAAc,EAAE,CAAC,CAAC,cAAc;YAChC,WAAW,EAAE,CAAC,CAAC,KAAK;YACpB,mBAAmB,EAAE,CAAC,CAAC,qBAAqB;YAC5C,GAAG,QAAQ;SACZ,CAAC,CAAC;QACH,IACE,QAAQ,CAAC,QAAQ,KAAK,QAAQ,CAAC,QAAQ;YACvC,QAAQ,CAAC,SAAS,KAAK,QAAQ,CAAC,SAAS;YACzC,QAAQ,CAAC,eAAe,KAAK,QAAQ,CAAC,eAAe;YACrD,QAAQ,CAAC,cAAc,KAAK,CAAC;YAE7B,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;QAC5D,OAAO,QAAQ,CAAC;IAClB,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;IACpD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const invoke: import("convex/server").RegisteredAction<"internal", {
|
|
2
|
+
accountId: string;
|
|
3
|
+
currency: string;
|
|
4
|
+
operationId: import("convex/values").GenericId<"processingCostReconciliationOperations">;
|
|
5
|
+
scopeKey: string;
|
|
6
|
+
version: number;
|
|
7
|
+
}, Promise<{
|
|
8
|
+
reason: "fee_pending" | "history_incomplete" | "provider_pending";
|
|
9
|
+
retryable: true;
|
|
10
|
+
status: "not_ready";
|
|
11
|
+
} | {
|
|
12
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
13
|
+
retryable: false;
|
|
14
|
+
status: "conflict";
|
|
15
|
+
} | {
|
|
16
|
+
reason: "currency_mismatch" | "invalid_scope" | "payment_not_payable" | "policy_invalid" | "unsupported_source";
|
|
17
|
+
retryable: false;
|
|
18
|
+
status: "rejected";
|
|
19
|
+
} | {
|
|
20
|
+
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
21
|
+
retryable: false;
|
|
22
|
+
status: "unknown";
|
|
23
|
+
} | {
|
|
24
|
+
status: "ready";
|
|
25
|
+
value: {
|
|
26
|
+
currency: string;
|
|
27
|
+
disputeFees: number;
|
|
28
|
+
gross: number;
|
|
29
|
+
originalProcessingFee: number;
|
|
30
|
+
paymentIntentId: string;
|
|
31
|
+
principalReturned: number;
|
|
32
|
+
processingFee: number;
|
|
33
|
+
provenance: {
|
|
34
|
+
customerAccountId: string;
|
|
35
|
+
invoiceId: string;
|
|
36
|
+
invoicePaymentId: string;
|
|
37
|
+
recoveryInvoiceItemId?: string | undefined;
|
|
38
|
+
stripePriceId?: string | undefined;
|
|
39
|
+
stripeProductId?: string | undefined;
|
|
40
|
+
subscriptionId?: string | undefined;
|
|
41
|
+
};
|
|
42
|
+
sourceChargeId: string;
|
|
43
|
+
};
|
|
44
|
+
}>>;
|
|
45
|
+
//# sourceMappingURL=bridge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../../../src/component/processingCostReconciliation/bridge.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCjB,CAAC"}
|