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.
Test Failed
Push — master ( 23cf5e...a77922 )
by
unknown
05:28
created

QueryPromotion::withExtra()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace AlibabaCloud\UniMkt\V20181212;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method CheckDevice checkDevice(array $options = [])
9
 * @method KeepAlive keepAlive(array $options = [])
10
 * @method PushDeviceStatus pushDeviceStatus(array $options = [])
11
 * @method PushExtraTradeDetail pushExtraTradeDetail(array $options = [])
12
 * @method PushFaultEvent pushFaultEvent(array $options = [])
13
 * @method PushTradeDetail pushTradeDetail(array $options = [])
14
 * @method QueryPromotion queryPromotion(array $options = [])
15
 * @method RegistDevice registDevice(array $options = [])
16
 * @method ScanCodeNotification scanCodeNotification(array $options = [])
17
 */
18
class UniMktApiResolver extends ApiResolver
19
{
20
}
21
22
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
23
{
24
    /** @var string */
25
    public $product = 'UniMkt';
26
27
    /** @var string */
28
    public $version = '2018-12-12';
29
30
    /** @var string */
31
    public $method = 'POST';
32
33
    /** @var string */
34
    protected $scheme = 'https';
35
}
36
37
/**
38
 * @method string getDeviceSn()
39
 * @method string getChannelId()
40
 */
41
class CheckDevice extends Rpc
42
{
43
44
    /**
45
     * @param string $value
46
     *
47
     * @return $this
48
     */
49
    public function withDeviceSn($value)
50
    {
51
        $this->data['DeviceSn'] = $value;
52
        $this->options['form_params']['DeviceSn'] = $value;
53
54
        return $this;
55
    }
56
57
    /**
58
     * @param string $value
59
     *
60
     * @return $this
61
     */
62
    public function withChannelId($value)
63
    {
64
        $this->data['ChannelId'] = $value;
65
        $this->options['form_params']['ChannelId'] = $value;
66
67
        return $this;
68
    }
69
}
70
71
/**
72
 * @method string getTac()
73
 * @method string getNetworkType()
74
 * @method string getCellId()
75
 * @method string getDeviceSn()
76
 * @method string getChannelId()
77
 */
78
class KeepAlive extends Rpc
79
{
80
81
    /**
82
     * @param string $value
83
     *
84
     * @return $this
85
     */
86
    public function withTac($value)
87
    {
88
        $this->data['Tac'] = $value;
89
        $this->options['form_params']['Tac'] = $value;
90
91
        return $this;
92
    }
93
94
    /**
95
     * @param string $value
96
     *
97
     * @return $this
98
     */
99
    public function withNetworkType($value)
100
    {
101
        $this->data['NetworkType'] = $value;
102
        $this->options['form_params']['NetworkType'] = $value;
103
104
        return $this;
105
    }
106
107
    /**
108
     * @param string $value
109
     *
110
     * @return $this
111
     */
112
    public function withCellId($value)
113
    {
114
        $this->data['CellId'] = $value;
115
        $this->options['form_params']['CellId'] = $value;
116
117
        return $this;
118
    }
119
120
    /**
121
     * @param string $value
122
     *
123
     * @return $this
124
     */
125
    public function withDeviceSn($value)
126
    {
127
        $this->data['DeviceSn'] = $value;
128
        $this->options['form_params']['DeviceSn'] = $value;
129
130
        return $this;
131
    }
132
133
    /**
134
     * @param string $value
135
     *
136
     * @return $this
137
     */
138
    public function withChannelId($value)
139
    {
140
        $this->data['ChannelId'] = $value;
141
        $this->options['form_params']['ChannelId'] = $value;
142
143
        return $this;
144
    }
145
}
146
147
/**
148
 * @method string getDeviceSn()
149
 * @method string getChannelId()
150
 * @method string getStatus()
151
 */
