moh-common-lib
Version:
A library of Angular components, services, and styles for B.C. Government Ministry of Health (MoH).
35 lines (34 loc) • 1.23 kB
TypeScript
/**
* Address class, each project can extend this address class
*/
export declare class Address {
static PostalCodeBCRegEx: string;
addressLine1: string;
/** Used to store optional extra address fields. Can be used with addressLine1 OR street. */
addressLine2: string;
/** Used to store optional extra address fields. Can be used with addressLine1 OR street. */
addressLine3: string;
unitNumber: string;
streetNumber: string;
streetName: string;
postal: string;
country: string;
province: string;
city: string;
hasValue: boolean;
isValid: boolean;
street: string;
/** Overwrite the native JavaScript toString method to determine how the
* object should be printed, instead of [object Object]. This provides a
* standard way to print out an address. If you need something specific you
* should access the properties directly. We omit Province/Country because of
* PharmaCare's BC focus. */
toString(): string;
/**
* Address must have all fields filled out to be considered
* complete
*/
isComplete(): boolean;
readonly isBCOnly: boolean;
copy(object: Address): void;
}