/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { lazySchema as lazySchema$ } from "../../lib/schemas.js"; export type LinkedTaxRateInput = { /** * The ID of the object. */ id?: string | null | undefined; /** * Tax rate code */ code?: string | null | undefined; /** * Rate of the tax rate */ rate?: number | null | undefined; }; /** @internal */ export type LinkedTaxRateInput$Outbound = { id?: string | null | undefined; code?: string | null | undefined; rate?: number | null | undefined; }; /** @internal */ export const LinkedTaxRateInput$outboundSchema: z.ZodType< LinkedTaxRateInput$Outbound, z.ZodTypeDef, LinkedTaxRateInput > = /* @__PURE__ */ lazySchema$(() => z.object({ id: z.nullable(z.string()).optional(), code: z.nullable(z.string()).optional(), rate: z.nullable(z.number()).optional(), }) ); export function linkedTaxRateInputToJSON( linkedTaxRateInput: LinkedTaxRateInput, ): string { return JSON.stringify( LinkedTaxRateInput$outboundSchema.parse(linkedTaxRateInput), ); }