@antchain/realperson 1.21.21 → 1.22.5
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 +713 -0
- package/dist/client.js +1269 -170
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +1774 -114
package/dist/client.js
CHANGED
|
@@ -22,7 +22,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
22
22
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.CreateAntcloudGatewayxFileUploadResponse = exports.CreateAntcloudGatewayxFileUploadRequest = exports.RecognizeOcrIndividualcardResponse = exports.RecognizeOcrIndividualcardRequest = exports.ScaleinImageResponse = exports.ScaleinImageRequest = exports.QueryFaceverifyServermaterialResponse = exports.QueryFaceverifyServermaterialRequest = exports.QueryBankLivenessfourResponse = exports.QueryBankLivenessfourRequest = exports.QueryEducationBackgroundResponse = exports.QueryEducationBackgroundRequest = exports.CheckCarTwometaResponse = exports.CheckCarTwometaRequest = exports.QueryAlipayverifyServerResponse = exports.QueryAlipayverifyServerRequest = exports.CreateAlipayverifyServerResponse = exports.CreateAlipayverifyServerRequest = exports.ExecFaceverifyServermodeResponse = exports.ExecFaceverifyServermodeRequest = exports.QueryBankLivenessplusResponse = exports.QueryBankLivenessplusRequest = exports.QueryFaceverifyServerResponse = exports.QueryFaceverifyServerRequest = exports.CreateFaceverifyServerResponse = exports.CreateFaceverifyServerRequest = exports.ApplyExtOrgdataResponse = exports.ApplyExtOrgdataRequest = exports.BindCarrierRepairmobileResponse = exports.BindCarrierRepairmobileRequest = exports.QueryCarrierRepairmobileResponse = exports.QueryCarrierRepairmobileRequest = exports.InitCarrierRepairmobileResponse = exports.InitCarrierRepairmobileRequest = exports.DeleteConsoleDomainResponse = exports.DeleteConsoleDomainRequest = exports.CreateConsoleDomainResponse = exports.CreateConsoleDomainRequest = exports.QueryBankLivenessResponse = exports.QueryBankLivenessRequest = exports.ExecFacevrfServermodeResponse = exports.ExecFacevrfServermodeRequest = exports.QuerySocialriskTobriskResponse = exports.QuerySocialriskTobriskRequest = exports.QuerySocialriskBriefResponse = exports.QuerySocialriskBriefRequest = exports.QueryCarrierNetstatusResponse = exports.QueryCarrierNetstatusRequest = exports.QuerySocialriskDetailResponse = exports.QuerySocialriskDetailRequest = exports.QueryNfcServerResponse = exports.QueryNfcServerRequest = exports.CreateNfcServerResponse = exports.CreateNfcServerRequest = exports.CheckCarrierTwometaResponse = exports.CheckCarrierTwometaRequest = exports.CheckBankcardTwometaResponse = exports.CheckBankcardTwometaRequest = exports.QueryDemoInfoResponse = exports.QueryDemoInfoRequest = exports.QueryEducationInfoResponse = exports.QueryEducationInfoRequest = exports.QueryTscenterDeviceResponse = exports.QueryTscenterDeviceRequest = exports.QueryThreemetaPhonereuseResponse = exports.QueryThreemetaPhonereuseRequest = exports.QueryDeepsecTsbmrqResponse = exports.QueryDeepsecTsbmrqRequest = exports.QueryDeepsecRiskResponse = exports.QueryDeepsecRiskRequest = exports.CheckThreemetaBankcardResponse = exports.CheckThreemetaBankcardRequest = exports.RecognizeDocIndividualcardResponse = exports.RecognizeDocIndividualcardRequest = exports.VerifyFacevrfZimResponse = exports.VerifyFacevrfZimRequest = exports.InitFacevrfZimResponse = exports.InitFacevrfZimRequest = exports.QueryThreemetaOnlinetimeResponse = exports.QueryThreemetaOnlinetimeRequest = exports.CheckTwometaHashResponse = exports.CheckTwometaHashRequest = exports.CheckAnticheatPersonalResponse = exports.CheckAnticheatPersonalRequest = exports.DetailFacevrfServerResponse = exports.DetailFacevrfServerRequest = exports.QueryMobileRiskResponse = exports.QueryMobileRiskRequest = exports.CheckRouteTwometaResponse = exports.CheckRouteTwometaRequest = exports.VerifyVoiceprintServermodeResponse = exports.VerifyVoiceprintServermodeRequest = exports.CreateVoiceprintServermodeResponse = exports.CreateVoiceprintServermodeRequest = exports.CheckRouteThreemetaResponse = exports.CheckRouteThreemetaRequest = exports.CheckIndividualidFourmetaResponse = exports.CheckIndividualidFourmetaRequest = exports.CheckIndividualidThreemetaResponse = exports.CheckIndividualidThreemetaRequest = exports.CheckIndividualidTwometaResponse = exports.CheckIndividualidTwometaRequest = exports.GetFacevrfEvidenceResponse = exports.GetFacevrfEvidenceRequest = exports.ExecFacevrfServerResponse = exports.ExecFacevrfServerRequest = exports.CreateFacevrfServerResponse = exports.CreateFacevrfServerRequest = exports.QueryFacevrfServerResponse = exports.QueryFacevrfServerRequest = exports.XNameValuePair = exports.OcrInfo = exports.Audio = exports.AudioMeta = exports.RiskInfo = exports.CardQuality = exports.OcrLocation = exports.Config = void 0;
|
|
25
|
+
exports.CreateAntcloudGatewayxFileUploadResponse = exports.CreateAntcloudGatewayxFileUploadRequest = exports.ExecFaceThreemetaResponse = exports.ExecFaceThreemetaRequest = exports.QueryCutpaymentStatementResponse = exports.QueryCutpaymentStatementRequest = exports.QueryCutpaymentRefundResponse = exports.QueryCutpaymentRefundRequest = exports.ApplyCutpaymentRefundResponse = exports.ApplyCutpaymentRefundRequest = exports.QueryCutpaymentPaymentResponse = exports.QueryCutpaymentPaymentRequest = exports.ApplyCutpaymentPaymentResponse = exports.ApplyCutpaymentPaymentRequest = exports.QueryCutpaymentBindResponse = exports.QueryCutpaymentBindRequest = exports.UnbindCutpaymentSignResponse = exports.UnbindCutpaymentSignRequest = exports.BindCutpaymentSignResponse = exports.BindCutpaymentSignRequest = exports.BindCutpaymentPreResponse = exports.BindCutpaymentPreRequest = exports.QueryCarinfoBriefResponse = exports.QueryCarinfoBriefRequest = exports.QueryCarinfoDetailResponse = exports.QueryCarinfoDetailRequest = exports.CheckIdcardFourmetaResponse = exports.CheckIdcardFourmetaRequest = exports.RecognizeOcrIndividualcardResponse = exports.RecognizeOcrIndividualcardRequest = exports.ScaleinImageResponse = exports.ScaleinImageRequest = exports.QueryFaceverifyServermaterialResponse = exports.QueryFaceverifyServermaterialRequest = exports.QueryBankLivenessfourResponse = exports.QueryBankLivenessfourRequest = exports.QueryEducationBackgroundResponse = exports.QueryEducationBackgroundRequest = exports.CheckCarTwometaResponse = exports.CheckCarTwometaRequest = exports.QueryAlipayverifyServerResponse = exports.QueryAlipayverifyServerRequest = exports.CreateAlipayverifyServerResponse = exports.CreateAlipayverifyServerRequest = exports.ExecFaceverifyServermodeResponse = exports.ExecFaceverifyServermodeRequest = exports.QueryBankLivenessplusResponse = exports.QueryBankLivenessplusRequest = exports.QueryFaceverifyServerResponse = exports.QueryFaceverifyServerRequest = exports.CreateFaceverifyServerResponse = exports.CreateFaceverifyServerRequest = exports.ApplyExtOrgdataResponse = exports.ApplyExtOrgdataRequest = exports.BindCarrierRepairmobileResponse = exports.BindCarrierRepairmobileRequest = exports.QueryCarrierRepairmobileResponse = exports.QueryCarrierRepairmobileRequest = exports.InitCarrierRepairmobileResponse = exports.InitCarrierRepairmobileRequest = exports.DeleteConsoleDomainResponse = exports.DeleteConsoleDomainRequest = exports.CreateConsoleDomainResponse = exports.CreateConsoleDomainRequest = exports.QueryBankLivenessResponse = exports.QueryBankLivenessRequest = exports.ExecFacevrfServermodeResponse = exports.ExecFacevrfServermodeRequest = exports.QuerySocialriskTobriskResponse = exports.QuerySocialriskTobriskRequest = exports.QuerySocialriskBriefResponse = exports.QuerySocialriskBriefRequest = exports.QueryCarrierNetstatusResponse = exports.QueryCarrierNetstatusRequest = exports.QuerySocialriskDetailResponse = exports.QuerySocialriskDetailRequest = exports.QueryNfcServerResponse = exports.QueryNfcServerRequest = exports.CreateNfcServerResponse = exports.CreateNfcServerRequest = exports.CheckCarrierTwometaResponse = exports.CheckCarrierTwometaRequest = exports.CheckBankcardTwometaResponse = exports.CheckBankcardTwometaRequest = exports.QueryDemoInfoResponse = exports.QueryDemoInfoRequest = exports.QueryEducationInfoResponse = exports.QueryEducationInfoRequest = exports.QueryTscenterDeviceResponse = exports.QueryTscenterDeviceRequest = exports.QueryThreemetaPhonereuseResponse = exports.QueryThreemetaPhonereuseRequest = exports.QueryDeepsecTsbmrqResponse = exports.QueryDeepsecTsbmrqRequest = exports.QueryDeepsecRiskResponse = exports.QueryDeepsecRiskRequest = exports.CheckThreemetaBankcardResponse = exports.CheckThreemetaBankcardRequest = exports.RecognizeDocIndividualcardResponse = exports.RecognizeDocIndividualcardRequest = exports.VerifyFacevrfZimResponse = exports.VerifyFacevrfZimRequest = exports.InitFacevrfZimResponse = exports.InitFacevrfZimRequest = exports.QueryThreemetaOnlinetimeResponse = exports.QueryThreemetaOnlinetimeRequest = exports.CheckTwometaHashResponse = exports.CheckTwometaHashRequest = exports.CheckAnticheatPersonalResponse = exports.CheckAnticheatPersonalRequest = exports.DetailFacevrfServerResponse = exports.DetailFacevrfServerRequest = exports.QueryMobileRiskResponse = exports.QueryMobileRiskRequest = exports.CheckRouteTwometaResponse = exports.CheckRouteTwometaRequest = exports.VerifyVoiceprintServermodeResponse = exports.VerifyVoiceprintServermodeRequest = exports.CreateVoiceprintServermodeResponse = exports.CreateVoiceprintServermodeRequest = exports.CheckRouteThreemetaResponse = exports.CheckRouteThreemetaRequest = exports.CheckIndividualidFourmetaResponse = exports.CheckIndividualidFourmetaRequest = exports.CheckIndividualidThreemetaResponse = exports.CheckIndividualidThreemetaRequest = exports.CheckIndividualidTwometaResponse = exports.CheckIndividualidTwometaRequest = exports.GetFacevrfEvidenceResponse = exports.GetFacevrfEvidenceRequest = exports.ExecFacevrfServerResponse = exports.ExecFacevrfServerRequest = exports.CreateFacevrfServerResponse = exports.CreateFacevrfServerRequest = exports.QueryFacevrfServerResponse = exports.QueryFacevrfServerRequest = exports.XNameValuePair = exports.CarInfoBrief = exports.CarInfoDetail = exports.OcrInfo = exports.Audio = exports.ShareInfo = exports.ShareRefundInfo = exports.AudioMeta = exports.RiskInfo = exports.CardQuality = exports.OcrLocation = exports.Config = void 0;
|
|
26
26
|
// This file is auto-generated, don't edit it
|
|
27
27
|
const alipay_util_1 = __importDefault(require("@antchain/alipay-util"));
|
|
28
28
|
const tea_util_1 = __importStar(require("@alicloud/tea-util")), $Util = tea_util_1;
|
|
@@ -181,6 +181,44 @@ class AudioMeta extends $tea.Model {
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
exports.AudioMeta = AudioMeta;
|
|
184
|
+
// 分账退款信息
|
|
185
|
+
class ShareRefundInfo extends $tea.Model {
|
|
186
|
+
constructor(map) {
|
|
187
|
+
super(map);
|
|
188
|
+
}
|
|
189
|
+
static names() {
|
|
190
|
+
return {
|
|
191
|
+
merchantId: 'merchant_id',
|
|
192
|
+
amount: 'amount',
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
static types() {
|
|
196
|
+
return {
|
|
197
|
+
merchantId: 'string',
|
|
198
|
+
amount: 'string',
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
exports.ShareRefundInfo = ShareRefundInfo;
|
|
203
|
+
// 分账信息
|
|
204
|
+
class ShareInfo extends $tea.Model {
|
|
205
|
+
constructor(map) {
|
|
206
|
+
super(map);
|
|
207
|
+
}
|
|
208
|
+
static names() {
|
|
209
|
+
return {
|
|
210
|
+
merchantId: 'merchant_id',
|
|
211
|
+
amount: 'amount',
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
static types() {
|
|
215
|
+
return {
|
|
216
|
+
merchantId: 'string',
|
|
217
|
+
amount: 'string',
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
exports.ShareInfo = ShareInfo;
|
|
184
222
|
// 音频文件
|
|
185
223
|
class Audio extends $tea.Model {
|
|
186
224
|
constructor(map) {
|
|
@@ -307,6 +345,120 @@ class OcrInfo extends $tea.Model {
|
|
|
307
345
|
}
|
|
308
346
|
}
|
|
309
347
|
exports.OcrInfo = OcrInfo;
|
|
348
|
+
// 车辆资产验证详版车辆信息
|
|
349
|
+
class CarInfoDetail extends $tea.Model {
|
|
350
|
+
constructor(map) {
|
|
351
|
+
super(map);
|
|
352
|
+
}
|
|
353
|
+
static names() {
|
|
354
|
+
return {
|
|
355
|
+
clxh: 'clxh',
|
|
356
|
+
engineCode: 'engine_code',
|
|
357
|
+
engineModel: 'engine_model',
|
|
358
|
+
productionTime: 'production_time',
|
|
359
|
+
brandName: 'brand_name',
|
|
360
|
+
seriesName: 'series_name',
|
|
361
|
+
modelYear: 'model_year',
|
|
362
|
+
vehicleName: 'vehicle_name',
|
|
363
|
+
guidePrice: 'guide_price',
|
|
364
|
+
color: 'color',
|
|
365
|
+
vehicleLevel: 'vehicle_level',
|
|
366
|
+
vehicleType: 'vehicle_type',
|
|
367
|
+
bodyStruct: 'body_struct',
|
|
368
|
+
fuelType: 'fuel_type',
|
|
369
|
+
driveWay: 'drive_way',
|
|
370
|
+
chassisModel: 'chassis_model',
|
|
371
|
+
emissionStandard: 'emission_standard',
|
|
372
|
+
displacement: 'displacement',
|
|
373
|
+
length: 'length',
|
|
374
|
+
width: 'width',
|
|
375
|
+
height: 'height',
|
|
376
|
+
totalMass: 'total_mass',
|
|
377
|
+
curbWeight: 'curb_weight',
|
|
378
|
+
tireDistanceBefore: 'tire_distance_before',
|
|
379
|
+
tireDistanceAfter: 'tire_distance_after',
|
|
380
|
+
axesNumber: 'axes_number',
|
|
381
|
+
wheelBase: 'wheel_base',
|
|
382
|
+
seatingCapacity: 'seating_capacity',
|
|
383
|
+
approvedLoad: 'approved_load',
|
|
384
|
+
quasiTraction: 'quasi_traction',
|
|
385
|
+
tireSize: 'tire_size',
|
|
386
|
+
tireNumber: 'tire_number',
|
|
387
|
+
transmission: 'transmission',
|
|
388
|
+
power: 'power',
|
|
389
|
+
fuelConsumption: 'fuel_consumption',
|
|
390
|
+
environmentalStandards: 'environmental_standards',
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
static types() {
|
|
394
|
+
return {
|
|
395
|
+
clxh: 'string',
|
|
396
|
+
engineCode: 'string',
|
|
397
|
+
engineModel: 'string',
|
|
398
|
+
productionTime: 'string',
|
|
399
|
+
brandName: 'string',
|
|
400
|
+
seriesName: 'string',
|
|
401
|
+
modelYear: 'string',
|
|
402
|
+
vehicleName: 'string',
|
|
403
|
+
guidePrice: 'string',
|
|
404
|
+
color: 'string',
|
|
405
|
+
vehicleLevel: 'string',
|
|
406
|
+
vehicleType: 'string',
|
|
407
|
+
bodyStruct: 'string',
|
|
408
|
+
fuelType: 'string',
|
|
409
|
+
driveWay: 'string',
|
|
410
|
+
chassisModel: 'string',
|
|
411
|
+
emissionStandard: 'string',
|
|
412
|
+
displacement: 'string',
|
|
413
|
+
length: 'string',
|
|
414
|
+
width: 'string',
|
|
415
|
+
height: 'string',
|
|
416
|
+
totalMass: 'string',
|
|
417
|
+
curbWeight: 'string',
|
|
418
|
+
tireDistanceBefore: 'string',
|
|
419
|
+
tireDistanceAfter: 'string',
|
|
420
|
+
axesNumber: 'string',
|
|
421
|
+
wheelBase: 'string',
|
|
422
|
+
seatingCapacity: 'string',
|
|
423
|
+
approvedLoad: 'string',
|
|
424
|
+
quasiTraction: 'string',
|
|
425
|
+
tireSize: 'string',
|
|
426
|
+
tireNumber: 'string',
|
|
427
|
+
transmission: 'string',
|
|
428
|
+
power: 'string',
|
|
429
|
+
fuelConsumption: 'string',
|
|
430
|
+
environmentalStandards: 'string',
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
exports.CarInfoDetail = CarInfoDetail;
|
|
435
|
+
// 车辆资产验证简版车辆信息
|
|
436
|
+
class CarInfoBrief extends $tea.Model {
|
|
437
|
+
constructor(map) {
|
|
438
|
+
super(map);
|
|
439
|
+
}
|
|
440
|
+
static names() {
|
|
441
|
+
return {
|
|
442
|
+
productionTime: 'production_time',
|
|
443
|
+
brandName: 'brand_name',
|
|
444
|
+
seriesName: 'series_name',
|
|
445
|
+
fuelType: 'fuel_type',
|
|
446
|
+
axesNumber: 'axes_number',
|
|
447
|
+
wheelBase: 'wheel_base',
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
static types() {
|
|
451
|
+
return {
|
|
452
|
+
productionTime: 'string',
|
|
453
|
+
brandName: 'string',
|
|
454
|
+
seriesName: 'string',
|
|
455
|
+
fuelType: 'string',
|
|
456
|
+
axesNumber: 'string',
|
|
457
|
+
wheelBase: 'string',
|
|
458
|
+
};
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
exports.CarInfoBrief = CarInfoBrief;
|
|
310
462
|
// 键值对
|
|
311
463
|
class XNameValuePair extends $tea.Model {
|
|
312
464
|
constructor(map) {
|
|
@@ -3422,35 +3574,37 @@ class RecognizeOcrIndividualcardResponse extends $tea.Model {
|
|
|
3422
3574
|
}
|
|
3423
3575
|
}
|
|
3424
3576
|
exports.RecognizeOcrIndividualcardResponse = RecognizeOcrIndividualcardResponse;
|
|
3425
|
-
class
|
|
3577
|
+
class CheckIdcardFourmetaRequest extends $tea.Model {
|
|
3426
3578
|
constructor(map) {
|
|
3427
3579
|
super(map);
|
|
3428
3580
|
}
|
|
3429
3581
|
static names() {
|
|
3430
3582
|
return {
|
|
3431
3583
|
authToken: 'auth_token',
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3584
|
+
productInstanceId: 'product_instance_id',
|
|
3585
|
+
outerOrderNo: 'outer_order_no',
|
|
3586
|
+
certName: 'cert_name',
|
|
3587
|
+
certNo: 'cert_no',
|
|
3588
|
+
beginDate: 'begin_date',
|
|
3589
|
+
expiryDate: 'expiry_date',
|
|
3590
|
+
externParam: 'extern_param',
|
|
3438
3591
|
};
|
|
3439
3592
|
}
|
|
3440
3593
|
static types() {
|
|
3441
3594
|
return {
|
|
3442
3595
|
authToken: 'string',
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3596
|
+
productInstanceId: 'string',
|
|
3597
|
+
outerOrderNo: 'string',
|
|
3598
|
+
certName: 'string',
|
|
3599
|
+
certNo: 'string',
|
|
3600
|
+
beginDate: 'string',
|
|
3601
|
+
expiryDate: 'string',
|
|
3602
|
+
externParam: 'string',
|
|
3449
3603
|
};
|
|
3450
3604
|
}
|
|
3451
3605
|
}
|
|
3452
|
-
exports.
|
|
3453
|
-
class
|
|
3606
|
+
exports.CheckIdcardFourmetaRequest = CheckIdcardFourmetaRequest;
|
|
3607
|
+
class CheckIdcardFourmetaResponse extends $tea.Model {
|
|
3454
3608
|
constructor(map) {
|
|
3455
3609
|
super(map);
|
|
3456
3610
|
}
|
|
@@ -3459,10 +3613,8 @@ class CreateAntcloudGatewayxFileUploadResponse extends $tea.Model {
|
|
|
3459
3613
|
reqMsgId: 'req_msg_id',
|
|
3460
3614
|
resultCode: 'result_code',
|
|
3461
3615
|
resultMsg: 'result_msg',
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
uploadHeaders: 'upload_headers',
|
|
3465
|
-
uploadUrl: 'upload_url',
|
|
3616
|
+
match: 'match',
|
|
3617
|
+
externInfo: 'extern_info',
|
|
3466
3618
|
};
|
|
3467
3619
|
}
|
|
3468
3620
|
static types() {
|
|
@@ -3470,164 +3622,890 @@ class CreateAntcloudGatewayxFileUploadResponse extends $tea.Model {
|
|
|
3470
3622
|
reqMsgId: 'string',
|
|
3471
3623
|
resultCode: 'string',
|
|
3472
3624
|
resultMsg: 'string',
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
uploadHeaders: { 'type': 'array', 'itemType': XNameValuePair },
|
|
3476
|
-
uploadUrl: 'string',
|
|
3625
|
+
match: 'string',
|
|
3626
|
+
externInfo: 'string',
|
|
3477
3627
|
};
|
|
3478
3628
|
}
|
|
3479
3629
|
}
|
|
3480
|
-
exports.
|
|
3481
|
-
class
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
* @param config config contains the necessary information to create a client
|
|
3485
|
-
*/
|
|
3486
|
-
constructor(config) {
|
|
3487
|
-
if (tea_util_1.default.isUnset(config)) {
|
|
3488
|
-
throw $tea.newError({
|
|
3489
|
-
code: "ParameterMissing",
|
|
3490
|
-
message: "'config' can not be unset",
|
|
3491
|
-
});
|
|
3492
|
-
}
|
|
3493
|
-
this._accessKeyId = config.accessKeyId;
|
|
3494
|
-
this._accessKeySecret = config.accessKeySecret;
|
|
3495
|
-
this._securityToken = config.securityToken;
|
|
3496
|
-
this._endpoint = config.endpoint;
|
|
3497
|
-
this._protocol = config.protocol;
|
|
3498
|
-
this._userAgent = config.userAgent;
|
|
3499
|
-
this._readTimeout = tea_util_1.default.defaultNumber(config.readTimeout, 20000);
|
|
3500
|
-
this._connectTimeout = tea_util_1.default.defaultNumber(config.connectTimeout, 20000);
|
|
3501
|
-
this._httpProxy = config.httpProxy;
|
|
3502
|
-
this._httpsProxy = config.httpsProxy;
|
|
3503
|
-
this._noProxy = config.noProxy;
|
|
3504
|
-
this._socks5Proxy = config.socks5Proxy;
|
|
3505
|
-
this._socks5NetWork = config.socks5NetWork;
|
|
3506
|
-
this._maxIdleConns = tea_util_1.default.defaultNumber(config.maxIdleConns, 60000);
|
|
3507
|
-
this._maxIdleTimeMillis = tea_util_1.default.defaultNumber(config.maxIdleTimeMillis, 5);
|
|
3508
|
-
this._keepAliveDurationMillis = tea_util_1.default.defaultNumber(config.keepAliveDurationMillis, 5000);
|
|
3509
|
-
this._maxRequests = tea_util_1.default.defaultNumber(config.maxRequests, 100);
|
|
3510
|
-
this._maxRequestsPerHost = tea_util_1.default.defaultNumber(config.maxRequestsPerHost, 100);
|
|
3630
|
+
exports.CheckIdcardFourmetaResponse = CheckIdcardFourmetaResponse;
|
|
3631
|
+
class QueryCarinfoDetailRequest extends $tea.Model {
|
|
3632
|
+
constructor(map) {
|
|
3633
|
+
super(map);
|
|
3511
3634
|
}
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
* @param runtime which controls some details of call api, such as retry times
|
|
3520
|
-
* @return the response
|
|
3521
|
-
*/
|
|
3522
|
-
async doRequest(version, action, protocol, method, pathname, request, headers, runtime) {
|
|
3523
|
-
let _runtime = {
|
|
3524
|
-
timeouted: "retry",
|
|
3525
|
-
readTimeout: tea_util_1.default.defaultNumber(runtime.readTimeout, this._readTimeout),
|
|
3526
|
-
connectTimeout: tea_util_1.default.defaultNumber(runtime.connectTimeout, this._connectTimeout),
|
|
3527
|
-
httpProxy: tea_util_1.default.defaultString(runtime.httpProxy, this._httpProxy),
|
|
3528
|
-
httpsProxy: tea_util_1.default.defaultString(runtime.httpsProxy, this._httpsProxy),
|
|
3529
|
-
noProxy: tea_util_1.default.defaultString(runtime.noProxy, this._noProxy),
|
|
3530
|
-
maxIdleConns: tea_util_1.default.defaultNumber(runtime.maxIdleConns, this._maxIdleConns),
|
|
3531
|
-
maxIdleTimeMillis: this._maxIdleTimeMillis,
|
|
3532
|
-
keepAliveDuration: this._keepAliveDurationMillis,
|
|
3533
|
-
maxRequests: this._maxRequests,
|
|
3534
|
-
maxRequestsPerHost: this._maxRequestsPerHost,
|
|
3535
|
-
retry: {
|
|
3536
|
-
retryable: runtime.autoretry,
|
|
3537
|
-
maxAttempts: tea_util_1.default.defaultNumber(runtime.maxAttempts, 3),
|
|
3538
|
-
},
|
|
3539
|
-
backoff: {
|
|
3540
|
-
policy: tea_util_1.default.defaultString(runtime.backoffPolicy, "no"),
|
|
3541
|
-
period: tea_util_1.default.defaultNumber(runtime.backoffPeriod, 1),
|
|
3542
|
-
},
|
|
3543
|
-
ignoreSSL: runtime.ignoreSSL,
|
|
3635
|
+
static names() {
|
|
3636
|
+
return {
|
|
3637
|
+
authToken: 'auth_token',
|
|
3638
|
+
productInstanceId: 'product_instance_id',
|
|
3639
|
+
vin: 'vin',
|
|
3640
|
+
externParam: 'extern_param',
|
|
3641
|
+
outerOrderNo: 'outer_order_no',
|
|
3544
3642
|
};
|
|
3545
|
-
let _lastRequest = null;
|
|
3546
|
-
let _now = Date.now();
|
|
3547
|
-
let _retryTimes = 0;
|
|
3548
|
-
while ($tea.allowRetry(_runtime['retry'], _retryTimes, _now)) {
|
|
3549
|
-
if (_retryTimes > 0) {
|
|
3550
|
-
let _backoffTime = $tea.getBackoffTime(_runtime['backoff'], _retryTimes);
|
|
3551
|
-
if (_backoffTime > 0) {
|
|
3552
|
-
await $tea.sleep(_backoffTime);
|
|
3553
|
-
}
|
|
3554
|
-
}
|
|
3555
|
-
_retryTimes = _retryTimes + 1;
|
|
3556
|
-
try {
|
|
3557
|
-
let request_ = new $tea.Request();
|
|
3558
|
-
request_.protocol = tea_util_1.default.defaultString(this._protocol, protocol);
|
|
3559
|
-
request_.method = method;
|
|
3560
|
-
request_.pathname = pathname;
|
|
3561
|
-
request_.query = {
|
|
3562
|
-
method: action,
|
|
3563
|
-
version: version,
|
|
3564
|
-
sign_type: "HmacSHA1",
|
|
3565
|
-
req_time: alipay_util_1.default.getTimestamp(),
|
|
3566
|
-
req_msg_id: alipay_util_1.default.getNonce(),
|
|
3567
|
-
access_key: this._accessKeyId,
|
|
3568
|
-
base_sdk_version: "TeaSDK-2.0",
|
|
3569
|
-
sdk_version: "1.21.21",
|
|
3570
|
-
_prod_code: "REALPERSON",
|
|
3571
|
-
_prod_channel: "undefined",
|
|
3572
|
-
};
|
|
3573
|
-
if (!tea_util_1.default.empty(this._securityToken)) {
|
|
3574
|
-
request_.query["security_token"] = this._securityToken;
|
|
3575
|
-
}
|
|
3576
|
-
request_.headers = Object.assign({ host: tea_util_1.default.defaultString(this._endpoint, "openapi.antchain.antgroup.com"), 'user-agent': tea_util_1.default.getUserAgent(this._userAgent) }, headers);
|
|
3577
|
-
let tmp = tea_util_1.default.anyifyMapValue(rpc_util_1.default.query(request));
|
|
3578
|
-
request_.body = new $tea.BytesReadable(tea_util_1.default.toFormString(tmp));
|
|
3579
|
-
request_.headers["content-type"] = "application/x-www-form-urlencoded";
|
|
3580
|
-
let signedParam = Object.assign(Object.assign({}, request_.query), rpc_util_1.default.query(request));
|
|
3581
|
-
request_.query["sign"] = alipay_util_1.default.getSignature(signedParam, this._accessKeySecret);
|
|
3582
|
-
_lastRequest = request_;
|
|
3583
|
-
let response_ = await $tea.doAction(request_, _runtime);
|
|
3584
|
-
let raw = await tea_util_1.default.readAsString(response_.body);
|
|
3585
|
-
let obj = tea_util_1.default.parseJSON(raw);
|
|
3586
|
-
let res = tea_util_1.default.assertAsMap(obj);
|
|
3587
|
-
let resp = tea_util_1.default.assertAsMap(res["response"]);
|
|
3588
|
-
if (alipay_util_1.default.hasError(raw, this._accessKeySecret)) {
|
|
3589
|
-
throw $tea.newError({
|
|
3590
|
-
message: resp["result_msg"],
|
|
3591
|
-
data: resp,
|
|
3592
|
-
code: resp["result_code"],
|
|
3593
|
-
});
|
|
3594
|
-
}
|
|
3595
|
-
return resp;
|
|
3596
|
-
}
|
|
3597
|
-
catch (ex) {
|
|
3598
|
-
if ($tea.isRetryable(ex)) {
|
|
3599
|
-
continue;
|
|
3600
|
-
}
|
|
3601
|
-
throw ex;
|
|
3602
|
-
}
|
|
3603
|
-
}
|
|
3604
|
-
throw $tea.newUnretryableError(_lastRequest);
|
|
3605
3643
|
}
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3644
|
+
static types() {
|
|
3645
|
+
return {
|
|
3646
|
+
authToken: 'string',
|
|
3647
|
+
productInstanceId: 'string',
|
|
3648
|
+
vin: 'string',
|
|
3649
|
+
externParam: 'string',
|
|
3650
|
+
outerOrderNo: 'string',
|
|
3651
|
+
};
|
|
3614
3652
|
}
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
tea_util_1.default.validateModel(request);
|
|
3621
|
-
return $tea.cast(await this.doRequest("1.0", "di.realperson.facevrf.server.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryFacevrfServerResponse({}));
|
|
3653
|
+
}
|
|
3654
|
+
exports.QueryCarinfoDetailRequest = QueryCarinfoDetailRequest;
|
|
3655
|
+
class QueryCarinfoDetailResponse extends $tea.Model {
|
|
3656
|
+
constructor(map) {
|
|
3657
|
+
super(map);
|
|
3622
3658
|
}
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3659
|
+
static names() {
|
|
3660
|
+
return {
|
|
3661
|
+
reqMsgId: 'req_msg_id',
|
|
3662
|
+
resultCode: 'result_code',
|
|
3663
|
+
resultMsg: 'result_msg',
|
|
3664
|
+
externInfo: 'extern_info',
|
|
3665
|
+
carInfo: 'car_info',
|
|
3666
|
+
};
|
|
3667
|
+
}
|
|
3668
|
+
static types() {
|
|
3669
|
+
return {
|
|
3670
|
+
reqMsgId: 'string',
|
|
3671
|
+
resultCode: 'string',
|
|
3672
|
+
resultMsg: 'string',
|
|
3673
|
+
externInfo: 'string',
|
|
3674
|
+
carInfo: CarInfoDetail,
|
|
3675
|
+
};
|
|
3676
|
+
}
|
|
3677
|
+
}
|
|
3678
|
+
exports.QueryCarinfoDetailResponse = QueryCarinfoDetailResponse;
|
|
3679
|
+
class QueryCarinfoBriefRequest extends $tea.Model {
|
|
3680
|
+
constructor(map) {
|
|
3681
|
+
super(map);
|
|
3682
|
+
}
|
|
3683
|
+
static names() {
|
|
3684
|
+
return {
|
|
3685
|
+
authToken: 'auth_token',
|
|
3686
|
+
productInstanceId: 'product_instance_id',
|
|
3687
|
+
vin: 'vin',
|
|
3688
|
+
outerOrderNo: 'outer_order_no',
|
|
3689
|
+
externParam: 'extern_param',
|
|
3690
|
+
};
|
|
3691
|
+
}
|
|
3692
|
+
static types() {
|
|
3693
|
+
return {
|
|
3694
|
+
authToken: 'string',
|
|
3695
|
+
productInstanceId: 'string',
|
|
3696
|
+
vin: 'string',
|
|
3697
|
+
outerOrderNo: 'string',
|
|
3698
|
+
externParam: 'string',
|
|
3699
|
+
};
|
|
3700
|
+
}
|
|
3701
|
+
}
|
|
3702
|
+
exports.QueryCarinfoBriefRequest = QueryCarinfoBriefRequest;
|
|
3703
|
+
class QueryCarinfoBriefResponse extends $tea.Model {
|
|
3704
|
+
constructor(map) {
|
|
3705
|
+
super(map);
|
|
3706
|
+
}
|
|
3707
|
+
static names() {
|
|
3708
|
+
return {
|
|
3709
|
+
reqMsgId: 'req_msg_id',
|
|
3710
|
+
resultCode: 'result_code',
|
|
3711
|
+
resultMsg: 'result_msg',
|
|
3712
|
+
externInfo: 'extern_info',
|
|
3713
|
+
carInfo: 'car_info',
|
|
3714
|
+
};
|
|
3715
|
+
}
|
|
3716
|
+
static types() {
|
|
3717
|
+
return {
|
|
3718
|
+
reqMsgId: 'string',
|
|
3719
|
+
resultCode: 'string',
|
|
3720
|
+
resultMsg: 'string',
|
|
3721
|
+
externInfo: 'string',
|
|
3722
|
+
carInfo: CarInfoBrief,
|
|
3723
|
+
};
|
|
3724
|
+
}
|
|
3725
|
+
}
|
|
3726
|
+
exports.QueryCarinfoBriefResponse = QueryCarinfoBriefResponse;
|
|
3727
|
+
class BindCutpaymentPreRequest extends $tea.Model {
|
|
3728
|
+
constructor(map) {
|
|
3729
|
+
super(map);
|
|
3730
|
+
}
|
|
3731
|
+
static names() {
|
|
3732
|
+
return {
|
|
3733
|
+
authToken: 'auth_token',
|
|
3734
|
+
productInstanceId: 'product_instance_id',
|
|
3735
|
+
outerOrderNo: 'outer_order_no',
|
|
3736
|
+
encryptType: 'encrypt_type',
|
|
3737
|
+
encryptToken: 'encrypt_token',
|
|
3738
|
+
userId: 'user_id',
|
|
3739
|
+
cardType: 'card_type',
|
|
3740
|
+
cardPro: 'card_pro',
|
|
3741
|
+
cardNo: 'card_no',
|
|
3742
|
+
idCardType: 'id_card_type',
|
|
3743
|
+
certName: 'cert_name',
|
|
3744
|
+
certNo: 'cert_no',
|
|
3745
|
+
mobile: 'mobile',
|
|
3746
|
+
securityCode: 'security_code',
|
|
3747
|
+
validDate: 'valid_date',
|
|
3748
|
+
};
|
|
3749
|
+
}
|
|
3750
|
+
static types() {
|
|
3751
|
+
return {
|
|
3752
|
+
authToken: 'string',
|
|
3753
|
+
productInstanceId: 'string',
|
|
3754
|
+
outerOrderNo: 'string',
|
|
3755
|
+
encryptType: 'string',
|
|
3756
|
+
encryptToken: 'string',
|
|
3757
|
+
userId: 'string',
|
|
3758
|
+
cardType: 'string',
|
|
3759
|
+
cardPro: 'string',
|
|
3760
|
+
cardNo: 'string',
|
|
3761
|
+
idCardType: 'string',
|
|
3762
|
+
certName: 'string',
|
|
3763
|
+
certNo: 'string',
|
|
3764
|
+
mobile: 'string',
|
|
3765
|
+
securityCode: 'string',
|
|
3766
|
+
validDate: 'string',
|
|
3767
|
+
};
|
|
3768
|
+
}
|
|
3769
|
+
}
|
|
3770
|
+
exports.BindCutpaymentPreRequest = BindCutpaymentPreRequest;
|
|
3771
|
+
class BindCutpaymentPreResponse extends $tea.Model {
|
|
3772
|
+
constructor(map) {
|
|
3773
|
+
super(map);
|
|
3774
|
+
}
|
|
3775
|
+
static names() {
|
|
3776
|
+
return {
|
|
3777
|
+
reqMsgId: 'req_msg_id',
|
|
3778
|
+
resultCode: 'result_code',
|
|
3779
|
+
resultMsg: 'result_msg',
|
|
3780
|
+
preBindSn: 'pre_bind_sn',
|
|
3781
|
+
};
|
|
3782
|
+
}
|
|
3783
|
+
static types() {
|
|
3784
|
+
return {
|
|
3785
|
+
reqMsgId: 'string',
|
|
3786
|
+
resultCode: 'string',
|
|
3787
|
+
resultMsg: 'string',
|
|
3788
|
+
preBindSn: 'string',
|
|
3789
|
+
};
|
|
3790
|
+
}
|
|
3791
|
+
}
|
|
3792
|
+
exports.BindCutpaymentPreResponse = BindCutpaymentPreResponse;
|
|
3793
|
+
class BindCutpaymentSignRequest extends $tea.Model {
|
|
3794
|
+
constructor(map) {
|
|
3795
|
+
super(map);
|
|
3796
|
+
}
|
|
3797
|
+
static names() {
|
|
3798
|
+
return {
|
|
3799
|
+
authToken: 'auth_token',
|
|
3800
|
+
productInstanceId: 'product_instance_id',
|
|
3801
|
+
outerOrderNo: 'outer_order_no',
|
|
3802
|
+
encryptType: 'encrypt_type',
|
|
3803
|
+
encryptToken: 'encrypt_token',
|
|
3804
|
+
userId: 'user_id',
|
|
3805
|
+
preBindSn: 'pre_bind_sn',
|
|
3806
|
+
smsCode: 'sms_code',
|
|
3807
|
+
};
|
|
3808
|
+
}
|
|
3809
|
+
static types() {
|
|
3810
|
+
return {
|
|
3811
|
+
authToken: 'string',
|
|
3812
|
+
productInstanceId: 'string',
|
|
3813
|
+
outerOrderNo: 'string',
|
|
3814
|
+
encryptType: 'string',
|
|
3815
|
+
encryptToken: 'string',
|
|
3816
|
+
userId: 'string',
|
|
3817
|
+
preBindSn: 'string',
|
|
3818
|
+
smsCode: 'string',
|
|
3819
|
+
};
|
|
3820
|
+
}
|
|
3821
|
+
}
|
|
3822
|
+
exports.BindCutpaymentSignRequest = BindCutpaymentSignRequest;
|
|
3823
|
+
class BindCutpaymentSignResponse extends $tea.Model {
|
|
3824
|
+
constructor(map) {
|
|
3825
|
+
super(map);
|
|
3826
|
+
}
|
|
3827
|
+
static names() {
|
|
3828
|
+
return {
|
|
3829
|
+
reqMsgId: 'req_msg_id',
|
|
3830
|
+
resultCode: 'result_code',
|
|
3831
|
+
resultMsg: 'result_msg',
|
|
3832
|
+
protocolNo: 'protocol_no',
|
|
3833
|
+
signBindSn: 'sign_bind_sn',
|
|
3834
|
+
};
|
|
3835
|
+
}
|
|
3836
|
+
static types() {
|
|
3837
|
+
return {
|
|
3838
|
+
reqMsgId: 'string',
|
|
3839
|
+
resultCode: 'string',
|
|
3840
|
+
resultMsg: 'string',
|
|
3841
|
+
protocolNo: 'string',
|
|
3842
|
+
signBindSn: 'string',
|
|
3843
|
+
};
|
|
3844
|
+
}
|
|
3845
|
+
}
|
|
3846
|
+
exports.BindCutpaymentSignResponse = BindCutpaymentSignResponse;
|
|
3847
|
+
class UnbindCutpaymentSignRequest extends $tea.Model {
|
|
3848
|
+
constructor(map) {
|
|
3849
|
+
super(map);
|
|
3850
|
+
}
|
|
3851
|
+
static names() {
|
|
3852
|
+
return {
|
|
3853
|
+
authToken: 'auth_token',
|
|
3854
|
+
productInstanceId: 'product_instance_id',
|
|
3855
|
+
outerOrderNo: 'outer_order_no',
|
|
3856
|
+
encryptType: 'encrypt_type',
|
|
3857
|
+
encryptToken: 'encrypt_token',
|
|
3858
|
+
userId: 'user_id',
|
|
3859
|
+
protocolNo: 'protocol_no',
|
|
3860
|
+
};
|
|
3861
|
+
}
|
|
3862
|
+
static types() {
|
|
3863
|
+
return {
|
|
3864
|
+
authToken: 'string',
|
|
3865
|
+
productInstanceId: 'string',
|
|
3866
|
+
outerOrderNo: 'string',
|
|
3867
|
+
encryptType: 'string',
|
|
3868
|
+
encryptToken: 'string',
|
|
3869
|
+
userId: 'string',
|
|
3870
|
+
protocolNo: 'string',
|
|
3871
|
+
};
|
|
3872
|
+
}
|
|
3873
|
+
}
|
|
3874
|
+
exports.UnbindCutpaymentSignRequest = UnbindCutpaymentSignRequest;
|
|
3875
|
+
class UnbindCutpaymentSignResponse extends $tea.Model {
|
|
3876
|
+
constructor(map) {
|
|
3877
|
+
super(map);
|
|
3878
|
+
}
|
|
3879
|
+
static names() {
|
|
3880
|
+
return {
|
|
3881
|
+
reqMsgId: 'req_msg_id',
|
|
3882
|
+
resultCode: 'result_code',
|
|
3883
|
+
resultMsg: 'result_msg',
|
|
3884
|
+
unbindSn: 'unbind_sn',
|
|
3885
|
+
};
|
|
3886
|
+
}
|
|
3887
|
+
static types() {
|
|
3888
|
+
return {
|
|
3889
|
+
reqMsgId: 'string',
|
|
3890
|
+
resultCode: 'string',
|
|
3891
|
+
resultMsg: 'string',
|
|
3892
|
+
unbindSn: 'string',
|
|
3893
|
+
};
|
|
3894
|
+
}
|
|
3895
|
+
}
|
|
3896
|
+
exports.UnbindCutpaymentSignResponse = UnbindCutpaymentSignResponse;
|
|
3897
|
+
class QueryCutpaymentBindRequest extends $tea.Model {
|
|
3898
|
+
constructor(map) {
|
|
3899
|
+
super(map);
|
|
3900
|
+
}
|
|
3901
|
+
static names() {
|
|
3902
|
+
return {
|
|
3903
|
+
authToken: 'auth_token',
|
|
3904
|
+
productInstanceId: 'product_instance_id',
|
|
3905
|
+
outerOrderNo: 'outer_order_no',
|
|
3906
|
+
encryptType: 'encrypt_type',
|
|
3907
|
+
encryptToken: 'encrypt_token',
|
|
3908
|
+
userId: 'user_id',
|
|
3909
|
+
cardNo: 'card_no',
|
|
3910
|
+
signBindSn: 'sign_bind_sn',
|
|
3911
|
+
};
|
|
3912
|
+
}
|
|
3913
|
+
static types() {
|
|
3914
|
+
return {
|
|
3915
|
+
authToken: 'string',
|
|
3916
|
+
productInstanceId: 'string',
|
|
3917
|
+
outerOrderNo: 'string',
|
|
3918
|
+
encryptType: 'string',
|
|
3919
|
+
encryptToken: 'string',
|
|
3920
|
+
userId: 'string',
|
|
3921
|
+
cardNo: 'string',
|
|
3922
|
+
signBindSn: 'string',
|
|
3923
|
+
};
|
|
3924
|
+
}
|
|
3925
|
+
}
|
|
3926
|
+
exports.QueryCutpaymentBindRequest = QueryCutpaymentBindRequest;
|
|
3927
|
+
class QueryCutpaymentBindResponse extends $tea.Model {
|
|
3928
|
+
constructor(map) {
|
|
3929
|
+
super(map);
|
|
3930
|
+
}
|
|
3931
|
+
static names() {
|
|
3932
|
+
return {
|
|
3933
|
+
reqMsgId: 'req_msg_id',
|
|
3934
|
+
resultCode: 'result_code',
|
|
3935
|
+
resultMsg: 'result_msg',
|
|
3936
|
+
protocolNo: 'protocol_no',
|
|
3937
|
+
bankCode: 'bank_code',
|
|
3938
|
+
bankCard: 'bank_card',
|
|
3939
|
+
userId: 'user_id',
|
|
3940
|
+
};
|
|
3941
|
+
}
|
|
3942
|
+
static types() {
|
|
3943
|
+
return {
|
|
3944
|
+
reqMsgId: 'string',
|
|
3945
|
+
resultCode: 'string',
|
|
3946
|
+
resultMsg: 'string',
|
|
3947
|
+
protocolNo: 'string',
|
|
3948
|
+
bankCode: 'string',
|
|
3949
|
+
bankCard: 'string',
|
|
3950
|
+
userId: 'string',
|
|
3951
|
+
};
|
|
3952
|
+
}
|
|
3953
|
+
}
|
|
3954
|
+
exports.QueryCutpaymentBindResponse = QueryCutpaymentBindResponse;
|
|
3955
|
+
class ApplyCutpaymentPaymentRequest extends $tea.Model {
|
|
3956
|
+
constructor(map) {
|
|
3957
|
+
super(map);
|
|
3958
|
+
}
|
|
3959
|
+
static names() {
|
|
3960
|
+
return {
|
|
3961
|
+
authToken: 'auth_token',
|
|
3962
|
+
productInstanceId: 'product_instance_id',
|
|
3963
|
+
outerOrderNo: 'outer_order_no',
|
|
3964
|
+
encryptType: 'encrypt_type',
|
|
3965
|
+
encryptToken: 'encrypt_token',
|
|
3966
|
+
transId: 'trans_id',
|
|
3967
|
+
protocolNo: 'protocol_no',
|
|
3968
|
+
cardNo: 'card_no',
|
|
3969
|
+
certName: 'cert_name',
|
|
3970
|
+
txnAmt: 'txn_amt',
|
|
3971
|
+
userId: 'user_id',
|
|
3972
|
+
securityCode: 'security_code',
|
|
3973
|
+
validDate: 'valid_date',
|
|
3974
|
+
shareInfo: 'share_info',
|
|
3975
|
+
};
|
|
3976
|
+
}
|
|
3977
|
+
static types() {
|
|
3978
|
+
return {
|
|
3979
|
+
authToken: 'string',
|
|
3980
|
+
productInstanceId: 'string',
|
|
3981
|
+
outerOrderNo: 'string',
|
|
3982
|
+
encryptType: 'string',
|
|
3983
|
+
encryptToken: 'string',
|
|
3984
|
+
transId: 'string',
|
|
3985
|
+
protocolNo: 'string',
|
|
3986
|
+
cardNo: 'string',
|
|
3987
|
+
certName: 'string',
|
|
3988
|
+
txnAmt: 'string',
|
|
3989
|
+
userId: 'string',
|
|
3990
|
+
securityCode: 'string',
|
|
3991
|
+
validDate: 'string',
|
|
3992
|
+
shareInfo: { 'type': 'array', 'itemType': ShareInfo },
|
|
3993
|
+
};
|
|
3994
|
+
}
|
|
3995
|
+
}
|
|
3996
|
+
exports.ApplyCutpaymentPaymentRequest = ApplyCutpaymentPaymentRequest;
|
|
3997
|
+
class ApplyCutpaymentPaymentResponse extends $tea.Model {
|
|
3998
|
+
constructor(map) {
|
|
3999
|
+
super(map);
|
|
4000
|
+
}
|
|
4001
|
+
static names() {
|
|
4002
|
+
return {
|
|
4003
|
+
reqMsgId: 'req_msg_id',
|
|
4004
|
+
resultCode: 'result_code',
|
|
4005
|
+
resultMsg: 'result_msg',
|
|
4006
|
+
succAmt: 'succ_amt',
|
|
4007
|
+
succTime: 'succ_time',
|
|
4008
|
+
orderId: 'order_id',
|
|
4009
|
+
transId: 'trans_id',
|
|
4010
|
+
};
|
|
4011
|
+
}
|
|
4012
|
+
static types() {
|
|
4013
|
+
return {
|
|
4014
|
+
reqMsgId: 'string',
|
|
4015
|
+
resultCode: 'string',
|
|
4016
|
+
resultMsg: 'string',
|
|
4017
|
+
succAmt: 'string',
|
|
4018
|
+
succTime: 'string',
|
|
4019
|
+
orderId: 'string',
|
|
4020
|
+
transId: 'string',
|
|
4021
|
+
};
|
|
4022
|
+
}
|
|
4023
|
+
}
|
|
4024
|
+
exports.ApplyCutpaymentPaymentResponse = ApplyCutpaymentPaymentResponse;
|
|
4025
|
+
class QueryCutpaymentPaymentRequest extends $tea.Model {
|
|
4026
|
+
constructor(map) {
|
|
4027
|
+
super(map);
|
|
4028
|
+
}
|
|
4029
|
+
static names() {
|
|
4030
|
+
return {
|
|
4031
|
+
authToken: 'auth_token',
|
|
4032
|
+
productInstanceId: 'product_instance_id',
|
|
4033
|
+
outerOrderNo: 'outer_order_no',
|
|
4034
|
+
encryptType: 'encrypt_type',
|
|
4035
|
+
encryptToken: 'encrypt_token',
|
|
4036
|
+
protocolNo: 'protocol_no',
|
|
4037
|
+
transId: 'trans_id',
|
|
4038
|
+
origTradeDate: 'orig_trade_date',
|
|
4039
|
+
userId: 'user_id',
|
|
4040
|
+
};
|
|
4041
|
+
}
|
|
4042
|
+
static types() {
|
|
4043
|
+
return {
|
|
4044
|
+
authToken: 'string',
|
|
4045
|
+
productInstanceId: 'string',
|
|
4046
|
+
outerOrderNo: 'string',
|
|
4047
|
+
encryptType: 'string',
|
|
4048
|
+
encryptToken: 'string',
|
|
4049
|
+
protocolNo: 'string',
|
|
4050
|
+
transId: 'string',
|
|
4051
|
+
origTradeDate: 'string',
|
|
4052
|
+
userId: 'string',
|
|
4053
|
+
};
|
|
4054
|
+
}
|
|
4055
|
+
}
|
|
4056
|
+
exports.QueryCutpaymentPaymentRequest = QueryCutpaymentPaymentRequest;
|
|
4057
|
+
class QueryCutpaymentPaymentResponse extends $tea.Model {
|
|
4058
|
+
constructor(map) {
|
|
4059
|
+
super(map);
|
|
4060
|
+
}
|
|
4061
|
+
static names() {
|
|
4062
|
+
return {
|
|
4063
|
+
reqMsgId: 'req_msg_id',
|
|
4064
|
+
resultCode: 'result_code',
|
|
4065
|
+
resultMsg: 'result_msg',
|
|
4066
|
+
succAmt: 'succ_amt',
|
|
4067
|
+
succTime: 'succ_time',
|
|
4068
|
+
orderId: 'order_id',
|
|
4069
|
+
transId: 'trans_id',
|
|
4070
|
+
orderState: 'order_state',
|
|
4071
|
+
shareState: 'share_state',
|
|
4072
|
+
};
|
|
4073
|
+
}
|
|
4074
|
+
static types() {
|
|
4075
|
+
return {
|
|
4076
|
+
reqMsgId: 'string',
|
|
4077
|
+
resultCode: 'string',
|
|
4078
|
+
resultMsg: 'string',
|
|
4079
|
+
succAmt: 'string',
|
|
4080
|
+
succTime: 'string',
|
|
4081
|
+
orderId: 'string',
|
|
4082
|
+
transId: 'string',
|
|
4083
|
+
orderState: 'string',
|
|
4084
|
+
shareState: 'string',
|
|
4085
|
+
};
|
|
4086
|
+
}
|
|
4087
|
+
}
|
|
4088
|
+
exports.QueryCutpaymentPaymentResponse = QueryCutpaymentPaymentResponse;
|
|
4089
|
+
class ApplyCutpaymentRefundRequest extends $tea.Model {
|
|
4090
|
+
constructor(map) {
|
|
4091
|
+
super(map);
|
|
4092
|
+
}
|
|
4093
|
+
static names() {
|
|
4094
|
+
return {
|
|
4095
|
+
authToken: 'auth_token',
|
|
4096
|
+
productInstanceId: 'product_instance_id',
|
|
4097
|
+
outerOrderNo: 'outer_order_no',
|
|
4098
|
+
encryptType: 'encrypt_type',
|
|
4099
|
+
encryptToken: 'encrypt_token',
|
|
4100
|
+
paymentTransId: 'payment_trans_id',
|
|
4101
|
+
protocolNo: 'protocol_no',
|
|
4102
|
+
refundTransId: 'refund_trans_id',
|
|
4103
|
+
userId: 'user_id',
|
|
4104
|
+
refundSerialNo: 'refund_serial_no',
|
|
4105
|
+
refundReason: 'refund_reason',
|
|
4106
|
+
refundAmt: 'refund_amt',
|
|
4107
|
+
shareRefundInfo: 'share_refund_info',
|
|
4108
|
+
};
|
|
4109
|
+
}
|
|
4110
|
+
static types() {
|
|
4111
|
+
return {
|
|
4112
|
+
authToken: 'string',
|
|
4113
|
+
productInstanceId: 'string',
|
|
4114
|
+
outerOrderNo: 'string',
|
|
4115
|
+
encryptType: 'string',
|
|
4116
|
+
encryptToken: 'string',
|
|
4117
|
+
paymentTransId: 'string',
|
|
4118
|
+
protocolNo: 'string',
|
|
4119
|
+
refundTransId: 'string',
|
|
4120
|
+
userId: 'string',
|
|
4121
|
+
refundSerialNo: 'string',
|
|
4122
|
+
refundReason: 'string',
|
|
4123
|
+
refundAmt: 'string',
|
|
4124
|
+
shareRefundInfo: { 'type': 'array', 'itemType': ShareRefundInfo },
|
|
4125
|
+
};
|
|
4126
|
+
}
|
|
4127
|
+
}
|
|
4128
|
+
exports.ApplyCutpaymentRefundRequest = ApplyCutpaymentRefundRequest;
|
|
4129
|
+
class ApplyCutpaymentRefundResponse extends $tea.Model {
|
|
4130
|
+
constructor(map) {
|
|
4131
|
+
super(map);
|
|
4132
|
+
}
|
|
4133
|
+
static names() {
|
|
4134
|
+
return {
|
|
4135
|
+
reqMsgId: 'req_msg_id',
|
|
4136
|
+
resultCode: 'result_code',
|
|
4137
|
+
resultMsg: 'result_msg',
|
|
4138
|
+
refundTransId: 'refund_trans_id',
|
|
4139
|
+
refundSerialNo: 'refund_serial_no',
|
|
4140
|
+
refundAmt: 'refund_amt',
|
|
4141
|
+
};
|
|
4142
|
+
}
|
|
4143
|
+
static types() {
|
|
4144
|
+
return {
|
|
4145
|
+
reqMsgId: 'string',
|
|
4146
|
+
resultCode: 'string',
|
|
4147
|
+
resultMsg: 'string',
|
|
4148
|
+
refundTransId: 'string',
|
|
4149
|
+
refundSerialNo: 'string',
|
|
4150
|
+
refundAmt: 'string',
|
|
4151
|
+
};
|
|
4152
|
+
}
|
|
4153
|
+
}
|
|
4154
|
+
exports.ApplyCutpaymentRefundResponse = ApplyCutpaymentRefundResponse;
|
|
4155
|
+
class QueryCutpaymentRefundRequest extends $tea.Model {
|
|
4156
|
+
constructor(map) {
|
|
4157
|
+
super(map);
|
|
4158
|
+
}
|
|
4159
|
+
static names() {
|
|
4160
|
+
return {
|
|
4161
|
+
authToken: 'auth_token',
|
|
4162
|
+
productInstanceId: 'product_instance_id',
|
|
4163
|
+
outerOrderNo: 'outer_order_no',
|
|
4164
|
+
encryptType: 'encrypt_type',
|
|
4165
|
+
encryptToken: 'encrypt_token',
|
|
4166
|
+
userId: 'user_id',
|
|
4167
|
+
protocolNo: 'protocol_no',
|
|
4168
|
+
refundTransId: 'refund_trans_id',
|
|
4169
|
+
refundSerialNo: 'refund_serial_no',
|
|
4170
|
+
};
|
|
4171
|
+
}
|
|
4172
|
+
static types() {
|
|
4173
|
+
return {
|
|
4174
|
+
authToken: 'string',
|
|
4175
|
+
productInstanceId: 'string',
|
|
4176
|
+
outerOrderNo: 'string',
|
|
4177
|
+
encryptType: 'string',
|
|
4178
|
+
encryptToken: 'string',
|
|
4179
|
+
userId: 'string',
|
|
4180
|
+
protocolNo: 'string',
|
|
4181
|
+
refundTransId: 'string',
|
|
4182
|
+
refundSerialNo: 'string',
|
|
4183
|
+
};
|
|
4184
|
+
}
|
|
4185
|
+
}
|
|
4186
|
+
exports.QueryCutpaymentRefundRequest = QueryCutpaymentRefundRequest;
|
|
4187
|
+
class QueryCutpaymentRefundResponse extends $tea.Model {
|
|
4188
|
+
constructor(map) {
|
|
4189
|
+
super(map);
|
|
4190
|
+
}
|
|
4191
|
+
static names() {
|
|
4192
|
+
return {
|
|
4193
|
+
reqMsgId: 'req_msg_id',
|
|
4194
|
+
resultCode: 'result_code',
|
|
4195
|
+
resultMsg: 'result_msg',
|
|
4196
|
+
refundAmt: 'refund_amt',
|
|
4197
|
+
};
|
|
4198
|
+
}
|
|
4199
|
+
static types() {
|
|
4200
|
+
return {
|
|
4201
|
+
reqMsgId: 'string',
|
|
4202
|
+
resultCode: 'string',
|
|
4203
|
+
resultMsg: 'string',
|
|
4204
|
+
refundAmt: 'string',
|
|
4205
|
+
};
|
|
4206
|
+
}
|
|
4207
|
+
}
|
|
4208
|
+
exports.QueryCutpaymentRefundResponse = QueryCutpaymentRefundResponse;
|
|
4209
|
+
class QueryCutpaymentStatementRequest extends $tea.Model {
|
|
4210
|
+
constructor(map) {
|
|
4211
|
+
super(map);
|
|
4212
|
+
}
|
|
4213
|
+
static names() {
|
|
4214
|
+
return {
|
|
4215
|
+
authToken: 'auth_token',
|
|
4216
|
+
productInstanceId: 'product_instance_id',
|
|
4217
|
+
outerOrderNo: 'outer_order_no',
|
|
4218
|
+
settleDate: 'settle_date',
|
|
4219
|
+
};
|
|
4220
|
+
}
|
|
4221
|
+
static types() {
|
|
4222
|
+
return {
|
|
4223
|
+
authToken: 'string',
|
|
4224
|
+
productInstanceId: 'string',
|
|
4225
|
+
outerOrderNo: 'string',
|
|
4226
|
+
settleDate: 'string',
|
|
4227
|
+
};
|
|
4228
|
+
}
|
|
4229
|
+
}
|
|
4230
|
+
exports.QueryCutpaymentStatementRequest = QueryCutpaymentStatementRequest;
|
|
4231
|
+
class QueryCutpaymentStatementResponse extends $tea.Model {
|
|
4232
|
+
constructor(map) {
|
|
4233
|
+
super(map);
|
|
4234
|
+
}
|
|
4235
|
+
static names() {
|
|
4236
|
+
return {
|
|
4237
|
+
reqMsgId: 'req_msg_id',
|
|
4238
|
+
resultCode: 'result_code',
|
|
4239
|
+
resultMsg: 'result_msg',
|
|
4240
|
+
fileUrl: 'file_url',
|
|
4241
|
+
};
|
|
4242
|
+
}
|
|
4243
|
+
static types() {
|
|
4244
|
+
return {
|
|
4245
|
+
reqMsgId: 'string',
|
|
4246
|
+
resultCode: 'string',
|
|
4247
|
+
resultMsg: 'string',
|
|
4248
|
+
fileUrl: 'string',
|
|
4249
|
+
};
|
|
4250
|
+
}
|
|
4251
|
+
}
|
|
4252
|
+
exports.QueryCutpaymentStatementResponse = QueryCutpaymentStatementResponse;
|
|
4253
|
+
class ExecFaceThreemetaRequest extends $tea.Model {
|
|
4254
|
+
constructor(map) {
|
|
4255
|
+
super(map);
|
|
4256
|
+
}
|
|
4257
|
+
static names() {
|
|
4258
|
+
return {
|
|
4259
|
+
authToken: 'auth_token',
|
|
4260
|
+
productInstanceId: 'product_instance_id',
|
|
4261
|
+
certName: 'cert_name',
|
|
4262
|
+
certNo: 'cert_no',
|
|
4263
|
+
outerOrderNo: 'outer_order_no',
|
|
4264
|
+
fileType: 'file_type',
|
|
4265
|
+
facialPictureAuth: 'facial_picture_auth',
|
|
4266
|
+
};
|
|
4267
|
+
}
|
|
4268
|
+
static types() {
|
|
4269
|
+
return {
|
|
4270
|
+
authToken: 'string',
|
|
4271
|
+
productInstanceId: 'string',
|
|
4272
|
+
certName: 'string',
|
|
4273
|
+
certNo: 'string',
|
|
4274
|
+
outerOrderNo: 'string',
|
|
4275
|
+
fileType: 'string',
|
|
4276
|
+
facialPictureAuth: 'string',
|
|
4277
|
+
};
|
|
4278
|
+
}
|
|
4279
|
+
}
|
|
4280
|
+
exports.ExecFaceThreemetaRequest = ExecFaceThreemetaRequest;
|
|
4281
|
+
class ExecFaceThreemetaResponse extends $tea.Model {
|
|
4282
|
+
constructor(map) {
|
|
4283
|
+
super(map);
|
|
4284
|
+
}
|
|
4285
|
+
static names() {
|
|
4286
|
+
return {
|
|
4287
|
+
reqMsgId: 'req_msg_id',
|
|
4288
|
+
resultCode: 'result_code',
|
|
4289
|
+
resultMsg: 'result_msg',
|
|
4290
|
+
score: 'score',
|
|
4291
|
+
};
|
|
4292
|
+
}
|
|
4293
|
+
static types() {
|
|
4294
|
+
return {
|
|
4295
|
+
reqMsgId: 'string',
|
|
4296
|
+
resultCode: 'string',
|
|
4297
|
+
resultMsg: 'string',
|
|
4298
|
+
score: 'string',
|
|
4299
|
+
};
|
|
4300
|
+
}
|
|
4301
|
+
}
|
|
4302
|
+
exports.ExecFaceThreemetaResponse = ExecFaceThreemetaResponse;
|
|
4303
|
+
class CreateAntcloudGatewayxFileUploadRequest extends $tea.Model {
|
|
4304
|
+
constructor(map) {
|
|
4305
|
+
super(map);
|
|
4306
|
+
}
|
|
4307
|
+
static names() {
|
|
4308
|
+
return {
|
|
4309
|
+
authToken: 'auth_token',
|
|
4310
|
+
apiCode: 'api_code',
|
|
4311
|
+
fileLabel: 'file_label',
|
|
4312
|
+
fileMetadata: 'file_metadata',
|
|
4313
|
+
fileName: 'file_name',
|
|
4314
|
+
mimeType: 'mime_type',
|
|
4315
|
+
apiCluster: 'api_cluster',
|
|
4316
|
+
};
|
|
4317
|
+
}
|
|
4318
|
+
static types() {
|
|
4319
|
+
return {
|
|
4320
|
+
authToken: 'string',
|
|
4321
|
+
apiCode: 'string',
|
|
4322
|
+
fileLabel: 'string',
|
|
4323
|
+
fileMetadata: 'string',
|
|
4324
|
+
fileName: 'string',
|
|
4325
|
+
mimeType: 'string',
|
|
4326
|
+
apiCluster: 'string',
|
|
4327
|
+
};
|
|
4328
|
+
}
|
|
4329
|
+
}
|
|
4330
|
+
exports.CreateAntcloudGatewayxFileUploadRequest = CreateAntcloudGatewayxFileUploadRequest;
|
|
4331
|
+
class CreateAntcloudGatewayxFileUploadResponse extends $tea.Model {
|
|
4332
|
+
constructor(map) {
|
|
4333
|
+
super(map);
|
|
4334
|
+
}
|
|
4335
|
+
static names() {
|
|
4336
|
+
return {
|
|
4337
|
+
reqMsgId: 'req_msg_id',
|
|
4338
|
+
resultCode: 'result_code',
|
|
4339
|
+
resultMsg: 'result_msg',
|
|
4340
|
+
expiredTime: 'expired_time',
|
|
4341
|
+
fileId: 'file_id',
|
|
4342
|
+
uploadHeaders: 'upload_headers',
|
|
4343
|
+
uploadUrl: 'upload_url',
|
|
4344
|
+
};
|
|
4345
|
+
}
|
|
4346
|
+
static types() {
|
|
4347
|
+
return {
|
|
4348
|
+
reqMsgId: 'string',
|
|
4349
|
+
resultCode: 'string',
|
|
4350
|
+
resultMsg: 'string',
|
|
4351
|
+
expiredTime: 'string',
|
|
4352
|
+
fileId: 'string',
|
|
4353
|
+
uploadHeaders: { 'type': 'array', 'itemType': XNameValuePair },
|
|
4354
|
+
uploadUrl: 'string',
|
|
4355
|
+
};
|
|
4356
|
+
}
|
|
4357
|
+
}
|
|
4358
|
+
exports.CreateAntcloudGatewayxFileUploadResponse = CreateAntcloudGatewayxFileUploadResponse;
|
|
4359
|
+
class Client {
|
|
4360
|
+
/**
|
|
4361
|
+
* Init client with Config
|
|
4362
|
+
* @param config config contains the necessary information to create a client
|
|
4363
|
+
*/
|
|
4364
|
+
constructor(config) {
|
|
4365
|
+
if (tea_util_1.default.isUnset(config)) {
|
|
4366
|
+
throw $tea.newError({
|
|
4367
|
+
code: "ParameterMissing",
|
|
4368
|
+
message: "'config' can not be unset",
|
|
4369
|
+
});
|
|
4370
|
+
}
|
|
4371
|
+
this._accessKeyId = config.accessKeyId;
|
|
4372
|
+
this._accessKeySecret = config.accessKeySecret;
|
|
4373
|
+
this._securityToken = config.securityToken;
|
|
4374
|
+
this._endpoint = config.endpoint;
|
|
4375
|
+
this._protocol = config.protocol;
|
|
4376
|
+
this._userAgent = config.userAgent;
|
|
4377
|
+
this._readTimeout = tea_util_1.default.defaultNumber(config.readTimeout, 20000);
|
|
4378
|
+
this._connectTimeout = tea_util_1.default.defaultNumber(config.connectTimeout, 20000);
|
|
4379
|
+
this._httpProxy = config.httpProxy;
|
|
4380
|
+
this._httpsProxy = config.httpsProxy;
|
|
4381
|
+
this._noProxy = config.noProxy;
|
|
4382
|
+
this._socks5Proxy = config.socks5Proxy;
|
|
4383
|
+
this._socks5NetWork = config.socks5NetWork;
|
|
4384
|
+
this._maxIdleConns = tea_util_1.default.defaultNumber(config.maxIdleConns, 60000);
|
|
4385
|
+
this._maxIdleTimeMillis = tea_util_1.default.defaultNumber(config.maxIdleTimeMillis, 5);
|
|
4386
|
+
this._keepAliveDurationMillis = tea_util_1.default.defaultNumber(config.keepAliveDurationMillis, 5000);
|
|
4387
|
+
this._maxRequests = tea_util_1.default.defaultNumber(config.maxRequests, 100);
|
|
4388
|
+
this._maxRequestsPerHost = tea_util_1.default.defaultNumber(config.maxRequestsPerHost, 100);
|
|
4389
|
+
}
|
|
4390
|
+
/**
|
|
4391
|
+
* Encapsulate the request and invoke the network
|
|
4392
|
+
* @param action api name
|
|
4393
|
+
* @param protocol http or https
|
|
4394
|
+
* @param method e.g. GET
|
|
4395
|
+
* @param pathname pathname of every api
|
|
4396
|
+
* @param request which contains request params
|
|
4397
|
+
* @param runtime which controls some details of call api, such as retry times
|
|
4398
|
+
* @return the response
|
|
4399
|
+
*/
|
|
4400
|
+
async doRequest(version, action, protocol, method, pathname, request, headers, runtime) {
|
|
4401
|
+
let _runtime = {
|
|
4402
|
+
timeouted: "retry",
|
|
4403
|
+
readTimeout: tea_util_1.default.defaultNumber(runtime.readTimeout, this._readTimeout),
|
|
4404
|
+
connectTimeout: tea_util_1.default.defaultNumber(runtime.connectTimeout, this._connectTimeout),
|
|
4405
|
+
httpProxy: tea_util_1.default.defaultString(runtime.httpProxy, this._httpProxy),
|
|
4406
|
+
httpsProxy: tea_util_1.default.defaultString(runtime.httpsProxy, this._httpsProxy),
|
|
4407
|
+
noProxy: tea_util_1.default.defaultString(runtime.noProxy, this._noProxy),
|
|
4408
|
+
maxIdleConns: tea_util_1.default.defaultNumber(runtime.maxIdleConns, this._maxIdleConns),
|
|
4409
|
+
maxIdleTimeMillis: this._maxIdleTimeMillis,
|
|
4410
|
+
keepAliveDuration: this._keepAliveDurationMillis,
|
|
4411
|
+
maxRequests: this._maxRequests,
|
|
4412
|
+
maxRequestsPerHost: this._maxRequestsPerHost,
|
|
4413
|
+
retry: {
|
|
4414
|
+
retryable: runtime.autoretry,
|
|
4415
|
+
maxAttempts: tea_util_1.default.defaultNumber(runtime.maxAttempts, 3),
|
|
4416
|
+
},
|
|
4417
|
+
backoff: {
|
|
4418
|
+
policy: tea_util_1.default.defaultString(runtime.backoffPolicy, "no"),
|
|
4419
|
+
period: tea_util_1.default.defaultNumber(runtime.backoffPeriod, 1),
|
|
4420
|
+
},
|
|
4421
|
+
ignoreSSL: runtime.ignoreSSL,
|
|
4422
|
+
};
|
|
4423
|
+
let _lastRequest = null;
|
|
4424
|
+
let _now = Date.now();
|
|
4425
|
+
let _retryTimes = 0;
|
|
4426
|
+
while ($tea.allowRetry(_runtime['retry'], _retryTimes, _now)) {
|
|
4427
|
+
if (_retryTimes > 0) {
|
|
4428
|
+
let _backoffTime = $tea.getBackoffTime(_runtime['backoff'], _retryTimes);
|
|
4429
|
+
if (_backoffTime > 0) {
|
|
4430
|
+
await $tea.sleep(_backoffTime);
|
|
4431
|
+
}
|
|
4432
|
+
}
|
|
4433
|
+
_retryTimes = _retryTimes + 1;
|
|
4434
|
+
try {
|
|
4435
|
+
let request_ = new $tea.Request();
|
|
4436
|
+
request_.protocol = tea_util_1.default.defaultString(this._protocol, protocol);
|
|
4437
|
+
request_.method = method;
|
|
4438
|
+
request_.pathname = pathname;
|
|
4439
|
+
request_.query = {
|
|
4440
|
+
method: action,
|
|
4441
|
+
version: version,
|
|
4442
|
+
sign_type: "HmacSHA1",
|
|
4443
|
+
req_time: alipay_util_1.default.getTimestamp(),
|
|
4444
|
+
req_msg_id: alipay_util_1.default.getNonce(),
|
|
4445
|
+
access_key: this._accessKeyId,
|
|
4446
|
+
base_sdk_version: "TeaSDK-2.0",
|
|
4447
|
+
sdk_version: "1.22.5",
|
|
4448
|
+
_prod_code: "REALPERSON",
|
|
4449
|
+
_prod_channel: "undefined",
|
|
4450
|
+
};
|
|
4451
|
+
if (!tea_util_1.default.empty(this._securityToken)) {
|
|
4452
|
+
request_.query["security_token"] = this._securityToken;
|
|
4453
|
+
}
|
|
4454
|
+
request_.headers = Object.assign({ host: tea_util_1.default.defaultString(this._endpoint, "openapi.antchain.antgroup.com"), 'user-agent': tea_util_1.default.getUserAgent(this._userAgent) }, headers);
|
|
4455
|
+
let tmp = tea_util_1.default.anyifyMapValue(rpc_util_1.default.query(request));
|
|
4456
|
+
request_.body = new $tea.BytesReadable(tea_util_1.default.toFormString(tmp));
|
|
4457
|
+
request_.headers["content-type"] = "application/x-www-form-urlencoded";
|
|
4458
|
+
let signedParam = Object.assign(Object.assign({}, request_.query), rpc_util_1.default.query(request));
|
|
4459
|
+
request_.query["sign"] = alipay_util_1.default.getSignature(signedParam, this._accessKeySecret);
|
|
4460
|
+
_lastRequest = request_;
|
|
4461
|
+
let response_ = await $tea.doAction(request_, _runtime);
|
|
4462
|
+
let raw = await tea_util_1.default.readAsString(response_.body);
|
|
4463
|
+
let obj = tea_util_1.default.parseJSON(raw);
|
|
4464
|
+
let res = tea_util_1.default.assertAsMap(obj);
|
|
4465
|
+
let resp = tea_util_1.default.assertAsMap(res["response"]);
|
|
4466
|
+
if (alipay_util_1.default.hasError(raw, this._accessKeySecret)) {
|
|
4467
|
+
throw $tea.newError({
|
|
4468
|
+
message: resp["result_msg"],
|
|
4469
|
+
data: resp,
|
|
4470
|
+
code: resp["result_code"],
|
|
4471
|
+
});
|
|
4472
|
+
}
|
|
4473
|
+
return resp;
|
|
4474
|
+
}
|
|
4475
|
+
catch (ex) {
|
|
4476
|
+
if ($tea.isRetryable(ex)) {
|
|
4477
|
+
continue;
|
|
4478
|
+
}
|
|
4479
|
+
throw ex;
|
|
4480
|
+
}
|
|
4481
|
+
}
|
|
4482
|
+
throw $tea.newUnretryableError(_lastRequest);
|
|
4483
|
+
}
|
|
4484
|
+
/**
|
|
4485
|
+
* Description: 查询认证的结果和相关信息
|
|
4486
|
+
* Summary: 认证查询
|
|
4487
|
+
*/
|
|
4488
|
+
async queryFacevrfServer(request) {
|
|
4489
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4490
|
+
let headers = {};
|
|
4491
|
+
return await this.queryFacevrfServerEx(request, headers, runtime);
|
|
4492
|
+
}
|
|
4493
|
+
/**
|
|
4494
|
+
* Description: 查询认证的结果和相关信息
|
|
4495
|
+
* Summary: 认证查询
|
|
4496
|
+
*/
|
|
4497
|
+
async queryFacevrfServerEx(request, headers, runtime) {
|
|
4498
|
+
tea_util_1.default.validateModel(request);
|
|
4499
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.facevrf.server.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryFacevrfServerResponse({}));
|
|
4500
|
+
}
|
|
4501
|
+
/**
|
|
4502
|
+
* Description: 服务端认证创建,传入认证信息,获取认证ID(和url)
|
|
4503
|
+
* Summary: 认证创建
|
|
4504
|
+
*/
|
|
4505
|
+
async createFacevrfServer(request) {
|
|
4506
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4507
|
+
let headers = {};
|
|
4508
|
+
return await this.createFacevrfServerEx(request, headers, runtime);
|
|
3631
4509
|
}
|
|
3632
4510
|
/**
|
|
3633
4511
|
* Description: 服务端认证创建,传入认证信息,获取认证ID(和url)
|
|
@@ -4661,6 +5539,227 @@ class Client {
|
|
|
4661
5539
|
tea_util_1.default.validateModel(request);
|
|
4662
5540
|
return $tea.cast(await this.doRequest("1.0", "di.realperson.ocr.individualcard.recognize", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new RecognizeOcrIndividualcardResponse({}));
|
|
4663
5541
|
}
|
|
5542
|
+
/**
|
|
5543
|
+
* Description: 个人四要素认证
|
|
5544
|
+
* Summary: 个人四要素认证
|
|
5545
|
+
*/
|
|
5546
|
+
async checkIdcardFourmeta(request) {
|
|
5547
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5548
|
+
let headers = {};
|
|
5549
|
+
return await this.checkIdcardFourmetaEx(request, headers, runtime);
|
|
5550
|
+
}
|
|
5551
|
+
/**
|
|
5552
|
+
* Description: 个人四要素认证
|
|
5553
|
+
* Summary: 个人四要素认证
|
|
5554
|
+
*/
|
|
5555
|
+
async checkIdcardFourmetaEx(request, headers, runtime) {
|
|
5556
|
+
tea_util_1.default.validateModel(request);
|
|
5557
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.idcard.fourmeta.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckIdcardFourmetaResponse({}));
|
|
5558
|
+
}
|
|
5559
|
+
/**
|
|
5560
|
+
* Description: 车辆资产验证详版
|
|
5561
|
+
* Summary: 车辆资产验证详版
|
|
5562
|
+
*/
|
|
5563
|
+
async queryCarinfoDetail(request) {
|
|
5564
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5565
|
+
let headers = {};
|
|
5566
|
+
return await this.queryCarinfoDetailEx(request, headers, runtime);
|
|
5567
|
+
}
|
|
5568
|
+
/**
|
|
5569
|
+
* Description: 车辆资产验证详版
|
|
5570
|
+
* Summary: 车辆资产验证详版
|
|
5571
|
+
*/
|
|
5572
|
+
async queryCarinfoDetailEx(request, headers, runtime) {
|
|
5573
|
+
tea_util_1.default.validateModel(request);
|
|
5574
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.carinfo.detail.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryCarinfoDetailResponse({}));
|
|
5575
|
+
}
|
|
5576
|
+
/**
|
|
5577
|
+
* Description: 车辆资产验证简版
|
|
5578
|
+
* Summary: 车辆资产验证简版
|
|
5579
|
+
*/
|
|
5580
|
+
async queryCarinfoBrief(request) {
|
|
5581
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5582
|
+
let headers = {};
|
|
5583
|
+
return await this.queryCarinfoBriefEx(request, headers, runtime);
|
|
5584
|
+
}
|
|
5585
|
+
/**
|
|
5586
|
+
* Description: 车辆资产验证简版
|
|
5587
|
+
* Summary: 车辆资产验证简版
|
|
5588
|
+
*/
|
|
5589
|
+
async queryCarinfoBriefEx(request, headers, runtime) {
|
|
5590
|
+
tea_util_1.default.validateModel(request);
|
|
5591
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.carinfo.brief.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryCarinfoBriefResponse({}));
|
|
5592
|
+
}
|
|
5593
|
+
/**
|
|
5594
|
+
* Description: 银行卡代扣预绑定
|
|
5595
|
+
* Summary: 银行卡代扣预绑定
|
|
5596
|
+
*/
|
|
5597
|
+
async bindCutpaymentPre(request) {
|
|
5598
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5599
|
+
let headers = {};
|
|
5600
|
+
return await this.bindCutpaymentPreEx(request, headers, runtime);
|
|
5601
|
+
}
|
|
5602
|
+
/**
|
|
5603
|
+
* Description: 银行卡代扣预绑定
|
|
5604
|
+
* Summary: 银行卡代扣预绑定
|
|
5605
|
+
*/
|
|
5606
|
+
async bindCutpaymentPreEx(request, headers, runtime) {
|
|
5607
|
+
tea_util_1.default.validateModel(request);
|
|
5608
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.cutpayment.pre.bind", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new BindCutpaymentPreResponse({}));
|
|
5609
|
+
}
|
|
5610
|
+
/**
|
|
5611
|
+
* Description: 银行卡代扣绑卡签约
|
|
5612
|
+
* Summary: 银行卡代扣绑卡签约
|
|
5613
|
+
*/
|
|
5614
|
+
async bindCutpaymentSign(request) {
|
|
5615
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5616
|
+
let headers = {};
|
|
5617
|
+
return await this.bindCutpaymentSignEx(request, headers, runtime);
|
|
5618
|
+
}
|
|
5619
|
+
/**
|
|
5620
|
+
* Description: 银行卡代扣绑卡签约
|
|
5621
|
+
* Summary: 银行卡代扣绑卡签约
|
|
5622
|
+
*/
|
|
5623
|
+
async bindCutpaymentSignEx(request, headers, runtime) {
|
|
5624
|
+
tea_util_1.default.validateModel(request);
|
|
5625
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.cutpayment.sign.bind", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new BindCutpaymentSignResponse({}));
|
|
5626
|
+
}
|
|
5627
|
+
/**
|
|
5628
|
+
* Description: 银行卡代扣解绑
|
|
5629
|
+
* Summary: 银行卡代扣解绑
|
|
5630
|
+
*/
|
|
5631
|
+
async unbindCutpaymentSign(request) {
|
|
5632
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5633
|
+
let headers = {};
|
|
5634
|
+
return await this.unbindCutpaymentSignEx(request, headers, runtime);
|
|
5635
|
+
}
|
|
5636
|
+
/**
|
|
5637
|
+
* Description: 银行卡代扣解绑
|
|
5638
|
+
* Summary: 银行卡代扣解绑
|
|
5639
|
+
*/
|
|
5640
|
+
async unbindCutpaymentSignEx(request, headers, runtime) {
|
|
5641
|
+
tea_util_1.default.validateModel(request);
|
|
5642
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.cutpayment.sign.unbind", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new UnbindCutpaymentSignResponse({}));
|
|
5643
|
+
}
|
|
5644
|
+
/**
|
|
5645
|
+
* Description: 银行卡代扣绑定结果查询
|
|
5646
|
+
* Summary: 银行卡代扣绑定结果查询
|
|
5647
|
+
*/
|
|
5648
|
+
async queryCutpaymentBind(request) {
|
|
5649
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5650
|
+
let headers = {};
|
|
5651
|
+
return await this.queryCutpaymentBindEx(request, headers, runtime);
|
|
5652
|
+
}
|
|
5653
|
+
/**
|
|
5654
|
+
* Description: 银行卡代扣绑定结果查询
|
|
5655
|
+
* Summary: 银行卡代扣绑定结果查询
|
|
5656
|
+
*/
|
|
5657
|
+
async queryCutpaymentBindEx(request, headers, runtime) {
|
|
5658
|
+
tea_util_1.default.validateModel(request);
|
|
5659
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.cutpayment.bind.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryCutpaymentBindResponse({}));
|
|
5660
|
+
}
|
|
5661
|
+
/**
|
|
5662
|
+
* Description: 银行卡代扣支付分账扣款
|
|
5663
|
+
* Summary: 银行卡代扣支付分账扣款
|
|
5664
|
+
*/
|
|
5665
|
+
async applyCutpaymentPayment(request) {
|
|
5666
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5667
|
+
let headers = {};
|
|
5668
|
+
return await this.applyCutpaymentPaymentEx(request, headers, runtime);
|
|
5669
|
+
}
|
|
5670
|
+
/**
|
|
5671
|
+
* Description: 银行卡代扣支付分账扣款
|
|
5672
|
+
* Summary: 银行卡代扣支付分账扣款
|
|
5673
|
+
*/
|
|
5674
|
+
async applyCutpaymentPaymentEx(request, headers, runtime) {
|
|
5675
|
+
tea_util_1.default.validateModel(request);
|
|
5676
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.cutpayment.payment.apply", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ApplyCutpaymentPaymentResponse({}));
|
|
5677
|
+
}
|
|
5678
|
+
/**
|
|
5679
|
+
* Description: 银行卡代扣支付分账查询
|
|
5680
|
+
* Summary: 银行卡代扣支付分账查询
|
|
5681
|
+
*/
|
|
5682
|
+
async queryCutpaymentPayment(request) {
|
|
5683
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5684
|
+
let headers = {};
|
|
5685
|
+
return await this.queryCutpaymentPaymentEx(request, headers, runtime);
|
|
5686
|
+
}
|
|
5687
|
+
/**
|
|
5688
|
+
* Description: 银行卡代扣支付分账查询
|
|
5689
|
+
* Summary: 银行卡代扣支付分账查询
|
|
5690
|
+
*/
|
|
5691
|
+
async queryCutpaymentPaymentEx(request, headers, runtime) {
|
|
5692
|
+
tea_util_1.default.validateModel(request);
|
|
5693
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.cutpayment.payment.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryCutpaymentPaymentResponse({}));
|
|
5694
|
+
}
|
|
5695
|
+
/**
|
|
5696
|
+
* Description: 银行卡代扣退款申请
|
|
5697
|
+
* Summary: 银行卡代扣退款申请
|
|
5698
|
+
*/
|
|
5699
|
+
async applyCutpaymentRefund(request) {
|
|
5700
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5701
|
+
let headers = {};
|
|
5702
|
+
return await this.applyCutpaymentRefundEx(request, headers, runtime);
|
|
5703
|
+
}
|
|
5704
|
+
/**
|
|
5705
|
+
* Description: 银行卡代扣退款申请
|
|
5706
|
+
* Summary: 银行卡代扣退款申请
|
|
5707
|
+
*/
|
|
5708
|
+
async applyCutpaymentRefundEx(request, headers, runtime) {
|
|
5709
|
+
tea_util_1.default.validateModel(request);
|
|
5710
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.cutpayment.refund.apply", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ApplyCutpaymentRefundResponse({}));
|
|
5711
|
+
}
|
|
5712
|
+
/**
|
|
5713
|
+
* Description: 银行卡代扣退款查询
|
|
5714
|
+
* Summary: 银行卡代扣退款查询
|
|
5715
|
+
*/
|
|
5716
|
+
async queryCutpaymentRefund(request) {
|
|
5717
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5718
|
+
let headers = {};
|
|
5719
|
+
return await this.queryCutpaymentRefundEx(request, headers, runtime);
|
|
5720
|
+
}
|
|
5721
|
+
/**
|
|
5722
|
+
* Description: 银行卡代扣退款查询
|
|
5723
|
+
* Summary: 银行卡代扣退款查询
|
|
5724
|
+
*/
|
|
5725
|
+
async queryCutpaymentRefundEx(request, headers, runtime) {
|
|
5726
|
+
tea_util_1.default.validateModel(request);
|
|
5727
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.cutpayment.refund.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryCutpaymentRefundResponse({}));
|
|
5728
|
+
}
|
|
5729
|
+
/**
|
|
5730
|
+
* Description: 银行卡代扣对账
|
|
5731
|
+
* Summary: 银行卡代扣对账
|
|
5732
|
+
*/
|
|
5733
|
+
async queryCutpaymentStatement(request) {
|
|
5734
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5735
|
+
let headers = {};
|
|
5736
|
+
return await this.queryCutpaymentStatementEx(request, headers, runtime);
|
|
5737
|
+
}
|
|
5738
|
+
/**
|
|
5739
|
+
* Description: 银行卡代扣对账
|
|
5740
|
+
* Summary: 银行卡代扣对账
|
|
5741
|
+
*/
|
|
5742
|
+
async queryCutpaymentStatementEx(request, headers, runtime) {
|
|
5743
|
+
tea_util_1.default.validateModel(request);
|
|
5744
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.cutpayment.statement.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryCutpaymentStatementResponse({}));
|
|
5745
|
+
}
|
|
5746
|
+
/**
|
|
5747
|
+
* Description: 人像、证件号、姓名比对接口
|
|
5748
|
+
* Summary: 人像、证件号、姓名比对
|
|
5749
|
+
*/
|
|
5750
|
+
async execFaceThreemeta(request) {
|
|
5751
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5752
|
+
let headers = {};
|
|
5753
|
+
return await this.execFaceThreemetaEx(request, headers, runtime);
|
|
5754
|
+
}
|
|
5755
|
+
/**
|
|
5756
|
+
* Description: 人像、证件号、姓名比对接口
|
|
5757
|
+
* Summary: 人像、证件号、姓名比对
|
|
5758
|
+
*/
|
|
5759
|
+
async execFaceThreemetaEx(request, headers, runtime) {
|
|
5760
|
+
tea_util_1.default.validateModel(request);
|
|
5761
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.face.threemeta.exec", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ExecFaceThreemetaResponse({}));
|
|
5762
|
+
}
|
|
4664
5763
|
/**
|
|
4665
5764
|
* Description: 创建HTTP PUT提交的文件上传
|
|
4666
5765
|
* Summary: 文件上传创建
|