@crvouga/mockingbird-service-flex 4.0.0 → 4.0.2

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.
@@ -9,7 +9,7 @@ import {
9
9
  parseFaultHeader,
10
10
  resolveAdminPrefix,
11
11
  restoreClock
12
- } from "./chunk-3FSLZROR.js";
12
+ } from "./chunk-AGWRBLUO.js";
13
13
 
14
14
  // ../../adapters/node/dist/cli.js
15
15
  import { readFile as readFile5 } from "node:fs/promises";
@@ -3057,7 +3057,7 @@ async function preflightFleet(config, options) {
3057
3057
  break;
3058
3058
  }
3059
3059
  }
3060
- targets.set(name, { ...target, packageVersion: packageVersion ?? "4.0.0" });
3060
+ targets.set(name, { ...target, packageVersion: packageVersion ?? "4.0.2" });
3061
3061
  } catch (error) {
3062
3062
  throw new Error(`service ${name}: ${error instanceof Error ? error.message : String(error)}`, { cause: error });
3063
3063
  }
@@ -5062,4 +5062,4 @@ export {
5062
5062
  createServer2 as createServer,
5063
5063
  serveTarget
5064
5064
  };
5065
- //# sourceMappingURL=chunk-H6USVBBB.js.map
5065
+ //# sourceMappingURL=chunk-BW7LXOWN.js.map
package/dist/cli.js CHANGED
@@ -3,8 +3,8 @@ import {
3
3
  runCli,
4
4
  serveCommand,
5
5
  serveTarget
6
- } from "./chunk-H6USVBBB.js";
7
- import "./chunk-3FSLZROR.js";
6
+ } from "./chunk-BW7LXOWN.js";
7
+ import "./chunk-AGWRBLUO.js";
8
8
 
9
9
  // src/cli.ts
10
10
  var code = await runCli(
package/dist/index.d.ts CHANGED
@@ -1576,9 +1576,11 @@ declare class FlexAPI implements FetchAPI$1 {
1576
1576
  private listSessions;
1577
1577
  private refund;
1578
1578
  /**
1579
- * Refund part or all of a paid session, emitting the refund events in the order Flex sends
1580
- * them for a dashboard refund: `refund.created` twice, `charge.refunded`, then
1581
- * `refund.updated` and `charge.refund.updated`.
1579
+ * Refund part or all of a paid session, emitting the refund events Flex sends:
1580
+ * `checkout.session.refunded` (seen in test mode, carrying the session and its refunds),
1581
+ * then, in the order production delivers a dashboard refund, `refund.created` twice,
1582
+ * `charge.refunded`, `refund.updated` and `charge.refund.updated`. An endpoint receives only
1583
+ * the types it subscribes to.
1582
1584
  */
1583
1585
  applyRefund(id: string, amount: number): SessionRecord | undefined;
1584
1586
  /** Refund a paid session from Flex's dashboard (`POST /__admin/sessions/:id/refund`). */
package/dist/index.js CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  periodEnd,
22
22
  substituteSessionId,
23
23
  supportedOperationIds
24
- } from "./chunk-3FSLZROR.js";
24
+ } from "./chunk-AGWRBLUO.js";
25
25
  export {
26
26
  CARDS,
27
27
  CORPUS_ROWS,
package/dist/server.d.ts CHANGED
@@ -2290,9 +2290,11 @@ declare class FlexAPI implements FetchAPI {
2290
2290
  private listSessions;
2291
2291
  private refund;
2292
2292
  /**
2293
- * Refund part or all of a paid session, emitting the refund events in the order Flex sends
2294
- * them for a dashboard refund: `refund.created` twice, `charge.refunded`, then
2295
- * `refund.updated` and `charge.refund.updated`.
2293
+ * Refund part or all of a paid session, emitting the refund events Flex sends:
2294
+ * `checkout.session.refunded` (seen in test mode, carrying the session and its refunds),
2295
+ * then, in the order production delivers a dashboard refund, `refund.created` twice,
2296
+ * `charge.refunded`, `refund.updated` and `charge.refund.updated`. An endpoint receives only
2297
+ * the types it subscribes to.
2296
2298
  */
2297
2299
  applyRefund(id: string, amount: number): SessionRecord | undefined;
2298
2300
  /** Refund a paid session from Flex's dashboard (`POST /__admin/sessions/:id/refund`). */
package/dist/server.js CHANGED
@@ -2,8 +2,8 @@ import {
2
2
  DEFAULT_PORT,
3
3
  createServer,
4
4
  serveTarget
5
- } from "./chunk-H6USVBBB.js";
6
- import "./chunk-3FSLZROR.js";
5
+ } from "./chunk-BW7LXOWN.js";
6
+ import "./chunk-AGWRBLUO.js";
7
7
  export {
8
8
  DEFAULT_PORT,
9
9
  createServer,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crvouga/mockingbird-service-flex",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "Stateful emulator of the Flex HSA/FSA payments API: products (recorded catalog corpus), checkout sessions in payment, subscription, off-session and setup modes, subscriptions, customers, setup intents, refunds, the hosted checkout page, and Svix-signed webhooks.",
5
5
  "license": "MIT",
6
6
  "type": "module",