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

main
ts 38 lines 1.07 KB
Raw
1 import type {
2 IssuingCard as StripeIssuingCard,
3 CreateIssuingCardError,
4 CreateIssuingCardRequest,
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 Card over HTTP. Account-scoped — binds the API
12 * key onto the host, not a specific card resource.
13 *
14 * ### Creating a Card at runtime
15 * **Example:** Bind and create
16 * ```typescript
17 * const create = yield* Stripe.CreateIssuingCard();
18 * const card = yield* create({
19 * cardholder: cardholder.id,
20 * currency: "usd",
21 * type: "virtual",
22 * });
23 * ```
24 *
25 * @binding
26 * @product Issuing
27 */
28 export interface CreateIssuingCard extends Binding.Service<
29 CreateIssuingCard,
30 "Stripe.CreateIssuingCard",
31 () => Effect.Effect<
32 (
33 request: CreateIssuingCardRequest,
34 ) => Effect.Effect<StripeIssuingCard, CreateIssuingCardError, RuntimeContext>
35 >
36 > {}
37
38 export const CreateIssuingCard = Binding.Service<CreateIssuingCard>("Stripe.CreateIssuingCard");