@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 43 lines 1.14 KB
Raw
1 import type {
2 GetAccountPersonError,
3 GetAccountPersonRequest,
4 Person as StripePerson,
5 } from "@distilled.cloud/stripe/stripe";
6 import * as Binding from "alchemy/Binding";
7 import type { RuntimeContext } from "alchemy/RuntimeContext";
8 import type * as Effect from "effect/Effect";
9 import type { AccountPerson } from "./AccountPerson.ts";
10
11 export interface RetrieveAccountPersonRequest extends Omit<
12 GetAccountPersonRequest,
13 "account" | "person"
14 > {}
15
16 /**
17 * Retrieve a bound Stripe Account Person over HTTP.
18 *
19 * ### Reading a Person
20 * **Example:** Bind and retrieve
21 * ```typescript
22 * const retrieve = yield* Stripe.RetrieveAccountPerson(cfo);
23 * const live = yield* retrieve();
24 * ```
25 *
26 * @binding
27 * @product Account
28 */
29 export interface RetrieveAccountPerson extends Binding.Service<
30 RetrieveAccountPerson,
31 "Stripe.RetrieveAccountPerson",
32 (
33 person: AccountPerson,
34 ) => Effect.Effect<
35 (
36 request?: RetrieveAccountPersonRequest,
37 ) => Effect.Effect<StripePerson, GetAccountPersonError, RuntimeContext>
38 >
39 > {}
40
41 export const RetrieveAccountPerson = Binding.Service<RetrieveAccountPerson>(
42 "Stripe.RetrieveAccountPerson",
43 );