152
class PushDeviceStatus extends Rpc
153
{
154
155
    /**
156
     * @param string $value
157
     *
158
     * @return $this
159
     */
160
    public function withDeviceSn($value)
161
    {
162
        $this->data['DeviceSn'] = $value;
163
        $this->options['form_params']['DeviceSn'] = $value;
164
165
        return $this;
166
    }
167
168
    /**
169
     * @param string $value
170
     *
171
     * @return $this
172
     */
173
    public function withChannelId($value)
174
    {
175
        $this->data['ChannelId'] = $value;
176
        $this->options['form_params']['ChannelId'] = $value;
177
178
        return $this;
179
    }
180
181
    /**
182
     * @param string $value
183
     *
184
     * @return $this
185
     */
186
    public function withStatus($value)
187
    {
188
        $this->data['Status'] = $value;
189
        $this->options['form_params']['Status'] = $value;
190
191
        return $this;
192
    }
193
}
194
195
/**
196
 * @method string getOrderId()
197
 * @method string getSalePrice()
198
 * @method string getTradeStatus()
199
 * @method string getCommodityId()
200
 * @method string getDeviceSn()
201
 * @method string getChannelId()
202
 * @method string getCommodityName()
203
 * @method string getTradeTime()
204
 * @method string getTradePrice()
205
 */
206
class PushExtraTradeDetail extends Rpc
207
{
208
209
    /**
210
     * @param string $value
211
     *
212
     * @return $this
213
     */
214
    public function withOrderId($value)
215
    {
216
        $this->data['OrderId'] = $value;
217
        $this->options['form_params']['OrderId'] = $value;
218
219
        return $this;
220
    }
221
222
    /**
223
     * @param string $value
224
     *
225
     * @return $this
226
     */
227
    public function withSalePrice($value)
228
    {
229
        $this->data['SalePrice'] = $value;
230
        $this->options['form_params']['SalePrice'] = $value;
231
232
        return $this;
233
    }
234
235
    /**
236
     * @param string $value
237
     *
238
     * @return $this
239
     */
240
    public function withTradeStatus($value)
241
    {
242
        $this->data['TradeStatus'] = $value;
243
        $this->options['form_params']['TradeStatus'] = $value;
244
245
        return $this;
246
    }
247
248
    /**
249
     * @param string $value
250
     *
251
     * @return $this
252
     */
253
    public function withCommodityId($value)
254
    {
255
        $this->data['CommodityId'] = $value;
256
        $this->options['form_params']['CommodityId'] = $value;
257
258
        return $this;
259
    }
260
261
    /**
262
     * @param string $value
263
     *
264
     * @return $this
265
     */
266
    public function withDeviceSn($value)
267
    {
268
        $this->data['DeviceSn'] = $value;
269
        $this->options['form_params']['DeviceSn'] = $value;
270
271
        return $this;
272
    }
273
274
    /**
275
     * @param string $value
276
     *
277
     * @return $this
278
     */
279
    public function withChannelId($value)
280
    {
281
        $this->data['ChannelId'] = $value;
282
        $this->options['form_params']['ChannelId'] = $value;
283
284
        return $this;
285
    }
286
287
    /**
288
     * @param string $value
289
     *
290
     * @return $this
291
     */
292
    public function withCommodityName($value)
293
    {
294
        $this->data['CommodityName'] = $value;
295
        $this->options['form_params']['CommodityName'] = $value;
296
297
        return $this;
298
    }
299
300
    /**
301
     * @param string $value
302
     *
303
     * @return $this
304
     */
305
    public function withTradeTime($value)
306
    {
307
        $this->data['TradeTime'] = $value;
308
        $this->options['form_params']['TradeTime'] = $value;
309
310
        return $this;
311
    }
312
313
    /**
314
     * @param string $value
315
     *
316
     * @return $this
317
     */
318
    public function withTradePrice($value)
319
    {
320
        $this->data['TradePrice'] = $value;
321
        $this->options['form_params']['TradePrice'] = $value;
322
323
        return $this;
324
    }
325
}
326
327
/**
328
 * @method string getFaultComment()
329
 * @method string getTime()
330
 * @method string getType()
331
 * @method string getDeviceSn()
332
 * @method string getChannelId()
333
 * @method string getFaultType()
334
 */
