usps-webtools-promise
Version:
API wrapper for the USPS Web-Tools, with Promises!
39 lines (38 loc) • 1.02 kB
TypeScript
import type { Address, ErrorResponse } from "./usps.js";
import type USPSClass from "./usps.js";
export interface AddressValidateRequest {
Address: {
Address1?: string;
Address2?: string;
City?: string;
FirmName?: string;
State?: string;
Urbanization?: string;
Zip4?: string;
Zip5?: string;
};
Revision: number;
}
export interface AddressValidateResponse {
Address1?: string;
Address2?: string;
Address2Abbreviation?: string;
Business?: string;
CarrierRoute?: string;
CentralDeliveryPoint?: string;
City?: string;
CityAbbreviation?: string;
DPVCMRA?: string;
DPVConfirmation?: string;
DPVFootnotes?: string;
DeliveryPoint?: string;
Error?: ErrorResponse;
FirmName?: string;
Footnotes?: string;
State?: string;
Urbanization?: string;
Vacant?: string;
Zip4?: string;
Zip5?: string;
}
export default function (this: USPSClass, address: Address): Promise<Address>;