GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Branch master (77762a)
by Mohannad
13:57 queued 03:59
created

MethodsRedirector::cancelShipment()   B

Complexity

Conditions 5
Paths 9

Size

Total Lines 21
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 5
eloc 12
nc 9
nop 3
dl 0
loc 21
rs 8.7624
c 0
b 0
f 0
1
<?php
2
3
namespace SmsaSDK;
4
5
trait MethodsRedirector
6
{
7
    /**
8
     * @param $passKey
9
     * @param $refNo
10
     * @param $sentDate
11
     * @param $idNo
12
     * @param $cName
13
     * @param $cntry
14
     * @param $cCity
15
     * @param $cZip
16
     * @param $cPOBox
17
     * @param $cMobile
18
     * @param $cTel1
19
     * @param $cTel2
20
     * @param $cAddr1
21
     * @param $cAddr2
22
     * @param $shipType
23
     * @param $PCs
24
     * @param $cEmail
25
     * @param $carrValue
26
     * @param $carrCurr
27
     * @param $codAmt
28
     * @param $weight
29
     * @param $custVal
30
     * @param $custCurr
31
     * @param $insrAmt
32
     * @param $insrCurr
33
     * @param $itemDesc
34
     * @param $sName
35
     * @param $sContact
36
     * @param $sAddr1
37
     * @param $sAddr2
38
     * @param $sCity
39
     * @param $sPhone
40
     * @param $sCntry
41
     * @param $prefDelvDate
42
     * @param $gpsPoints
43
     *
44
     * @return \SmsaSDK\Methods\addShipResponse
45
     */
46
    public static function addShip($passKey = null, $refNo = null, $sentDate = null, $idNo = null, $cName = null, $cntry = null, $cCity = null, $cZip = null, $cPOBox = null, $cMobile = null, $cTel1 = null, $cTel2 = null, $cAddr1 = null, $cAddr2 = null, $shipType = null, $PCs = null, $cEmail = null, $carrValue = null, $carrCurr = null, $codAmt = null, $weight = null, $custVal = null, $custCurr = null, $insrAmt = null, $insrCurr = null, $itemDesc = null, $sName = null, $sContact = null, $sAddr1 = null, $sAddr2 = null, $sCity = null, $sPhone = null, $sCntry = null, $prefDelvDate = null, $gpsPoints = null)
47
    {
48
        $arguments = [];
49
        $firstArgument = func_get_args()[0];
50
51
        if (is_array($firstArgument)) {
52
            return static::handleStaticCalls('addShip', [$firstArgument]);
53
        }
54
55
        if (!is_null($passKey)) {
56
            $arguments['passKey'] = $passKey;
57
        }
58
        if (!is_null($refNo)) {
59
            $arguments['refNo'] = $refNo;
60
        }
61
        if (!is_null($sentDate)) {
62
            $arguments['sentDate'] = $sentDate;
63
        }
64
        if (!is_null($idNo)) {
65
            $arguments['idNo'] = $idNo;
66
        }
67
        if (!is_null($cName)) {
68
            $arguments['cName'] = $cName;
69
        }
70
        if (!is_null($cntry)) {
71
            $arguments['cntry'] = $cntry;
72
        }
73
        if (!is_null($cCity)) {
74
            $arguments['cCity'] = $cCity;
75
        }
76
        if (!is_null($cZip)) {
77
            $arguments['cZip'] = $cZip;
78
        }
79
        if (!is_null($cPOBox)) {
80
            $arguments['cPOBox'] = $cPOBox;
81
        }
82
        if (!is_null($cMobile)) {
83
            $arguments['cMobile'] = $cMobile;
84
        }
85
        if (!is_null($cTel1)) {
86
            $arguments['cTel1'] = $cTel1;
87
        }
88
        if (!is_null($cTel2)) {
89
            $arguments['cTel2'] = $cTel2;
90
        }
91
        if (!is_null($cAddr1)) {
92
            $arguments['cAddr1'] = $cAddr1;
93
        }
94
        if (!is_null($cAddr2)) {
95
            $arguments['cAddr2'] = $cAddr2;
96
        }
97
        if (!is_null($shipType)) {
98
            $arguments['shipType'] = $shipType;
99
        }
100
        if (!is_null($PCs)) {
101
            $arguments['PCs'] = $PCs;
102
        }
103
        if (!is_null($cEmail)) {
104
            $arguments['cEmail'] = $cEmail;
105
        }
106
        if (!is_null($carrValue)) {
107
            $arguments['carrValue'] = $carrValue;
108
        }
109
        if (!is_null($carrCurr)) {
110
            $arguments['carrCurr'] = $carrCurr;
111
        }
112
        if (!is_null($codAmt)) {
113
            $arguments['codAmt'] = $codAmt;
114
        }
115
        if (!is_null($weight)) {
116
            $arguments['weight'] = $weight;
117
        }
118
        if (!is_null($custVal)) {
119
            $arguments['custVal'] = $custVal;
120
        }
121
        if (!is_null($custCurr)) {
122
            $arguments['custCurr'] = $custCurr;
123
        }
124
        if (!is_null($insrAmt)) {
125
            $arguments['insrAmt'] = $insrAmt;
126
        }
127
        if (!is_null($insrCurr)) {
128
            $arguments['insrCurr'] = $insrCurr;
129
        }
130
        if (!is_null($itemDesc)) {
131
            $arguments['itemDesc'] = $itemDesc;
132
        }
133
        if (!is_null($sName)) {
134
            $arguments['sName'] = $sName;
135
        }
136
        if (!is_null($sContact)) {
137
            $arguments['sContact'] = $sContact;
138
        }
139
        if (!is_null($sAddr1)) {
140
            $arguments['sAddr1'] = $sAddr1;
141
        }
142
        if (!is_null($sAddr2)) {
143
            $arguments['sAddr2'] = $sAddr2;
144
        }
145
        if (!is_null($sCity)) {
146
            $arguments['sCity'] = $sCity;
147
        }
148
        if (!is_null($sPhone)) {
149
            $arguments['sPhone'] = $sPhone;
150
        }
151
        if (!is_null($sCntry)) {
152
            $arguments['sCntry'] = $sCntry;
153
        }
154
        if (!is_null($prefDelvDate)) {
155
            $arguments['prefDelvDate'] = $prefDelvDate;
156
        }
157
        if (!is_null($gpsPoints)) {
158
            $arguments['gpsPoints'] = $gpsPoints;
159
        }
160
161
        return static::handleStaticCalls('addShip', [$arguments]);
162
    }
163
164
    /**
165
     * @param $passKey
166
     * @param $refNo
167
     * @param $sentDate
168
     * @param $idNo
169
     * @param $cName
170
     * @param $cntry
171
     * @param $cCity
172
     * @param $cZip
173
     * @param $cPOBox
174
     * @param $cMobile
175
     * @param $cTel1
176
     * @param $cTel2
177
     * @param $cAddr1
178
     * @param $cAddr2
179
     * @param $shipType
180
     * @param $PCs
181
     * @param $cEmail
182
     * @param $carrValue
183
     * @param $carrCurr
184
     * @param $codAmt
185
     * @param $weight
186
     * @param $custVal
187
     * @param $custCurr
188
     * @param $insrAmt
189
     * @param $insrCurr
190
     * @param $itemDesc
191
     * @param $sName
192
     * @param $sContact
193
     * @param $sAddr1
194
     * @param $sAddr2
195
     * @param $sCity
196
     * @param $sPhone
197
     * @param $sCntry
198
     * @param $prefDelvDate
199
     * @param $gpsPoints
200
     *
201
     * @return \SmsaSDK\Methods\addShipMPSResponse
202
     */
203
    public static function addShipMPS($passKey = null, $refNo = null, $sentDate = null, $idNo = null, $cName = null, $cntry = null, $cCity = null, $cZip = null, $cPOBox = null, $cMobile = null, $cTel1 = null, $cTel2 = null, $cAddr1 = null, $cAddr2 = null, $shipType = null, $PCs = null, $cEmail = null, $carrValue = null, $carrCurr = null, $codAmt = null, $weight = null, $custVal = null, $custCurr = null, $insrAmt = null, $insrCurr = null, $itemDesc = null, $sName = null, $sContact = null, $sAddr1 = null, $sAddr2 = null, $sCity = null, $sPhone = null, $sCntry = null, $prefDelvDate = null, $gpsPoints = null)
204
    {
205
        $arguments = [];
206
        $firstArgument = func_get_args()[0];
207
208
        if (is_array($firstArgument)) {
209
            return static::handleStaticCalls('addShipMPS', [$firstArgument]);
210
        }
211
212
        if (!is_null($passKey)) {
213
            $arguments['passKey'] = $passKey;
214
        }
215
        if (!is_null($refNo)) {
216
            $arguments['refNo'] = $refNo;
217
        }
218
        if (!is_null($sentDate)) {
219
            $arguments['sentDate'] = $sentDate;
220
        }
221
        if (!is_null($idNo)) {
222
            $arguments['idNo'] = $idNo;
223
        }
224
        if (!is_null($cName)) {
225
            $arguments['cName'] = $cName;
226
        }
227
        if (!is_null($cntry)) {
228
            $arguments['cntry'] = $cntry;
229
        }
230
        if (!is_null($cCity)) {
231
            $arguments['cCity'] = $cCity;
232
        }
233
        if (!is_null($cZip)) {
234
            $arguments['cZip'] = $cZip;
235
        }
236
        if (!is_null($cPOBox)) {
237
            $arguments['cPOBox'] = $cPOBox;
238
        }
239
        if (!is_null($cMobile)) {
240
            $arguments['cMobile'] = $cMobile;
241
        }
242
        if (!is_null($cTel1)) {
243
            $arguments['cTel1'] = $cTel1;
244
        }
245
        if (!is_null($cTel2)) {
246
            $arguments['cTel2'] = $cTel2;
247
        }
248
        if (!is_null($cAddr1)) {
249
            $arguments['cAddr1'] = $cAddr1;
250
        }
251
        if (!is_null($cAddr2)) {
252
            $arguments['cAddr2'] = $cAddr2;
253
        }
254
        if (!is_null($shipType)) {
255
            $arguments['shipType'] = $shipType;
256
        }
257
        if (!is_null($PCs)) {
258
            $arguments['PCs'] = $PCs;
259
        }
260
        if (!is_null($cEmail)) {
261
            $arguments['cEmail'] = $cEmail;
262
        }
263
        if (!is_null($carrValue)) {
264
            $arguments['carrValue'] = $carrValue;
265
        }
266
        if (!is_null($carrCurr)) {
267
            $arguments['carrCurr'] = $carrCurr;
268
        }
269
        if (!is_null($codAmt)) {
270
            $arguments['codAmt'] = $codAmt;
271
        }
272
        if (!is_null($weight)) {
273
            $arguments['weight'] = $weight;
274
        }
275
        if (!is_null($custVal)) {
276
            $arguments['custVal'] = $custVal;
277
        }
278
        if (!is_null($custCurr)) {
279
            $arguments['custCurr'] = $custCurr;
280
        }
281
        if (!is_null($insrAmt)) {
282
            $arguments['insrAmt'] = $insrAmt;
283
        }
284
        if (!is_null($insrCurr)) {
285
            $arguments['insrCurr'] = $insrCurr;
286
        }
287
        if (!is_null($itemDesc)) {
288
            $arguments['itemDesc'] = $itemDesc;
289
        }
290
        if (!is_null($sName)) {
291
            $arguments['sName'] = $sName;
292
        }
293
        if (!is_null($sContact)) {
294
            $arguments['sContact'] = $sContact;
295
        }
296
        if (!is_null($sAddr1)) {
297
            $arguments['sAddr1'] = $sAddr1;
298
        }
299
        if (!is_null($sAddr2)) {
300
            $arguments['sAddr2'] = $sAddr2;
301
        }
302
        if (!is_null($sCity)) {
303
            $arguments['sCity'] = $sCity;
304
        }
305
        if (!is_null($sPhone)) {
306
            $arguments['sPhone'] = $sPhone;
307
        }
308
        if (!is_null($sCntry)) {
309
            $arguments['sCntry'] = $sCntry;
310
        }
311
        if (!is_null($prefDelvDate)) {
312
            $arguments['prefDelvDate'] = $prefDelvDate;
313
        }
314
        if (!is_null($gpsPoints)) {
315
            $arguments['gpsPoints'] = $gpsPoints;
316
        }
317
318
        return static::handleStaticCalls('addShipMPS', [$arguments]);
319
    }
320
321
    /**
322
     * @param $passKey
323
     * @param $refNo
324
     * @param $sentDate
325
     * @param $idNo
326
     * @param $cName
327
     * @param $cntry
328
     * @param $cCity
329
     * @param $cZip
330
     * @param $cPOBox
331
     * @param $cMobile
332
     * @param $cTel1
333
     * @param $cTel2
334
     * @param $cAddr1
335
     * @param $cAddr2
336
     * @param $shipType
337
     * @param $PCs
338
     * @param $cEmail
339
     * @param $carrValue
340
     * @param $carrCurr
341
     * @param $codAmt
342
     * @param $weight
343
     * @param $custVal
344
     * @param $custCurr
345
     * @param $insrAmt
346
     * @param $insrCurr
347
     * @param $itemDesc
348
     *
349
     * @return \SmsaSDK\Methods\addShipmentResponse
350
     */
351
    public static function addShipment($passKey = null, $refNo = null, $sentDate = null, $idNo = null, $cName = null, $cntry = null, $cCity = null, $cZip = null, $cPOBox = null, $cMobile = null, $cTel1 = null, $cTel2 = null, $cAddr1 = null, $cAddr2 = null, $shipType = null, $PCs = null, $cEmail = null, $carrValue = null, $carrCurr = null, $codAmt = null, $weight = null, $custVal = null, $custCurr = null, $insrAmt = null, $insrCurr = null, $itemDesc = null)
352
    {
353
        $arguments = [];
354
        $firstArgument = func_get_args()[0];
355
356
        if (is_array($firstArgument)) {
357
            return static::handleStaticCalls('addShipment', [$firstArgument]);
358
        }
359
360
        if (!is_null($passKey)) {
361
            $arguments['passKey'] = $passKey;
362
        }
363
        if (!is_null($refNo)) {
364
            $arguments['refNo'] = $refNo;
365
        }
366
        if (!is_null($sentDate)) {
367
            $arguments['sentDate'] = $sentDate;
368
        }
369
        if (!is_null($idNo)) {
370
            $arguments['idNo'] = $idNo;
371
        }
372
        if (!is_null($cName)) {
373
            $arguments['cName'] = $cName;
374
        }
375
        if (!is_null($cntry)) {
376
            $arguments['cntry'] = $cntry;
377
        }
378
        if (!is_null($cCity)) {
379
            $arguments['cCity'] = $cCity;
380
        }
381
        if (!is_null($cZip)) {
382
            $arguments['cZip'] = $cZip;
383
        }
384
        if (!is_null($cPOBox)) {
385
            $arguments['cPOBox'] = $cPOBox;
386
        }
387
        if (!is_null($cMobile)) {
388
            $arguments['cMobile'] = $cMobile;
389
        }
390
        if (!is_null($cTel1)) {
391
            $arguments['cTel1'] = $cTel1;
392
        }
393
        if (!is_null($cTel2)) {
394
            $arguments['cTel2'] = $cTel2;
395
        }
396
        if (!is_null($cAddr1)) {
397
            $arguments['cAddr1'] = $cAddr1;
398
        }
399
        if (!is_null($cAddr2)) {
400
            $arguments['cAddr2'] = $cAddr2;
401
        }
402
        if (!is_null($shipType)) {
403
            $arguments['shipType'] = $shipType;
404
        }
405
        if (!is_null($PCs)) {
406
            $arguments['PCs'] = $PCs;
407
        }
408
        if (!is_null($cEmail)) {
409
            $arguments['cEmail'] = $cEmail;
410
        }
411
        if (!is_null($carrValue)) {
412
            $arguments['carrValue'] = $carrValue;
413
        }
414
        if (!is_null($carrCurr)) {
415
            $arguments['carrCurr'] = $carrCurr;
416
        }
417
        if (!is_null($codAmt)) {
418
            $arguments['codAmt'] = $codAmt;
419
        }
420
        if (!is_null($weight)) {
421
            $arguments['weight'] = $weight;
422
        }
423
        if (!is_null($custVal)) {
424
            $arguments['custVal'] = $custVal;
425
        }
426
        if (!is_null($custCurr)) {
427
            $arguments['custCurr'] = $custCurr;
428
        }
429
        if (!is_null($insrAmt)) {
430
            $arguments['insrAmt'] = $insrAmt;
431
        }
432
        if (!is_null($insrCurr)) {
433
            $arguments['insrCurr'] = $insrCurr;
434
        }
435
        if (!is_null($itemDesc)) {
436
            $arguments['itemDesc'] = $itemDesc;
437
        }
438
439
        return static::handleStaticCalls('addShipment', [$arguments]);
440
    }
441
442
    /**
443
     * @param $passKey
444
     * @param $refNo
445
     * @param $sentDate
446
     * @param $idNo
447
     * @param $cName
448
     * @param $cntry
449
     * @param $cCity
450
     * @param $cZip
451
     * @param $cPOBox
452
     * @param $cMobile
453
     * @param $cTel1
454
     * @param $cTel2
455
     * @param $cAddr1
456
     * @param $cAddr2
457
     * @param $shipType
458
     * @param $PCs
459
     * @param $cEmail
460
     * @param $carrValue
461
     * @param $carrCurr
462
     * @param $codAmt
463
     * @param $weight
464
     * @param $custVal
465
     * @param $custCurr
466
     * @param $insrAmt
467
     * @param $insrCurr
468
     * @param $itemDesc
469
     * @param $prefDelvDate
470
     * @param $gpsPoints
471
     *
472
     * @return \SmsaSDK\Methods\addShipmentDelvResponse
473
     */
474
    public static function addShipmentDelv($passKey = null, $refNo = null, $sentDate = null, $idNo = null, $cName = null, $cntry = null, $cCity = null, $cZip = null, $cPOBox = null, $cMobile = null, $cTel1 = null, $cTel2 = null, $cAddr1 = null, $cAddr2 = null, $shipType = null, $PCs = null, $cEmail = null, $carrValue = null, $carrCurr = null, $codAmt = null, $weight = null, $custVal = null, $custCurr = null, $insrAmt = null, $insrCurr = null, $itemDesc = null, $prefDelvDate = null, $gpsPoints = null)
475
    {
476
        $arguments = [];
477
        $firstArgument = func_get_args()[0];
478
479
        if (is_array($firstArgument)) {
480
            return static::handleStaticCalls('addShipmentDelv', [$firstArgument]);
481
        }
482
483
        if (!is_null($passKey)) {
484
            $arguments['passKey'] = $passKey;
485
        }
486
        if (!is_null($refNo)) {
487
            $arguments['refNo'] = $refNo;
488
        }
489
        if (!is_null($sentDate)) {
490
            $arguments['sentDate'] = $sentDate;
491
        }
492
        if (!is_null($idNo)) {
493
            $arguments['idNo'] = $idNo;
494
        }
495
        if (!is_null($cName)) {
496
            $arguments['cName'] = $cName;
497
        }
498
        if (!is_null($cntry)) {
499
            $arguments['cntry'] = $cntry;
500
        }
501
        if (!is_null($cCity)) {
502
            $arguments['cCity'] = $cCity;
503
        }
504
        if (!is_null($cZip)) {
505
            $arguments['cZip'] = $cZip;
506
        }
507
        if (!is_null($cPOBox)) {
508
            $arguments['cPOBox'] = $cPOBox;
509
        }
510
        if (!is_null($cMobile)) {
511
            $arguments['cMobile'] = $cMobile;
512
        }
513
        if (!is_null($cTel1)) {
514
            $arguments['cTel1'] = $cTel1;
515
        }
516
        if (!is_null($cTel2)) {
517
            $arguments['cTel2'] = $cTel2;
518
        }
519
        if (!is_null($cAddr1)) {
520
            $arguments['cAddr1'] = $cAddr1;
521
        }
522
        if (!is_null($cAddr2)) {
523
            $arguments['cAddr2'] = $cAddr2;
524
        }
525
        if (!is_null($shipType)) {
526
            $arguments['shipType'] = $shipType;
527
        }
528
        if (!is_null($PCs)) {
529
            $arguments['PCs'] = $PCs;
530
        }
531
        if (!is_null($cEmail)) {
532
            $arguments['cEmail'] = $cEmail;
533
        }
534
        if (!is_null($carrValue)) {
535
            $arguments['carrValue'] = $carrValue;
536
        }
537
        if (!is_null($carrCurr)) {
538
            $arguments['carrCurr'] = $carrCurr;
539
        }
540
        if (!is_null($codAmt)) {
541
            $arguments['codAmt'] = $codAmt;
542
        }
543
        if (!is_null($weight)) {
544
            $arguments['weight'] = $weight;
545
        }
546
        if (!is_null($custVal)) {
547
            $arguments['custVal'] = $custVal;
548
        }
549
        if (!is_null($custCurr)) {
550
            $arguments['custCurr'] = $custCurr;
551
        }
552
        if (!is_null($insrAmt)) {
553
            $arguments['insrAmt'] = $insrAmt;
554
        }
555
        if (!is_null($insrCurr)) {
556
            $arguments['insrCurr'] = $insrCurr;
557
        }
558
        if (!is_null($itemDesc)) {
559
            $arguments['itemDesc'] = $itemDesc;
560
        }
561
        if (!is_null($prefDelvDate)) {
562
            $arguments['prefDelvDate'] = $prefDelvDate;
563
        }
564
        if (!is_null($gpsPoints)) {
565
            $arguments['gpsPoints'] = $gpsPoints;
566
        }
567
568
        return static::handleStaticCalls('addShipmentDelv', [$arguments]);
569
    }
570
571
    /**
572
     * @param $awbNo
573
     * @param $passkey
574
     * @param $reas
575
     *
576
     * @return \SmsaSDK\Methods\cancelShipmentResponse
577
     */
578
    public static function cancelShipment($awbNo = null, $passkey = null, $reas = null)
579
    {
580
        $arguments = [];
581
        $firstArgument = func_get_args()[0];
582
583
        if (is_array($firstArgument)) {
584
            return static::handleStaticCalls('cancelShipment', [$firstArgument]);
585
        }
586
587
        if (!is_null($awbNo)) {
588
            $arguments['awbNo'] = $awbNo;
589
        }
590
        if (!is_null($passkey)) {
591
            $arguments['passkey'] = $passkey;
592
        }
593
        if (!is_null($reas)) {
594
            $arguments['reas'] = $reas;
595
        }
596
597
        return static::handleStaticCalls('cancelShipment', [$arguments]);
598
    }
599
600
    /**
601
     * @param $passkey
602
     *
603
     * @return \SmsaSDK\Methods\getAllRetailsResponse
604
     */
605
    public static function getAllRetails($passkey = null)
606
    {
607
        $arguments = [];
608
        $firstArgument = func_get_args()[0];
609
610
        if (is_array($firstArgument)) {
611
            return static::handleStaticCalls('getAllRetails', [$firstArgument]);
612
        }
613
614
        if (!is_null($passkey)) {
615
            $arguments['passkey'] = $passkey;
616
        }
617
618
        return static::handleStaticCalls('getAllRetails', [$arguments]);
619
    }
620
621
    /**
622
     * @param $awbNo
623
     * @param $passKey
624
     *
625
     * @return \SmsaSDK\Methods\getPDFResponse
626
     */
627
    public static function getPDF($awbNo = null, $passKey = null)
628
    {
629
        $arguments = [];
630
        $firstArgument = func_get_args()[0];
631
632
        if (is_array($firstArgument)) {
633
            return static::handleStaticCalls('getPDF', [$firstArgument]);
634
        }
635
636
        if (!is_null($awbNo)) {
637
            $arguments['awbNo'] = $awbNo;
638
        }
639
        if (!is_null($passKey)) {
640
            $arguments['passKey'] = $passKey;
641
        }
642
643
        return static::handleStaticCalls('getPDF', [$arguments]);
644
    }
645
646
    /**
647
     * @param $awbNo
648
     * @param $passKey
649
     * @param $forwrdr
650
     *
651
     * @return \SmsaSDK\Methods\getPDFBrResponse
652
     */
653
    public static function getPDFBr($awbNo = null, $passKey = null, $forwrdr = null)
654
    {
655
        $arguments = [];
656
        $firstArgument = func_get_args()[0];
657
658
        if (is_array($firstArgument)) {
659
            return static::handleStaticCalls('getPDFBr', [$firstArgument]);
660
        }
661
662
        if (!is_null($awbNo)) {
663
            $arguments['awbNo'] = $awbNo;
664
        }
665
        if (!is_null($passKey)) {
666
            $arguments['passKey'] = $passKey;
667
        }
668
        if (!is_null($forwrdr)) {
669
            $arguments['forwrdr'] = $forwrdr;
670
        }
671
672
        return static::handleStaticCalls('getPDFBr', [$arguments]);
673
    }
674
675
    /**
676
     * @param $awbNo
677
     * @param $passKey
678
     *
679
     * @return \SmsaSDK\Methods\getPDFSinoResponse
680
     */
681
    public static function getPDFSino($awbNo = null, $passKey = null)
682
    {
683
        $arguments = [];
684
        $firstArgument = func_get_args()[0];
685
686
        if (is_array($firstArgument)) {
687
            return static::handleStaticCalls('getPDFSino', [$firstArgument]);
688
        }
689
690
        if (!is_null($awbNo)) {
691
            $arguments['awbNo'] = $awbNo;
692
        }
693
        if (!is_null($passKey)) {
694
            $arguments['passKey'] = $passKey;
695
        }
696
697
        return static::handleStaticCalls('getPDFSino', [$arguments]);
698
    }
699
700
    /**
701
     * @param $passkey
702
     *
703
     * @return \SmsaSDK\Methods\getRTLCitiesResponse
704
     */
705
    public static function getRTLCities($passkey = null)
706
    {
707
        $arguments = [];
708
        $firstArgument = func_get_args()[0];
709
710
        if (is_array($firstArgument)) {
711
            return static::handleStaticCalls('getRTLCities', [$firstArgument]);
712
        }
713
714
        if (!is_null($passkey)) {
715
            $arguments['passkey'] = $passkey;
716
        }
717
718
        return static::handleStaticCalls('getRTLCities', [$arguments]);
719
    }
720
721
    /**
722
     * @param $cityCode
723
     * @param $passkey
724
     *
725
     * @return \SmsaSDK\Methods\getRTLRetailsResponse
726
     */
727
    public static function getRTLRetails($cityCode = null, $passkey = null)
728
    {
729
        $arguments = [];
730
        $firstArgument = func_get_args()[0];
731
732
        if (is_array($firstArgument)) {
733
            return static::handleStaticCalls('getRTLRetails', [$firstArgument]);
734
        }
735
736
        if (!is_null($cityCode)) {
737
            $arguments['cityCode'] = $cityCode;
738
        }
739
        if (!is_null($passkey)) {
740
            $arguments['passkey'] = $passkey;
741
        }
742
743
        return static::handleStaticCalls('getRTLRetails', [$arguments]);
744
    }
745
746
    /**
747
     * @param $rowId
748
     * @param $passKey
749
     *
750
     * @return \SmsaSDK\Methods\getShipUpdatesResponse
751
     */
752
    public static function getShipUpdates($rowId = null, $passKey = null)
753
    {
754
        $arguments = [];
755
        $firstArgument = func_get_args()[0];
756
757
        if (is_array($firstArgument)) {
758
            return static::handleStaticCalls('getShipUpdates', [$firstArgument]);
759
        }
760
761
        if (!is_null($rowId)) {
762
            $arguments['rowId'] = $rowId;
763
        }
764
        if (!is_null($passKey)) {
765
            $arguments['passKey'] = $passKey;
766
        }
767
768
        return static::handleStaticCalls('getShipUpdates', [$arguments]);
769
    }
770
771
    /**
772
     * @param $awbNo
773
     * @param $passkey
774
     *
775
     * @return \SmsaSDK\Methods\getStatusResponse
776
     */
777
    public static function getStatus($awbNo = null, $passkey = null)
778
    {
779
        $arguments = [];
780
        $firstArgument = func_get_args()[0];
781
782
        if (is_array($firstArgument)) {
783
            return static::handleStaticCalls('getStatus', [$firstArgument]);
784
        }
785
786
        if (!is_null($awbNo)) {
787
            $arguments['awbNo'] = $awbNo;
788
        }
789
        if (!is_null($passkey)) {
790
            $arguments['passkey'] = $passkey;
791
        }
792
793
        return static::handleStaticCalls('getStatus', [$arguments]);
794
    }
795
796
    /**
797
     * @param $refNo
798
     * @param $passkey
799
     *
800
     * @return \SmsaSDK\Methods\getStatusByRefResponse
801
     */
802
    public static function getStatusByRef($refNo = null, $passkey = null)
803
    {
804
        $arguments = [];
805
        $firstArgument = func_get_args()[0];
806
807
        if (is_array($firstArgument)) {
808
            return static::handleStaticCalls('getStatusByRef', [$firstArgument]);
809
        }
810
811
        if (!is_null($refNo)) {
812
            $arguments['refNo'] = $refNo;
813
        }
814
        if (!is_null($passkey)) {
815
            $arguments['passkey'] = $passkey;
816
        }
817
818
        return static::handleStaticCalls('getStatusByRef', [$arguments]);
819
    }
820
821
    /**
822
     * @param $awbNo
823
     * @param $passkey
824
     *
825
     * @return \SmsaSDK\Methods\getTrackingResponse
826
     */
827
    public static function getTracking($awbNo = null, $passkey = null)
828
    {
829
        $arguments = [];
830
        $firstArgument = func_get_args()[0];
831
832
        if (is_array($firstArgument)) {
833
            return static::handleStaticCalls('getTracking', [$firstArgument]);
834
        }
835
836
        if (!is_null($awbNo)) {
837
            $arguments['awbNo'] = $awbNo;
838
        }
839
        if (!is_null($passkey)) {
840
            $arguments['passkey'] = $passkey;
841
        }
842
843
        return static::handleStaticCalls('getTracking', [$arguments]);
844
    }
845
846
    /**
847
     * @param $refNo
848
     * @param $passkey
849
     *
850
     * @return \SmsaSDK\Methods\getTrackingByRefResponse
851
     */
852
    public static function getTrackingByRef($refNo = null, $passkey = null)
853
    {
854
        $arguments = [];
855
        $firstArgument = func_get_args()[0];
856
857
        if (is_array($firstArgument)) {
858
            return static::handleStaticCalls('getTrackingByRef', [$firstArgument]);
859
        }
860
861
        if (!is_null($refNo)) {
862
            $arguments['refNo'] = $refNo;
863
        }
864
        if (!is_null($passkey)) {
865
            $arguments['passkey'] = $passkey;
866
        }
867
868
        return static::handleStaticCalls('getTrackingByRef', [$arguments]);
869
    }
870
871
    /**
872
     * @param $awbNo
873
     * @param $passkey
874
     *
875
     * @return \SmsaSDK\Methods\getTrackingwithRefResponse
876
     */
877
    public static function getTrackingwithRef($awbNo = null, $passkey = null)
878
    {
879
        $arguments = [];
880
        $firstArgument = func_get_args()[0];
881
882
        if (is_array($firstArgument)) {
883
            return static::handleStaticCalls('getTrackingwithRef', [$firstArgument]);
884
        }
885
886
        if (!is_null($awbNo)) {
887
            $arguments['awbNo'] = $awbNo;
888
        }
889
        if (!is_null($passkey)) {
890
            $arguments['passkey'] = $passkey;
891
        }
892
893
        return static::handleStaticCalls('getTrackingwithRef', [$arguments]);
894
    }
895
896
    /**
897
     * @param $passKey
898
     * @param $refId
899
     * @param $orderLineItems
900
     *
901
     * @return \SmsaSDK\Methods\saphOrderReadyResponse
902
     */
903
    public static function saphOrderReady($passKey = null, $refId = null, $orderLineItems = null)
904
    {
905
        $arguments = [];
906
        $firstArgument = func_get_args()[0];
907
908
        if (is_array($firstArgument)) {
909
            return static::handleStaticCalls('saphOrderReady', [$firstArgument]);
910
        }
911
912
        if (!is_null($passKey)) {
913
            $arguments['passKey'] = $passKey;
914
        }
915
        if (!is_null($refId)) {
916
            $arguments['refId'] = $refId;
917
        }
918
        if (!is_null($orderLineItems)) {
919
            $arguments['orderLineItems'] = $orderLineItems;
920
        }
921
922
        return static::handleStaticCalls('saphOrderReady', [$arguments]);
923
    }
924
925
    /**
926
     * @param $awbNo
927
     * @param $passkey
928
     *
929
     * @return \SmsaSDK\Methods\stoShipmentResponse
930
     */
931
    public static function stoShipment($awbNo = null, $passkey = null)
932
    {
933
        $arguments = [];
934
        $firstArgument = func_get_args()[0];
935
936
        if (is_array($firstArgument)) {
937
            return static::handleStaticCalls('stoShipment', [$firstArgument]);
938
        }
939
940
        if (!is_null($awbNo)) {
941
            $arguments['awbNo'] = $awbNo;
942
        }
943
        if (!is_null($passkey)) {
944
            $arguments['passkey'] = $passkey;
945
        }
946
947
        return static::handleStaticCalls('stoShipment', [$arguments]);
948
    }
949
}
950