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 ( 385be4...2d17d2 )
by
unknown
08:29
created

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