fa9300e5de0105bf4244a72f6e2c3497b17ed1c8
[WP-Plugins/glm-member-db-registrations.git] /
1 <?php
2 namespace PayPal\Api;
3
4 use PayPal\Common\PPModel;
5
6 class Address extends PPModel {
7         /**
8          * Line 1 of the Address (eg. number, street, etc).
9          * @param string $line1
10          */
11         public function setLine1($line1) {
12                 $this->line1 = $line1;
13                 return $this;
14         }
15
16         /**
17          * Line 1 of the Address (eg. number, street, etc).
18          * @return string
19          */
20         public function getLine1() {
21                 return $this->line1;
22         }
23
24
25         /**
26          * Optional line 2 of the Address (eg. suite, apt #, etc.).
27          * @param string $line2
28          */
29         public function setLine2($line2) {
30                 $this->line2 = $line2;
31                 return $this;
32         }
33
34         /**
35          * Optional line 2 of the Address (eg. suite, apt #, etc.).
36          * @return string
37          */
38         public function getLine2() {
39                 return $this->line2;
40         }
41
42
43         /**
44          * City name.
45          * @param string $city
46          */
47         public function setCity($city) {
48                 $this->city = $city;
49                 return $this;
50         }
51
52         /**
53          * City name.
54          * @return string
55          */
56         public function getCity() {
57                 return $this->city;
58         }
59
60
61         /**
62          * 2 letter country code.
63          * @param string $country_code
64          */
65         public function setCountryCode($country_code) {
66                 $this->country_code = $country_code;
67                 return $this;
68         }
69
70         /**
71          * 2 letter country code.
72          * @return string
73          */
74         public function getCountryCode() {
75                 return $this->country_code;
76         }
77
78         /**
79          * 2 letter country code.
80          * @param string $country_code
81          * @deprecated. Instead use setCountryCode
82          */
83         public function setCountry_code($country_code) {
84                 $this->country_code = $country_code;
85                 return $this;
86         }
87         /**
88          * 2 letter country code.
89          * @return string
90          * @deprecated. Instead use getCountryCode
91          */
92         public function getCountry_code() {
93                 return $this->country_code;
94         }
95
96         /**
97          * Zip code or equivalent is usually required for countries that have them. For list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code.
98          * @param string $postal_code
99          */
100         public function setPostalCode($postal_code) {
101                 $this->postal_code = $postal_code;
102                 return $this;
103         }
104
105         /**
106          * Zip code or equivalent is usually required for countries that have them. For list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code.
107          * @return string
108          */
109         public function getPostalCode() {
110                 return $this->postal_code;
111         }
112
113         /**
114          * Zip code or equivalent is usually required for countries that have them. For list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code.
115          * @param string $postal_code
116          * @deprecated. Instead use setPostalCode
117          */
118         public function setPostal_code($postal_code) {
119                 $this->postal_code = $postal_code;
120                 return $this;
121         }
122         /**
123          * Zip code or equivalent is usually required for countries that have them. For list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code.
124          * @return string
125          * @deprecated. Instead use getPostalCode
126          */
127         public function getPostal_code() {
128                 return $this->postal_code;
129         }
130
131         /**
132          * 2 letter code for US states, and the equivalent for other countries.
133          * @param string $state
134          */
135         public function setState($state) {
136                 $this->state = $state;
137                 return $this;
138         }
139
140         /**
141          * 2 letter code for US states, and the equivalent for other countries.
142          * @return string
143          */
144         public function getState() {
145                 return $this->state;
146         }
147
148
149         /**
150          * Phone number in E.123 format.
151          * @param string $phone
152          */
153         public function setPhone($phone) {
154                 $this->phone = $phone;
155                 return $this;
156         }
157
158         /**
159          * Phone number in E.123 format.
160          * @return string
161          */
162         public function getPhone() {
163                 return $this->phone;
164         }
165
166
167 }