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

main
ts 38 lines 1.02 KB
Raw
1 import type {
2 GetTaxRateError,
3 GetTaxRateRequest,
4 TaxRate as StripeTaxRate,
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 { TaxRate } from "./TaxRate.ts";
10
11 export interface RetrieveTaxRateRequest extends Omit<GetTaxRateRequest, "tax_rate"> {}
12
13 /**
14 * Retrieve a bound Stripe Tax Rate over HTTP.
15 *
16 * ### Reading a Tax Rate
17 * **Example:** Bind and retrieve
18 * ```typescript
19 * const retrieve = yield* Stripe.RetrieveTaxRate(vat);
20 * const live = yield* retrieve();
21 * ```
22 *
23 * @binding
24 * @product Tax
25 */
26 export interface RetrieveTaxRate extends Binding.Service<
27 RetrieveTaxRate,
28 "Stripe.RetrieveTaxRate",
29 (
30 taxRate: TaxRate,
31 ) => Effect.Effect<
32 (
33 request?: RetrieveTaxRateRequest,
34 ) => Effect.Effect<StripeTaxRate, GetTaxRateError, RuntimeContext>
35 >
36 > {}
37
38 export const RetrieveTaxRate = Binding.Service<RetrieveTaxRate>("Stripe.RetrieveTaxRate");