@alicloud/dytnsapi20200217 1.0.7 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +191 -3
- package/dist/client.js +394 -9
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +499 -8
package/dist/client.js
CHANGED
|
@@ -72,12 +72,14 @@ class DescribeEmptyNumberDetectResponse extends $tea.Model {
|
|
|
72
72
|
static names() {
|
|
73
73
|
return {
|
|
74
74
|
headers: 'headers',
|
|
75
|
+
statusCode: 'statusCode',
|
|
75
76
|
body: 'body',
|
|
76
77
|
};
|
|
77
78
|
}
|
|
78
79
|
static types() {
|
|
79
80
|
return {
|
|
80
81
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
82
|
+
statusCode: 'number',
|
|
81
83
|
body: DescribeEmptyNumberDetectResponseBody,
|
|
82
84
|
};
|
|
83
85
|
}
|
|
@@ -142,12 +144,14 @@ class DescribePhoneNumberAnalysisResponse extends $tea.Model {
|
|
|
142
144
|
static names() {
|
|
143
145
|
return {
|
|
144
146
|
headers: 'headers',
|
|
147
|
+
statusCode: 'statusCode',
|
|
145
148
|
body: 'body',
|
|
146
149
|
};
|
|
147
150
|
}
|
|
148
151
|
static types() {
|
|
149
152
|
return {
|
|
150
153
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
154
|
+
statusCode: 'number',
|
|
151
155
|
body: DescribePhoneNumberAnalysisResponseBody,
|
|
152
156
|
};
|
|
153
157
|
}
|
|
@@ -204,12 +208,14 @@ class DescribePhoneNumberAttributeResponse extends $tea.Model {
|
|
|
204
208
|
static names() {
|
|
205
209
|
return {
|
|
206
210
|
headers: 'headers',
|
|
211
|
+
statusCode: 'statusCode',
|
|
207
212
|
body: 'body',
|
|
208
213
|
};
|
|
209
214
|
}
|
|
210
215
|
static types() {
|
|
211
216
|
return {
|
|
212
217
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
218
|
+
statusCode: 'number',
|
|
213
219
|
body: DescribePhoneNumberAttributeResponseBody,
|
|
214
220
|
};
|
|
215
221
|
}
|
|
@@ -272,17 +278,87 @@ class DescribePhoneNumberOnlineTimeResponse extends $tea.Model {
|
|
|
272
278
|
static names() {
|
|
273
279
|
return {
|
|
274
280
|
headers: 'headers',
|
|
281
|
+
statusCode: 'statusCode',
|
|
275
282
|
body: 'body',
|
|
276
283
|
};
|
|
277
284
|
}
|
|
278
285
|
static types() {
|
|
279
286
|
return {
|
|
280
287
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
288
|
+
statusCode: 'number',
|
|
281
289
|
body: DescribePhoneNumberOnlineTimeResponseBody,
|
|
282
290
|
};
|
|
283
291
|
}
|
|
284
292
|
}
|
|
285
293
|
exports.DescribePhoneNumberOnlineTimeResponse = DescribePhoneNumberOnlineTimeResponse;
|
|
294
|
+
class DescribePhoneNumberOperatorAttributeRequest extends $tea.Model {
|
|
295
|
+
constructor(map) {
|
|
296
|
+
super(map);
|
|
297
|
+
}
|
|
298
|
+
static names() {
|
|
299
|
+
return {
|
|
300
|
+
authCode: 'AuthCode',
|
|
301
|
+
inputNumber: 'InputNumber',
|
|
302
|
+
mask: 'Mask',
|
|
303
|
+
ownerId: 'OwnerId',
|
|
304
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
305
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
static types() {
|
|
309
|
+
return {
|
|
310
|
+
authCode: 'string',
|
|
311
|
+
inputNumber: 'string',
|
|
312
|
+
mask: 'string',
|
|
313
|
+
ownerId: 'number',
|
|
314
|
+
resourceOwnerAccount: 'string',
|
|
315
|
+
resourceOwnerId: 'number',
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
exports.DescribePhoneNumberOperatorAttributeRequest = DescribePhoneNumberOperatorAttributeRequest;
|
|
320
|
+
class DescribePhoneNumberOperatorAttributeResponseBody extends $tea.Model {
|
|
321
|
+
constructor(map) {
|
|
322
|
+
super(map);
|
|
323
|
+
}
|
|
324
|
+
static names() {
|
|
325
|
+
return {
|
|
326
|
+
code: 'Code',
|
|
327
|
+
data: 'Data',
|
|
328
|
+
message: 'Message',
|
|
329
|
+
requestId: 'RequestId',
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
static types() {
|
|
333
|
+
return {
|
|
334
|
+
code: 'string',
|
|
335
|
+
data: DescribePhoneNumberOperatorAttributeResponseBodyData,
|
|
336
|
+
message: 'string',
|
|
337
|
+
requestId: 'string',
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
exports.DescribePhoneNumberOperatorAttributeResponseBody = DescribePhoneNumberOperatorAttributeResponseBody;
|
|
342
|
+
class DescribePhoneNumberOperatorAttributeResponse extends $tea.Model {
|
|
343
|
+
constructor(map) {
|
|
344
|
+
super(map);
|
|
345
|
+
}
|
|
346
|
+
static names() {
|
|
347
|
+
return {
|
|
348
|
+
headers: 'headers',
|
|
349
|
+
statusCode: 'statusCode',
|
|
350
|
+
body: 'body',
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
static types() {
|
|
354
|
+
return {
|
|
355
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
356
|
+
statusCode: 'number',
|
|
357
|
+
body: DescribePhoneNumberOperatorAttributeResponseBody,
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
exports.DescribePhoneNumberOperatorAttributeResponse = DescribePhoneNumberOperatorAttributeResponse;
|
|
286
362
|
class DescribePhoneNumberResaleRequest extends $tea.Model {
|
|
287
363
|
constructor(map) {
|
|
288
364
|
super(map);
|
|
@@ -336,12 +412,14 @@ class DescribePhoneNumberResaleResponse extends $tea.Model {
|
|
|
336
412
|
static names() {
|
|
337
413
|
return {
|
|
338
414
|
headers: 'headers',
|
|
415
|
+
statusCode: 'statusCode',
|
|
339
416
|
body: 'body',
|
|
340
417
|
};
|
|
341
418
|
}
|
|
342
419
|
static types() {
|
|
343
420
|
return {
|
|
344
421
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
422
|
+
statusCode: 'number',
|
|
345
423
|
body: DescribePhoneNumberResaleResponseBody,
|
|
346
424
|
};
|
|
347
425
|
}
|
|
@@ -398,12 +476,14 @@ class DescribePhoneNumberStatusResponse extends $tea.Model {
|
|
|
398
476
|
static names() {
|
|
399
477
|
return {
|
|
400
478
|
headers: 'headers',
|
|
479
|
+
statusCode: 'statusCode',
|
|
401
480
|
body: 'body',
|
|
402
481
|
};
|
|
403
482
|
}
|
|
404
483
|
static types() {
|
|
405
484
|
return {
|
|
406
485
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
486
|
+
statusCode: 'number',
|
|
407
487
|
body: DescribePhoneNumberStatusResponseBody,
|
|
408
488
|
};
|
|
409
489
|
}
|
|
@@ -464,12 +544,14 @@ class InvalidPhoneNumberFilterResponse extends $tea.Model {
|
|
|
464
544
|
static names() {
|
|
465
545
|
return {
|
|
466
546
|
headers: 'headers',
|
|
547
|
+
statusCode: 'statusCode',
|
|
467
548
|
body: 'body',
|
|
468
549
|
};
|
|
469
550
|
}
|
|
470
551
|
static types() {
|
|
471
552
|
return {
|
|
472
553
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
554
|
+
statusCode: 'number',
|
|
473
555
|
body: InvalidPhoneNumberFilterResponseBody,
|
|
474
556
|
};
|
|
475
557
|
}
|
|
@@ -530,33 +612,161 @@ class PhoneNumberEncryptResponse extends $tea.Model {
|
|
|
530
612
|
static names() {
|
|
531
613
|
return {
|
|
532
614
|
headers: 'headers',
|
|
615
|
+
statusCode: 'statusCode',
|
|
533
616
|
body: 'body',
|
|
534
617
|
};
|
|
535
618
|
}
|
|
536
619
|
static types() {
|
|
537
620
|
return {
|
|
538
621
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
622
|
+
statusCode: 'number',
|
|
539
623
|
body: PhoneNumberEncryptResponseBody,
|
|
540
624
|
};
|
|
541
625
|
}
|
|
542
626
|
}
|
|
543
627
|
exports.PhoneNumberEncryptResponse = PhoneNumberEncryptResponse;
|
|
544
|
-
class
|
|
628
|
+
class ThreeElementsVerificationRequest extends $tea.Model {
|
|
629
|
+
constructor(map) {
|
|
630
|
+
super(map);
|
|
631
|
+
}
|
|
632
|
+
static names() {
|
|
633
|
+
return {
|
|
634
|
+
authCode: 'AuthCode',
|
|
635
|
+
certCode: 'CertCode',
|
|
636
|
+
inputNumber: 'InputNumber',
|
|
637
|
+
mask: 'Mask',
|
|
638
|
+
name: 'Name',
|
|
639
|
+
ownerId: 'OwnerId',
|
|
640
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
641
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
642
|
+
};
|
|
643
|
+
}
|
|
644
|
+
static types() {
|
|
645
|
+
return {
|
|
646
|
+
authCode: 'string',
|
|
647
|
+
certCode: 'string',
|
|
648
|
+
inputNumber: 'string',
|
|
649
|
+
mask: 'string',
|
|
650
|
+
name: 'string',
|
|
651
|
+
ownerId: 'number',
|
|
652
|
+
resourceOwnerAccount: 'string',
|
|
653
|
+
resourceOwnerId: 'number',
|
|
654
|
+
};
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
exports.ThreeElementsVerificationRequest = ThreeElementsVerificationRequest;
|
|
658
|
+
class ThreeElementsVerificationResponseBody extends $tea.Model {
|
|
659
|
+
constructor(map) {
|
|
660
|
+
super(map);
|
|
661
|
+
}
|
|
662
|
+
static names() {
|
|
663
|
+
return {
|
|
664
|
+
code: 'Code',
|
|
665
|
+
data: 'Data',
|
|
666
|
+
message: 'Message',
|
|
667
|
+
requestId: 'RequestId',
|
|
668
|
+
};
|
|
669
|
+
}
|
|
670
|
+
static types() {
|
|
671
|
+
return {
|
|
672
|
+
code: 'string',
|
|
673
|
+
data: ThreeElementsVerificationResponseBodyData,
|
|
674
|
+
message: 'string',
|
|
675
|
+
requestId: 'string',
|
|
676
|
+
};
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
exports.ThreeElementsVerificationResponseBody = ThreeElementsVerificationResponseBody;
|
|
680
|
+
class ThreeElementsVerificationResponse extends $tea.Model {
|
|
545
681
|
constructor(map) {
|
|
546
682
|
super(map);
|
|
547
683
|
}
|
|
548
684
|
static names() {
|
|
549
685
|
return {
|
|
550
686
|
headers: 'headers',
|
|
687
|
+
statusCode: 'statusCode',
|
|
688
|
+
body: 'body',
|
|
551
689
|
};
|
|
552
690
|
}
|
|
553
691
|
static types() {
|
|
554
692
|
return {
|
|
555
693
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
694
|
+
statusCode: 'number',
|
|
695
|
+
body: ThreeElementsVerificationResponseBody,
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
exports.ThreeElementsVerificationResponse = ThreeElementsVerificationResponse;
|
|
700
|
+
class TwoElementsVerificationRequest extends $tea.Model {
|
|
701
|
+
constructor(map) {
|
|
702
|
+
super(map);
|
|
703
|
+
}
|
|
704
|
+
static names() {
|
|
705
|
+
return {
|
|
706
|
+
authCode: 'AuthCode',
|
|
707
|
+
inputNumber: 'InputNumber',
|
|
708
|
+
mask: 'Mask',
|
|
709
|
+
name: 'Name',
|
|
710
|
+
ownerId: 'OwnerId',
|
|
711
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
712
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
713
|
+
};
|
|
714
|
+
}
|
|
715
|
+
static types() {
|
|
716
|
+
return {
|
|
717
|
+
authCode: 'string',
|
|
718
|
+
inputNumber: 'string',
|
|
719
|
+
mask: 'string',
|
|
720
|
+
name: 'string',
|
|
721
|
+
ownerId: 'number',
|
|
722
|
+
resourceOwnerAccount: 'string',
|
|
723
|
+
resourceOwnerId: 'number',
|
|
556
724
|
};
|
|
557
725
|
}
|
|
558
726
|
}
|
|
559
|
-
exports.
|
|
727
|
+
exports.TwoElementsVerificationRequest = TwoElementsVerificationRequest;
|
|
728
|
+
class TwoElementsVerificationResponseBody extends $tea.Model {
|
|
729
|
+
constructor(map) {
|
|
730
|
+
super(map);
|
|
731
|
+
}
|
|
732
|
+
static names() {
|
|
733
|
+
return {
|
|
734
|
+
code: 'Code',
|
|
735
|
+
data: 'Data',
|
|
736
|
+
message: 'Message',
|
|
737
|
+
requestId: 'RequestId',
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
static types() {
|
|
741
|
+
return {
|
|
742
|
+
code: 'string',
|
|
743
|
+
data: TwoElementsVerificationResponseBodyData,
|
|
744
|
+
message: 'string',
|
|
745
|
+
requestId: 'string',
|
|
746
|
+
};
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
exports.TwoElementsVerificationResponseBody = TwoElementsVerificationResponseBody;
|
|
750
|
+
class TwoElementsVerificationResponse extends $tea.Model {
|
|
751
|
+
constructor(map) {
|
|
752
|
+
super(map);
|
|
753
|
+
}
|
|
754
|
+
static names() {
|
|
755
|
+
return {
|
|
756
|
+
headers: 'headers',
|
|
757
|
+
statusCode: 'statusCode',
|
|
758
|
+
body: 'body',
|
|
759
|
+
};
|
|
760
|
+
}
|
|
761
|
+
static types() {
|
|
762
|
+
return {
|
|
763
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
764
|
+
statusCode: 'number',
|
|
765
|
+
body: TwoElementsVerificationResponseBody,
|
|
766
|
+
};
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
exports.TwoElementsVerificationResponse = TwoElementsVerificationResponse;
|
|
560
770
|
class DescribeEmptyNumberDetectResponseBodyData extends $tea.Model {
|
|
561
771
|
constructor(map) {
|
|
562
772
|
super(map);
|
|
@@ -635,6 +845,32 @@ class DescribePhoneNumberOnlineTimeResponseBodyData extends $tea.Model {
|
|
|
635
845
|
}
|
|
636
846
|
}
|
|
637
847
|
exports.DescribePhoneNumberOnlineTimeResponseBodyData = DescribePhoneNumberOnlineTimeResponseBodyData;
|
|
848
|
+
class DescribePhoneNumberOperatorAttributeResponseBodyData extends $tea.Model {
|
|
849
|
+
constructor(map) {
|
|
850
|
+
super(map);
|
|
851
|
+
}
|
|
852
|
+
static names() {
|
|
853
|
+
return {
|
|
854
|
+
basicCarrier: 'BasicCarrier',
|
|
855
|
+
carrier: 'Carrier',
|
|
856
|
+
city: 'City',
|
|
857
|
+
isNumberPortability: 'IsNumberPortability',
|
|
858
|
+
numberSegment: 'NumberSegment',
|
|
859
|
+
province: 'Province',
|
|
860
|
+
};
|
|
861
|
+
}
|
|
862
|
+
static types() {
|
|
863
|
+
return {
|
|
864
|
+
basicCarrier: 'string',
|
|
865
|
+
carrier: 'string',
|
|
866
|
+
city: 'string',
|
|
867
|
+
isNumberPortability: 'boolean',
|
|
868
|
+
numberSegment: 'number',
|
|
869
|
+
province: 'string',
|
|
870
|
+
};
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
exports.DescribePhoneNumberOperatorAttributeResponseBodyData = DescribePhoneNumberOperatorAttributeResponseBodyData;
|
|
638
874
|
class DescribePhoneNumberResaleResponseBodyTwiceTelVerify extends $tea.Model {
|
|
639
875
|
constructor(map) {
|
|
640
876
|
super(map);
|
|
@@ -715,6 +951,42 @@ class PhoneNumberEncryptResponseBodyData extends $tea.Model {
|
|
|
715
951
|
}
|
|
716
952
|
}
|
|
717
953
|
exports.PhoneNumberEncryptResponseBodyData = PhoneNumberEncryptResponseBodyData;
|
|
954
|
+
class ThreeElementsVerificationResponseBodyData extends $tea.Model {
|
|
955
|
+
constructor(map) {
|
|
956
|
+
super(map);
|
|
957
|
+
}
|
|
958
|
+
static names() {
|
|
959
|
+
return {
|
|
960
|
+
basicCarrier: 'BasicCarrier',
|
|
961
|
+
isConsistent: 'IsConsistent',
|
|
962
|
+
};
|
|
963
|
+
}
|
|
964
|
+
static types() {
|
|
965
|
+
return {
|
|
966
|
+
basicCarrier: 'string',
|
|
967
|
+
isConsistent: 'number',
|
|
968
|
+
};
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
exports.ThreeElementsVerificationResponseBodyData = ThreeElementsVerificationResponseBodyData;
|
|
972
|
+
class TwoElementsVerificationResponseBodyData extends $tea.Model {
|
|
973
|
+
constructor(map) {
|
|
974
|
+
super(map);
|
|
975
|
+
}
|
|
976
|
+
static names() {
|
|
977
|
+
return {
|
|
978
|
+
basicCarrier: 'BasicCarrier',
|
|
979
|
+
isConsistent: 'IsConsistent',
|
|
980
|
+
};
|
|
981
|
+
}
|
|
982
|
+
static types() {
|
|
983
|
+
return {
|
|
984
|
+
basicCarrier: 'string',
|
|
985
|
+
isConsistent: 'number',
|
|
986
|
+
};
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
exports.TwoElementsVerificationResponseBodyData = TwoElementsVerificationResponseBodyData;
|
|
718
990
|
class Client extends openapi_client_1.default {
|
|
719
991
|
constructor(config) {
|
|
720
992
|
super(config);
|
|
@@ -895,6 +1167,47 @@ class Client extends openapi_client_1.default {
|
|
|
895
1167
|
let runtime = new $Util.RuntimeOptions({});
|
|
896
1168
|
return await this.describePhoneNumberOnlineTimeWithOptions(request, runtime);
|
|
897
1169
|
}
|
|
1170
|
+
async describePhoneNumberOperatorAttributeWithOptions(request, runtime) {
|
|
1171
|
+
tea_util_1.default.validateModel(request);
|
|
1172
|
+
let query = {};
|
|
1173
|
+
if (!tea_util_1.default.isUnset(request.authCode)) {
|
|
1174
|
+
query["AuthCode"] = request.authCode;
|
|
1175
|
+
}
|
|
1176
|
+
if (!tea_util_1.default.isUnset(request.inputNumber)) {
|
|
1177
|
+
query["InputNumber"] = request.inputNumber;
|
|
1178
|
+
}
|
|
1179
|
+
if (!tea_util_1.default.isUnset(request.mask)) {
|
|
1180
|
+
query["Mask"] = request.mask;
|
|
1181
|
+
}
|
|
1182
|
+
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
1183
|
+
query["OwnerId"] = request.ownerId;
|
|
1184
|
+
}
|
|
1185
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
|
|
1186
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1187
|
+
}
|
|
1188
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
1189
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1190
|
+
}
|
|
1191
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1192
|
+
query: openapi_util_1.default.query(query),
|
|
1193
|
+
});
|
|
1194
|
+
let params = new $OpenApi.Params({
|
|
1195
|
+
action: "DescribePhoneNumberOperatorAttribute",
|
|
1196
|
+
version: "2020-02-17",
|
|
1197
|
+
protocol: "HTTPS",
|
|
1198
|
+
pathname: "/",
|
|
1199
|
+
method: "POST",
|
|
1200
|
+
authType: "AK",
|
|
1201
|
+
style: "RPC",
|
|
1202
|
+
reqBodyType: "formData",
|
|
1203
|
+
bodyType: "json",
|
|
1204
|
+
});
|
|
1205
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribePhoneNumberOperatorAttributeResponse({}));
|
|
1206
|
+
}
|
|
1207
|
+
async describePhoneNumberOperatorAttribute(request) {
|
|
1208
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1209
|
+
return await this.describePhoneNumberOperatorAttributeWithOptions(request, runtime);
|
|
1210
|
+
}
|
|
898
1211
|
async describePhoneNumberResaleWithOptions(request, runtime) {
|
|
899
1212
|
tea_util_1.default.validateModel(request);
|
|
900
1213
|
let query = {};
|
|
@@ -1050,10 +1363,38 @@ class Client extends openapi_client_1.default {
|
|
|
1050
1363
|
let runtime = new $Util.RuntimeOptions({});
|
|
1051
1364
|
return await this.phoneNumberEncryptWithOptions(request, runtime);
|
|
1052
1365
|
}
|
|
1053
|
-
async
|
|
1054
|
-
|
|
1366
|
+
async threeElementsVerificationWithOptions(request, runtime) {
|
|
1367
|
+
tea_util_1.default.validateModel(request);
|
|
1368
|
+
let query = {};
|
|
1369
|
+
if (!tea_util_1.default.isUnset(request.authCode)) {
|
|
1370
|
+
query["AuthCode"] = request.authCode;
|
|
1371
|
+
}
|
|
1372
|
+
if (!tea_util_1.default.isUnset(request.certCode)) {
|
|
1373
|
+
query["CertCode"] = request.certCode;
|
|
1374
|
+
}
|
|
1375
|
+
if (!tea_util_1.default.isUnset(request.inputNumber)) {
|
|
1376
|
+
query["InputNumber"] = request.inputNumber;
|
|
1377
|
+
}
|
|
1378
|
+
if (!tea_util_1.default.isUnset(request.mask)) {
|
|
1379
|
+
query["Mask"] = request.mask;
|
|
1380
|
+
}
|
|
1381
|
+
if (!tea_util_1.default.isUnset(request.name)) {
|
|
1382
|
+
query["Name"] = request.name;
|
|
1383
|
+
}
|
|
1384
|
+
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
1385
|
+
query["OwnerId"] = request.ownerId;
|
|
1386
|
+
}
|
|
1387
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
|
|
1388
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1389
|
+
}
|
|
1390
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
1391
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1392
|
+
}
|
|
1393
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1394
|
+
query: openapi_util_1.default.query(query),
|
|
1395
|
+
});
|
|
1055
1396
|
let params = new $OpenApi.Params({
|
|
1056
|
-
action: "
|
|
1397
|
+
action: "ThreeElementsVerification",
|
|
1057
1398
|
version: "2020-02-17",
|
|
1058
1399
|
protocol: "HTTPS",
|
|
1059
1400
|
pathname: "/",
|
|
@@ -1061,13 +1402,57 @@ class Client extends openapi_client_1.default {
|
|
|
1061
1402
|
authType: "AK",
|
|
1062
1403
|
style: "RPC",
|
|
1063
1404
|
reqBodyType: "formData",
|
|
1064
|
-
bodyType: "
|
|
1405
|
+
bodyType: "json",
|
|
1406
|
+
});
|
|
1407
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ThreeElementsVerificationResponse({}));
|
|
1408
|
+
}
|
|
1409
|
+
async threeElementsVerification(request) {
|
|
1410
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1411
|
+
return await this.threeElementsVerificationWithOptions(request, runtime);
|
|
1412
|
+
}
|
|
1413
|
+
async twoElementsVerificationWithOptions(request, runtime) {
|
|
1414
|
+
tea_util_1.default.validateModel(request);
|
|
1415
|
+
let query = {};
|
|
1416
|
+
if (!tea_util_1.default.isUnset(request.authCode)) {
|
|
1417
|
+
query["AuthCode"] = request.authCode;
|
|
1418
|
+
}
|
|
1419
|
+
if (!tea_util_1.default.isUnset(request.inputNumber)) {
|
|
1420
|
+
query["InputNumber"] = request.inputNumber;
|
|
1421
|
+
}
|
|
1422
|
+
if (!tea_util_1.default.isUnset(request.mask)) {
|
|
1423
|
+
query["Mask"] = request.mask;
|
|
1424
|
+
}
|
|
1425
|
+
if (!tea_util_1.default.isUnset(request.name)) {
|
|
1426
|
+
query["Name"] = request.name;
|
|
1427
|
+
}
|
|
1428
|
+
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
1429
|
+
query["OwnerId"] = request.ownerId;
|
|
1430
|
+
}
|
|
1431
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
|
|
1432
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1433
|
+
}
|
|
1434
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
1435
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1436
|
+
}
|
|
1437
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1438
|
+
query: openapi_util_1.default.query(query),
|
|
1439
|
+
});
|
|
1440
|
+
let params = new $OpenApi.Params({
|
|
1441
|
+
action: "TwoElementsVerification",
|
|
1442
|
+
version: "2020-02-17",
|
|
1443
|
+
protocol: "HTTPS",
|
|
1444
|
+
pathname: "/",
|
|
1445
|
+
method: "POST",
|
|
1446
|
+
authType: "AK",
|
|
1447
|
+
style: "RPC",
|
|
1448
|
+
reqBodyType: "formData",
|
|
1449
|
+
bodyType: "json",
|
|
1065
1450
|
});
|
|
1066
|
-
return $tea.cast(await this.callApi(params, req, runtime), new
|
|
1451
|
+
return $tea.cast(await this.callApi(params, req, runtime), new TwoElementsVerificationResponse({}));
|
|
1067
1452
|
}
|
|
1068
|
-
async
|
|
1453
|
+
async twoElementsVerification(request) {
|
|
1069
1454
|
let runtime = new $Util.RuntimeOptions({});
|
|
1070
|
-
return await this.
|
|
1455
|
+
return await this.twoElementsVerificationWithOptions(request, runtime);
|
|
1071
1456
|
}
|
|
1072
1457
|
}
|
|
1073
1458
|
exports.default = Client;
|