1import { GetBillingAlert } from "@distilled.cloud/stripe/stripe";
2import * as Layer from "effect/Layer";
3import { RetrieveAlert } from "./RetrieveAlert.ts";
4import { makeHttpStripeIdBinding } from "./StripeHttp.ts";
5
6/**
7 * HTTP implementation of {@link RetrieveAlert}.
8 *
9 * @layer
10 * @product Billing
11 * @provides Stripe.RetrieveAlert
12 */
13export const RetrieveAlertHttp = Layer.effect(
14 RetrieveAlert,
15 makeHttpStripeIdBinding({
16 tag: "Stripe.RetrieveAlert",
17 operation: GetBillingAlert,
18 idField: "id",
19 permissions: ["billing_meters_read"],
20 }),
21);