import type {
GetCustomerTaxIdsByIdError,
GetCustomerTaxIdsByIdRequest,
TaxId as StripeTaxId,
} from "@distilled.cloud/stripe/stripe";
import * as Binding from "alchemy/Binding";
import type { RuntimeContext } from "alchemy/RuntimeContext";
import type * as Effect from "effect/Effect";
import type { CustomerTaxId } from "./CustomerTaxId.ts";
export interface RetrieveCustomerTaxIdRequest extends Omit<
GetCustomerTaxIdsByIdRequest,
"id" | "customer"
> {}
/**
* Retrieve a bound Stripe Customer Tax ID over HTTP.
*
* ### Reading a Customer Tax ID
* **Example:** Bind and retrieve
* ```typescript
* const retrieve = yield* Stripe.RetrieveCustomerTaxId(vat);
* const live = yield* retrieve();
* ```
*
* @binding
* @product Customer
*/
export interface RetrieveCustomerTaxId extends Binding.Service<
RetrieveCustomerTaxId,
"Stripe.RetrieveCustomerTaxId",
(
taxId: CustomerTaxId,
) => Effect.Effect<
(
request?: RetrieveCustomerTaxIdRequest,
) => Effect.Effect<StripeTaxId, GetCustomerTaxIdsByIdError, RuntimeContext>
>
> {}
export const RetrieveCustomerTaxId = Binding.Service<RetrieveCustomerTaxId>(
"Stripe.RetrieveCustomerTaxId",
);