@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, 04:45 UTC

main
ts 47 lines 1.33 KB
Raw
1 import type {
2 IssuingCardholder as StripeIssuingCardholder,
3 CreateIssuingCardholderError,
4 CreateIssuingCardholderRequest,
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
10 /**
11 * Create a Stripe Issuing Cardholder over HTTP. Account-scoped — binds
12 * the API key onto the host, not a specific cardholder resource.
13 *
14 * ### Creating a Cardholder at runtime
15 * **Example:** Bind and create
16 * ```typescript
17 * const create = yield* Stripe.CreateIssuingCardholder();
18 * const cardholder = yield* create({
19 * name: "Alice Example",
20 * billing: {
21 * address: {
22 * line1: "123 Main Street",
23 * city: "San Francisco",
24 * state: "CA",
25 * postal_code: "94111",
26 * country: "US",
27 * },
28 * },
29 * });
30 * ```
31 *
32 * @binding
33 * @product Issuing
34 */
35 export interface CreateIssuingCardholder extends Binding.Service<
36 CreateIssuingCardholder,
37 "Stripe.CreateIssuingCardholder",
38 () => Effect.Effect<
39 (
40 request: CreateIssuingCardholderRequest,
41 ) => Effect.Effect<StripeIssuingCardholder, CreateIssuingCardholderError, RuntimeContext>
42 >
43 > {}
44
45 export const CreateIssuingCardholder = Binding.Service<CreateIssuingCardholder>(
46 "Stripe.CreateIssuingCardholder",
47 );