/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { lazySchema as lazySchema$ } from "../../lib/schemas.js"; /** * The customer this entity is linked to. */ export type LinkedCustomerInput = { /** * The ID of the customer this entity is linked to. */ id?: string | undefined; /** * The display name of the customer. */ displayName?: string | null | undefined; /** * The name of the customer. Deprecated, use display_name instead. * * @deprecated field: Deprecated. Use display_name instead.. */ name?: string | undefined; /** * The email address of the customer. */ email?: string | undefined; }; /** @internal */ export type LinkedCustomerInput$Outbound = { id?: string | undefined; display_name?: string | null | undefined; name?: string | undefined; email?: string | undefined; }; /** @internal */ export const LinkedCustomerInput$outboundSchema: z.ZodType< LinkedCustomerInput$Outbound, z.ZodTypeDef, LinkedCustomerInput > = /* @__PURE__ */ lazySchema$(() => z.object({ id: z.string().optional(), displayName: z.nullable(z.string()).optional(), name: z.string().optional(), email: z.string().optional(), }).transform((v) => { return remap$(v, { displayName: "display_name", }); }) ); export function linkedCustomerInputToJSON( linkedCustomerInput: LinkedCustomerInput, ): string { return JSON.stringify( LinkedCustomerInput$outboundSchema.parse(linkedCustomerInput), ); }