MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / settleCheckout

Function settleCheckout

e2e/src/surfaces/autumn.ts:188–198  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

186 });
187
188 const settleCheckout = (sessionId: string) =>
189 Effect.gen(function* () {
190 const response = yield* Effect.promise(() =>
191 fetch(`${autumnUrl}/checkout/${encodeURIComponent(sessionId)}/settle`, { method: "POST" }),
192 );
193 if (!response.ok) {
194 return yield* Effect.fail(
195 `autumn checkout settle responded ${response.status}: ${yield* Effect.promise(() => response.text())}`,
196 );
197 }
198 });
199
200 const settleSetup = (sessionId: string) =>
201 Effect.gen(function* () {

Callers

nothing calls this directly

Calls 2

textMethod · 0.65
fetchFunction · 0.50

Tested by

no test coverage detected