1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class OpenIdAddress
9 *
10 * End-User's preferred address.
11 *
12 * @package PayPal\Api
13 *
14 * @property string street_address
15 * @property string locality
16 * @property string region
17 * @property string postal_code
18 * @property string country
19 */
20 class OpenIdAddress extends PayPalModel
21 {
22 /**
23 * Full street address component, which may include house number, street name.
24 *
25 * @param string $street_address
26 * @return self
27 */
28 public function setStreetAddress($street_address)
29 {
30 $this->street_address = $street_address;
31 return $this;
32 }
33
34 /**
35 * Full street address component, which may include house number, street name.
36 *
37 * @return string
38 */
39 public function getStreetAddress()
40 {
41 return $this->street_address;
42 }
43
44 /**
45 * City or locality component.
46 *
47 * @param string $locality
48 * @return self
49 */
50 public function setLocality($locality)
51 {
52 $this->locality = $locality;
53 return $this;
54 }
55
56 /**
57 * City or locality component.
58 *
59 * @return string
60 */
61 public function getLocality()
62 {
63 return $this->locality;
64 }
65
66 /**
67 * State, province, prefecture or region component.
68 *
69 * @param string $region
70 * @return self
71 */
72 public function setRegion($region)
73 {
74 $this->region = $region;
75 return $this;
76 }
77
78 /**
79 * State, province, prefecture or region component.
80 *
81 * @return string
82 */
83 public function getRegion()
84 {
85 return $this->region;
86 }
87
88 /**
89 * Zip code or postal code component.
90 *
91 * @param string $postal_code
92 * @return self
93 */
94 public function setPostalCode($postal_code)
95 {
96 $this->postal_code = $postal_code;
97 return $this;
98 }
99
100 /**
101 * Zip code or postal code component.
102 *
103 * @return string
104 */
105 public function getPostalCode()
106 {
107 return $this->postal_code;
108 }
109
110 /**
111 * Country name component.
112 *
113 * @param string $country
114 * @return self
115 */
116 public function setCountry($country)
117 {
118 $this->country = $country;
119 return $this;
120 }
121
122 /**
123 * Country name component.
124 *
125 * @return string
126 */
127 public function getCountry()
128 {
129 return $this->country;
130 }
131
132
133 }
134