1 | <?php |
||
12 | class AdditionalInformation implements CreatableFromArray |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $orderNo; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $orderDate; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $ourReference; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $yourReference; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | private $shippingDate; |
||
38 | |||
39 | /** |
||
40 | * @var string |
||
41 | */ |
||
42 | private $deliveryDate; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | */ |
||
47 | private $referenceNumber; |
||
48 | |||
49 | /** |
||
50 | * @var string |
||
51 | */ |
||
52 | private $message; |
||
53 | |||
54 | /** |
||
55 | * @return string |
||
56 | */ |
||
57 | public function getOrderNo(): string |
||
61 | |||
62 | /** |
||
63 | * @param string $orderNo |
||
64 | * |
||
65 | * @return AdditionalInformation |
||
66 | */ |
||
67 | public function withOrderNo(string $orderNo) |
||
74 | |||
75 | /** |
||
76 | * @return string |
||
77 | */ |
||
78 | public function getOrderDate(): string |
||
82 | |||
83 | /** |
||
84 | * @param string $orderDate |
||
85 | * |
||
86 | * @return AdditionalInformation |
||
87 | */ |
||
88 | public function withOrderDate(string $orderDate) |
||
95 | |||
96 | /** |
||
97 | * @return string |
||
98 | */ |
||
99 | public function getOurReference(): string |
||
103 | |||
104 | /** |
||
105 | * @param string $ourReference |
||
106 | * |
||
107 | * @return AdditionalInformation |
||
108 | */ |
||
109 | public function withOurReference(string $ourReference) |
||
116 | |||
117 | /** |
||
118 | * @return string |
||
119 | */ |
||
120 | public function getYourReference(): string |
||
124 | |||
125 | /** |
||
126 | * @param string $yourReference |
||
127 | * |
||
128 | * @return AdditionalInformation |
||
129 | */ |
||
130 | public function withYourReference(string $yourReference) |
||
137 | |||
138 | /** |
||
139 | * @return string |
||
140 | */ |
||
141 | public function getShippingDate(): string |
||
145 | |||
146 | /** |
||
147 | * @param string $shippingDate |
||
148 | * |
||
149 | * @return AdditionalInformation |
||
150 | */ |
||
151 | public function withShippingDate(string $shippingDate) |
||
158 | |||
159 | /** |
||
160 | * @return string |
||
161 | */ |
||
162 | public function getDeliveryDate(): string |
||
166 | |||
167 | /** |
||
168 | * @param string $deliveryDate |
||
169 | * |
||
170 | * @return AdditionalInformation |
||
171 | */ |
||
172 | public function withDeliveryDate(string $deliveryDate) |
||
179 | |||
180 | /** |
||
181 | * @return string |
||
182 | */ |
||
183 | public function getReferenceNumber(): string |
||
187 | |||
188 | /** |
||
189 | * @param string $referenceNumber |
||
190 | * |
||
191 | * @return AdditionalInformation |
||
192 | */ |
||
193 | public function withReferenceNumber(string $referenceNumber) |
||
200 | |||
201 | /** |
||
202 | * @return string |
||
203 | */ |
||
204 | public function getMessage(): string |
||
208 | |||
209 | /** |
||
210 | * @param $message |
||
211 | * |
||
212 | * @return AdditionalInformation |
||
213 | */ |
||
214 | public function withMessage($message) |
||
221 | |||
222 | public function toArray() |
||
252 | |||
253 | /** |
||
254 | * Create an API response object from the HTTP response from the API server. |
||
255 | * |
||
256 | * @param array $data |
||
257 | * |
||
258 | * @return self |
||
259 | */ |
||
260 | 3 | public static function createFromArray(array $data) |
|
272 | } |
||
273 |