335
class PushFaultEvent extends Rpc
336
{
337
338
    /**
339
     * @param string $value
340
     *
341
     * @return $this
342
     */
343
    public function withFaultComment($value)
344
    {
345
        $this->data['FaultComment'] = $value;
346
        $this->options['form_params']['FaultComment'] = $value;
347
348
        return $this;
349
    }
350
351
    /**
352
     * @param string $value
353
     *
354
     * @return $this
355
     */
356
    public function withTime($value)
357
    {
358
        $this->data['Time'] = $value;
359
        $this->options['form_params']['Time'] = $value;
360
361
        return $this;
362
    }
363
364
    /**
365
     * @param string $value
366
     *
367
     * @return $this
368
     */
369
    public function withType($value)
370
    {
371
        $this->data['Type'] = $value;
372
        $this->options['form_params']['Type'] = $value;
373
374
        return $this;
375
    }
376
377
    /**
378
     * @param string $value
379
     *
380
     * @return $this
381
     */
382
    public function withDeviceSn($value)
383
    {
384
        $this->data['DeviceSn'] = $value;
385
        $this->options['form_params']['DeviceSn'] = $value;
386
387
        return $this;
388
    }
389
390
    /**
391
     * @param string $value
392
     *
393
     * @return $this
394
     */
395
    public function withChannelId($value)
396
    {
397
        $this->data['ChannelId'] = $value;
398
        $this->options['form_params']['ChannelId'] = $value;
399
400
        return $this;
401
    }
402
403
    /**
404
     * @param string $value
405
     *
406
     * @return $this
407
     */
408
    public function withFaultType($value)
409
    {
410
        $this->data['FaultType'] = $value;
411
        $this->options['form_params']['FaultType'] = $value;
412
413
        return $this;
414
    }
415
}
416
417
/**
418
 * @method string getSalePrice()
419
 * @method string getEndTime()
420
 * @method string getTradeStatus()
421
 * @method string getCommodityId()
422
 * @method string getStartTime()
423
 * @method string getTradeOrderId()
424
 * @method string getDeviceSn()
425
 * @method string getCommodityName()
426
 * @method string getVerificationStatus()
427
 * @method string getAlipayOrderId()
428
 * @method string getChannelId()
429
 * @method string getOuterTradeId()
430
 * @method string getTradeTime()
431
 * @method string getTradePrice()
432
 */
433
class PushTradeDetail extends Rpc
434
{
435
436
    /**
437
     * @param string $value
438
     *
439
     * @return $this
440
     */
441
    public function withSalePrice($value)
442
    {
443
        $this->data['SalePrice'] = $value;
444
        $this->options['form_params']['SalePrice'] = $value;
445
446
        return $this;
447
    }
448
449
    /**
450
     * @param string $value
451
     *
452
     * @return $this
453
     */
454
    public function withEndTime($value)
455
    {
456
        $this->data['EndTime'] = $value;
457
        $this->options['form_params']['EndTime'] = $value;
458
459
        return $this;
460
    }
461
462
    /**
463
     * @param string $value
464
     *
465
     * @return $this
466
     */
467
    public function withTradeStatus($value)
468
    {
469
        $this->data['TradeStatus'] = $value;
470
        $this->options['form_params']['TradeStatus'] = $value;
471
472
        return $this;
473
    }
474
475
    /**
476
     * @param string $value
477
     *
478
     * @return $this
479
     */
480
    public function withCommodityId($value)
481
    {
482
        $this->data['CommodityId'] = $value;
483
        $this->options['form_params']['CommodityId'] = $value;
484
485
        return $this;
486
    }
487
488
    /**
489
     * @param string $value
490
     *
491
     * @return $this
492
     */
493
    public function withStartTime($value)
494
    {
495
        $this->data['StartTime'] = $value;
496
        $this->options['form_params']['StartTime'] = $value;
497
498
        return $this;
499
    }
500
501
    /**
502
     * @param string $value
503
     *
504
     * @return $this
505
     */
506
    public function withTradeOrderId($value)
507
    {
508
        $this->data['TradeOrderId'] = $value;
509
        $this->options['form_params']['TradeOrderId'] = $value;
510
511
        return $this;
512
    }
513
514
    /**
515
     * @param string $value
516
     *
517
     * @return $this
518
     */
519
    public function withDeviceSn($value)
520
    {
521
        $this->data['DeviceSn'] = $value;
522
        $this->options['form_params']['DeviceSn'] = $value;
523
524
        return $this;
525
    }
526
527
    /**
528
     * @param string $value
529
     *
530
     * @return $this
531
     */
532
    public function withCommodityName($value)
533
    {
534
        $this->data['CommodityName'] = $value;
535
        $this->options['form_params']['CommodityName'] = $value;
536
537
        return $this;
538
    }
539
540
    /**
541
     * @param string $value
542
     *
543
     * @return $this
544
     */
545
    public function withVerificationStatus($value)
546
    {
547
        $this->data['VerificationStatus'] = $value;
548
        $this->options['form_params']['VerificationStatus'] = $value;
549
550
        return $this;
551
    }
552
553
    /**
554
     * @param string $value
555
     *
556
     * @return $this
557
     */
558
    public function withAlipayOrderId($value)
559
    {
560
        $this->data['AlipayOrderId'] = $value;
561
        $this->options['form_params']['AlipayOrderId'] = $value;
562
563
        return $this;
564
    }
565
566
    /**
567
     * @param string $value
568
     *
569
     * @return $this
570
     */
571
    public function withChannelId($value)
572
    {
573
        $this->data['ChannelId'] = $value;
574
        $this->options['form_params']['ChannelId'] = $value;
575
576
        return $this;
577
    }
578
579
    /**
580
     * @param string $value
581
     *
582
     * @return $this
583
     */
584
    public function withOuterTradeId($value)
585
    {
586
        $this->data['OuterTradeId'] = $value;
587
        $this->options['form_params']['OuterTradeId'] = $value;
588
589
        return $this;
590
    }
591
592
    /**
593
     * @param string $value
594
     *
595
     * @return $this
596
     */
597
    public function withTradeTime($value)
598
    {
599
        $this->data['TradeTime'] = $value;
600
        $this->options['form_params']['TradeTime'] = $value;
601
602
        return $this;
603
    }
604
605
    /**
606
     * @param string $value
607
     *
608
     * @return $this
609
     */
610
    public function withTradePrice($value)
611
    {
612
        $this->data['TradePrice'] = $value;
613
        $this->options['form_params']['TradePrice'] = $value;
614
615
        return $this;
616
    }
617
}
618
619
/**
620
 * @method string getExtra()
621
 * @method string getAlipayOpenId()
622
 * @method string getChannelId()
623
 */
