WePay iOS SDK  7.0.0-prerelease-1
WPAddress.h
1 //
2 // WPAddress.h
3 // WePay
4 //
5 // Created by Chaitanya Bagaria on 4/28/15.
6 // Copyright (c) 2015 WePay. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 
14 @interface WPAddress : NSObject
15 
19 @property (nonatomic, strong, readonly) NSString *address1;
20 
24 @property (nonatomic, strong, readonly) NSString *address2;
25 
29 @property (nonatomic, strong, readonly) NSString *city;
30 
34 @property (nonatomic, strong, readonly) NSString *country;
35 
39 @property (nonatomic, strong, readonly) NSString *postcode;
40 
44 @property (nonatomic, strong, readonly) NSString *region;
45 
49 @property (nonatomic, strong, readonly) NSString *state;
50 
54 @property (nonatomic, strong, readonly) NSString *zip;
55 
63 - (instancetype) initWithZip:(NSString *)zip;
64 
76 - (instancetype) initWithAddress1:(NSString *)address1
77  address2:(NSString *)address2
78  city:(NSString *)city
79  state:(NSString *)state
80  zip:(NSString *)zip;
93 - (instancetype) initWithAddress1:(NSString *)address1
94  address2:(NSString *)address2
95  city:(NSString *)city
96  region:(NSString *)region
97  postcode:(NSString *)postcode
98  country:(NSString *)country;
104 - (NSDictionary *) toDict;
105 
106 @end
NSString * country
Definition: WPAddress.h:34
NSString * city
Definition: WPAddress.h:29
NSString * postcode
Definition: WPAddress.h:39
NSString * region
Definition: WPAddress.h:44
NSString * address2
Definition: WPAddress.h:24
NSString * state
Definition: WPAddress.h:49
NSString * address1
Definition: WPAddress.h:19
NSString * zip
Definition: WPAddress.h:54
Definition: WPAddress.h:14