/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { remap as remap$ } from "../../lib/primitives.js"; export type GetCustomerByExternalIdRequest = { /** * Customer External ID */ externalId: string; }; /** @internal */ export type GetCustomerByExternalIdRequest$Outbound = { external_id: string; }; /** @internal */ export const GetCustomerByExternalIdRequest$outboundSchema: z.ZodMiniType< GetCustomerByExternalIdRequest$Outbound, GetCustomerByExternalIdRequest > = z.pipe( z.object({ externalId: z.string(), }), z.transform((v) => { return remap$(v, { externalId: "external_id", }); }), ); export function getCustomerByExternalIdRequestToJSON( getCustomerByExternalIdRequest: GetCustomerByExternalIdRequest, ): string { return JSON.stringify( GetCustomerByExternalIdRequest$outboundSchema.parse( getCustomerByExternalIdRequest, ), ); }