/* * 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"; import { Address, Address$Outbound, Address$outboundSchema, } from "./address.js"; /** * The supplier this entity is linked to. * * @deprecated class: This field is deprecated and may be removed in a future version.. */ export type DeprecatedLinkedSupplierInput = { /** * The display name of the supplier. */ displayName?: string | null | undefined; address?: Address | undefined; }; /** @internal */ export type DeprecatedLinkedSupplierInput$Outbound = { display_name?: string | null | undefined; address?: Address$Outbound | undefined; }; /** @internal */ export const DeprecatedLinkedSupplierInput$outboundSchema: z.ZodType< DeprecatedLinkedSupplierInput$Outbound, z.ZodTypeDef, DeprecatedLinkedSupplierInput > = /* @__PURE__ */ lazySchema$(() => z.object({ displayName: z.nullable(z.string()).optional(), address: Address$outboundSchema.optional(), }).transform((v) => { return remap$(v, { displayName: "display_name", }); }) ); export function deprecatedLinkedSupplierInputToJSON( deprecatedLinkedSupplierInput: DeprecatedLinkedSupplierInput, ): string { return JSON.stringify( DeprecatedLinkedSupplierInput$outboundSchema.parse( deprecatedLinkedSupplierInput, ), ); }