/* * 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 { LocationServicesLocationManagementUpdateListOrPoOpeningHours, LocationServicesLocationManagementUpdateListOrPoOpeningHours$Outbound, LocationServicesLocationManagementUpdateListOrPoOpeningHours$outboundSchema, } from "./locationserviceslocationmanagementupdatelistorpoopeninghours.js"; export type LocationServicesLocationManagementUpdateListOrPoPointData = { /** * A GuID unique to a given location. If updating fields within one location this parameter is required. */ id?: string | undefined; /** * 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; /** * Key value pairs 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?: | LocationServicesLocationManagementUpdateListOrPoOpeningHours | undefined; }; /** @internal */ export type LocationServicesLocationManagementUpdateListOrPoPointData$Outbound = { Id?: string | undefined; 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?: | LocationServicesLocationManagementUpdateListOrPoOpeningHours$Outbound | undefined; }; /** @internal */ export const LocationServicesLocationManagementUpdateListOrPoPointData$outboundSchema: z.ZodType< LocationServicesLocationManagementUpdateListOrPoPointData$Outbound, z.ZodTypeDef, LocationServicesLocationManagementUpdateListOrPoPointData > = z.object({ id: z.string().optional(), 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: LocationServicesLocationManagementUpdateListOrPoOpeningHours$outboundSchema .optional(), }).transform((v) => { return remap$(v, { id: "Id", name: "Name", description: "Description", address: "Address", country: "Country", latitude: "Latitude", longitude: "Longitude", metaInfo: "MetaInfo", unstructuredMetaInfo: "UnstructuredMetaInfo", openingHours: "OpeningHours", }); }); export function locationServicesLocationManagementUpdateListOrPoPointDataToJSON( locationServicesLocationManagementUpdateListOrPoPointData: LocationServicesLocationManagementUpdateListOrPoPointData, ): string { return JSON.stringify( LocationServicesLocationManagementUpdateListOrPoPointData$outboundSchema .parse(locationServicesLocationManagementUpdateListOrPoPointData), ); }