@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.
- package/CHANGELOG.md +12 -0
- package/README.md +7 -2
- package/dist/{chunk-3FSLZROR.js → chunk-AGWRBLUO.js} +21 -6
- package/dist/{chunk-3FSLZROR.js.map → chunk-AGWRBLUO.js.map} +2 -2
- package/dist/{chunk-H6USVBBB.js → chunk-BW7LXOWN.js} +3 -3
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +5 -3
- package/dist/index.js +1 -1
- package/dist/server.d.ts +5 -3
- package/dist/server.js +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-H6USVBBB.js.map → chunk-BW7LXOWN.js.map} +0 -0
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
parseFaultHeader,
|
|
10
10
|
resolveAdminPrefix,
|
|
11
11
|
restoreClock
|
|
12
|
-
} from "./chunk-
|
|
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.
|
|
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-
|
|
5065
|
+
//# sourceMappingURL=chunk-BW7LXOWN.js.map
|
package/dist/cli.js
CHANGED
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
|
|
1580
|
-
*
|
|
1581
|
-
* `refund.
|
|
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
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
|
|
2294
|
-
*
|
|
2295
|
-
* `refund.
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crvouga/mockingbird-service-flex",
|
|
3
|
-
"version": "4.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",
|
|
File without changes
|