Service::getTrackingwithRef()   A
last analyzed

Complexity

Conditions 2
Paths 3

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 7
nc 3
nop 1
1
<?php
2
3
/*
4
 * This file is part of Smsa WebService package.
5
 * (c) Hamoud Alhoqbani <[email protected]>
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Alhoqbani\SmsaWebService\Soap;
11
12
use \WsdlToPhp\PackageBase\AbstractSoapClientBase;
13
14
/**
15
 * This class stands for all operations
16
 *
17
 * @date 2018/04/06
18
 * @codeVersion 0.0.1
19
 */
20
class Service extends AbstractSoapClientBase
21
{
22
    /**
23
     * Method to call the operation originally named addShipment
24
     * Meta informations extracted from the WSDL
25
     * - documentation: Create Shipment and get Smsa AWB Number
26
     *
27
     * @uses AbstractSoapClientBase::getSoapClient()
28
     * @uses AbstractSoapClientBase::setResult()
29
     * @uses AbstractSoapClientBase::getResult()
30
     * @uses AbstractSoapClientBase::saveLastError()
31
     *
32
     * @param \Alhoqbani\SmsaWebService\Soap\Type\AddShipment $parameters
33
     *
34
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentResponse|bool
35
     */
36
    public function addShipment(\Alhoqbani\SmsaWebService\Soap\Type\AddShipment $parameters)
37
    {
38
        try {
39
            $this->setResult(self::getSoapClient()->addShipment($parameters));
40
41
            return $this->getResult();
42
        } catch (\SoapFault $soapFault) {
43
            $this->saveLastError(__METHOD__, $soapFault);
44
45
            return false;
46
        }
47
    }
48
49
    /**
50
     * Method to call the operation originally named addShip
51
     * Meta informations extracted from the WSDL
52
     * - documentation: Create Shipment with Shipper Details and get Smsa AWB Number
53
     *
54
     * @uses AbstractSoapClientBase::getSoapClient()
55
     * @uses AbstractSoapClientBase::setResult()
56
     * @uses AbstractSoapClientBase::getResult()
57
     * @uses AbstractSoapClientBase::saveLastError()
58
     *
59
     * @param \Alhoqbani\SmsaWebService\Soap\Type\AddShip $parameters
60
     *
61
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipResponse|bool
62
     */
63
    public function addShip(\Alhoqbani\SmsaWebService\Soap\Type\AddShip $parameters)
64
    {
65
        try {
66
            $this->setResult(self::getSoapClient()->addShip($parameters));
67
68
            return $this->getResult();
69
        } catch (\SoapFault $soapFault) {
70
            $this->saveLastError(__METHOD__, $soapFault);
71
72
            return false;
73
        }
74
    }
75
76
    /**
77
     * Method to call the operation originally named addShipMPS
78
     * Meta informations extracted from the WSDL
79
     * - documentation: Create Shipment with Shipper Details and get Smsa AWB Number for Multi piece Shipments
80
     *
81
     * @uses AbstractSoapClientBase::getSoapClient()
82
     * @uses AbstractSoapClientBase::setResult()
83
     * @uses AbstractSoapClientBase::getResult()
84
     * @uses AbstractSoapClientBase::saveLastError()
85
     *
86
     * @param \Alhoqbani\SmsaWebService\Soap\Type\AddShipMPS $parameters
87
     *
88
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipMPSResponse|bool
89
     */
90
    public function addShipMPS(\Alhoqbani\SmsaWebService\Soap\Type\AddShipMPS $parameters)
91
    {
92
        try {
93
            $this->setResult(self::getSoapClient()->addShipMPS($parameters));
94
95
            return $this->getResult();
96
        } catch (\SoapFault $soapFault) {
97
            $this->saveLastError(__METHOD__, $soapFault);
98
99
            return false;
100
        }
101
    }
102
103
    /**
104
     * Method to call the operation originally named stoShipment
105
     * Meta informations extracted from the WSDL
106
     * - documentation: Ship to Origin after Delivery
107
     *
108
     * @uses AbstractSoapClientBase::getSoapClient()
109
     * @uses AbstractSoapClientBase::setResult()
110
     * @uses AbstractSoapClientBase::getResult()
111
     * @uses AbstractSoapClientBase::saveLastError()
112
     *
113
     * @param \Alhoqbani\SmsaWebService\Soap\Type\StoShipment $parameters
114
     *
115
     * @return \Alhoqbani\SmsaWebService\Soap\Type\StoShipmentResponse|bool
116
     */
117
    public function stoShipment(\Alhoqbani\SmsaWebService\Soap\Type\StoShipment $parameters)
118
    {
119
        try {
120
            $this->setResult(self::getSoapClient()->stoShipment($parameters));
121
122
            return $this->getResult();
123
        } catch (\SoapFault $soapFault) {
124
            $this->saveLastError(__METHOD__, $soapFault);
125
126
            return false;
127
        }
128
    }
129
130
    /**
131
     * Method to call the operation originally named addShipmentDelv
132
     * Meta informations extracted from the WSDL
133
     * - documentation: Create Shipment with Delivery Details and get Smsa AWB Number
134
     *
135
     * @uses AbstractSoapClientBase::getSoapClient()
136
     * @uses AbstractSoapClientBase::setResult()
137
     * @uses AbstractSoapClientBase::getResult()
138
     * @uses AbstractSoapClientBase::saveLastError()
139
     *
140
     * @param \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv $parameters
141
     *
142
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelvResponse|bool
143
     */
144
    public function addShipmentDelv(\Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelv $parameters)
145
    {
146
        try {
147
            $this->setResult(self::getSoapClient()->addShipmentDelv($parameters));
148
149
            return $this->getResult();
150
        } catch (\SoapFault $soapFault) {
151
            $this->saveLastError(__METHOD__, $soapFault);
152
153
            return false;
154
        }
155
    }
156
157
    /**
158
     * Method to call the operation originally named getTracking
159
     * Meta informations extracted from the WSDL
160
     * - documentation: Get Tracking of Shipment by Air waybill Number
161
     *
162
     * @uses AbstractSoapClientBase::getSoapClient()
163
     * @uses AbstractSoapClientBase::setResult()
164
     * @uses AbstractSoapClientBase::getResult()
165
     * @uses AbstractSoapClientBase::saveLastError()
166
     *
167
     * @param \Alhoqbani\SmsaWebService\Soap\Type\GetTracking $parameters
168
     *
169
     * @return \Alhoqbani\SmsaWebService\Soap\Type\GetTrackingResponse|bool
170
     */
171
    public function getTracking(\Alhoqbani\SmsaWebService\Soap\Type\GetTracking $parameters)
172
    {
173
        try {
174
            $this->setResult(self::getSoapClient()->getTracking($parameters));
175
176
            return $this->getResult();
177
        } catch (\SoapFault $soapFault) {
178
            $this->saveLastError(__METHOD__, $soapFault);
179
180
            return false;
181
        }
182
    }
183
184
    /**
185
     * Method to call the operation originally named getTrackingwithRef
186
     * Meta informations extracted from the WSDL
187
     * - documentation: Get Tracking of Shipment with Reference Number by Air waybill Number
188
     *
189
     * @uses AbstractSoapClientBase::getSoapClient()
190
     * @uses AbstractSoapClientBase::setResult()
191
     * @uses AbstractSoapClientBase::getResult()
192
     * @uses AbstractSoapClientBase::saveLastError()
193
     *
194
     * @param \Alhoqbani\SmsaWebService\Soap\Type\GetTrackingwithRef $parameters
195
     *
196
     * @return \Alhoqbani\SmsaWebService\Soap\Type\GetTrackingwithRefResponse|bool
197
     */
198
    public function getTrackingwithRef(\Alhoqbani\SmsaWebService\Soap\Type\GetTrackingwithRef $parameters)
199
    {
200
        try {
201
            $this->setResult(self::getSoapClient()->getTrackingwithRef($parameters));
202
203
            return $this->getResult();
204
        } catch (\SoapFault $soapFault) {
205
            $this->saveLastError(__METHOD__, $soapFault);
206
207
            return false;
208
        }
209
    }
210
211
    /**
212
     * Method to call the operation originally named getStatus
213
     * Meta informations extracted from the WSDL
214
     * - documentation: Get current Status of Shipment by Air waybill Number
215
     *
216
     * @uses AbstractSoapClientBase::getSoapClient()
217
     * @uses AbstractSoapClientBase::setResult()
218
     * @uses AbstractSoapClientBase::getResult()
219
     * @uses AbstractSoapClientBase::saveLastError()
220
     *
221
     * @param \Alhoqbani\SmsaWebService\Soap\Type\GetStatus $parameters
222
     *
223
     * @return \Alhoqbani\SmsaWebService\Soap\Type\GetStatusResponse|bool
224
     */
225
    public function getStatus(\Alhoqbani\SmsaWebService\Soap\Type\GetStatus $parameters)
226
    {
227
        try {
228
            $this->setResult(self::getSoapClient()->getStatus($parameters));
229
230
            return $this->getResult();
231
        } catch (\SoapFault $soapFault) {
232
            $this->saveLastError(__METHOD__, $soapFault);
233
234
            return false;
235
        }
236
    }
237
238
    /**
239
     * Method to call the operation originally named saphOrderReady
240
     *
241
     * @uses AbstractSoapClientBase::getSoapClient()
242
     * @uses AbstractSoapClientBase::setResult()
243
     * @uses AbstractSoapClientBase::getResult()
244
     * @uses AbstractSoapClientBase::saveLastError()
245
     *
246
     * @param \Alhoqbani\SmsaWebService\Soap\Type\SaphOrderReady $parameters
247
     *
248
     * @return \Alhoqbani\SmsaWebService\Soap\Type\SaphOrderReadyResponse|bool
249
     */
250
    public function saphOrderReady(\Alhoqbani\SmsaWebService\Soap\Type\SaphOrderReady $parameters)
251
    {
252
        try {
253
            $this->setResult(self::getSoapClient()->saphOrderReady($parameters));
254
255
            return $this->getResult();
256
        } catch (\SoapFault $soapFault) {
257
            $this->saveLastError(__METHOD__, $soapFault);
258
259
            return false;
260
        }
261
    }
262
263
    /**
264
     * Method to call the operation originally named getStatusByRef
265
     * Meta informations extracted from the WSDL
266
     * - documentation: Get Status of Shipment by Customer Reference Number
267
     *
268
     * @uses AbstractSoapClientBase::getSoapClient()
269
     * @uses AbstractSoapClientBase::setResult()
270
     * @uses AbstractSoapClientBase::getResult()
271
     * @uses AbstractSoapClientBase::saveLastError()
272
     *
273
     * @param \Alhoqbani\SmsaWebService\Soap\Type\GetStatusByRef $parameters
274
     *
275
     * @return \Alhoqbani\SmsaWebService\Soap\Type\GetStatusByRefResponse|bool
276
     */
277
    public function getStatusByRef(\Alhoqbani\SmsaWebService\Soap\Type\GetStatusByRef $parameters)
278
    {
279
        try {
280
            $this->setResult(self::getSoapClient()->getStatusByRef($parameters));
281
282
            return $this->getResult();
283
        } catch (\SoapFault $soapFault) {
284
            $this->saveLastError(__METHOD__, $soapFault);
285
286
            return false;
287
        }
288
    }
289
290
    /**
291
     * Method to call the operation originally named getTrackingByRef
292
     * Meta informations extracted from the WSDL
293
     * - documentation: Get Tracking of Shipment by Air waybill Number
294
     *
295
     * @uses AbstractSoapClientBase::getSoapClient()
296
     * @uses AbstractSoapClientBase::setResult()
297
     * @uses AbstractSoapClientBase::getResult()
298
     * @uses AbstractSoapClientBase::saveLastError()
299
     *
300
     * @param \Alhoqbani\SmsaWebService\Soap\Type\GetTrackingByRef $parameters
301
     *
302
     * @return \Alhoqbani\SmsaWebService\Soap\Type\GetTrackingByRefResponse|bool
303
     */
304
    public function getTrackingByRef(\Alhoqbani\SmsaWebService\Soap\Type\GetTrackingByRef $parameters)
305
    {
306
        try {
307
            $this->setResult(self::getSoapClient()->getTrackingByRef($parameters));
308
309
            return $this->getResult();
310
        } catch (\SoapFault $soapFault) {
311
            $this->saveLastError(__METHOD__, $soapFault);
312
313
            return false;
314
        }
315
    }
316
317
    /**
318
     * Method to call the operation originally named getShipUpdates
319
     * Meta informations extracted from the WSDL
320
     * - documentation: Get All the Shipment Updates for the customer shipments
321
     *
322
     * @uses AbstractSoapClientBase::getSoapClient()
323
     * @uses AbstractSoapClientBase::setResult()
324
     * @uses AbstractSoapClientBase::getResult()
325
     * @uses AbstractSoapClientBase::saveLastError()
326
     *
327
     * @param \Alhoqbani\SmsaWebService\Soap\Type\GetShipUpdates $parameters
328
     *
329
     * @return \Alhoqbani\SmsaWebService\Soap\Type\GetShipUpdatesResponse|bool
330
     */
331
    public function getShipUpdates(\Alhoqbani\SmsaWebService\Soap\Type\GetShipUpdates $parameters)
332
    {
333
        try {
334
            $this->setResult(self::getSoapClient()->getShipUpdates($parameters));
335
336
            return $this->getResult();
337
        } catch (\SoapFault $soapFault) {
338
            $this->saveLastError(__METHOD__, $soapFault);
339
340
            return false;
341
        }
342
    }
343
344
    /**
345
     * Method to call the operation originally named cancelShipment
346
     * Meta informations extracted from the WSDL
347
     * - documentation: Cancel a Shipment by Air waybill Number
348
     *
349
     * @uses AbstractSoapClientBase::getSoapClient()
350
     * @uses AbstractSoapClientBase::setResult()
351
     * @uses AbstractSoapClientBase::getResult()
352
     * @uses AbstractSoapClientBase::saveLastError()
353
     *
354
     * @param \Alhoqbani\SmsaWebService\Soap\Type\CancelShipment $parameters
355
     *
356
     * @return \Alhoqbani\SmsaWebService\Soap\Type\CancelShipmentResponse|bool
357
     */
358
    public function cancelShipment(\Alhoqbani\SmsaWebService\Soap\Type\CancelShipment $parameters)
359
    {
360
        try {
361
            $this->setResult(self::getSoapClient()->cancelShipment($parameters));
362
363
            return $this->getResult();
364
        } catch (\SoapFault $soapFault) {
365
            $this->saveLastError(__METHOD__, $soapFault);
366
367
            return false;
368
        }
369
    }
370
371
    /**
372
     * Method to call the operation originally named getRTLCities
373
     * Meta informations extracted from the WSDL
374
     * - documentation: Get List of Cities for Retails list
375
     *
376
     * @uses AbstractSoapClientBase::getSoapClient()
377
     * @uses AbstractSoapClientBase::setResult()
378
     * @uses AbstractSoapClientBase::getResult()
379
     * @uses AbstractSoapClientBase::saveLastError()
380
     *
381
     * @param \Alhoqbani\SmsaWebService\Soap\Type\GetRTLCities $parameters
382
     *
383
     * @return \Alhoqbani\SmsaWebService\Soap\Type\GetRTLCitiesResponse|bool
384
     */
385
    public function getRTLCities(\Alhoqbani\SmsaWebService\Soap\Type\GetRTLCities $parameters)
386
    {
387
        try {
388
            $this->setResult(self::getSoapClient()->getRTLCities($parameters));
389
390
            return $this->getResult();
391
        } catch (\SoapFault $soapFault) {
392
            $this->saveLastError(__METHOD__, $soapFault);
393
394
            return false;
395
        }
396
    }
397
398
    /**
399
     * Method to call the operation originally named getRTLRetails
400
     * Meta informations extracted from the WSDL
401
     * - documentation: Get Retails list by each city
402
     *
403
     * @uses AbstractSoapClientBase::getSoapClient()
404
     * @uses AbstractSoapClientBase::setResult()
405
     * @uses AbstractSoapClientBase::getResult()
406
     * @uses AbstractSoapClientBase::saveLastError()
407
     *
408
     * @param \Alhoqbani\SmsaWebService\Soap\Type\GetRTLRetails $parameters
409
     *
410
     * @return \Alhoqbani\SmsaWebService\Soap\Type\GetRTLRetailsResponse|bool
411
     */
412
    public function getRTLRetails(\Alhoqbani\SmsaWebService\Soap\Type\GetRTLRetails $parameters)
413
    {
414
        try {
415
            $this->setResult(self::getSoapClient()->getRTLRetails($parameters));
416
417
            return $this->getResult();
418
        } catch (\SoapFault $soapFault) {
419
            $this->saveLastError(__METHOD__, $soapFault);
420
421
            return false;
422
        }
423
    }
424
425
    /**
426
     * Method to call the operation originally named getAllRetails
427
     * Meta informations extracted from the WSDL
428
     * - documentation: Get Retails list by each city
429
     *
430
     * @uses AbstractSoapClientBase::getSoapClient()
431
     * @uses AbstractSoapClientBase::setResult()
432
     * @uses AbstractSoapClientBase::getResult()
433
     * @uses AbstractSoapClientBase::saveLastError()
434
     *
435
     * @param \Alhoqbani\SmsaWebService\Soap\Type\GetAllRetails $parameters
436
     *
437
     * @return \Alhoqbani\SmsaWebService\Soap\Type\GetAllRetailsResponse|bool
438
     */
439
    public function getAllRetails(\Alhoqbani\SmsaWebService\Soap\Type\GetAllRetails $parameters)
440
    {
441
        try {
442
            $this->setResult(self::getSoapClient()->getAllRetails($parameters));
443
444
            return $this->getResult();
445
        } catch (\SoapFault $soapFault) {
446
            $this->saveLastError(__METHOD__, $soapFault);
447
448
            return false;
449
        }
450
    }
451
452
    /**
453
     * Method to call the operation originally named getPDF
454
     * Meta informations extracted from the WSDL
455
     * - documentation: Get AWB Print in PDF
456
     *
457
     * @uses AbstractSoapClientBase::getSoapClient()
458
     * @uses AbstractSoapClientBase::setResult()
459
     * @uses AbstractSoapClientBase::getResult()
460
     * @uses AbstractSoapClientBase::saveLastError()
461
     *
462
     * @param \Alhoqbani\SmsaWebService\Soap\Type\GetPDF $parameters
463
     *
464
     * @return \Alhoqbani\SmsaWebService\Soap\Type\GetPDFResponse|bool
465
     */
466
    public function getPDF(\Alhoqbani\SmsaWebService\Soap\Type\GetPDF $parameters)
467
    {
468
        try {
469
            $this->setResult(self::getSoapClient()->getPDF($parameters));
470
471
            return $this->getResult();
472
        } catch (\SoapFault $soapFault) {
473
            $this->saveLastError(__METHOD__, $soapFault);
474
475
            return false;
476
        }
477
    }
478
479
    /**
480
     * Method to call the operation originally named getPDFSino
481
     * Meta informations extracted from the WSDL
482
     * - documentation: Get AWB Print in PDF
483
     *
484
     * @uses AbstractSoapClientBase::getSoapClient()
485
     * @uses AbstractSoapClientBase::setResult()
486
     * @uses AbstractSoapClientBase::getResult()
487
     * @uses AbstractSoapClientBase::saveLastError()
488
     *
489
     * @param \Alhoqbani\SmsaWebService\Soap\Type\GetPDFSino $parameters
490
     *
491
     * @return \Alhoqbani\SmsaWebService\Soap\Type\GetPDFSinoResponse|bool
492
     */
493
    public function getPDFSino(\Alhoqbani\SmsaWebService\Soap\Type\GetPDFSino $parameters)
494
    {
495
        try {
496
            $this->setResult(self::getSoapClient()->getPDFSino($parameters));
497
498
            return $this->getResult();
499
        } catch (\SoapFault $soapFault) {
500
            $this->saveLastError(__METHOD__, $soapFault);
501
502
            return false;
503
        }
504
    }
505
506
    /**
507
     * Method to call the operation originally named getPDFBr
508
     * Meta informations extracted from the WSDL
509
     * - documentation: Get AWB Print in PDF
510
     *
511
     * @uses AbstractSoapClientBase::getSoapClient()
512
     * @uses AbstractSoapClientBase::setResult()
513
     * @uses AbstractSoapClientBase::getResult()
514
     * @uses AbstractSoapClientBase::saveLastError()
515
     *
516
     * @param \Alhoqbani\SmsaWebService\Soap\Type\GetPDFBr $parameters
517
     *
518
     * @return \Alhoqbani\SmsaWebService\Soap\Type\GetPDFBrResponse|bool
519
     */
520
    public function getPDFBr(\Alhoqbani\SmsaWebService\Soap\Type\GetPDFBr $parameters)
521
    {
522
        try {
523
            $this->setResult(self::getSoapClient()->getPDFBr($parameters));
524
525
            return $this->getResult();
526
        } catch (\SoapFault $soapFault) {
527
            $this->saveLastError(__METHOD__, $soapFault);
528
529
            return false;
530
        }
531
    }
532
533
    /**
534
     * Returns the result
535
     *
536
     * @see AbstractSoapClientBase::getResult()
537
     *
538
     * @return \Alhoqbani\SmsaWebService\Soap\Type\AddShipmentDelvResponse|\Alhoqbani\SmsaWebService\Soap\Type\AddShipmentResponse|\Alhoqbani\SmsaWebService\Soap\Type\AddShipMPSResponse|\Alhoqbani\SmsaWebService\Soap\Type\AddShipResponse|\Alhoqbani\SmsaWebService\Soap\Type\CancelShipmentResponse|\Alhoqbani\SmsaWebService\Soap\Type\GetAllRetailsResponse|\Alhoqbani\SmsaWebService\Soap\Type\GetPDFBrResponse|\Alhoqbani\SmsaWebService\Soap\Type\GetPDFResponse|\Alhoqbani\SmsaWebService\Soap\Type\GetPDFSinoResponse|\Alhoqbani\SmsaWebService\Soap\Type\GetRTLCitiesResponse|\Alhoqbani\SmsaWebService\Soap\Type\GetRTLRetailsResponse|\Alhoqbani\SmsaWebService\Soap\Type\GetShipUpdatesResponse|\Alhoqbani\SmsaWebService\Soap\Type\GetStatusByRefResponse|\Alhoqbani\SmsaWebService\Soap\Type\GetStatusResponse|\Alhoqbani\SmsaWebService\Soap\Type\GetTrackingByRefResponse|\Alhoqbani\SmsaWebService\Soap\Type\GetTrackingResponse|\Alhoqbani\SmsaWebService\Soap\Type\GetTrackingwithRefResponse|\Alhoqbani\SmsaWebService\Soap\Type\SaphOrderReadyResponse|\Alhoqbani\SmsaWebService\Soap\Type\StoShipmentResponse
539
     */
540
    public function getResult()
541
    {
542
        return parent::getResult();
543
    }
544
545
    /**
546
     * Method returning the class name
547
     *
548
     * @return string __CLASS__
549
     */
550
    public function __toString()
551
    {
552
        return __CLASS__;
553
    }
554
}
555