624
class QueryPromotion extends Rpc
625
{
626
627
    /**
628
     * @param string $value
629
     *
630
     * @return $this
631
     */
632
    public function withExtra($value)
633
    {
634
        $this->data['Extra'] = $value;
635
        $this->options['form_params']['Extra'] = $value;
636
637
        return $this;
638
    }
639
640
    /**
641
     * @param string $value
642
     *
643
     * @return $this
644
     */
645
    public function withAlipayOpenId($value)
646
    {
647
        $this->data['AlipayOpenId'] = $value;
648
        $this->options['form_params']['AlipayOpenId'] = $value;
649
650
        return $this;
651
    }
652
653
    /**
654
     * @param string $value
655
     *
656
     * @return $this
657
     */
658
    public function withChannelId($value)
659
    {
660
        $this->data['ChannelId'] = $value;
661
        $this->options['form_params']['ChannelId'] = $value;
662
663
        return $this;
664
    }
665
}
666
667
/**
668
 * @method string getFirstScene()
669
 * @method string getDetailAddr()
670
 * @method string getCity()
671
 * @method string getDeviceType()
672
 * @method string getLocationName()
673
 * @method string getProvince()
674
 * @method string getDistrict()
675
 * @method string getDeviceName()
676
 * @method string getDeviceModelNumber()
677
 * @method string getSecondScene()
678
 * @method string getFloor()
679
 * @method string getChannelId()
680
 * @method string getOuterCode()
681
 */
