/* * 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 StoreFinderInteractiveFindPlaceNamesGlobals = { source?: string | undefined; }; export type StoreFinderInteractiveFindPlaceNamesRequest = { /** * The key to use to authenticate to the service. */ key?: string | undefined; /** * The name of the place to find. It can be a town or city, point of interest or postal code. */ searchTerm: string; /** * Determines whether fuzzy searching is used to find records. This is ignored if a postal code is part of the SearchTerm. "Exact" requires the name to match the record exactly; "Partial" requires the search term to exactly match part of the name; "Similar" will return records with similar names if a "Partial" match was not initially possible. */ matchType?: string | undefined; /** * The name or ISO 2 or 3 character code for the country to search in. Most country names will be recognised but the use of the ISO country code is recommended for clarity. */ country?: string | undefined; }; /** @internal */ export type StoreFinderInteractiveFindPlaceNamesRequest$Outbound = { Key?: string | undefined; SearchTerm: string; MatchType?: string | undefined; Country?: string | undefined; }; /** @internal */ export const StoreFinderInteractiveFindPlaceNamesRequest$outboundSchema: z.ZodType< StoreFinderInteractiveFindPlaceNamesRequest$Outbound, z.ZodTypeDef, StoreFinderInteractiveFindPlaceNamesRequest > = z.object({ key: z.string().optional(), searchTerm: z.string(), matchType: z.string().optional(), country: z.string().optional(), }).transform((v) => { return remap$(v, { key: "Key", searchTerm: "SearchTerm", matchType: "MatchType", country: "Country", }); }); export function storeFinderInteractiveFindPlaceNamesRequestToJSON( storeFinderInteractiveFindPlaceNamesRequest: StoreFinderInteractiveFindPlaceNamesRequest, ): string { return JSON.stringify( StoreFinderInteractiveFindPlaceNamesRequest$outboundSchema.parse( storeFinderInteractiveFindPlaceNamesRequest, ), ); }