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, 06:00 UTC
| 1 | import type { |
| 2 | ApplePayDomain as StripeApplePayDomain, |
| 3 | GetApplePayDomainError, |
| 4 | GetApplePayDomainRequest, |
| 5 | } from "@distilled.cloud/stripe/stripe"; |
| 6 | import * as Binding from "alchemy/Binding"; |
| 7 | import type { RuntimeContext } from "alchemy/RuntimeContext"; |
| 8 | import type * as Effect from "effect/Effect"; |
| 9 | import type { ApplePayDomain } from "./ApplePayDomain.ts"; |
| 10 | |
| 11 | export interface RetrieveApplePayDomainRequest extends Omit<GetApplePayDomainRequest, "domain"> {} |
| 12 | |
| 13 | /** |
| 14 | * Retrieve a bound Stripe Apple Pay Domain over HTTP. |
| 15 | * |
| 16 | * ### Reading an Apple Pay Domain |
| 17 | * **Example:** Bind and retrieve |
| 18 | * ```typescript |
| 19 | * const retrieve = yield* Stripe.RetrieveApplePayDomain(pay); |
| 20 | * const live = yield* retrieve(); |
| 21 | * ``` |
| 22 | * |
| 23 | * @binding |
| 24 | * @product Payment Methods |
| 25 | */ |
| 26 | export interface RetrieveApplePayDomain extends Binding.Service< |
| 27 | RetrieveApplePayDomain, |
| 28 | "Stripe.RetrieveApplePayDomain", |
| 29 | ( |
| 30 | applePayDomain: ApplePayDomain, |
| 31 | ) => Effect.Effect< |
| 32 | ( |
| 33 | request?: RetrieveApplePayDomainRequest, |
| 34 | ) => Effect.Effect<StripeApplePayDomain, GetApplePayDomainError, RuntimeContext> |
| 35 | > |
| 36 | > {} |
| 37 | |
| 38 | export const RetrieveApplePayDomain = Binding.Service<RetrieveApplePayDomain>( |
| 39 | "Stripe.RetrieveApplePayDomain", |
| 40 | ); |