/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 65226377f5db */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type GetpinRequest = { /** * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. */ locale?: string | undefined; /** * Get pin request */ getPinRequest: components.GetPinRequest; }; /** @internal */ export type GetpinRequest$Outbound = { locale?: string | undefined; GetPinRequest: components.GetPinRequest$Outbound; }; /** @internal */ export const GetpinRequest$outboundSchema: z.ZodType< GetpinRequest$Outbound, z.ZodTypeDef, GetpinRequest > = z.object({ locale: z.string().optional(), getPinRequest: components.GetPinRequest$outboundSchema, }).transform((v) => { return remap$(v, { getPinRequest: "GetPinRequest", }); }); export function getpinRequestToJSON(getpinRequest: GetpinRequest): string { return JSON.stringify(GetpinRequest$outboundSchema.parse(getpinRequest)); }