/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; export type GovernmentDataPostzonRetrieveByCoordinatesGlobals = { source?: string | undefined; }; export type GovernmentDataPostzonRetrieveByCoordinatesRequest = { /** * The key to use to authenticate to the service. */ key?: string | undefined; /** * A postcode or coordinates (latitude, longitude or easting, nothing) of the centre of the search. */ centrePoint: string; /** * The username associated with the Royal Mail license (not required for click licenses). */ userName?: string | undefined; }; /** @internal */ export type GovernmentDataPostzonRetrieveByCoordinatesRequest$Outbound = { Key?: string | undefined; CentrePoint: string; UserName?: string | undefined; }; /** @internal */ export const GovernmentDataPostzonRetrieveByCoordinatesRequest$outboundSchema: z.ZodType< GovernmentDataPostzonRetrieveByCoordinatesRequest$Outbound, z.ZodTypeDef, GovernmentDataPostzonRetrieveByCoordinatesRequest > = z.object({ key: z.string().optional(), centrePoint: z.string(), userName: z.string().optional(), }).transform((v) => { return remap$(v, { key: "Key", centrePoint: "CentrePoint", userName: "UserName", }); }); export function governmentDataPostzonRetrieveByCoordinatesRequestToJSON( governmentDataPostzonRetrieveByCoordinatesRequest: GovernmentDataPostzonRetrieveByCoordinatesRequest, ): string { return JSON.stringify( GovernmentDataPostzonRetrieveByCoordinatesRequest$outboundSchema.parse( governmentDataPostzonRetrieveByCoordinatesRequest, ), ); }