@fantastic.dev/better-stripe 0.45.1 → 0.46.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.
Files changed (99) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/MIGRATION.md +6 -4
  3. package/README.md +8 -6
  4. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +46 -0
  5. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
  6. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +23 -0
  7. package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
  8. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +46 -0
  9. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
  10. package/dist/client/connect/payoutSyncTestHelpers.d.ts +23 -0
  11. package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
  12. package/dist/client/connect/refundSync.d.ts +32 -0
  13. package/dist/client/connect/refundSync.d.ts.map +1 -0
  14. package/dist/client/connect/refundSync.js +61 -0
  15. package/dist/client/connect/refundSync.js.map +1 -0
  16. package/dist/client/connect/refundSyncValidation.d.ts +16 -0
  17. package/dist/client/connect/refundSyncValidation.d.ts.map +1 -0
  18. package/dist/client/connect/refundSyncValidation.js +87 -0
  19. package/dist/client/connect/refundSyncValidation.js.map +1 -0
  20. package/dist/client/index.d.ts +30 -0
  21. package/dist/client/index.d.ts.map +1 -1
  22. package/dist/client/index.js +5 -0
  23. package/dist/client/index.js.map +1 -1
  24. package/dist/component/_generated/api.d.ts +12 -0
  25. package/dist/component/_generated/api.d.ts.map +1 -1
  26. package/dist/component/_generated/api.js.map +1 -1
  27. package/dist/component/_generated/component.d.ts +67 -0
  28. package/dist/component/_generated/component.d.ts.map +1 -1
  29. package/dist/component/connect/mutations.d.ts.map +1 -1
  30. package/dist/component/connect/mutations.js +2 -53
  31. package/dist/component/connect/mutations.js.map +1 -1
  32. package/dist/component/connect/refundWrites.d.ts +6 -0
  33. package/dist/component/connect/refundWrites.d.ts.map +1 -0
  34. package/dist/component/connect/refundWrites.js +56 -0
  35. package/dist/component/connect/refundWrites.js.map +1 -0
  36. package/dist/component/earnings/triggers.d.ts +46 -0
  37. package/dist/component/earnings/triggers.d.ts.map +1 -1
  38. package/dist/component/processingCostReconciliation/rollback.d.ts +1 -1
  39. package/dist/component/refundHistory/originalSeller.d.ts +1 -1
  40. package/dist/component/refundHistory/originalSeller.d.ts.map +1 -1
  41. package/dist/component/refundHistory/originalSeller.js.map +1 -1
  42. package/dist/component/refundSync/helpers.d.ts +43 -0
  43. package/dist/component/refundSync/helpers.d.ts.map +1 -0
  44. package/dist/component/refundSync/helpers.js +71 -0
  45. package/dist/component/refundSync/helpers.js.map +1 -0
  46. package/dist/component/refundSync/mutations.d.ts +56 -0
  47. package/dist/component/refundSync/mutations.d.ts.map +1 -0
  48. package/dist/component/refundSync/mutations.js +113 -0
  49. package/dist/component/refundSync/mutations.js.map +1 -0
  50. package/dist/component/refundSync/queries.d.ts +12 -0
  51. package/dist/component/refundSync/queries.d.ts.map +1 -0
  52. package/dist/component/refundSync/queries.js +10 -0
  53. package/dist/component/refundSync/queries.js.map +1 -0
  54. package/dist/component/refundSync/routing.d.ts +8 -0
  55. package/dist/component/refundSync/routing.d.ts.map +1 -0
  56. package/dist/component/refundSync/routing.js +42 -0
  57. package/dist/component/refundSync/routing.js.map +1 -0
  58. package/dist/component/refundSync/schema.d.ts +25 -0
  59. package/dist/component/refundSync/schema.d.ts.map +1 -0
  60. package/dist/component/refundSync/schema.js +15 -0
  61. package/dist/component/refundSync/schema.js.map +1 -0
  62. package/dist/component/refundSync/validators.d.ts +164 -0
  63. package/dist/component/refundSync/validators.d.ts.map +1 -0
  64. package/dist/component/refundSync/validators.js +32 -0
  65. package/dist/component/refundSync/validators.js.map +1 -0
  66. package/dist/component/schema.d.ts +23 -0
  67. package/dist/component/schema.js +2 -0
  68. package/dist/component/schema.js.map +1 -1
  69. package/docs/affiliate-clawbacks.md +3 -3
  70. package/docs/architecture/component-extraction.md +415 -0
  71. package/docs/architecture/durable-execution.md +200 -0
  72. package/docs/architecture/recovery-workflow.md +69 -0
  73. package/docs/balance-funding-state.md +114 -0
  74. package/docs/balance-funding-workflow.md +53 -0
  75. package/docs/example-balance-funding-cutover.md +94 -0
  76. package/docs/example-recovery-cutover.md +21 -0
  77. package/docs/processing-cost-reconciliation.md +23 -0
  78. package/docs/refund-context.md +54 -0
  79. package/docs/release-handoff.md +196 -0
  80. package/docs/releasing.md +41 -0
  81. package/package.json +12 -2
  82. package/src/client/connect/refundSync.test.ts +239 -0
  83. package/src/client/connect/refundSync.transport.test.ts +396 -0
  84. package/src/client/connect/refundSync.ts +125 -0
  85. package/src/client/connect/refundSyncValidation.ts +120 -0
  86. package/src/client/index.ts +19 -0
  87. package/src/component/_generated/api.ts +12 -0
  88. package/src/component/_generated/component.ts +100 -0
  89. package/src/component/connect/mutations.ts +2 -67
  90. package/src/component/connect/refundWrites.ts +76 -0
  91. package/src/component/refundHistory/originalSeller.ts +4 -1
  92. package/src/component/refundSync/helpers.ts +99 -0
  93. package/src/component/refundSync/mutations.ts +131 -0
  94. package/src/component/refundSync/queries.ts +10 -0
  95. package/src/component/refundSync/refund-sync.test.ts +255 -0
  96. package/src/component/refundSync/routing.ts +55 -0
  97. package/src/component/refundSync/schema.ts +19 -0
  98. package/src/component/refundSync/validators.ts +35 -0
  99. package/src/component/schema.ts +2 -0
