/* * 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 TaxRateOverride = { autoApply?: boolean | undefined; currency: string; metadata?: { [k: string]: string } | undefined; priority?: number | undefined; taxRateCode: string; }; /** @internal */ export type TaxRateOverride$Outbound = { auto_apply: boolean; currency: string; metadata?: { [k: string]: string } | undefined; priority?: number | undefined; tax_rate_code: string; }; /** @internal */ export const TaxRateOverride$outboundSchema: z.ZodMiniType< TaxRateOverride$Outbound, TaxRateOverride > = z.pipe( z.object({ autoApply: z._default(z.boolean(), true), currency: z.string(), metadata: z.optional(z.record(z.string(), z.string())), priority: z.optional(z.int()), taxRateCode: z.string(), }), z.transform((v) => { return remap$(v, { autoApply: "auto_apply", taxRateCode: "tax_rate_code", }); }), ); export function taxRateOverrideToJSON( taxRateOverride: TaxRateOverride, ): string { return JSON.stringify(TaxRateOverride$outboundSchema.parse(taxRateOverride)); }