@fantastic.dev/better-stripe 0.45.2 → 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 (87) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +1 -1
  3. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +46 -0
  4. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
  5. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +23 -0
  6. package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
  7. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +46 -0
  8. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
  9. package/dist/client/connect/payoutSyncTestHelpers.d.ts +23 -0
  10. package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
  11. package/dist/client/connect/refundSync.d.ts +32 -0
  12. package/dist/client/connect/refundSync.d.ts.map +1 -0
  13. package/dist/client/connect/refundSync.js +61 -0
  14. package/dist/client/connect/refundSync.js.map +1 -0
  15. package/dist/client/connect/refundSyncValidation.d.ts +16 -0
  16. package/dist/client/connect/refundSyncValidation.d.ts.map +1 -0
  17. package/dist/client/connect/refundSyncValidation.js +87 -0
  18. package/dist/client/connect/refundSyncValidation.js.map +1 -0
  19. package/dist/client/index.d.ts +30 -0
  20. package/dist/client/index.d.ts.map +1 -1
  21. package/dist/client/index.js +5 -0
  22. package/dist/client/index.js.map +1 -1
  23. package/dist/component/_generated/api.d.ts +12 -0
  24. package/dist/component/_generated/api.d.ts.map +1 -1
  25. package/dist/component/_generated/api.js.map +1 -1
  26. package/dist/component/_generated/component.d.ts +67 -0
  27. package/dist/component/_generated/component.d.ts.map +1 -1
  28. package/dist/component/connect/mutations.d.ts.map +1 -1
  29. package/dist/component/connect/mutations.js +2 -53
  30. package/dist/component/connect/mutations.js.map +1 -1
  31. package/dist/component/connect/refundWrites.d.ts +6 -0
  32. package/dist/component/connect/refundWrites.d.ts.map +1 -0
  33. package/dist/component/connect/refundWrites.js +56 -0
  34. package/dist/component/connect/refundWrites.js.map +1 -0
  35. package/dist/component/earnings/triggers.d.ts +46 -0
  36. package/dist/component/earnings/triggers.d.ts.map +1 -1
  37. package/dist/component/processingCostReconciliation/rollback.d.ts +1 -1
  38. package/dist/component/refundHistory/originalSeller.d.ts +1 -1
  39. package/dist/component/refundHistory/originalSeller.d.ts.map +1 -1
  40. package/dist/component/refundHistory/originalSeller.js.map +1 -1
  41. package/dist/component/refundSync/helpers.d.ts +43 -0
  42. package/dist/component/refundSync/helpers.d.ts.map +1 -0
  43. package/dist/component/refundSync/helpers.js +71 -0
  44. package/dist/component/refundSync/helpers.js.map +1 -0
  45. package/dist/component/refundSync/mutations.d.ts +56 -0
  46. package/dist/component/refundSync/mutations.d.ts.map +1 -0
  47. package/dist/component/refundSync/mutations.js +113 -0
  48. package/dist/component/refundSync/mutations.js.map +1 -0
  49. package/dist/component/refundSync/queries.d.ts +12 -0
  50. package/dist/component/refundSync/queries.d.ts.map +1 -0
  51. package/dist/component/refundSync/queries.js +10 -0
  52. package/dist/component/refundSync/queries.js.map +1 -0
  53. package/dist/component/refundSync/routing.d.ts +8 -0
  54. package/dist/component/refundSync/routing.d.ts.map +1 -0
  55. package/dist/component/refundSync/routing.js +42 -0
  56. package/dist/component/refundSync/routing.js.map +1 -0
  57. package/dist/component/refundSync/schema.d.ts +25 -0
  58. package/dist/component/refundSync/schema.d.ts.map +1 -0
  59. package/dist/component/refundSync/schema.js +15 -0
  60. package/dist/component/refundSync/schema.js.map +1 -0
  61. package/dist/component/refundSync/validators.d.ts +164 -0
  62. package/dist/component/refundSync/validators.d.ts.map +1 -0
  63. package/dist/component/refundSync/validators.js +32 -0
  64. package/dist/component/refundSync/validators.js.map +1 -0
  65. package/dist/component/schema.d.ts +23 -0
  66. package/dist/component/schema.js +2 -0
  67. package/dist/component/schema.js.map +1 -1
  68. package/docs/refund-context.md +54 -0
  69. package/package.json +1 -1
  70. package/src/client/connect/refundSync.test.ts +239 -0
  71. package/src/client/connect/refundSync.transport.test.ts +396 -0
  72. package/src/client/connect/refundSync.ts +125 -0
  73. package/src/client/connect/refundSyncValidation.ts +120 -0
  74. package/src/client/index.ts +19 -0
  75. package/src/component/_generated/api.ts +12 -0
  76. package/src/component/_generated/component.ts +100 -0
  77. package/src/component/connect/mutations.ts +2 -67
  78. package/src/component/connect/refundWrites.ts +76 -0
  79. package/src/component/refundHistory/originalSeller.ts +4 -1
  80. package/src/component/refundSync/helpers.ts +99 -0
  81. package/src/component/refundSync/mutations.ts +131 -0
  82. package/src/component/refundSync/queries.ts +10 -0
  83. package/src/component/refundSync/refund-sync.test.ts +255 -0
  84. package/src/component/refundSync/routing.ts +55 -0
  85. package/src/component/refundSync/schema.ts +19 -0
  86. package/src/component/refundSync/validators.ts +35 -0
  87. package/src/component/schema.ts +2 -0
