| 1 | import { CreateAccountLink as createAccountLinkOp } from "@distilled.cloud/stripe/stripe"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { CreateAccountLink } from "./CreateAccountLink.ts"; |
| 4 | import { makeHttpStripeAccountBinding } from "./StripeHttp.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link CreateAccountLink}. Provide it on the |
| 8 | * Function or Worker Effect. |
| 9 | * |
| 10 | * @layer |
| 11 | * @product Account |
| 12 | * @provides Stripe.CreateAccountLink |
| 13 | */ |
| 14 | export const CreateAccountLinkHttp = Layer.effect( |
| 15 | CreateAccountLink, |
| 16 | makeHttpStripeAccountBinding({ |
| 17 | tag: "Stripe.CreateAccountLink", |
| 18 | operation: createAccountLinkOp, |
| 19 | permissions: ["accounts_write"], |
| 20 | }), |
| 21 | ); |