package/CHANGELOG.md CHANGED
@@ -26,6 +26,33 @@
26
26
  - Remove internal tracker references from public documentation and add a
27
27
  regression check that prevents their reintroduction.
28
28
 
29
+ ## [0.46.0](https://github.com/FantasticDevHQ/better-stripe/compare/v0.45.2...v0.46.0) (2026-10-17)
30
+
31
+ ### Features
32
+
33
+ - qualify current refund observations by generation ([d9832dd](https://github.com/FantasticDevHQ/better-stripe/commit/d9832ddf101cbd19817c7e68bfabc04ff96baecd))
34
+
35
+ ### Bug Fixes
36
+
37
+ - reconcile current refund observations by generation ([67d6dfc](https://github.com/FantasticDevHQ/better-stripe/commit/67d6dfc4a25521174e64a1df7491dc64670d1e34))
38
+
39
+ ### Maintenance
40
+
41
+ - ratchet measured refund sync coverage floors ([8a8f702](https://github.com/FantasticDevHQ/better-stripe/commit/8a8f702649f19cb86ad3c73c0831c30c22371ee4))
42
+ - regenerate current refund sync references ([bc66934](https://github.com/FantasticDevHQ/better-stripe/commit/bc66934dbcb1f5da3670fb118a33a6389aadc47f))
43
+
44
+ ### Tests
45
+
46
+ - preserve atomic refund acceptance and routing checks ([2b8deb5](https://github.com/FantasticDevHQ/better-stripe/commit/2b8deb5336ad48997f68748a402bae101ea07bb2))
47
+ - verify current refund scope and observation recovery ([aeec291](https://github.com/FantasticDevHQ/better-stripe/commit/aeec291a9c8b5bd57629ff668d5bb5343aa0d32e))
48
+
49
+ ## [0.45.2](https://github.com/FantasticDevHQ/better-stripe/compare/v0.45.1...v0.45.2) (2026-10-17)
50
+
51
+ ### Bug Fixes
52
+
53
+ - ship complete migration guides and release handoff ([a619b66](https://github.com/FantasticDevHQ/better-stripe/commit/a619b66335d1898fadf6790bc8b878ad7324ce57))
54
+ - ship workflow migration guides and release handoff ([08c870c](https://github.com/FantasticDevHQ/better-stripe/commit/08c870cdcc8cb5e841b0ca522cd58ce8867a7270))
55
+
29
56
  ## [0.45.1](https://github.com/FantasticDevHQ/better-stripe/compare/v0.45.0...v0.45.1) (2026-10-17)
30
57
 
31
58
  ### Tests
package/MIGRATION.md CHANGED
@@ -1,4 +1,6 @@
1
- # Migrating to 0.5.0 and Stripe Endive
1
+ # Upgrading BetterStripe and Stripe Endive
2
+
3
+ This guide describes the current source API. Select a reviewed, published package version through the normal release process; a merged PR or local tarball is not proof of npm publication. See the [component migration and release handoff](docs/release-handoff.md) before switching existing financial workers.
2
4
 
3
5
  ## Combined payout eligibility preview
4
6
 
@@ -35,7 +37,7 @@ null after upgrading these readers. Component bindings must be regenerated and
35
37
  the component deployed; no table migration or schedule change is required.
36
38
  See [collection restart safeguards](docs/settlement.md#resumable-local-collections).
37
39
 
38
- Install `@fantastic.dev/better-stripe@0.5.0`. The old
40
+ Install the reviewed, published version of `@fantastic.dev/better-stripe`. The old
39
41
  `@getdojo/better-stripe` name is deprecated. Replace imports and the component
40
42
  config import with the new name, retaining your existing component instance
41
43
  name (for example `betterStripe`) so its stored data remains attached. Run
@@ -45,8 +47,8 @@ Node.js 20 or newer is required by stripe-node 23.
45
47
  The package depends on `stripe ~23.0.0`, whose supported API is exactly
46
48
  `2026-09-30.endive`. The typed `STRIPE_API_VERSION` constant in
47
49
  `src/client/constants.ts` pins app clients, component actions, and webhook
48
- resource refreshes. This SDK and pin were already present in the 0.4.0 checkout;
49
- 0.5.0 adds fulfillment retries and completes the V2/React compatibility fixes.
50
+ resource refreshes. This SDK and pin predate the durable workflow extraction. Review the chosen
51
+ release's changelog for its fulfillment retry and V2/React compatibility changes.
50
52
  Leave `stripeApiVersion` unset to use this pin. The legacy string override is
51
53
  retained for compatibility, but overriding it does not change the SDK's types
52
54
  or convert webhook payloads and can make requests inconsistent with them.
package/README.md CHANGED
@@ -4,6 +4,8 @@ A reusable [Convex component](https://docs.convex.dev/components) for the Stripe
4
4
 
5
5
  Built for Convex + Next.js applications. Follows the conventions established by [`@convex-dev/stripe`](https://github.com/get-convex/stripe) and [`@convex-dev/better-auth`](https://github.com/get-convex/better-auth).
6
6
 
7
+ For the component extraction upgrade, see the [migration and release handoff](docs/release-handoff.md), including nested runtime wiring, held operations and rollback boundaries.
8
+
7
9
  ## Accounts v2 customer preview
8
10
 
9
11
  Choose the setup that matches your Stripe account:
@@ -70,7 +72,7 @@ claim execution are completed.
70
72
 
71
73
  ## Status
72
74
 
73
- **Version**: `0.45.1` <!-- x-release-please-version --> (pre-1.0). API may change between minor versions until 1.0.
75
+ **Version**: `0.46.0` <!-- x-release-please-version --> (pre-1.0). API may change between minor versions until 1.0.
74
76
 
75
77
  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
78
 
@@ -98,7 +100,7 @@ The private `example` workspace isn't published.
98
100
  Install with `pnpm install` from the repository root, then run `pnpm build`
99
101
  and `pnpm dev` to start the example at http://localhost:5173. The example needs
100
102
  Node.js 22.12+ and a configured Convex development deployment; see
101
- [the example setup guide](example/README.md).
103
+ [the example setup guide](https://github.com/FantasticDevHQ/better-stripe/blob/main/example/README.md).
102
104
 
103
105
  The BetterStripe example separates visitor, customer, affiliate, seller, and
104
106
  platform-admin workflows. Fresh fictional Maya and Sasha stores explicitly
@@ -117,7 +119,7 @@ Hosted Checkout, Embedded Checkout, custom Checkout Sessions with Payment Elemen
117
119
  Payment Intents with Payment Element, and the preview Embedded Checkout Form,
118
120
  with pros and cons for each. `createCheckoutSession` accepts `uiMode` values
119
121
  `"redirect"`, `"embedded"`, `"custom"`, and `"form"`; the latter two map to Stripe's
120
- `elements` and preview `form` modes. See [the integration examples](example/README.md#compare-integration-styles).
122
+ `elements` and preview `form` modes. See [the integration examples](https://github.com/FantasticDevHQ/better-stripe/blob/main/example/README.md#compare-integration-styles).
121
123
 
122
124
  Admins can configure store-plan monthly prices and sale fees. Monthly price changes
123
125
  create new Stripe Prices; existing store subscriptions keep their current price.
@@ -126,7 +128,7 @@ optional price, product, store, plan, and platform defaults. Unconfigured payout
126
128
  are zero. Subscription commission terms are **Forever** or **One-time**, with
127
129
  Forever as the default. The example saves the selected term in Stripe subscription
128
130
  metadata and its Convex ledger, then applies it when paid invoices settle.
129
- See [affiliate configuration and testing](example/README.md#seller-product-and-subscription-affiliate-payouts).
131
+ See [affiliate configuration and testing](https://github.com/FantasticDevHQ/better-stripe/blob/main/example/README.md#seller-product-and-subscription-affiliate-payouts).
130
132
 
131
133
  The public React exports include `AffiliatePayoutEditor`, `PlanPricingEditor`,
132
134
  `Pagination`, and `useCursorPagination`. The example supplies styling through
@@ -355,7 +357,7 @@ presentation and confirmation, not financial authorization. Do not use closure
355
357
  as an automatic delete-and-recreate onboarding reset. Existing active-account
356
358
  getters keep their signatures and exclude completed closures; historical readers
357
359
  retain original financial references. The Vite reference's
358
- [closed-account authorization example](example/README.md#closed-account-history)
360
+ [closed-account authorization example](https://github.com/FantasticDevHQ/better-stripe/blob/main/example/README.md#closed-account-history)
359
361
  shows where the host's authenticated-actor check belongs.
360
362
 
361
363
  | Method | Description |
@@ -1717,7 +1719,7 @@ Error codes: `ACCOUNT_NOT_FOUND`, `ACCOUNT_CREATE_FAILED`, `PRODUCT_NOT_FOUND`,
1717
1719
  - [Convex Component Authoring](https://docs.convex.dev/components/authoring)
1718
1720
  - [Stripe Webhook Event Reference](https://docs.stripe.com/api/events/types)
1719
1721
  - [Stripe Testing Guide](https://docs.stripe.com/testing)
1720
- - [Example checkout tests](example/README.md#test-the-integration-examples), including successful payments, declines, insufficient funds, and 3D Secure
1722
+ - [Example checkout tests](https://github.com/FantasticDevHQ/better-stripe/blob/main/example/README.md#test-the-integration-examples), including successful payments, declines, insufficient funds, and 3D Secure
1721
1723
 
1722
1724
  ## License
1723
1725
 
@@ -9,6 +9,29 @@ export declare const scope: {
9
9
  };
10
10
  export declare function setup(amounts?: number[], currency?: string): Promise<{
11
11
  t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
12
+ refundSyncClaims: import("convex/server").TableDefinition<import("convex/values").VObject<{
13
+ acceptedAt?: number | undefined;
14
+ acceptedContext?: string | undefined;
15
+ acceptedFingerprint?: string | undefined;
16
+ acceptedGeneration?: number | undefined;
17
+ generation: number;
18
+ requestedContext: string;
19
+ startedAt: number;
20
+ status: "accepted" | "pending" | "unknown";
21
+ stripeRefundId: string;
22
+ }, {
23
+ stripeRefundId: import("convex/values").VString<string, "required">;
24
+ requestedContext: import("convex/values").VString<string, "required">;
25
+ generation: import("convex/values").VFloat64<number, "required">;
26
+ status: import("convex/values").VUnion<"accepted" | "pending" | "unknown", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"accepted", "required">, import("convex/values").VLiteral<"unknown", "required">], "required", never>;
27
+ startedAt: import("convex/values").VFloat64<number, "required">;
28
+ acceptedContext: import("convex/values").VString<string | undefined, "optional">;
29
+ acceptedGeneration: import("convex/values").VFloat64<number | undefined, "optional">;
30
+ acceptedAt: import("convex/values").VFloat64<number | undefined, "optional">;
31
+ acceptedFingerprint: import("convex/values").VString<string | undefined, "optional">;
32
+ }, "required", "acceptedAt" | "acceptedContext" | "acceptedFingerprint" | "acceptedGeneration" | "generation" | "requestedContext" | "startedAt" | "status" | "stripeRefundId">, {
33
+ by_stripe_refund_id: ["stripeRefundId", "_creationTime"];
34
+ }, {}, {}>;
12
35
  processingCostReconciliationOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
13
36
  accountId: string;
14
37
  claimKey: string;
@@ -3388,6 +3411,29 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
3388
3411
  }>;
3389
3412
  export declare function historical(currency?: string): Promise<{
3390
3413
  t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
3414
+ refundSyncClaims: import("convex/server").TableDefinition<import("convex/values").VObject<{
3415
+ acceptedAt?: number | undefined;
3416
+ acceptedContext?: string | undefined;
3417
+ acceptedFingerprint?: string | undefined;
3418
+ acceptedGeneration?: number | undefined;
3419
+ generation: number;
3420
+ requestedContext: string;
3421
+ startedAt: number;
3422
+ status: "accepted" | "pending" | "unknown";
3423
+ stripeRefundId: string;
3424
+ }, {
3425
+ stripeRefundId: import("convex/values").VString<string, "required">;
3426
+ requestedContext: import("convex/values").VString<string, "required">;
3427
+ generation: import("convex/values").VFloat64<number, "required">;
3428
+ status: import("convex/values").VUnion<"accepted" | "pending" | "unknown", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"accepted", "required">, import("convex/values").VLiteral<"unknown", "required">], "required", never>;
3429
+ startedAt: import("convex/values").VFloat64<number, "required">;
3430
+ acceptedContext: import("convex/values").VString<string | undefined, "optional">;
3431
+ acceptedGeneration: import("convex/values").VFloat64<number | undefined, "optional">;
3432
+ acceptedAt: import("convex/values").VFloat64<number | undefined, "optional">;
3433
+ acceptedFingerprint: import("convex/values").VString<string | undefined, "optional">;
3434
+ }, "required", "acceptedAt" | "acceptedContext" | "acceptedFingerprint" | "acceptedGeneration" | "generation" | "requestedContext" | "startedAt" | "status" | "stripeRefundId">, {
3435
+ by_stripe_refund_id: ["stripeRefundId", "_creationTime"];
3436
+ }, {}, {}>;
3391
3437
  processingCostReconciliationOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
3392
3438
  accountId: string;
3393
3439
  claimKey: string;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YArJ3C,oBAAoB;;;;;;;;;;;YAapB,QAAQ,6BAAmB,MAAM;;;;;;;;;YAYjC,aAAa;;;;;;YAGb,QAAQ,6BAAmB,MAAM;;;;;;;;;;;YAcjC,IAAI,iCAAuB;gBAAE,MAAM,CAAC,EAAE,MAAM,CAAC;gBAAC,KAAK,CAAC,EAAE,MAAM,CAAA;aAAE;;;;;;;;;;;;;;;;YAM9D,QAAQ,6BAAmB,MAAM;;;;;;;;;;;;;;;YAKjC,QAAQ;;;;;wBAQA,IAAI;;;;;;;YAUZ,IAAI;;;;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"}
@@ -10,6 +10,29 @@ export declare const scope: {
10
10
  };
11
11
  export declare function setup(amounts?: number[]): Promise<{
12
12
  t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
13
+ refundSyncClaims: import("convex/server").TableDefinition<import("convex/values").VObject<{
14
+ acceptedAt?: number | undefined;
15
+ acceptedContext?: string | undefined;
16
+ acceptedFingerprint?: string | undefined;
17
+ acceptedGeneration?: number | undefined;
18
+ generation: number;
19
+ requestedContext: string;
20
+ startedAt: number;
21
+ status: "accepted" | "pending" | "unknown";
22
+ stripeRefundId: string;
23
+ }, {
24
+ stripeRefundId: import("convex/values").VString<string, "required">;
25
+ requestedContext: import("convex/values").VString<string, "required">;
26
+ generation: import("convex/values").VFloat64<number, "required">;
27
+ status: import("convex/values").VUnion<"accepted" | "pending" | "unknown", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"accepted", "required">, import("convex/values").VLiteral<"unknown", "required">], "required", never>;
28
+ startedAt: import("convex/values").VFloat64<number, "required">;
29
+ acceptedContext: import("convex/values").VString<string | undefined, "optional">;
30
+ acceptedGeneration: import("convex/values").VFloat64<number | undefined, "optional">;
31
+ acceptedAt: import("convex/values").VFloat64<number | undefined, "optional">;
32
+ acceptedFingerprint: import("convex/values").VString<string | undefined, "optional">;
33
+ }, "required", "acceptedAt" | "acceptedContext" | "acceptedFingerprint" | "acceptedGeneration" | "generation" | "requestedContext" | "startedAt" | "status" | "stripeRefundId">, {
34
+ by_stripe_refund_id: ["stripeRefundId", "_creationTime"];
35
+ }, {}, {}>;
13
36
  processingCostReconciliationOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
14
37
  accountId: string;
15
38
  claimKey: string;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;YAGb,QAAQ,6BAAmB,MAAM;;;;;;;;;;;YAcjC,IAAI,iCACa;gBACb,MAAM,CAAC,EAAE,MAAM,CAAC;gBAChB,KAAK,CAAC,EAAE,MAAM,CAAC;gBACf,QAAQ,CAAC,EAAE,MAAM,CAAC;gBAClB,cAAc,CAAC,EAAE,MAAM,CAAC;aACzB;;;;;;;;;;;;;;;;YAaH,QAAQ,6BAAmB,MAAM;;;;;;;;;;;;;;;YAKjC,QAAQ,8BACI,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,WAAW,GAAG,SAAS,CAAC,CAAC;;;YAmBlE,IAAI;;;;YAIJ,QAAQ;YACR,MAAM,iCACW;gBACb,MAAM,EAAE,MAAM,CAAC;gBACf,QAAQ,EAAE,MAAM,CAAC;gBACjB,QAAQ,EAAE,MAAM,CAAC;aAClB;;;;gBAsCG,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsBrB"}
@@ -1,5 +1,28 @@
1
1
  export declare function large(count?: number, amount?: number): Promise<{
2
2
  t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
3
+ refundSyncClaims: import("convex/server").TableDefinition<import("convex/values").VObject<{
4
+ acceptedAt?: number | undefined;
5
+ acceptedContext?: string | undefined;
6
+ acceptedFingerprint?: string | undefined;
7
+ acceptedGeneration?: number | undefined;
8
+ generation: number;
9
+ requestedContext: string;
10
+ startedAt: number;
11
+ status: "accepted" | "pending" | "unknown";
12
+ stripeRefundId: string;
13
+ }, {
14
+ stripeRefundId: import("convex/values").VString<string, "required">;
15
+ requestedContext: import("convex/values").VString<string, "required">;
16
+ generation: import("convex/values").VFloat64<number, "required">;
17
+ status: import("convex/values").VUnion<"accepted" | "pending" | "unknown", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"accepted", "required">, import("convex/values").VLiteral<"unknown", "required">], "required", never>;
18
+ startedAt: import("convex/values").VFloat64<number, "required">;
19
+ acceptedContext: import("convex/values").VString<string | undefined, "optional">;
20
+ acceptedGeneration: import("convex/values").VFloat64<number | undefined, "optional">;
21
+ acceptedAt: import("convex/values").VFloat64<number | undefined, "optional">;
22
+ acceptedFingerprint: import("convex/values").VString<string | undefined, "optional">;
23
+ }, "required", "acceptedAt" | "acceptedContext" | "acceptedFingerprint" | "acceptedGeneration" | "generation" | "requestedContext" | "startedAt" | "status" | "stripeRefundId">, {
24
+ by_stripe_refund_id: ["stripeRefundId", "_creationTime"];
25
+ }, {}, {}>;
3
26
  processingCostReconciliationOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
4
27
  accountId: string;
5
28
  claimKey: string;
@@ -3380,6 +3403,29 @@ export declare function large(count?: number, amount?: number): Promise<{
3380
3403
  export declare function withHistory(count?: number, amount?: number): Promise<{
3381
3404
  s: {
3382
3405
  t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
3406
+ refundSyncClaims: import("convex/server").TableDefinition<import("convex/values").VObject<{
3407
+ acceptedAt?: number | undefined;
3408
+ acceptedContext?: string | undefined;
3409
+ acceptedFingerprint?: string | undefined;
3410
+ acceptedGeneration?: number | undefined;
3411
+ generation: number;
3412
+ requestedContext: string;
3413
+ startedAt: number;
3414
+ status: "accepted" | "pending" | "unknown";
3415
+ stripeRefundId: string;
3416
+ }, {
3417
+ stripeRefundId: import("convex/values").VString<string, "required">;
3418
+ requestedContext: import("convex/values").VString<string, "required">;
3419
+ generation: import("convex/values").VFloat64<number, "required">;
3420
+ status: import("convex/values").VUnion<"accepted" | "pending" | "unknown", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"accepted", "required">, import("convex/values").VLiteral<"unknown", "required">], "required", never>;
3421
+ startedAt: import("convex/values").VFloat64<number, "required">;
3422
+ acceptedContext: import("convex/values").VString<string | undefined, "optional">;
3423
+ acceptedGeneration: import("convex/values").VFloat64<number | undefined, "optional">;
3424
+ acceptedAt: import("convex/values").VFloat64<number | undefined, "optional">;
3425
+ acceptedFingerprint: import("convex/values").VString<string | undefined, "optional">;
3426
+ }, "required", "acceptedAt" | "acceptedContext" | "acceptedFingerprint" | "acceptedGeneration" | "generation" | "requestedContext" | "startedAt" | "status" | "stripeRefundId">, {
3427
+ by_stripe_refund_id: ["stripeRefundId", "_creationTime"];
3428
+ }, {}, {}>;
3383
3429
  processingCostReconciliationOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
3384
3430
  accountId: string;
3385
3431
  claimKey: string;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAgB,EAAE,MAAM,CAAC;gBAAC,MAAM,EAAE,MAAM,CAAA;aAAE,EAAE;;;GA2C9D"}
@@ -14,6 +14,29 @@ type Sync = (stripe: Stripe, component: Component, ctx: RunCtx, opts: {
14
14
  export declare function operation(): Promise<Sync>;
15
15
  export declare function setup(scope?: Scope): Promise<{
16
16
  t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
17
+ refundSyncClaims: import("convex/server").TableDefinition<import("convex/values").VObject<{
18
+ acceptedAt?: number | undefined;
19
+ acceptedContext?: string | undefined;
20
+ acceptedFingerprint?: string | undefined;
21
+ acceptedGeneration?: number | undefined;
22
+ generation: number;
23
+ requestedContext: string;
24
+ startedAt: number;
25
+ status: "accepted" | "pending" | "unknown";
26
+ stripeRefundId: string;
27
+ }, {
28
+ stripeRefundId: import("convex/values").VString<string, "required">;
29
+ requestedContext: import("convex/values").VString<string, "required">;
30
+ generation: import("convex/values").VFloat64<number, "required">;
31
+ status: import("convex/values").VUnion<"accepted" | "pending" | "unknown", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"accepted", "required">, import("convex/values").VLiteral<"unknown", "required">], "required", never>;
32
+ startedAt: import("convex/values").VFloat64<number, "required">;
33
+ acceptedContext: import("convex/values").VString<string | undefined, "optional">;
34
+ acceptedGeneration: import("convex/values").VFloat64<number | undefined, "optional">;
35
+ acceptedAt: import("convex/values").VFloat64<number | undefined, "optional">;
36
+ acceptedFingerprint: import("convex/values").VString<string | undefined, "optional">;
37
+ }, "required", "acceptedAt" | "acceptedContext" | "acceptedFingerprint" | "acceptedGeneration" | "generation" | "requestedContext" | "startedAt" | "status" | "stripeRefundId">, {
38
+ by_stripe_refund_id: ["stripeRefundId", "_creationTime"];
39
+ }, {}, {}>;
17
40
  processingCostReconciliationOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
18
41
  accountId: string;
19
42
  claimKey: string;
@@ -1 +1 @@
1
- {"version":3,"file":"payoutSyncTestHelpers.d.ts","sourceRoot":"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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAKxC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,QAAQ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkCzC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQtC"}
@@ -0,0 +1,32 @@
1
+ import type Stripe from "stripe";
2
+ import type { Infer } from "convex/values";
3
+ import type { Component, RunCtx } from "../helpers.js";
4
+ import type { result } from "../../component/refundSync/validators.js";
5
+ import { type RefundSyncScope } from "./refundSyncValidation.js";
6
+ export type RefundSyncOptions = {
7
+ stripeRefundId: string;
8
+ scope: RefundSyncScope;
9
+ };
10
+ export type RefundSyncResult = Infer<typeof result>;
11
+ export type PreparedRefundSync = Awaited<ReturnType<typeof prepareRefundSync>>;
12
+ /** Internal preparation for a future transactional host callback; no refund write yet. */
13
+ export declare function prepareRefundSync(stripe: Stripe, component: Component, ctx: RunCtx, opts: RefundSyncOptions): Promise<{
14
+ stripeRefundId: string;
15
+ apiContext: string;
16
+ generation: number;
17
+ refund: {
18
+ accountId?: string | undefined;
19
+ amount: number;
20
+ currency: string;
21
+ failureReason?: string | undefined;
22
+ metadata?: Record<string, string> | undefined;
23
+ reason?: "duplicate" | "expired_uncaptured_charge" | "fraudulent" | "requested_by_customer" | undefined;
24
+ status: "canceled" | "failed" | "pending" | "requires_action" | "succeeded";
25
+ stripeChargeId: string;
26
+ stripePaymentIntentId: string;
27
+ stripeRefundId: string;
28
+ };
29
+ }>;
30
+ /** Host-authorized provider read plus generation-qualified, atomic existing refund synchronization. */
31
+ export declare function syncRefundFromStripe(stripe: Stripe, component: Component, ctx: RunCtx, opts: RefundSyncOptions): Promise<RefundSyncResult>;
32
+ //# sourceMappingURL=refundSync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refundSync.d.ts","sourceRoot":"","sources":["../../../src/client/connect/refundSync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAIvD,OAAO,KAAK,EACV,MAAM,EAEP,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAIL,KAAK,eAAe,EACrB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,eAAe,CAAC;CACxB,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC;AACpD,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC;AAkB/E,0FAA0F;AAC1F,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,iBAAiB;;;;;;;;;;;;;;;;GAuDxB;AAED,uGAAuG;AACvG,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,iBAAiB,GACtB,OAAO,CAAC,gBAAgB,CAAC,CAgB3B"}
@@ -0,0 +1,61 @@
1
+ import { runMutationOrThrow } from "../helpers.js";
2
+ import { componentRef } from "../webhooks/helpers.js";
3
+ import { validateIdentity } from "../../component/refundSync/helpers.js";
4
+ import { refundApiContext, refundSnapshot, refundChargeMerchant, } from "./refundSyncValidation.js";
5
+ async function markUnknown(component, ctx, observation) {
6
+ await runMutationOrThrow(ctx, componentRef(component, "refundSync/mutations/markUnknown"), observation);
7
+ }
8
+ /** Internal preparation for a future transactional host callback; no refund write yet. */
9
+ export async function prepareRefundSync(stripe, component, ctx, opts) {
10
+ const identity = {
11
+ stripeRefundId: opts?.stripeRefundId,
12
+ apiContext: refundApiContext(opts?.scope),
13
+ };
14
+ validateIdentity(identity);
15
+ if (!ctx.runMutation || !ctx.runQuery)
16
+ throw new Error("Refund synchronization requires runMutation and runQuery.");
17
+ const generation = (await runMutationOrThrow(ctx, componentRef(component, "refundSync/mutations/begin"), identity));
18
+ try {
19
+ const request = identity.apiContext === "platform"
20
+ ? {}
21
+ : { stripeAccount: identity.apiContext };
22
+ const refund = refundSnapshot(await stripe.refunds.retrieve(identity.stripeRefundId, {}, request), identity.stripeRefundId);
23
+ const routing = (await ctx.runQuery(componentRef(component, "refundSync/queries/routing"), {
24
+ stripeRefundId: refund.stripeRefundId,
25
+ stripePaymentIntentId: refund.stripePaymentIntentId,
26
+ stripeChargeId: refund.stripeChargeId,
27
+ currency: refund.currency,
28
+ }));
29
+ if (routing.status === "held")
30
+ throw new Error("Original refund merchant proof is ambiguous or contradictory.");
31
+ const accountId = routing.merchantAccount ??
32
+ (routing.requiresChargeProof
33
+ ? refundChargeMerchant(await stripe.charges.retrieve(refund.stripeChargeId, {}, request), refund)
34
+ : undefined);
35
+ return {
36
+ ...identity,
37
+ generation,
38
+ refund: { ...refund, ...(accountId === undefined ? {} : { accountId }) },
39
+ };
40
+ }
41
+ catch (error) {
42
+ await markUnknown(component, ctx, { ...identity, generation });
43
+ throw error;
44
+ }
45
+ }
46
+ /** Host-authorized provider read plus generation-qualified, atomic existing refund synchronization. */
47
+ export async function syncRefundFromStripe(stripe, component, ctx, opts) {
48
+ const observation = await prepareRefundSync(stripe, component, ctx, opts);
49
+ try {
50
+ return (await runMutationOrThrow(ctx, componentRef(component, "refundSync/mutations/finish"), observation));
51
+ }
52
+ catch (error) {
53
+ await markUnknown(component, ctx, {
54
+ stripeRefundId: observation.stripeRefundId,
55
+ apiContext: observation.apiContext,
56
+ generation: observation.generation,
57
+ });
58
+ throw error;
59
+ }
60
+ }
61
+ //# sourceMappingURL=refundSync.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refundSync.js","sourceRoot":"","sources":["../../../src/client/connect/refundSync.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAKzE,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,oBAAoB,GAErB,MAAM,2BAA2B,CAAC;AASnC,KAAK,UAAU,WAAW,CACxB,SAAoB,EACpB,GAAW,EACX,WAIC;IAED,MAAM,kBAAkB,CACtB,GAAG,EACH,YAAY,CAAC,SAAS,EAAE,kCAAkC,CAAC,EAC3D,WAAW,CACZ,CAAC;AACJ,CAAC;AAED,0FAA0F;AAC1F,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,MAAc,EACd,SAAoB,EACpB,GAAW,EACX,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CAClB,MAAM,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,cAAc,EAAE,EAAE,EAAE,OAAO,CAAC,EACjE,MAAM,CACP;gBACH,CAAC,CAAC,SAAS,CAAC,CAAC;QACjB,OAAO;YACL,GAAG,QAAQ;YACX,UAAU;YACV,MAAM,EAAE,EAAE,GAAG,MAAM,EAAE,GAAG,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE;SACzE,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,WAAW,CAAC,SAAS,EAAE,GAAG,EAAE,EAAE,GAAG,QAAQ,EAAE,UAAU,EAAE,CAAC,CAAC;QAC/D,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AAED,uGAAuG;AACvG,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,MAAc,EACd,SAAoB,EACpB,GAAW,EACX,IAAuB;IAEvB,MAAM,WAAW,GAAG,MAAM,iBAAiB,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;IAC1E,IAAI,CAAC;QACH,OAAO,CAAC,MAAM,kBAAkB,CAC9B,GAAG,EACH,YAAY,CAAC,SAAS,EAAE,6BAA6B,CAAC,EACtD,WAAW,CACZ,CAAqB,CAAC;IACzB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,WAAW,CAAC,SAAS,EAAE,GAAG,EAAE;YAChC,cAAc,EAAE,WAAW,CAAC,cAAc;YAC1C,UAAU,EAAE,WAAW,CAAC,UAAU;YAClC,UAAU,EAAE,WAAW,CAAC,UAAU;SACnC,CAAC,CAAC;QACH,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type Stripe from "stripe";
2
+ import type { Infer } from "convex/values";
3
+ import type { snapshot } from "../../component/refundSync/validators.js";
4
+ export type RefundSyncScope = {
5
+ type: "platform";
6
+ } | {
7
+ type: "connected";
8
+ accountId: string;
9
+ };
10
+ /** The host authorizes this API namespace; metadata never selects it. */
11
+ export declare function refundApiContext(scope: RefundSyncScope): string;
12
+ /** A current provider observation can legitimately move back to requires_action. */
13
+ export declare function refundSnapshot(r: Stripe.Refund, stripeRefundId: string): Infer<typeof snapshot>;
14
+ /** The charge's original destination is independent of the caller's API namespace. */
15
+ export declare function refundChargeMerchant(charge: Stripe.Charge, row: Infer<typeof snapshot>): string;
16
+ //# sourceMappingURL=refundSyncValidation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refundSyncValidation.d.ts","sourceRoot":"","sources":["../../../src/client/connect/refundSyncValidation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AAGzE,MAAM,MAAM,eAAe,GACzB;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAElE,yEAAyE;AACzE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,eAAe,UAWtD;AA+BD,oFAAoF;AACpF,wBAAgB,cAAc,CAC5B,CAAC,EAAE,MAAM,CAAC,MAAM,EAChB,cAAc,EAAE,MAAM,GACrB,KAAK,CAAC,OAAO,QAAQ,CAAC,CAiCxB;AAED,sFAAsF;AACtF,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,CAAC,MAAM,EACrB,GAAG,EAAE,KAAK,CAAC,OAAO,QAAQ,CAAC,UA0B5B"}