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