|
WePay iOS SDK
7.0.0-prerelease-1
|
#import <WPAddress.h>
Instance Methods | |
| (instancetype) | - initWithZip: |
| (instancetype) | - initWithAddress1:address2:city:state:zip: |
| (instancetype) | - initWithAddress1:address2:city:region:postcode:country: |
| (NSDictionary *) | - toDict |
Properties | |
| NSString * | address1 |
| NSString * | address2 |
| NSString * | city |
| NSString * | country |
| NSString * | postcode |
| NSString * | region |
| NSString * | state |
| NSString * | zip |
An instance of this class represents a physical address.
| - (instancetype) initWithAddress1: | (NSString *) | address1 | |
| address2: | (NSString *) | address2 | |
| city: | (NSString *) | city | |
| region: | (NSString *) | region | |
| postcode: | (NSString *) | postcode | |
| country: | (NSString *) | country | |
Initializes a non-US Address.
| address1 | The first line of the street address. |
| address2 | The second line of the street address. |
| city | The city. |
| region | The region. Only for non-US addresses when available. |
| postcode | The postcode. Only for non-US addresses when available. |
| country | The 2-letters ISO-3166-1 country code. |
| - (instancetype) initWithAddress1: | (NSString *) | address1 | |
| address2: | (NSString *) | address2 | |
| city: | (NSString *) | city | |
| state: | (NSString *) | state | |
| zip: | (NSString *) | zip | |
Initializes a US Address.
| address1 | The first line of the street address. |
| address2 | The second line of the street address. |
| city | The city. |
| state | The 2-letters US state code. |
| zip | The US zip or zip-plus code. |
| - (instancetype) initWithZip: | (NSString *) | zip |
Initializes a US Address with just a zip.
| zip | The US zip or zip-plus code. |
|
readnonatomicstrong |
The first line of the street address.
|
readnonatomicstrong |
The second line of the street address.
|
readnonatomicstrong |
The city.
|
readnonatomicstrong |
The 2-letters ISO-3166-1 country code.
|
readnonatomicstrong |
The postcode. Only for non-US addresses when available.
|
readnonatomicstrong |
The region. Only for non-US addresses when available.
|
readnonatomicstrong |
The 2-letters US state code. Only for US addresses.
|
readnonatomicstrong |
The US zip or zip-plus code. Only for US addresses.