package/CHANGELOG.md CHANGED
@@ -26,6 +26,26 @@
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
+
29
49
  ## [0.45.2](https://github.com/FantasticDevHQ/better-stripe/compare/v0.45.1...v0.45.2) (2026-10-17)
30
50
 
31
51
  ### Bug Fixes
package/README.md CHANGED
@@ -72,7 +72,7 @@ claim execution are completed.
72
72
 
73
73
  ## Status
74
74
 
75
- **Version**: `0.45.2` <!-- 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.
76
76
 
77
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.
78
78
 
@@ -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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;;;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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M,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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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":"","sources":["../../../src/client/connect/payoutSyncTestHelpers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC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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,IAAuB;IAEvB,MAAM,QAAQ,GAAG;QACf,cAAc,EAAE,IAAI,EAAE,cAAc;QACpC,UAAU,EAAE,gBAAgB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AC,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"}
@@ -0,0 +1,87 @@
1
+ import { validateSnapshot } from "../../component/refundSync/helpers.js";
2
+ /** The host authorizes this API namespace; metadata never selects it. */
3
+ export function refundApiContext(scope) {
4
+ if (scope?.type === "platform" && Object.keys(scope).length === 1)
5
+ return "platform";
6
+ if (scope?.type === "connected" &&
7
+ Object.keys(scope).length === 2 &&
8
+ typeof scope.accountId === "string" &&
9
+ /^acct_[A-Za-z0-9_]{1,250}$/.test(scope.accountId))
10
+ return scope.accountId;
11
+ throw new Error("Refund synchronization scope must be explicit.");
12
+ }
13
+ function originalId(value, kind) {
14
+ if (typeof value === "string")
15
+ return value;
16
+ if (value && value.object === kind && typeof value.id === "string")
17
+ return value.id;
18
+ throw new Error("Provider refund original payment identity is unavailable.");
19
+ }
20
+ function refundReason(value) {
21
+ switch (value) {
22
+ case null:
23
+ return undefined;
24
+ case "duplicate":
25
+ return "duplicate";
26
+ case "fraudulent":
27
+ return "fraudulent";
28
+ case "requested_by_customer":
29
+ return "requested_by_customer";
30
+ case "expired_uncaptured_charge":
31
+ return "expired_uncaptured_charge";
32
+ default:
33
+ throw new Error("Provider refund reason is invalid.");
34
+ }
35
+ }
36
+ /** A current provider observation can legitimately move back to requires_action. */
37
+ export function refundSnapshot(r, stripeRefundId) {
38
+ if (!r || r.object !== "refund" || r.id !== stripeRefundId)
39
+ throw new Error("Provider refund identity does not match.");
40
+ if (!["pending", "requires_action", "succeeded", "failed", "canceled"].includes(r.status ?? ""))
41
+ throw new Error("Provider refund status is unavailable.");
42
+ const reason = refundReason(r.reason);
43
+ if (r.failure_reason != null && typeof r.failure_reason !== "string")
44
+ throw new Error("Provider refund failure detail is invalid.");
45
+ const metadata = r.metadata === null ? {} : r.metadata;
46
+ if (!metadata ||
47
+ typeof metadata !== "object" ||
48
+ Array.isArray(metadata) ||
49
+ Object.values(metadata).some((value) => typeof value !== "string"))
50
+ throw new Error("Provider refund metadata is invalid.");
51
+ const row = {
52
+ stripeRefundId: r.id,
53
+ stripePaymentIntentId: originalId(r.payment_intent, "payment_intent"),
54
+ stripeChargeId: originalId(r.charge, "charge"),
55
+ amount: r.amount,
56
+ currency: r.currency,
57
+ status: r.status,
58
+ ...(reason === undefined ? {} : { reason }),
59
+ ...(r.failure_reason == null ? {} : { failureReason: r.failure_reason }),
60
+ metadata,
61
+ };
62
+ validateSnapshot(row);
63
+ return row;
64
+ }
65
+ /** The charge's original destination is independent of the caller's API namespace. */
66
+ export function refundChargeMerchant(charge, row) {
67
+ if (!charge ||
68
+ charge.object !== "charge" ||
69
+ charge.id !== row.stripeChargeId ||
70
+ originalId(charge.payment_intent, "payment_intent") !==
71
+ row.stripePaymentIntentId ||
72
+ charge.currency !== row.currency ||
73
+ !Number.isSafeInteger(charge.amount) ||
74
+ charge.amount < row.amount)
75
+ throw new Error("Original refund charge proof does not match.");
76
+ const destination = charge.transfer_data?.destination;
77
+ const account = typeof destination === "string"
78
+ ? destination
79
+ : destination?.object === "account"
80
+ ? destination.id
81
+ : undefined;
82
+ if (typeof account !== "string" ||
83
+ !/^acct_[A-Za-z0-9_]{1,250}$/.test(account))
84
+ throw new Error("Original refund merchant cannot be qualified.");
85
+ return account;
86
+ }
87
+ //# sourceMappingURL=refundSyncValidation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refundSyncValidation.js","sourceRoot":"","sources":["../../../src/client/connect/refundSyncValidation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAKzE,yEAAyE;AACzE,MAAM,UAAU,gBAAgB,CAAC,KAAsB;IACrD,IAAI,KAAK,EAAE,IAAI,KAAK,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC;QAC/D,OAAO,UAAU,CAAC;IACpB,IACE,KAAK,EAAE,IAAI,KAAK,WAAW;QAC3B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC;QAC/B,OAAO,KAAK,CAAC,SAAS,KAAK,QAAQ;QACnC,4BAA4B,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;QAElD,OAAO,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;AACpE,CAAC;AAED,SAAS,UAAU,CACjB,KAAqD,E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;QAChC,UAAU,CAAC,MAAM,CAAC,cAAc,EAAE,gBAAgB,CAAC;YACjD,GAAG,CAAC,qBAAqB;QAC3B,MAAM,CAAC,QAAQ,KAAK,GAAG,CAAC,QAAQ;QAChC,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM;QAE1B,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;IAClE,MAAM,WAAW,GAAG,MAAM,CAAC,aAAa,EAAE,WAAW,CAAC;IACtD,MAAM,OAAO,GACX,OAAO,WAAW,KAAK,QAAQ;QAC7B,CAAC,CAAC,WAAW;QACb,CAAC,CAAC,WAAW,EAAE,MAAM,KAAK,SAAS;YACjC,CAAC,CAAC,WAAW,CAAC,EAAE;YAChB,CAAC,CAAC,SAAS,CAAC;IAClB,IACE,OAAO,OAAO,KAAK,QAAQ;QAC3B,CAAC,4BAA4B,CAAC,IAAI,CAAC,OAAO,CAAC;QAE3C,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;IACnE,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -1,3 +1,6 @@
1
+ import * as refundSyncImpl from "./connect/refundSync.js";
2
+ export type { RefundSyncOptions, RefundSyncResult, } from "./connect/refundSync.js";
3
+ export type { RefundSyncScope } from "./connect/refundSyncValidation.js";
1
4
  export type * from "./publicTypes.js";