682
class RegistDevice extends Rpc
683
{
684
685
    /**
686
     * @param string $value
687
     *
688
     * @return $this
689
     */
690
    public function withFirstScene($value)
691
    {
692
        $this->data['FirstScene'] = $value;
693
        $this->options['form_params']['FirstScene'] = $value;
694
695
        return $this;
696
    }
697
698
    /**
699
     * @param string $value
700
     *
701
     * @return $this
702
     */
703
    public function withDetailAddr($value)
704
    {
705
        $this->data['DetailAddr'] = $value;
706
        $this->options['form_params']['DetailAddr'] = $value;
707
708
        return $this;
709
    }
710
711
    /**
712
     * @param string $value
713
     *
714
     * @return $this
715
     */
716
    public function withCity($value)
717
    {
718
        $this->data['City'] = $value;
719
        $this->options['form_params']['City'] = $value;
720
721
        return $this;
722
    }
723
724
    /**
725
     * @param string $value
726
     *
727
     * @return $this
728
     */
729
    public function withDeviceType($value)
730
    {
731
        $this->data['DeviceType'] = $value;
732
        $this->options['form_params']['DeviceType'] = $value;
733
734
        return $this;
735
    }
736
737
    /**
738
     * @param string $value
739
     *
740
     * @return $this
741
     */
742
    public function withLocationName($value)
743
    {
744
        $this->data['LocationName'] = $value;
745
        $this->options['form_params']['LocationName'] = $value;
746
747
        return $this;
748
    }
749
750
    /**
751
     * @param string $value
752
     *
753
     * @return $this
754
     */
755
    public function withProvince($value)
756
    {
757
        $this->data['Province'] = $value;
758
        $this->options['form_params']['Province'] = $value;
759
760
        return $this;
761
    }
762
763
    /**
764
     * @param string $value
765
     *
766
     * @return $this
767
     */
768
    public function withDistrict($value)
769
    {
770
        $this->data['District'] = $value;
771
        $this->options['form_params']['District'] = $value;
772
773
        return $this;
774
    }
775
776
    /**
777
     * @param string $value
778
     *
779
     * @return $this
780
     */
781
    public function withDeviceName($value)
782
    {
783
        $this->data['DeviceName'] = $value;
784
        $this->options['form_params']['DeviceName'] = $value;
785
786
        return $this;
787
    }
788
789
    /**
790
     * @param string $value
791
     *
792
     * @return $this
793
     */
794
    public function withDeviceModelNumber($value)
795
    {
796
        $this->data['DeviceModelNumber'] = $value;
797
        $this->options['form_params']['DeviceModelNumber'] = $value;
798
799
        return $this;
800
    }
801
802
    /**
803
     * @param string $value
804
     *
805
     * @return $this
806
     */
807
    public function withSecondScene($value)
808
    {
809
        $this->data['SecondScene'] = $value;
810
        $this->options['form_params']['SecondScene'] = $value;
811
812
        return $this;
813
    }
814
815
    /**
816
     * @param string $value
817
     *
818
     * @return $this
819
     */
820
    public function withFloor($value)
821
    {
822
        $this->data['Floor'] = $value;
823
        $this->options['form_params']['Floor'] = $value;
824
825
        return $this;
826
    }
827
828
    /**
829
     * @param string $value
830
     *
831
     * @return $this
832
     */
833
    public function withChannelId($value)
834
    {
835
        $this->data['ChannelId'] = $value;
836
        $this->options['form_params']['ChannelId'] = $value;
837
838
        return $this;
839
    }
840
841
    /**
842
     * @param string $value
843
     *
844
     * @return $this
845
     */
846
    public function withOuterCode($value)
847
    {
848
        $this->data['OuterCode'] = $value;
849
        $this->options['form_params']['OuterCode'] = $value;
850
851
        return $this;
852
    }
853
}
854
855
/**
856
 * @method string getRealCostAmount()
857
 * @method $this withRealCostAmount($value)
858
 * @method string getSalePrice()
859
 * @method $this withSalePrice($value)
860
 * @method string getCommodityId()
861
 * @method $this withCommodityId($value)
862
 * @method string getHolderId()
863
 * @method $this withHolderId($value)
864
 * @method string getDeviceType()
865
 * @method $this withDeviceType($value)
866
 * @method string getDeviceCode()
867
 * @method $this withDeviceCode($value)
868
 * @method string getApplyPrice()
869
 * @method $this withApplyPrice($value)
870
 * @method string getTaskId()
871
 * @method $this withTaskId($value)
872
 * @method string getOuterCode()
873
 * @method $this withOuterCode($value)
874
 * @method string getQueryStr()
875
 * @method $this withQueryStr($value)
876
 * @method string getPhase()
877
 * @method $this withPhase($value)
878
 * @method string getBizResult()
879
 * @method $this withBizResult($value)
880
 * @method string getTaskType()
881
 * @method $this withTaskType($value)
882
 * @method string getBrandUserId()
883
 * @method $this withBrandUserId($value)
884
 * @method string getSex()
885
 * @method $this withSex($value)
886
 * @method string getCostDetail()
887
 * @method $this withCostDetail($value)
888
 * @method string getProxyUserId()
889
 * @method $this withProxyUserId($value)
890
 * @method string getAlipayOpenId()
891
 * @method $this withAlipayOpenId($value)
892
 * @method string getBizType()
893
 * @method $this withBizType($value)
894
 * @method string getBrandNick()
895
 * @method $this withBrandNick($value)
896
 * @method string getV()
897
 * @method $this withV($value)
898
 * @method string getChargeTag()
899
 * @method $this withChargeTag($value)
900
 * @method string getAge()
901
 * @method $this withAge($value)
902
 * @method string getChannelId()
903
 * @method $this withChannelId($value)
904
 * @method string getCid()
905
 * @method $this withCid($value)
906
 */
907
class ScanCodeNotification extends Rpc
908
{
909
}
910