@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 21 lines 631 Bytes
Raw
1 import { CreateCustomer as createCustomerOp } from "@distilled.cloud/stripe/stripe";
2 import * as Layer from "effect/Layer";
3 import { CreateCustomer } from "./CreateCustomer.ts";
4 import { makeHttpStripeAccountBinding } from "./StripeHttp.ts";
5
6 /**
7 * HTTP implementation of {@link CreateCustomer}. Provide it on the
8 * Function or Worker Effect.
9 *
10 * @layer
11 * @product Customer
12 * @provides Stripe.CreateCustomer
13 */
14 export const CreateCustomerHttp = Layer.effect(
15 CreateCustomer,
16 makeHttpStripeAccountBinding({
17 tag: "Stripe.CreateCustomer",
18 operation: createCustomerOp,
19 permissions: ["customers_write"],
20 }),
21 );