2
5
  export * from "./financialOutcomes/index.js";
3
6
  export * from "./processingCostDeficit/index.js";
@@ -646,6 +649,33 @@ export declare class BetterStripe extends PaymentSourceClient {
646
649
  generation: number;
647
650
  status: "superseded";
648
651
  }>;
652
+ /** Host must authorize the explicit API scope; this never creates a refund. */
653
+ syncRefundFromStripe(ctx: RunCtx, opts: refundSyncImpl.RefundSyncOptions): Promise<{
654
+ changed: boolean;
655
+ generation: number;
656
+ refund: {
657
+ _creationTime: number;
658
+ _id: import("convex/values").GenericId<"refunds">;
659
+ accountId?: string | undefined;
660
+ amount: number;
661
+ currency: string;
662
+ failureReason?: string | undefined;
663
+ metadata?: any;
664
+ reason?: "duplicate" | "expired_uncaptured_charge" | "fraudulent" | "requested_by_customer" | undefined;
665
+ refundCommandConflict?: boolean | undefined;
666
+ refundCommandKey?: string | undefined;
667
+ refundCommandNormalizationVersion?: 1 | undefined;
668
+ refundCommandObservedAt?: number | undefined;
669
+ status: "canceled" | "failed" | "pending" | "requires_action" | "succeeded";
670
+ stripeChargeId?: string | undefined;
671
+ stripePaymentIntentId?: string | undefined;
672
+ stripeRefundId: string;
673
+ };
674
+ status: "accepted";
675
+ } | {
676
+ generation: number;
677
+ status: "superseded";
678
+ }>;
649
679
  /**
650
680
  * Issue a refund (BTS-34). `refundApplicationFee` and `reverseTransfer`
651
681
  * default true: the platform fee is returned and the destination transfer