@@ -8,9 +8,9 @@ |
||
8 | 8 | |
9 | 9 | class ShipperFiled implements NodeInterface |
10 | 10 | { |
11 | - const SF_ITN = 'A'; // Requires the ITN |
|
12 | - const SF_EXEMPTION_LEGEND = 'B'; // Requires the Exemption Legend |
|
13 | - const SF_POST_DEPARTURE_FILING = 'C'; // Requires Post Departure Filing Citation |
|
11 | + const SF_ITN = 'A'; // Requires the ITN |
|
12 | + const SF_EXEMPTION_LEGEND = 'B'; // Requires the Exemption Legend |
|
13 | + const SF_POST_DEPARTURE_FILING = 'C'; // Requires Post Departure Filing Citation |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * @var string |
@@ -8,8 +8,8 @@ |
||
8 | 8 | |
9 | 9 | class EEIFilingOption implements NodeInterface |
10 | 10 | { |
11 | - const FO_SHIPPER = '1'; // Shipper Filed |
|
12 | - const FO_UPS = '3'; // UPS Filed |
|
11 | + const FO_SHIPPER = '1'; // Shipper Filed |
|
12 | + const FO_UPS = '3'; // UPS Filed |
|
13 | 13 | |
14 | 14 | /** |
15 | 15 | * @var string |
@@ -4,11 +4,11 @@ |
||
4 | 4 | |
5 | 5 | class StatusType |
6 | 6 | { |
7 | - const ST_IN_TRANSIT = 'I'; // In Transit |
|
8 | - const ST_DELIVERED = 'D'; // Delivered |
|
9 | - const ST_EXCEPTION = 'X'; // Exception |
|
10 | - const ST_PICKUP = 'P'; // Pickup |
|
11 | - const ST_MANIFEST_PICKUP = 'M'; // Manifest Pickup |
|
7 | + const ST_IN_TRANSIT = 'I'; // In Transit |
|
8 | + const ST_DELIVERED = 'D'; // Delivered |
|
9 | + const ST_EXCEPTION = 'X'; // Exception |
|
10 | + const ST_PICKUP = 'P'; // Pickup |
|
11 | + const ST_MANIFEST_PICKUP = 'M'; // Manifest Pickup |
|
12 | 12 | |
13 | 13 | public $Code; |
14 | 14 | public $Description; |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | 'endpointurl' => $this->getEndpointUrl(), |
102 | 102 | ]); |
103 | 103 | |
104 | - $this->logger->debug('Request: ' . $this->getRequest(), [ |
|
104 | + $this->logger->debug('Request: '.$this->getRequest(), [ |
|
105 | 105 | 'id' => $id, |
106 | 106 | 'endpointurl' => $this->getEndpointUrl(), |
107 | 107 | ]); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | $response = $this->client->post( |
111 | 111 | $this->getEndpointUrl(), |
112 | 112 | [ |
113 | - 'body' => $this->getAccess() . $this->getRequest(), |
|
113 | + 'body' => $this->getAccess().$this->getRequest(), |
|
114 | 114 | 'headers' => [ |
115 | 115 | 'Content-type' => 'application/x-www-form-urlencoded; charset=utf-8', |
116 | 116 | 'Accept-Charset' => 'UTF-8', |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | 'endpointurl' => $this->getEndpointUrl(), |
127 | 127 | ]); |
128 | 128 | |
129 | - $this->logger->debug('Response: ' . $body, [ |
|
129 | + $this->logger->debug('Response: '.$body, [ |
|
130 | 130 | 'id' => $id, |
131 | 131 | 'endpointurl' => $this->getEndpointUrl(), |
132 | 132 | ]); |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | 'endpointurl' => $this->getEndpointUrl(), |
154 | 154 | ]); |
155 | 155 | |
156 | - throw new RequestException('Failure: ' . $e->getMessage()); |
|
156 | + throw new RequestException('Failure: '.$e->getMessage()); |
|
157 | 157 | } |
158 | 158 | } |
159 | 159 |
@@ -151,16 +151,16 @@ discard block |
||
151 | 151 | * @var EEIFilingOption |
152 | 152 | */ |
153 | 153 | private $eeiFilingOption; |
154 | -======= |
|
154 | +=== === = |
|
155 | 155 | * @var OtherCharges |
156 | - */ |
|
156 | + * / |
|
157 | 157 | private $otherCharges; |
158 | 158 | |
159 | 159 | /** |
160 | 160 | * @var string $declarationStatement |
161 | 161 | */ |
162 | 162 | private $declarationStatement; |
163 | ->>>>>>> develop |
|
163 | +>> >> >> > develop |
|
164 | 164 | |
165 | 165 | /** |
166 | 166 | * @return array |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | if (isset($attributes->CurrencyCode)) { |
211 | 211 | $this->setCurrencyCode($attributes->CurrencyCode); |
212 | 212 | } |
213 | -<<<<<<< HEAD |
|
213 | +<< << <<< HEAD |
|
214 | 214 | if (isset($attributes->EEIFilingOption)) { |
215 | 215 | $this->setEEIFilingOption(new EEIFilingOption($attributes->EEIFilingOption)); |
216 | 216 | ======= |
@@ -616,7 +616,4 @@ discard block |
||
616 | 616 | { |
617 | 617 | $this->declarationStatement = $statement; |
618 | 618 | |
619 | - return $this; |
|
620 | - } |
|
621 | ->>>>>>> develop |
|
622 | -} |
|
619 | + return $this |
|
623 | 620 | \ No newline at end of file |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | ); |
168 | 168 | |
169 | 169 | $response = ''; |
170 | - if($this->response) { |
|
170 | + if ($this->response) { |
|
171 | 171 | $response = $this->response->getResponse(); |
172 | 172 | } |
173 | 173 | |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | (int)$response->Response->Error->ErrorCode |
179 | 179 | ); |
180 | 180 | } |
181 | - if($response) |
|
181 | + if ($response) |
|
182 | 182 | return $this->formatResponse($response); |
183 | 183 | else |
184 | 184 | return $response; |
@@ -195,46 +195,46 @@ discard block |
||
195 | 195 | $patterns = [ |
196 | 196 | |
197 | 197 | // UPS Mail Innovations tracking numbers |
198 | - '/^MI\d{6}\d{1,22}$/',// MI 000000 00000000+ |
|
198 | + '/^MI\d{6}\d{1,22}$/', // MI 000000 00000000+ |
|
199 | 199 | |
200 | 200 | // USPS - Certified Mail |
201 | - '/^94071\d{17}$/', // 9407 1000 0000 0000 0000 00 |
|
202 | - '/^7\d{19}$/', // 7000 0000 0000 0000 0000 |
|
201 | + '/^94071\d{17}$/', // 9407 1000 0000 0000 0000 00 |
|
202 | + '/^7\d{19}$/', // 7000 0000 0000 0000 0000 |
|
203 | 203 | |
204 | 204 | // USPS - Collect on Delivery |
205 | - '/^93033\d{17}$/', // 9303 3000 0000 0000 0000 00 |
|
206 | - '/^M\d{9}$/', // M000 0000 00 |
|
205 | + '/^93033\d{17}$/', // 9303 3000 0000 0000 0000 00 |
|
206 | + '/^M\d{9}$/', // M000 0000 00 |
|
207 | 207 | |
208 | 208 | // USPS - Global Express Guaranteed |
209 | - '/^82\d{10}$/', // 82 000 000 00 |
|
209 | + '/^82\d{10}$/', // 82 000 000 00 |
|
210 | 210 | |
211 | 211 | // USPS - Priority Mail Express International |
212 | - '/^EC\d{9}US$/', // EC 000 000 000 US |
|
212 | + '/^EC\d{9}US$/', // EC 000 000 000 US |
|
213 | 213 | |
214 | 214 | // USPS Innovations Expedited |
215 | - '/^927\d{23}$/', // 9270 8900 8900 8900 8900 8900 00 |
|
215 | + '/^927\d{23}$/', // 9270 8900 8900 8900 8900 8900 00 |
|
216 | 216 | |
217 | 217 | // USPS - Priority Mail Express |
218 | - '/^927\d{19}$/', // 9270 1000 0000 0000 0000 00 |
|
219 | - '/^EA\d{9}US$/', // EA 000 000 000 US |
|
218 | + '/^927\d{19}$/', // 9270 1000 0000 0000 0000 00 |
|
219 | + '/^EA\d{9}US$/', // EA 000 000 000 US |
|
220 | 220 | |
221 | 221 | // USPS - Priority Mail International |
222 | - '/^CP\d{9}US$/', // CP 000 000 000 US |
|
222 | + '/^CP\d{9}US$/', // CP 000 000 000 US |
|
223 | 223 | |
224 | 224 | // USPS - Priority Mail |
225 | - '/^92055\d{17}$/', // 9205 5000 0000 0000 0000 00 |
|
226 | - '/^14\d{18}$/', // 1400 0000 0000 0000 0000 |
|
225 | + '/^92055\d{17}$/', // 9205 5000 0000 0000 0000 00 |
|
226 | + '/^14\d{18}$/', // 1400 0000 0000 0000 0000 |
|
227 | 227 | |
228 | 228 | // USPS - Registered Mail |
229 | - '/^92088\d{17}$/', // 9208 8000 0000 0000 0000 00 |
|
230 | - '/^RA\d{9}US$/', // RA 000 000 000 US |
|
229 | + '/^92088\d{17}$/', // 9208 8000 0000 0000 0000 00 |
|
230 | + '/^RA\d{9}US$/', // RA 000 000 000 US |
|
231 | 231 | |
232 | 232 | // USPS - Signature Confirmation |
233 | - '/^9202\d{16}US$/', // 9202 1000 0000 0000 0000 00 |
|
234 | - '/^23\d{16}US$/', // 2300 0000 0000 0000 0000 |
|
233 | + '/^9202\d{16}US$/', // 9202 1000 0000 0000 0000 00 |
|
234 | + '/^23\d{16}US$/', // 2300 0000 0000 0000 0000 |
|
235 | 235 | |
236 | 236 | // USPS - Tracking |
237 | - '/^94\d{20}$/', // 9400 1000 0000 0000 0000 00 |
|
237 | + '/^94\d{20}$/', // 9400 1000 0000 0000 0000 00 |
|
238 | 238 | '/^03\d{18}$/' // 0300 0000 0000 0000 0000 |
239 | 239 | ]; |
240 | 240 |