@fantastic.dev/better-stripe 0.32.0 → 0.34.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 +14 -0
- package/README.md +36 -1
- package/dist/client/billing/checkoutPages.d.ts +26 -0
- package/dist/client/billing/checkoutPages.d.ts.map +1 -0
- package/dist/client/billing/checkoutPages.js +111 -0
- package/dist/client/billing/checkoutPages.js.map +1 -0
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +36 -0
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +18 -0
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +36 -0
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +18 -0
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/refundContext.d.ts +6 -0
- package/dist/client/connect/refundContext.d.ts.map +1 -0
- package/dist/client/connect/refundContext.js +109 -0
- package/dist/client/connect/refundContext.js.map +1 -0
- package/dist/client/connect/refundContextHistory.d.ts +20 -0
- package/dist/client/connect/refundContextHistory.d.ts.map +1 -0
- package/dist/client/connect/refundContextHistory.js +55 -0
- package/dist/client/connect/refundContextHistory.js.map +1 -0
- package/dist/client/connect/refundContextTypes.d.ts +39 -0
- package/dist/client/connect/refundContextTypes.d.ts.map +1 -0
- package/dist/client/connect/refundContextTypes.js +15 -0
- package/dist/client/connect/refundContextTypes.js.map +1 -0
- package/dist/client/connect/refundTarget.d.ts +14 -0
- package/dist/client/connect/refundTarget.d.ts.map +1 -0
- package/dist/client/connect/refundTarget.js +17 -0
- package/dist/client/connect/refundTarget.js.map +1 -0
- package/dist/client/connect/refunds.d.ts +17 -1
- package/dist/client/connect/refunds.d.ts.map +1 -1
- package/dist/client/connect/refunds.js +7 -17
- package/dist/client/connect/refunds.js.map +1 -1
- package/dist/client/core/accountClosures.d.ts +15 -0
- package/dist/client/core/accountClosures.d.ts.map +1 -0
- package/dist/client/core/accountClosures.js +10 -0
- package/dist/client/core/accountClosures.js.map +1 -0
- package/dist/client/core/accounts.d.ts.map +1 -1
- package/dist/client/core/accounts.js +15 -23
- package/dist/client/core/accounts.js.map +1 -1
- package/dist/client/core/personalAccountMapping.d.ts +8 -0
- package/dist/client/core/personalAccountMapping.d.ts.map +1 -0
- package/dist/client/core/personalAccountMapping.js +11 -0
- package/dist/client/core/personalAccountMapping.js.map +1 -0
- package/dist/client/index.d.ts +57 -2
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +13 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/invoiceReads.d.ts +7 -1
- package/dist/client/invoiceReads.d.ts.map +1 -1
- package/dist/client/invoiceReads.js +11 -1
- package/dist/client/invoiceReads.js.map +1 -1
- package/dist/client/publicTypes.d.ts +5 -0
- package/dist/client/publicTypes.d.ts.map +1 -0
- package/dist/client/publicTypes.js +2 -0
- package/dist/client/publicTypes.js.map +1 -0
- package/dist/component/_generated/component.d.ts +88 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/accountClosure/helpers.d.ts +18 -0
- package/dist/component/accountClosure/helpers.d.ts.map +1 -0
- package/dist/component/accountClosure/helpers.js +18 -0
- package/dist/component/accountClosure/helpers.js.map +1 -0
- package/dist/component/accountClosure/mutations.d.ts +20 -0
- package/dist/component/accountClosure/mutations.d.ts.map +1 -0
- package/dist/component/accountClosure/mutations.js +55 -0
- package/dist/component/accountClosure/mutations.js.map +1 -0
- package/dist/component/accountClosure/queries.d.ts +34 -0
- package/dist/component/accountClosure/queries.d.ts.map +1 -0
- package/dist/component/accountClosure/queries.js +36 -0
- package/dist/component/accountClosure/queries.js.map +1 -0
- package/dist/component/accountClosure/schema.d.ts +46 -0
- package/dist/component/accountClosure/schema.d.ts.map +1 -0
- package/dist/component/accountClosure/schema.js +20 -0
- package/dist/component/accountClosure/schema.js.map +1 -0
- package/dist/component/core/mutations.d.ts.map +1 -1
- package/dist/component/core/mutations.js +5 -0
- package/dist/component/core/mutations.js.map +1 -1
- package/dist/component/core/personalAccountMapping.d.ts +95 -0
- package/dist/component/core/personalAccountMapping.d.ts.map +1 -0
- package/dist/component/core/personalAccountMapping.js +54 -0
- package/dist/component/core/personalAccountMapping.js.map +1 -0
- package/dist/component/core/queries.d.ts +27 -0
- package/dist/component/core/queries.d.ts.map +1 -1
- package/dist/component/core/queries.js +7 -0
- package/dist/component/core/queries.js.map +1 -1
- package/dist/component/earnings/triggers.d.ts +42 -0
- 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/schema.d.ts +18 -0
- package/dist/component/schema.js +2 -0
- package/dist/component/schema.js.map +1 -1
- package/docs/checkout-session-pages.md +71 -0
- package/docs/personal-account-mapping.md +54 -0
- package/docs/read-contracts.md +28 -0
- package/docs/refund-context.md +84 -0
- package/package.json +5 -2
- package/src/client/billing/checkoutPages.test.ts +251 -0
- package/src/client/billing/checkoutPages.ts +135 -0
- package/src/client/connect/refundContext.ts +140 -0
- package/src/client/connect/refundContextHistory.ts +84 -0
- package/src/client/connect/refundContextTypes.ts +56 -0
- package/src/client/connect/refundTarget.ts +39 -0
- package/src/client/connect/refunds.test.ts +72 -0
- package/src/client/connect/refunds.ts +8 -22
- package/src/client/core/account-close-orchestration.test.ts +131 -0
- package/src/client/core/account-closure.test.ts +317 -0
- package/src/client/core/accountClosures.ts +37 -0
- package/src/client/core/accounts.test.ts +0 -111
- package/src/client/core/accounts.ts +24 -29
- package/src/client/core/personal-account-mapping.test.ts +71 -0
- package/src/client/core/personalAccountMapping.ts +23 -0
- package/src/client/index.ts +45 -33
- package/src/client/invoiceReads.ts +17 -1
- package/src/client/publicTypes.ts +35 -0
- package/src/client/refund-context-shapes.test.ts +127 -0
- package/src/client/refund-context.test.ts +404 -0
- package/src/component/_generated/api.ts +8 -0
- package/src/component/_generated/component.ts +126 -0
- package/src/component/accountClosure/helpers.ts +21 -0
- package/src/component/accountClosure/mutations.ts +56 -0
- package/src/component/accountClosure/queries.ts +43 -0
- package/src/component/accountClosure/schema.ts +20 -0
- package/src/component/core/mutations.ts +3 -0
- package/src/component/core/personal-account-mapping.test.ts +173 -0
- package/src/component/core/personalAccountMapping.ts +81 -0
- package/src/component/core/queries.ts +11 -0
- package/src/component/schema.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -26,6 +26,20 @@
|
|
|
26
26
|
- Remove internal tracker references from public documentation and add a
|
|
27
27
|
regression check that prevents their reintroduction.
|
|
28
28
|
|
|
29
|
+
## [0.34.0](https://github.com/FantasticDevHQ/better-stripe/compare/v0.33.0...v0.34.0) (2026-10-16)
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
- **accounts:** expose unambiguous personal account mapping ([521b73f](https://github.com/FantasticDevHQ/better-stripe/commit/521b73f4174b620b44abf0c569018e3b08227e3b))
|
|
34
|
+
- **accounts:** preserve closed recipient ownership and history ([c14fd3d](https://github.com/FantasticDevHQ/better-stripe/commit/c14fd3d501ef637d33efdf890694156e66328c71))
|
|
35
|
+
|
|
36
|
+
## [0.33.0](https://github.com/FantasticDevHQ/better-stripe/compare/v0.32.0...v0.33.0) (2026-10-16)
|
|
37
|
+
|
|
38
|
+
### Features
|
|
39
|
+
|
|
40
|
+
- **billing:** expose bounded authorized refund context ([6f4f264](https://github.com/FantasticDevHQ/better-stripe/commit/6f4f264658d48c478165a4e3f3aaa83e6a6cf94b))
|
|
41
|
+
- **billing:** expose bounded buyer Checkout session pages ([f6cb1a6](https://github.com/FantasticDevHQ/better-stripe/commit/f6cb1a64139235ee65f907c3577e4aac75cff96c))
|
|
42
|
+
|
|
29
43
|
## [0.32.0](https://github.com/FantasticDevHQ/better-stripe/compare/v0.31.0...v0.32.0) (2026-10-16)
|
|
30
44
|
|
|
31
45
|
### Features
|
package/README.md
CHANGED
|
@@ -70,7 +70,7 @@ claim execution are completed.
|
|
|
70
70
|
|
|
71
71
|
## Status
|
|
72
72
|
|
|
73
|
-
**Version**: `0.
|
|
73
|
+
**Version**: `0.34.0` <!-- x-release-please-version --> (pre-1.0). API may change between minor versions until 1.0.
|
|
74
74
|
|
|
75
75
|
Used in production by its authors. Webhook pipeline is covered by unit tests and a live E2E harness (`npm run e2e:webhooks`) that fires real Stripe-signed events and asserts the ledger.
|
|
76
76
|
|
|
@@ -329,6 +329,35 @@ Methods named `get<Entity>` take the component document ID (exception: `getInvoi
|
|
|
329
329
|
|
|
330
330
|
### Account
|
|
331
331
|
|
|
332
|
+
`closeAccount` and its `restartAccountOnboarding` alias retain a durable closure
|
|
333
|
+
record before contacting Stripe. Successful closure removes the active account
|
|
334
|
+
mapping but preserves the original user/organization ownership, close timestamp
|
|
335
|
+
and financial rows. A pending attempt pins its owner through retry; delayed
|
|
336
|
+
account upserts cannot revive a closed recipient. Retrying after provider success
|
|
337
|
+
and local persistence failure retrieves provider state and completes locally
|
|
338
|
+
without closing an already closed account again. A required provider lookup that
|
|
339
|
+
fails now stops closure rather than submitting an empty configuration guess.
|
|
340
|
+
|
|
341
|
+
`getClosedAccountByStripeId(ctx, { stripeAccountId })` retrieves closed provenance;
|
|
342
|
+
`listClosedAccountsByUserId(ctx, { userId, paginationOpts })` discovers personal
|
|
343
|
+
closed accounts using indexed pages of 1–100 records. Organization accounts are
|
|
344
|
+
excluded from personal discovery. These are trusted host APIs: authenticate the
|
|
345
|
+
actor and check both original user and organization scope before passing the
|
|
346
|
+
historical Stripe account ID to existing payout, transfer or commission readers.
|
|
347
|
+
A supplied userId or a replacement account never proves historical ownership.
|
|
348
|
+
An untracked legacy closure has no invented owner and is not discoverable as a
|
|
349
|
+
personal account. Records deleted before this contract cannot be reconstructed.
|
|
350
|
+
|
|
351
|
+
Closure provenance does not evaluate outstanding funds, reservations, recovery
|
|
352
|
+
liabilities or permission to create a replacement. Applications must enforce
|
|
353
|
+
those policies before exposing `AccountCloseCard`; its render props provide
|
|
354
|
+
presentation and confirmation, not financial authorization. Do not use closure
|
|
355
|
+
as an automatic delete-and-recreate onboarding reset. Existing active-account
|
|
356
|
+
getters keep their signatures and exclude completed closures; historical readers
|
|
357
|
+
retain original financial references. The Vite reference's
|
|
358
|
+
[closed-account authorization example](example/README.md#closed-account-history)
|
|
359
|
+
shows where the host's authenticated-actor check belongs.
|
|
360
|
+
|
|
332
361
|
| Method | Description |
|
|
333
362
|
| --------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
|
|
334
363
|
| `createAccount(ctx, { userId, email?, name?, country?, orgId?, metadata? })` | Create a V2 account in Stripe and the component database |
|
|
@@ -1754,6 +1783,12 @@ See the [read contract guide](docs/read-contracts.md) for reactive product, pric
|
|
|
1754
1783
|
cursors, exact currency summaries, legacy backfill, payout failure details, and
|
|
1755
1784
|
published-version adoption requirements.
|
|
1756
1785
|
|
|
1786
|
+
For buyer purchase-history discovery, use the public invoice and
|
|
1787
|
+
[Checkout-session page readers](docs/checkout-session-pages.md). Checkout pages
|
|
1788
|
+
also reveal open/asynchronous sessions with no invoice. They preserve raw
|
|
1789
|
+
references and require host authorization, continuation checkpoints and
|
|
1790
|
+
historical reconciliation; they do not attest complete history or award credit.
|
|
1791
|
+
|
|
1757
1792
|
Custom recipient payout minimums are waived during the final day before the verified holding deadline. Provider limits and all financial checks still apply. See [settlement and deadline handling](docs/settlement.md) for worker cadence, retries and expiry limitations.
|
|
1758
1793
|
|
|
1759
1794
|
Holding-expiry recovery remains visible and retryable after schedule restoration. The package preserves unresolved provider balances and payout claims, and prevents reset or custom reactivation from erasing them. See [expiry recovery](docs/settlement.md) for operator handling.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type Stripe from "stripe";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
declare const optionsSchema: z.ZodObject<{
|
|
4
|
+
customerAccount: z.ZodString;
|
|
5
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
complete: "complete";
|
|
7
|
+
expired: "expired";
|
|
8
|
+
open: "open";
|
|
9
|
+
}>>;
|
|
10
|
+
created: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
gte: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
lte: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
}, z.core.$strict>>;
|
|
14
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
15
|
+
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$strict>;
|
|
17
|
+
export type CheckoutSessionPageOptions = z.input<typeof optionsSchema>;
|
|
18
|
+
export type ProviderCheckoutSessionPage = {
|
|
19
|
+
page: Stripe.Checkout.Session[];
|
|
20
|
+
hasMore: boolean;
|
|
21
|
+
continueCursor: string | null;
|
|
22
|
+
};
|
|
23
|
+
/** Provider discovery only. Hosts authorize buyers and reconcile mutable history and gaps. */
|
|
24
|
+
export declare function getCheckoutSessionPageFromStripe(stripe: Stripe, input: CheckoutSessionPageOptions): Promise<ProviderCheckoutSessionPage>;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=checkoutPages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkoutPages.d.ts","sourceRoot":"","sources":["../../../src/client/billing/checkoutPages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,QAAA,MAAM,aAAa;;;;;;;;;;;;;kBAKR,CAAC;AAsBZ,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACvE,MAAM,MAAM,2BAA2B,GAAG;IACxC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B,CAAC;AA0BF,8FAA8F;AAC9F,wBAAsB,gCAAgC,CACpD,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,0BAA0B,GAChC,OAAO,CAAC,2BAA2B,CAAC,CAuDtC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
const time = z.number().int().nonnegative().safe();
|
|
3
|
+
const scopeSchema = z
|
|
4
|
+
.object({
|
|
5
|
+
customerAccount: z
|
|
6
|
+
.string()
|
|
7
|
+
.max(128)
|
|
8
|
+
.regex(/^acct_[A-Za-z0-9_]+$/),
|
|
9
|
+
status: z.enum(["open", "complete", "expired"]).optional(),
|
|
10
|
+
created: z
|
|
11
|
+
.object({ gte: time.optional(), lte: time.optional() })
|
|
12
|
+
.strict()
|
|
13
|
+
.optional(),
|
|
14
|
+
})
|
|
15
|
+
.strict();
|
|
16
|
+
const optionsSchema = scopeSchema
|
|
17
|
+
.extend({
|
|
18
|
+
limit: z.number().int().min(1).max(100).default(25),
|
|
19
|
+
cursor: z.string().min(1).max(2048).nullable().optional(),
|
|
20
|
+
})
|
|
21
|
+
.strict();
|
|
22
|
+
const sessionId = z
|
|
23
|
+
.string()
|
|
24
|
+
.max(128)
|
|
25
|
+
.regex(/^cs_[A-Za-z0-9_]+$/);
|
|
26
|
+
const cursorSchema = z
|
|
27
|
+
.object({
|
|
28
|
+
version: z.literal(1),
|
|
29
|
+
scope: scopeSchema,
|
|
30
|
+
after: sessionId,
|
|
31
|
+
})
|
|
32
|
+
.strict();
|
|
33
|
+
const identitySchema = z
|
|
34
|
+
.object({
|
|
35
|
+
id: sessionId,
|
|
36
|
+
object: z.literal("checkout.session"),
|
|
37
|
+
customer_account: z.string(),
|
|
38
|
+
customer: z.null().optional(),
|
|
39
|
+
created: time,
|
|
40
|
+
})
|
|
41
|
+
.passthrough();
|
|
42
|
+
function encodeCursor(scope, after) {
|
|
43
|
+
return btoa(JSON.stringify({ version: 1, scope, after }))
|
|
44
|
+
.replaceAll("+", "-")
|
|
45
|
+
.replaceAll("/", "_")
|
|
46
|
+
.replace(/=+$/, "");
|
|
47
|
+
}
|
|
48
|
+
function decodeCursor(cursor, scope) {
|
|
49
|
+
try {
|
|
50
|
+
if (!/^[A-Za-z0-9_-]+$/.test(cursor))
|
|
51
|
+
throw new Error();
|
|
52
|
+
const parsed = cursorSchema.parse(JSON.parse(atob(cursor.replaceAll("-", "+").replaceAll("_", "/"))));
|
|
53
|
+
if (JSON.stringify(parsed.scope) !== JSON.stringify(scope) ||
|
|
54
|
+
encodeCursor(parsed.scope, parsed.after) !== cursor)
|
|
55
|
+
throw new Error();
|
|
56
|
+
return parsed.after;
|
|
57
|
+
}
|
|
58
|
+
catch {
|
|
59
|
+
throw new Error("Invalid Checkout page cursor or scope");
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
/** Provider discovery only. Hosts authorize buyers and reconcile mutable history and gaps. */
|
|
63
|
+
export async function getCheckoutSessionPageFromStripe(stripe, input) {
|
|
64
|
+
const { limit, cursor, ...scope } = optionsSchema.parse(input);
|
|
65
|
+
if (scope.created?.gte !== undefined &&
|
|
66
|
+
scope.created.lte !== undefined &&
|
|
67
|
+
scope.created.gte > scope.created.lte)
|
|
68
|
+
throw new Error("Invalid Checkout page time window");
|
|
69
|
+
if (scope.created &&
|
|
70
|
+
scope.created.gte === undefined &&
|
|
71
|
+
scope.created.lte === undefined)
|
|
72
|
+
delete scope.created;
|
|
73
|
+
const after = cursor ? decodeCursor(cursor, scope) : undefined;
|
|
74
|
+
const response = await stripe.checkout.sessions.list({
|
|
75
|
+
customer_account: scope.customerAccount,
|
|
76
|
+
limit,
|
|
77
|
+
...(scope.status ? { status: scope.status } : {}),
|
|
78
|
+
...(scope.created ? { created: scope.created } : {}),
|
|
79
|
+
...(after ? { starting_after: after } : {}),
|
|
80
|
+
});
|
|
81
|
+
if (!Array.isArray(response.data) ||
|
|
82
|
+
typeof response.has_more !== "boolean" ||
|
|
83
|
+
response.data.length > limit)
|
|
84
|
+
throw new Error("Invalid provider Checkout page");
|
|
85
|
+
const seen = new Set();
|
|
86
|
+
for (const row of response.data) {
|
|
87
|
+
const parsed = identitySchema.safeParse(row);
|
|
88
|
+
if (!parsed.success ||
|
|
89
|
+
parsed.data.customer_account !== scope.customerAccount ||
|
|
90
|
+
(scope.status !== undefined && row.status !== scope.status) ||
|
|
91
|
+
(scope.created?.gte !== undefined &&
|
|
92
|
+
parsed.data.created < scope.created.gte) ||
|
|
93
|
+
(scope.created?.lte !== undefined &&
|
|
94
|
+
parsed.data.created > scope.created.lte))
|
|
95
|
+
throw new Error("Invalid provider Checkout page buyer scope or identity");
|
|
96
|
+
if (seen.has(row.id))
|
|
97
|
+
throw new Error("Duplicate provider Checkout page entry");
|
|
98
|
+
if (row.id === after)
|
|
99
|
+
throw new Error("Provider Checkout page has no advancing continuation");
|
|
100
|
+
seen.add(row.id);
|
|
101
|
+
}
|
|
102
|
+
const last = response.data[response.data.length - 1]?.id;
|
|
103
|
+
if (response.has_more && !last)
|
|
104
|
+
throw new Error("Provider Checkout page has no advancing continuation");
|
|
105
|
+
return {
|
|
106
|
+
page: response.data,
|
|
107
|
+
hasMore: response.has_more,
|
|
108
|
+
continueCursor: response.has_more ? encodeCursor(scope, last) : null,
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=checkoutPages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkoutPages.js","sourceRoot":"","sources":["../../../src/client/billing/checkoutPages.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC;AACnD,MAAM,WAAW,GAAG,CAA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AQ,CAAC,QAAQ,IAAI,CAAC,IAAI;QAC5B,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;IAC1E,OAAO;QACL,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,OAAO,EAAE,QAAQ,CAAC,QAAQ;QAC1B,cAAc,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,EAAE,IAAK,CAAC,CAAC,CAAC,CAAC,IAAI;KACtE,CAAC;AACJ,CAAC"}
|
|
@@ -1150,6 +1150,24 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1150
1150
|
by_stripe_account_id: ["stripeAccountId", "_creationTime"];
|
|
1151
1151
|
by_user_id: ["userId", "_creationTime"];
|
|
1152
1152
|
}, {}, {}>;
|
|
1153
|
+
accountClosures: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1154
|
+
appliedConfigurations?: ("customer" | "merchant" | "recipient")[] | undefined;
|
|
1155
|
+
closedAt?: number | undefined;
|
|
1156
|
+
orgId?: string | undefined;
|
|
1157
|
+
state: "closed" | "pending";
|
|
1158
|
+
stripeAccountId: string;
|
|
1159
|
+
userId?: string | undefined;
|
|
1160
|
+
}, {
|
|
1161
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
1162
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
1163
|
+
orgId: import("convex/values").VString<string | undefined, "optional">;
|
|
1164
|
+
appliedConfigurations: import("convex/values").VArray<("customer" | "merchant" | "recipient")[] | undefined, import("convex/values").VUnion<"customer" | "merchant" | "recipient", [import("convex/values").VLiteral<"customer", "required">, import("convex/values").VLiteral<"merchant", "required">, import("convex/values").VLiteral<"recipient", "required">], "required", never>, "optional">;
|
|
1165
|
+
state: import("convex/values").VUnion<"closed" | "pending", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"closed", "required">], "required", never>;
|
|
1166
|
+
closedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1167
|
+
}, "required", "appliedConfigurations" | "closedAt" | "orgId" | "state" | "stripeAccountId" | "userId">, {
|
|
1168
|
+
by_stripe_account_id: ["stripeAccountId", "_creationTime"];
|
|
1169
|
+
by_user_state: ["userId", "orgId", "state", "_creationTime"];
|
|
1170
|
+
}, {}, {}>;
|
|
1153
1171
|
products: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1154
1172
|
accountId?: string | undefined;
|
|
1155
1173
|
active: boolean;
|
|
@@ -3014,6 +3032,24 @@ export declare function historical(currency?: string): Promise<{
|
|
|
3014
3032
|
by_stripe_account_id: ["stripeAccountId", "_creationTime"];
|
|
3015
3033
|
by_user_id: ["userId", "_creationTime"];
|
|
3016
3034
|
}, {}, {}>;
|
|
3035
|
+
accountClosures: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3036
|
+
appliedConfigurations?: ("customer" | "merchant" | "recipient")[] | undefined;
|
|
3037
|
+
closedAt?: number | undefined;
|
|
3038
|
+
orgId?: string | undefined;
|
|
3039
|
+
state: "closed" | "pending";
|
|
3040
|
+
stripeAccountId: string;
|
|
3041
|
+
userId?: string | undefined;
|
|
3042
|
+
}, {
|
|
3043
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
3044
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
3045
|
+
orgId: import("convex/values").VString<string | undefined, "optional">;
|
|
3046
|
+
appliedConfigurations: import("convex/values").VArray<("customer" | "merchant" | "recipient")[] | undefined, import("convex/values").VUnion<"customer" | "merchant" | "recipient", [import("convex/values").VLiteral<"customer", "required">, import("convex/values").VLiteral<"merchant", "required">, import("convex/values").VLiteral<"recipient", "required">], "required", never>, "optional">;
|
|
3047
|
+
state: import("convex/values").VUnion<"closed" | "pending", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"closed", "required">], "required", never>;
|
|
3048
|
+
closedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3049
|
+
}, "required", "appliedConfigurations" | "closedAt" | "orgId" | "state" | "stripeAccountId" | "userId">, {
|
|
3050
|
+
by_stripe_account_id: ["stripeAccountId", "_creationTime"];
|
|
3051
|
+
by_user_state: ["userId", "orgId", "state", "_creationTime"];
|
|
3052
|
+
}, {}, {}>;
|
|
3017
3053
|
products: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3018
3054
|
accountId?: string | undefined;
|
|
3019
3055
|
active: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutAdoptionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutAdoptionTestHelpers.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAKvD,eAAO,MAAM,SAAS,EAIN,SAAS,CAAC;AAC1B,eAAO,MAAM,KAAK;IAChB,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,sBAAsB;CACvB,CAAC;AACF,wBAAsB,KAAK,CAAC,OAAO,WAAa,EAAE,QAAQ,SAAQ
|
|
1
|
+
{"version":3,"file":"payoutAdoptionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutAdoptionTestHelpers.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAKvD,eAAO,MAAM,SAAS,EAIN,SAAS,CAAC;AAC1B,eAAO,MAAM,KAAK;IAChB,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,sBAAsB;CACvB,CAAC;AACF,wBAAsB,KAAK,CAAC,OAAO,WAAa,EAAE,QAAQ,SAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAI;;;;YAIJ,QAAQ,8BAAoB,MAAM;YAGlC,MAAM,iCACW;gBACb,MAAM,EAAE,MAAM,CAAC;gBACf,QAAQ,EAAE,MAAM,CAAC;gBACjB,QAAQ,EAAE,MAAM,CAAC;aAClB;;;;gBA2CG,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDrB"}
|
|
@@ -1151,6 +1151,24 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
1151
1151
|
by_stripe_account_id: ["stripeAccountId", "_creationTime"];
|
|
1152
1152
|
by_user_id: ["userId", "_creationTime"];
|
|
1153
1153
|
}, {}, {}>;
|
|
1154
|
+
accountClosures: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1155
|
+
appliedConfigurations?: ("customer" | "merchant" | "recipient")[] | undefined;
|
|
1156
|
+
closedAt?: number | undefined;
|
|
1157
|
+
orgId?: string | undefined;
|
|
1158
|
+
state: "closed" | "pending";
|
|
1159
|
+
stripeAccountId: string;
|
|
1160
|
+
userId?: string | undefined;
|
|
1161
|
+
}, {
|
|
1162
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
1163
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
1164
|
+
orgId: import("convex/values").VString<string | undefined, "optional">;
|
|
1165
|
+
appliedConfigurations: import("convex/values").VArray<("customer" | "merchant" | "recipient")[] | undefined, import("convex/values").VUnion<"customer" | "merchant" | "recipient", [import("convex/values").VLiteral<"customer", "required">, import("convex/values").VLiteral<"merchant", "required">, import("convex/values").VLiteral<"recipient", "required">], "required", never>, "optional">;
|
|
1166
|
+
state: import("convex/values").VUnion<"closed" | "pending", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"closed", "required">], "required", never>;
|
|
1167
|
+
closedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1168
|
+
}, "required", "appliedConfigurations" | "closedAt" | "orgId" | "state" | "stripeAccountId" | "userId">, {
|
|
1169
|
+
by_stripe_account_id: ["stripeAccountId", "_creationTime"];
|
|
1170
|
+
by_user_state: ["userId", "orgId", "state", "_creationTime"];
|
|
1171
|
+
}, {}, {}>;
|
|
1154
1172
|
products: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1155
1173
|
accountId?: string | undefined;
|
|
1156
1174
|
active: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutExecutionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutExecutionTestHelpers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAIvD,eAAO,MAAM,SAAS,EAIN,SAAS,CAAC;AAC1B,eAAO,MAAM,KAAK;IAChB,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,sBAAsB;CACvB,CAAC;AACF,wBAAsB,KAAK,CAAC,OAAO,WAAa
|
|
1
|
+
{"version":3,"file":"payoutExecutionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutExecutionTestHelpers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAIvD,eAAO,MAAM,SAAS,EAIN,SAAS,CAAC;AAC1B,eAAO,MAAM,KAAK;IAChB,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,sBAAsB;CACvB,CAAC;AACF,wBAAsB,KAAK,CAAC,OAAO,WAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AE,MAAM,CAAC;gBACjB,QAAQ,EAAE,MAAM,CAAC;aAClB;;;;gBAsCG,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsBrB"}
|
|
@@ -1141,6 +1141,24 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
1141
1141
|
by_stripe_account_id: ["stripeAccountId", "_creationTime"];
|
|
1142
1142
|
by_user_id: ["userId", "_creationTime"];
|
|
1143
1143
|
}, {}, {}>;
|
|
1144
|
+
accountClosures: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1145
|
+
appliedConfigurations?: ("customer" | "merchant" | "recipient")[] | undefined;
|
|
1146
|
+
closedAt?: number | undefined;
|
|
1147
|
+
orgId?: string | undefined;
|
|
1148
|
+
state: "closed" | "pending";
|
|
1149
|
+
stripeAccountId: string;
|
|
1150
|
+
userId?: string | undefined;
|
|
1151
|
+
}, {
|
|
1152
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
1153
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
1154
|
+
orgId: import("convex/values").VString<string | undefined, "optional">;
|
|
1155
|
+
appliedConfigurations: import("convex/values").VArray<("customer" | "merchant" | "recipient")[] | undefined, import("convex/values").VUnion<"customer" | "merchant" | "recipient", [import("convex/values").VLiteral<"customer", "required">, import("convex/values").VLiteral<"merchant", "required">, import("convex/values").VLiteral<"recipient", "required">], "required", never>, "optional">;
|
|
1156
|
+
state: import("convex/values").VUnion<"closed" | "pending", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"closed", "required">], "required", never>;
|
|
1157
|
+
closedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1158
|
+
}, "required", "appliedConfigurations" | "closedAt" | "orgId" | "state" | "stripeAccountId" | "userId">, {
|
|
1159
|
+
by_stripe_account_id: ["stripeAccountId", "_creationTime"];
|
|
1160
|
+
by_user_state: ["userId", "orgId", "state", "_creationTime"];
|
|
1161
|
+
}, {}, {}>;
|
|
1144
1162
|
products: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1145
1163
|
accountId?: string | undefined;
|
|
1146
1164
|
active: boolean;
|
|
@@ -3006,6 +3024,24 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
3006
3024
|
by_stripe_account_id: ["stripeAccountId", "_creationTime"];
|
|
3007
3025
|
by_user_id: ["userId", "_creationTime"];
|
|
3008
3026
|
}, {}, {}>;
|
|
3027
|
+
accountClosures: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3028
|
+
appliedConfigurations?: ("customer" | "merchant" | "recipient")[] | undefined;
|
|
3029
|
+
closedAt?: number | undefined;
|
|
3030
|
+
orgId?: string | undefined;
|
|
3031
|
+
state: "closed" | "pending";
|
|
3032
|
+
stripeAccountId: string;
|
|
3033
|
+
userId?: string | undefined;
|
|
3034
|
+
}, {
|
|
3035
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
3036
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
3037
|
+
orgId: import("convex/values").VString<string | undefined, "optional">;
|
|
3038
|
+
appliedConfigurations: import("convex/values").VArray<("customer" | "merchant" | "recipient")[] | undefined, import("convex/values").VUnion<"customer" | "merchant" | "recipient", [import("convex/values").VLiteral<"customer", "required">, import("convex/values").VLiteral<"merchant", "required">, import("convex/values").VLiteral<"recipient", "required">], "required", never>, "optional">;
|
|
3039
|
+
state: import("convex/values").VUnion<"closed" | "pending", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"closed", "required">], "required", never>;
|
|
3040
|
+
closedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3041
|
+
}, "required", "appliedConfigurations" | "closedAt" | "orgId" | "state" | "stripeAccountId" | "userId">, {
|
|
3042
|
+
by_stripe_account_id: ["stripeAccountId", "_creationTime"];
|
|
3043
|
+
by_user_state: ["userId", "orgId", "state", "_creationTime"];
|
|
3044
|
+
}, {}, {}>;
|
|
3009
3045
|
products: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3010
3046
|
accountId?: string | undefined;
|
|
3011
3047
|
active: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutLargeAdoptionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutLargeAdoptionTestHelpers.ts"],"names":[],"mappings":"AAGA,wBAAsB,KAAK,CAAC,KAAK,SAAM,EAAE,MAAM,SAAK
|
|
1
|
+
{"version":3,"file":"payoutLargeAdoptionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutLargeAdoptionTestHelpers.ts"],"names":[],"mappings":"AAGA,wBAAsB,KAAK,CAAC,KAAK,SAAM,EAAE,MAAM,SAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAGtC,MAAM;yBACT;gBAAE,gBAAgB,EAAE,MAAM,CAAC;gBAAC,MAAM,EAAE,MAAM,CAAA;aAAE,EAAE;;;GA2C9D"}
|
|
@@ -1155,6 +1155,24 @@ export declare function setup(scope?: Scope): Promise<{
|
|
|
1155
1155
|
by_stripe_account_id: ["stripeAccountId", "_creationTime"];
|
|
1156
1156
|
by_user_id: ["userId", "_creationTime"];
|
|
1157
1157
|
}, {}, {}>;
|
|
1158
|
+
accountClosures: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1159
|
+
appliedConfigurations?: ("customer" | "merchant" | "recipient")[] | undefined;
|
|
1160
|
+
closedAt?: number | undefined;
|
|
1161
|
+
orgId?: string | undefined;
|
|
1162
|
+
state: "closed" | "pending";
|
|
1163
|
+
stripeAccountId: string;
|
|
1164
|
+
userId?: string | undefined;
|
|
1165
|
+
}, {
|
|
1166
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
1167
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
1168
|
+
orgId: import("convex/values").VString<string | undefined, "optional">;
|
|
1169
|
+
appliedConfigurations: import("convex/values").VArray<("customer" | "merchant" | "recipient")[] | undefined, import("convex/values").VUnion<"customer" | "merchant" | "recipient", [import("convex/values").VLiteral<"customer", "required">, import("convex/values").VLiteral<"merchant", "required">, import("convex/values").VLiteral<"recipient", "required">], "required", never>, "optional">;
|
|
1170
|
+
state: import("convex/values").VUnion<"closed" | "pending", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"closed", "required">], "required", never>;
|
|
1171
|
+
closedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1172
|
+
}, "required", "appliedConfigurations" | "closedAt" | "orgId" | "state" | "stripeAccountId" | "userId">, {
|
|
1173
|
+
by_stripe_account_id: ["stripeAccountId", "_creationTime"];
|
|
1174
|
+
by_user_state: ["userId", "orgId", "state", "_creationTime"];
|
|
1175
|
+
}, {}, {}>;
|
|
1158
1176
|
products: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1159
1177
|
accountId?: string | undefined;
|
|
1160
1178
|
active: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutSyncTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutSyncTestHelpers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAIvD,eAAO,MAAM,SAAS,EAIN,SAAS,CAAC;AAC1B,MAAM,MAAM,KAAK,GACf;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC;AAClE,KAAK,IAAI,GAAG,CACV,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE;IAAE,cAAc,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,KAC3C,OAAO,CAAC,OAAO,CAAC,CAAC;AACtB,wBAAsB,SAAS,kBAU9B;AACD,wBAAsB,KAAK,CACzB,KAAK,GAAE,KAAsD
|
|
1
|
+
{"version":3,"file":"payoutSyncTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutSyncTestHelpers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAIvD,eAAO,MAAM,SAAS,EAIN,SAAS,CAAC;AAC1B,MAAM,MAAM,KAAK,GACf;IAAE,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;;;kBAKxC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,QAAQ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkCzC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQtC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type Stripe from "stripe";
|
|
2
|
+
import type { Component, RunCtx } from "../helpers.js";
|
|
3
|
+
import { type RefundContextOptions, type RefundContext } from "./refundContextTypes.js";
|
|
4
|
+
/** Observes one authorized original payment; hosts still own community scope and creation-time revalidation. */
|
|
5
|
+
export declare function getRefundContext(stripe: Stripe, component: Component, ctx: RunCtx, input: RefundContextOptions): Promise<RefundContext>;
|
|
6
|
+
//# sourceMappingURL=refundContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refundContext.d.ts","sourceRoot":"","sources":["../../../src/client/connect/refundContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAUvD,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAEnB,MAAM,yBAAyB,CAAC;AAiCjC,gHAAgH;AAChH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,oBAAoB,GAC1B,OAAO,CAAC,aAAa,CAAC,CAoFxB"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { componentRef } from "../webhooks/helpers.js";
|
|
2
|
+
import { assertRefundAuthorized } from "./refunds.js";
|
|
3
|
+
import { readRefundPayment, readRefundCharge, refundObjectId, } from "./refundTarget.js";
|
|
4
|
+
import { readRefundHistory } from "./refundContextHistory.js";
|
|
5
|
+
import { refundContextOptionsSchema, } from "./refundContextTypes.js";
|
|
6
|
+
const unavailable = (reason) => ({ status: "unavailable", reason });
|
|
7
|
+
function amountsAgree(payment, charge) {
|
|
8
|
+
const amounts = [
|
|
9
|
+
payment.amount,
|
|
10
|
+
payment.amount_received,
|
|
11
|
+
charge.amount,
|
|
12
|
+
charge.amount_captured,
|
|
13
|
+
charge.amount_refunded,
|
|
14
|
+
];
|
|
15
|
+
return (amounts.every((n) => Number.isSafeInteger(n) && n >= 0) &&
|
|
16
|
+
charge.amount_captured === payment.amount_received &&
|
|
17
|
+
charge.amount_captured <= charge.amount &&
|
|
18
|
+
charge.amount_captured <= payment.amount &&
|
|
19
|
+
charge.amount_refunded <= charge.amount_captured);
|
|
20
|
+
}
|
|
21
|
+
function canonicalCustomer(value) {
|
|
22
|
+
if (value === null)
|
|
23
|
+
return true;
|
|
24
|
+
if (typeof value === "string")
|
|
25
|
+
return /^cus_[A-Za-z0-9_]+$/.test(value);
|
|
26
|
+
return Boolean(value &&
|
|
27
|
+
value.object === "customer" &&
|
|
28
|
+
typeof value.id === "string" &&
|
|
29
|
+
/^cus_[A-Za-z0-9_]+$/.test(value.id));
|
|
30
|
+
}
|
|
31
|
+
/** Observes one authorized original payment; hosts still own community scope and creation-time revalidation. */
|
|
32
|
+
export async function getRefundContext(stripe, component, ctx, input) {
|
|
33
|
+
const opts = refundContextOptionsSchema.parse(input);
|
|
34
|
+
const original = (await assertRefundAuthorized(stripe, component, ctx, opts)) ??
|
|
35
|
+
(await ctx.runQuery(componentRef(component, "connect/queries/getPaymentByStripeId"), { stripePaymentIntentId: opts.stripePaymentIntentId }));
|
|
36
|
+
if (!original)
|
|
37
|
+
return unavailable("payment_unavailable");
|
|
38
|
+
if (original.stripePaymentIntentId !== opts.stripePaymentIntentId)
|
|
39
|
+
return unavailable("payment_scope_mismatch");
|
|
40
|
+
const buyer = original.accountId;
|
|
41
|
+
if (!buyer || !/^acct_[A-Za-z0-9_]+$/.test(buyer))
|
|
42
|
+
return unavailable("buyer_unavailable");
|
|
43
|
+
const payment = await readRefundPayment(stripe, opts);
|
|
44
|
+
if (!payment ||
|
|
45
|
+
payment.object !== "payment_intent" ||
|
|
46
|
+
payment.id !== opts.stripePaymentIntentId)
|
|
47
|
+
return unavailable("payment_scope_mismatch");
|
|
48
|
+
if (!canonicalCustomer(payment.customer))
|
|
49
|
+
return unavailable("buyer_mismatch");
|
|
50
|
+
if (payment.customer_account !== buyer)
|
|
51
|
+
return unavailable("buyer_mismatch");
|
|
52
|
+
if (payment.status !== "succeeded")
|
|
53
|
+
return unavailable("payment_not_succeeded");
|
|
54
|
+
if (!/^[a-z]{3}$/.test(payment.currency) ||
|
|
55
|
+
payment.currency !== original.currency)
|
|
56
|
+
return unavailable("currency_mismatch");
|
|
57
|
+
const chargeId = refundObjectId(payment.latest_charge);
|
|
58
|
+
if (!chargeId || !/^ch_[A-Za-z0-9_]+$/.test(chargeId))
|
|
59
|
+
return unavailable("charge_unavailable");
|
|
60
|
+
const charge = await readRefundCharge(stripe, opts, payment);
|
|
61
|
+
if (!charge ||
|
|
62
|
+
charge.id !== chargeId ||
|
|
63
|
+
refundObjectId(charge.payment_intent) !== payment.id)
|
|
64
|
+
return unavailable("charge_scope_mismatch");
|
|
65
|
+
if (charge.object !== "charge" ||
|
|
66
|
+
charge.status !== "succeeded" ||
|
|
67
|
+
typeof charge.paid !== "boolean" ||
|
|
68
|
+
typeof charge.captured !== "boolean" ||
|
|
69
|
+
typeof charge.disputed !== "boolean" ||
|
|
70
|
+
typeof charge.refunded !== "boolean")
|
|
71
|
+
return unavailable("charge_scope_mismatch");
|
|
72
|
+
if (!canonicalCustomer(charge.customer))
|
|
73
|
+
return unavailable("buyer_mismatch");
|
|
74
|
+
if (refundObjectId(charge.customer) !== refundObjectId(payment.customer))
|
|
75
|
+
return unavailable("buyer_mismatch");
|
|
76
|
+
if (charge.currency !== payment.currency)
|
|
77
|
+
return unavailable("currency_mismatch");
|
|
78
|
+
if (!amountsAgree(payment, charge))
|
|
79
|
+
return unavailable("amount_unavailable");
|
|
80
|
+
if (!charge.paid || !charge.captured || charge.amount_captured === 0)
|
|
81
|
+
return unavailable("charge_not_captured");
|
|
82
|
+
if (charge.disputed)
|
|
83
|
+
return unavailable("charge_disputed");
|
|
84
|
+
const history = await readRefundHistory(stripe, {
|
|
85
|
+
paymentIntentId: payment.id,
|
|
86
|
+
chargeId: charge.id,
|
|
87
|
+
currency: payment.currency,
|
|
88
|
+
capturedAmount: charge.amount_captured,
|
|
89
|
+
maxRefundPages: opts.maxRefundPages,
|
|
90
|
+
stripeAccountId: opts.stripeAccountId,
|
|
91
|
+
});
|
|
92
|
+
if (history.status !== "complete")
|
|
93
|
+
return history;
|
|
94
|
+
if (history.refundedAmount !== charge.amount_refunded ||
|
|
95
|
+
charge.refunded !== (history.refundedAmount === charge.amount_captured))
|
|
96
|
+
return unavailable("refund_counter_mismatch");
|
|
97
|
+
return {
|
|
98
|
+
status: "ready",
|
|
99
|
+
stripePaymentIntentId: payment.id,
|
|
100
|
+
stripeChargeId: charge.id,
|
|
101
|
+
customerAccount: buyer,
|
|
102
|
+
currency: payment.currency,
|
|
103
|
+
capturedAmount: charge.amount_captured,
|
|
104
|
+
refundedAmount: history.refundedAmount,
|
|
105
|
+
remainingRefundableAmount: charge.amount_captured - history.refundedAmount,
|
|
106
|
+
observedAt: Date.now(),
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=refundContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refundContext.js","sourceRoot":"","sources":["../../../src/client/connect/refundContext.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BA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