/* * 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 GetEntityIntegrationMappingsRequest = { /** * Entity type (customer, plan, invoice, subscription, payment, credit_note, addon, item, item_price, price) */ entityType: string; /** * Entity ID */ entityId: string; }; /** @internal */ export type GetEntityIntegrationMappingsRequest$Outbound = { entity_type: string; entity_id: string; }; /** @internal */ export const GetEntityIntegrationMappingsRequest$outboundSchema: z.ZodMiniType< GetEntityIntegrationMappingsRequest$Outbound, GetEntityIntegrationMappingsRequest > = z.pipe( z.object({ entityType: z.string(), entityId: z.string(), }), z.transform((v) => { return remap$(v, { entityType: "entity_type", entityId: "entity_id", }); }), ); export function getEntityIntegrationMappingsRequestToJSON( getEntityIntegrationMappingsRequest: GetEntityIntegrationMappingsRequest, ): string { return JSON.stringify( GetEntityIntegrationMappingsRequest$outboundSchema.parse( getEntityIntegrationMappingsRequest, ), ); }