/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { governmentDataRetrieveByCoordinatesPostzon } from "../funcs/governmentDataRetrieveByCoordinatesPostzon.js"; import { governmentDataRetrievePostzonsByCode } from "../funcs/governmentDataRetrievePostzonsByCode.js"; import { governmentDataRetrievePostzonsByCodeOrPlace } from "../funcs/governmentDataRetrievePostzonsByCodeOrPlace.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as models from "../models/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class GovernmentData extends ClientSDK { /** * GovernmentData_Postzon_RetrieveByCoordinates * * @remarks * Returns the Postzon record nearest to the given coordinates. */ async retrieveByCoordinatesPostzon( request: operations.GovernmentDataPostzonRetrieveByCoordinatesRequest, options?: RequestOptions, ): Promise { return unwrapAsync(governmentDataRetrieveByCoordinatesPostzon( this, request, options, )); } /** * GovernmentData_Postzon_RetrieveByPostcode * * @remarks * Returns the Postzon record for the given postcode. */ async retrievePostzonsByCode( request: operations.GovernmentDataPostzonRetrieveByPostcodeRequest, options?: RequestOptions, ): Promise { return unwrapAsync(governmentDataRetrievePostzonsByCode( this, request, options, )); } /** * GovernmentData_Postzon_RetrieveByPostcodeOrPlace * * @remarks * Returns the Postzon record for the given postcode. */ async retrievePostzonsByCodeOrPlace( request: operations.GovernmentDataPostzonRetrieveByPostcodeOrPlaceRequest, options?: RequestOptions, ): Promise { return unwrapAsync(governmentDataRetrievePostzonsByCodeOrPlace( this, request, options, )); } }