/* * 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 ListTaxAssociationsRequest = { /** * Entity Type */ entityType?: string | undefined; /** * Entity ID */ entityId?: string | undefined; /** * External Customer ID */ externalCustomerId?: string | undefined; /** * Tax Rate ID */ taxRateId?: string | undefined; }; /** @internal */ export type ListTaxAssociationsRequest$Outbound = { entity_type?: string | undefined; entity_id?: string | undefined; external_customer_id?: string | undefined; tax_rate_id?: string | undefined; }; /** @internal */ export const ListTaxAssociationsRequest$outboundSchema: z.ZodMiniType< ListTaxAssociationsRequest$Outbound, ListTaxAssociationsRequest > = z.pipe( z.object({ entityType: z.optional(z.string()), entityId: z.optional(z.string()), externalCustomerId: z.optional(z.string()), taxRateId: z.optional(z.string()), }), z.transform((v) => { return remap$(v, { entityType: "entity_type", entityId: "entity_id", externalCustomerId: "external_customer_id", taxRateId: "tax_rate_id", }); }), ); export function listTaxAssociationsRequestToJSON( listTaxAssociationsRequest: ListTaxAssociationsRequest, ): string { return JSON.stringify( ListTaxAssociationsRequest$outboundSchema.parse(listTaxAssociationsRequest), ); }