@lob/lob-typescript-sdk
Version:
Lob API wrapper
67 lines (66 loc) • 2.38 kB
TypeScript
/**
* Lob
* The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors. <p> Looking for our [previous documentation](https://lob.github.io/legacy-docs/)?
*
* The version of the OpenAPI document: 1.3.0
* Contact: lob-openapi@lob.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
import { Configuration } from "../configuration";
import { RequestArgs, BaseAPI } from "../base";
import { Zip } from "../models";
import { ZipEditable } from "../models";
/**
* ZipLookupsApi - axios parameter creator
* @export
*/
export declare const ZipLookupsApiAxiosParamCreator: (configuration?: Configuration) => {
/**
* Returns information about a ZIP code
* @summary lookup
* @param {ZipEditable} zipEditable
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
zipLookup: (zipEditable: ZipEditable, options?: AxiosRequestConfig) => Promise<RequestArgs>;
};
/**
* ZipLookupsApi - functional programming interface
* @export
*/
export declare const ZipLookupsApiFp: (configuration?: Configuration) => {
/**
* Returns information about a ZIP code
* @summary lookup
* @param {ZipEditable} zipEditable
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
zipLookup(zipEditable: ZipEditable, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Zip>>;
};
/**
* ZipLookupsApi - object-oriented interface
* @export
* @class ZipLookupsApi
* @extends {BaseAPI}
*/
export declare class ZipLookupsApi extends BaseAPI {
/**
* Returns information about a ZIP code
* @summary lookup
* @param {ZipEditable} zipEditable
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ZipLookupsApi
*/
lookup(zipEditable: ZipEditable, options?: AxiosRequestConfig): Promise<Zip>;
}
/**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/