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

main
ts 22 lines 677 Bytes
Raw
1 import { GetTaxRegistration } from "@distilled.cloud/stripe/stripe";
2 import * as Layer from "effect/Layer";
3 import { RetrieveTaxRegistration } from "./RetrieveTaxRegistration.ts";
4 import { makeHttpStripeIdBinding } from "./StripeHttp.ts";
5
6 /**
7 * HTTP implementation of {@link RetrieveTaxRegistration}. Provide it on
8 * the Function or Worker Effect.
9 *
10 * @layer
11 * @product Tax
12 * @provides Stripe.RetrieveTaxRegistration
13 */
14 export const RetrieveTaxRegistrationHttp = Layer.effect(
15 RetrieveTaxRegistration,
16 makeHttpStripeIdBinding({
17 tag: "Stripe.RetrieveTaxRegistration",
18 operation: GetTaxRegistration,
19 idField: "id",
20 permissions: ["tax_read"],
21 }),
22 );