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