1 | <?php |
||
10 | class CustomerBillingAddress implements CreatableFromArray |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $careOf; |
||
16 | |||
17 | /** |
||
18 | * @var bool |
||
19 | */ |
||
20 | private $useCareOfAsAttention; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $streetAddress; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $zipCode; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | private $city; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | private $country; |
||
41 | |||
42 | 7 | public function __construct() |
|
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getCareOf() |
||
53 | |||
54 | /** |
||
55 | * @param string $careOf |
||
56 | * |
||
57 | * @return CustomerBillingAddress |
||
58 | */ |
||
59 | public function withCareOf(string $careOf) |
||
66 | |||
67 | /** |
||
68 | * @return bool |
||
69 | */ |
||
70 | public function isUseCareOfAsAttention() |
||
74 | |||
75 | /** |
||
76 | * @param bool $useCareOfAsAttention |
||
77 | * |
||
78 | * @return CustomerBillingAddress |
||
79 | */ |
||
80 | public function withUseCareOfAsAttention(bool $useCareOfAsAttention) |
||
87 | |||
88 | /** |
||
89 | * @return string |
||
90 | */ |
||
91 | public function getStreetAddress() |
||
95 | |||
96 | /** |
||
97 | * @param string $streetAddress |
||
98 | * |
||
99 | * @return CustomerBillingAddress |
||
100 | */ |
||
101 | public function withStreetAddress(string $streetAddress) |
||
108 | |||
109 | /** |
||
110 | * @return string |
||
111 | */ |
||
112 | public function getZipCode() |
||
116 | |||
117 | /** |
||
118 | * @param string $zipCode |
||
119 | * |
||
120 | * @return CustomerBillingAddress |
||
121 | */ |
||
122 | public function withZipCode(string $zipCode) |
||
129 | |||
130 | /** |
||
131 | * @return string |
||
132 | */ |
||
133 | public function getCity() |
||
137 | |||
138 | /** |
||
139 | * @param string $city |
||
140 | * |
||
141 | * @return CustomerBillingAddress |
||
142 | */ |
||
143 | public function withCity(string $city) |
||
150 | |||
151 | /** |
||
152 | * @return string |
||
153 | */ |
||
154 | public function getCountry() |
||
158 | |||
159 | /** |
||
160 | * @param string $country |
||
161 | * |
||
162 | * @return CustomerBillingAddress |
||
163 | */ |
||
164 | public function withCountry(string $country) |
||
171 | |||
172 | 2 | public function toArray() |
|
196 | |||
197 | /** |
||
198 | * Create an API response object from the HTTP response from the API server. |
||
199 | * |
||
200 | * @param array $data |
||
201 | * |
||
202 | * @return self |
||
203 | */ |
||
204 | 7 | public static function createFromArray(array $data) |
|
216 | } |
||
217 |