@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 21 lines 715 Bytes
Raw
1 import { GetPaymentMethodDomain } from "@distilled.cloud/stripe/stripe";
2 import * as Layer from "effect/Layer";
3 import { RetrievePaymentMethodDomain } from "./RetrievePaymentMethodDomain.ts";
4 import { makeHttpStripeIdBinding } from "./StripeHttp.ts";
5
6 /**
7 * HTTP implementation of {@link RetrievePaymentMethodDomain}.
8 *
9 * @layer
10 * @product Payment Methods
11 * @provides Stripe.RetrievePaymentMethodDomain
12 */
13 export const RetrievePaymentMethodDomainHttp = Layer.effect(
14 RetrievePaymentMethodDomain,
15 makeHttpStripeIdBinding({
16 tag: "Stripe.RetrievePaymentMethodDomain",
17 operation: GetPaymentMethodDomain,
18 idField: "payment_method_domain",
19 permissions: ["payment_method_domains_read"],
20 }),
21 );