/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../lib/primitives.js"; import { LocationServicesLocationManagementCreateListOpeningHours, LocationServicesLocationManagementCreateListOpeningHours$Outbound, LocationServicesLocationManagementCreateListOpeningHours$outboundSchema, } from "./locationserviceslocationmanagementcreatelistopeninghours.js"; export type LocationServicesLocationManagementCreateListPointData = { /** * The name of the location. */ name?: string | undefined; /** * The description of the location for display purposes. */ description?: string | undefined; /** * The address of the location for display purposes. **If Geocoding is set to TRUE then this parameter is mandatory.** */ address?: string | undefined; /** * The ISO2 or ISO3 country code. **If Geocoding is set to TRUE then this parameter is mandatory.** */ country?: string | undefined; /** * The WGS 84 latitude in decimal degrees format. This is mandatory unless Geocoding is set to TRUE. */ latitude?: string | undefined; /** * The WGS 84 longitude in decimal degrees format. This is mandatory unless Geocoding is set to TRUE. */ longitude?: string | undefined; /** * A key value pair that can be used to store any other relevant information. For example, this could be used to store contact information as 'ContactNumber': '123456789' */ metaInfo?: { [k: string]: string } | undefined; unstructuredMetaInfo?: { [k: string]: any } | undefined; openingHours?: | LocationServicesLocationManagementCreateListOpeningHours | undefined; }; /** @internal */ export type LocationServicesLocationManagementCreateListPointData$Outbound = { Name?: string | undefined; Description?: string | undefined; Address?: string | undefined; Country?: string | undefined; Latitude?: string | undefined; Longitude?: string | undefined; MetaInfo?: { [k: string]: string } | undefined; UnstructuredMetaInfo?: { [k: string]: any } | undefined; OpeningHours?: | LocationServicesLocationManagementCreateListOpeningHours$Outbound | undefined; }; /** @internal */ export const LocationServicesLocationManagementCreateListPointData$outboundSchema: z.ZodType< LocationServicesLocationManagementCreateListPointData$Outbound, z.ZodTypeDef, LocationServicesLocationManagementCreateListPointData > = z.object({ name: z.string().optional(), description: z.string().optional(), address: z.string().optional(), country: z.string().optional(), latitude: z.string().optional(), longitude: z.string().optional(), metaInfo: z.record(z.string()).optional(), unstructuredMetaInfo: z.record(z.any()).optional(), openingHours: LocationServicesLocationManagementCreateListOpeningHours$outboundSchema .optional(), }).transform((v) => { return remap$(v, { name: "Name", description: "Description", address: "Address", country: "Country", latitude: "Latitude", longitude: "Longitude", metaInfo: "MetaInfo", unstructuredMetaInfo: "UnstructuredMetaInfo", openingHours: "OpeningHours", }); }); export function locationServicesLocationManagementCreateListPointDataToJSON( locationServicesLocationManagementCreateListPointData: LocationServicesLocationManagementCreateListPointData, ): string { return JSON.stringify( LocationServicesLocationManagementCreateListPointData$outboundSchema.parse( locationServicesLocationManagementCreateListPointData, ), ); }