1import { GetTaxRegistration } from "@distilled.cloud/stripe/stripe";
2import * as Layer from "effect/Layer";
3import { RetrieveTaxRegistration } from "./RetrieveTaxRegistration.ts";
4import { 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 */
14export const RetrieveTaxRegistrationHttp = Layer.effect(
15 RetrieveTaxRegistration,
16 makeHttpStripeIdBinding({
17 tag: "Stripe.RetrieveTaxRegistration",
18 operation: GetTaxRegistration,
19 idField: "id",
20 permissions: ["tax_read"],
21 }),
22);