doc
 All Classes Functions Variables Properties
Public Member Functions | Static Public Member Functions | Protected Attributes | Properties
EMPostalAddress Class Reference

Inherits EMModel.

List of all members.

Public Member Functions

(id) - initWithAddress:secondLine:city:state:zipCode:
(void) - clearAddress
(NSString *) - fullAddress:
(NSString *) - fullAddress
(BOOL) - isValid
(BOOL) - isEqualTo:
(NSString *) - getPhoneNoOne:

Static Public Member Functions

(id) + postalAddressWithAddress:secondLine:city:state:zip:
(NSArray *) + USStates
(NSString *) + GetTwoLetterState:

Protected Attributes

NSString * _type

Properties

NSString * name
NSString * firstName
NSString * lastName
NSString * streetAddress
NSString * streetAddress2
NSString * aptunit
NSString * city
NSString * state
NSString * postalCode
NSString * country
NSString * phone
NSString * countryCode
NSString * phoneNoOne
NSString * type

Member Function Documentation

- (NSString *) fullAddress

-fullAddress is shorthand for calling -fullAddress:YES.

- (NSString *) fullAddress: (BOOL)  multiline

returns all the components of the address as a string

- (NSString *) getPhoneNoOne: (NSString *)  phoneNumber

returns the a version of the given phone number without the 1 digit (if it exists) at the beginning

- (BOOL) isValid

Check to make sure the address is complete and valid


Property Documentation

- (NSString*) type [read, write, retain]

Has values of "shipping", @"billing", or @"shippingbilling".


The documentation for this class was generated from the following files: