@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 22 lines 698 Bytes
Raw
1 import { GetApplePayDomain } from "@distilled.cloud/stripe/stripe";
2 import * as Layer from "effect/Layer";
3 import { RetrieveApplePayDomain } from "./RetrieveApplePayDomain.ts";
4 import { makeHttpStripeIdBinding } from "./StripeHttp.ts";
5
6 /**
7 * HTTP implementation of {@link RetrieveApplePayDomain}. Provide it on
8 * the Function or Worker Effect.
9 *
10 * @layer
11 * @product Payment Methods
12 * @provides Stripe.RetrieveApplePayDomain
13 */
14 export const RetrieveApplePayDomainHttp = Layer.effect(
15 RetrieveApplePayDomain,
16 makeHttpStripeIdBinding({
17 tag: "Stripe.RetrieveApplePayDomain",
18 operation: GetApplePayDomain,
19 idField: "domain",
20 permissions: ["apple_pay_domains_read"],
21 }),
22 );