idea-toolbox
Version:
IDEA's utility functions
72 lines (71 loc) • 1.47 kB
TypeScript
import { Resource } from './resource.model';
import { Countries } from './countries.enum';
export declare class Address extends Resource {
/**
* Main address or company name.
*/
address: string;
/**
* Apartment, suite, unit, building, floor, etc.
*/
address2?: string;
/**
* Postal code/zip code.
*/
postcode: string;
/**
* Town/city.
*/
city: string;
/**
* Province, district, area.
*/
province: string;
/**
* Country.
*/
country: Countries;
/**
* The geolocation, expressed in latitute and longitude.
*/
geolocation?: AddressGeolocation;
/**
* Contact person / receiver.
*/
contact?: string;
/**
* Contact person's phone.
*/
phone?: string;
/**
* Contact person's email.
*/
email?: string;
load(x: any): void;
validate(): string[];
/**
* Get a string representing the formatted full address.
*/
getFullAddress(display?: {
address?: boolean;
address2?: boolean;
city?: boolean;
postcode?: boolean;
province?: boolean;
country?: boolean;
}): string;
}
/**
* An address' geolocation expressed in latitute and longitude.
*/
export declare class AddressGeolocation extends Resource {
/**
* Latitude.
*/
lat: number;
/**
* Longitude.
*/
lng: number;
load(x: any): void;
}