@antchain/realperson 1.22.6 → 1.22.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 +122 -2
- package/dist/client.js +184 -4
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +267 -5
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -523,6 +523,35 @@ export class OcrInfo extends $tea.Model {
|
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
|
|
526
|
+
// 车辆资产验证增强版车辆信息
|
|
527
|
+
export class CarInfoPlus extends $tea.Model {
|
|
528
|
+
// 车牌号
|
|
529
|
+
plateNo?: string;
|
|
530
|
+
// 车辆型号,格式:1,2,3...
|
|
531
|
+
model?: string;
|
|
532
|
+
// 车辆颜色,格式:1,2,3
|
|
533
|
+
color?: string;
|
|
534
|
+
static names(): { [key: string]: string } {
|
|
535
|
+
return {
|
|
536
|
+
plateNo: 'plate_no',
|
|
537
|
+
model: 'model',
|
|
538
|
+
color: 'color',
|
|
539
|
+
};
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
static types(): { [key: string]: any } {
|
|
543
|
+
return {
|
|
544
|
+
plateNo: 'string',
|
|
545
|
+
model: 'string',
|
|
546
|
+
color: 'string',
|
|
547
|
+
};
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
constructor(map?: { [key: string]: any }) {
|
|
551
|
+
super(map);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
|
|
526
555
|
// 车辆资产验证详版车辆信息
|
|
527
556
|
export class CarInfoDetail extends $tea.Model {
|
|
528
557
|
// 车辆型号
|
|
@@ -725,6 +754,35 @@ export class CarInfoBrief extends $tea.Model {
|
|
|
725
754
|
}
|
|
726
755
|
}
|
|
727
756
|
|
|
757
|
+
// 车辆资产验证旗舰版车辆信息
|
|
758
|
+
export class CarInfo extends $tea.Model {
|
|
759
|
+
// 是否高频使用,格式:YES/NO
|
|
760
|
+
highFrequency?: string;
|
|
761
|
+
// 车辆价值区间,格式:1,2,3...
|
|
762
|
+
value?: string;
|
|
763
|
+
// 车辆类型,格式:1,2,3
|
|
764
|
+
type?: string;
|
|
765
|
+
static names(): { [key: string]: string } {
|
|
766
|
+
return {
|
|
767
|
+
highFrequency: 'high_frequency',
|
|
768
|
+
value: 'value',
|
|
769
|
+
type: 'type',
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
static types(): { [key: string]: any } {
|
|
774
|
+
return {
|
|
775
|
+
highFrequency: 'string',
|
|
776
|
+
value: 'string',
|
|
777
|
+
type: 'string',
|
|
778
|
+
};
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
constructor(map?: { [key: string]: any }) {
|
|
782
|
+
super(map);
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
|
|
728
786
|
// 键值对
|
|
729
787
|
export class XNameValuePair extends $tea.Model {
|
|
730
788
|
// 键名
|
|
@@ -6284,7 +6342,7 @@ export class ApplyCutpaymentPaymentRequest extends $tea.Model {
|
|
|
6284
6342
|
// 有效期
|
|
6285
6343
|
validDate?: string;
|
|
6286
6344
|
// 分账信息
|
|
6287
|
-
shareInfo?:
|
|
6345
|
+
shareInfo?: string;
|
|
6288
6346
|
static names(): { [key: string]: string } {
|
|
6289
6347
|
return {
|
|
6290
6348
|
authToken: 'auth_token',
|
|
@@ -6319,7 +6377,7 @@ export class ApplyCutpaymentPaymentRequest extends $tea.Model {
|
|
|
6319
6377
|
userId: 'string',
|
|
6320
6378
|
securityCode: 'string',
|
|
6321
6379
|
validDate: 'string',
|
|
6322
|
-
shareInfo:
|
|
6380
|
+
shareInfo: 'string',
|
|
6323
6381
|
};
|
|
6324
6382
|
}
|
|
6325
6383
|
|
|
@@ -6506,7 +6564,7 @@ export class ApplyCutpaymentRefundRequest extends $tea.Model {
|
|
|
6506
6564
|
// 退款金额,整数,单位:分
|
|
6507
6565
|
refundAmt: string;
|
|
6508
6566
|
// 分账退款信息
|
|
6509
|
-
shareRefundInfo?:
|
|
6567
|
+
shareRefundInfo?: string;
|
|
6510
6568
|
static names(): { [key: string]: string } {
|
|
6511
6569
|
return {
|
|
6512
6570
|
authToken: 'auth_token',
|
|
@@ -6539,7 +6597,7 @@ export class ApplyCutpaymentRefundRequest extends $tea.Model {
|
|
|
6539
6597
|
refundSerialNo: 'string',
|
|
6540
6598
|
refundReason: 'string',
|
|
6541
6599
|
refundAmt: 'string',
|
|
6542
|
-
shareRefundInfo:
|
|
6600
|
+
shareRefundInfo: 'string',
|
|
6543
6601
|
};
|
|
6544
6602
|
}
|
|
6545
6603
|
|
|
@@ -6814,6 +6872,172 @@ export class ExecFaceThreemetaResponse extends $tea.Model {
|
|
|
6814
6872
|
}
|
|
6815
6873
|
}
|
|
6816
6874
|
|
|
6875
|
+
export class QueryCarinfoUltimateRequest extends $tea.Model {
|
|
6876
|
+
// OAuth模式下的授权token
|
|
6877
|
+
authToken?: string;
|
|
6878
|
+
productInstanceId?: string;
|
|
6879
|
+
// 请求ID,为32位以内的字母数字组合,由调用方自行生成、保证唯一并留存,以便问题定位和授权核查。
|
|
6880
|
+
outerOrderNo: string;
|
|
6881
|
+
// 入参加密模式:
|
|
6882
|
+
// NONE:不加密;
|
|
6883
|
+
// MD5:手机号码字段以MD5加密后的字符串传输
|
|
6884
|
+
reqEncType?: string;
|
|
6885
|
+
// 手机号支持明文和 MD5
|
|
6886
|
+
mobile: string;
|
|
6887
|
+
// 扩展信息,预留字段
|
|
6888
|
+
//
|
|
6889
|
+
externInfo?: string;
|
|
6890
|
+
static names(): { [key: string]: string } {
|
|
6891
|
+
return {
|
|
6892
|
+
authToken: 'auth_token',
|
|
6893
|
+
productInstanceId: 'product_instance_id',
|
|
6894
|
+
outerOrderNo: 'outer_order_no',
|
|
6895
|
+
reqEncType: 'req_enc_type',
|
|
6896
|
+
mobile: 'mobile',
|
|
6897
|
+
externInfo: 'extern_info',
|
|
6898
|
+
};
|
|
6899
|
+
}
|
|
6900
|
+
|
|
6901
|
+
static types(): { [key: string]: any } {
|
|
6902
|
+
return {
|
|
6903
|
+
authToken: 'string',
|
|
6904
|
+
productInstanceId: 'string',
|
|
6905
|
+
outerOrderNo: 'string',
|
|
6906
|
+
reqEncType: 'string',
|
|
6907
|
+
mobile: 'string',
|
|
6908
|
+
externInfo: 'string',
|
|
6909
|
+
};
|
|
6910
|
+
}
|
|
6911
|
+
|
|
6912
|
+
constructor(map?: { [key: string]: any }) {
|
|
6913
|
+
super(map);
|
|
6914
|
+
}
|
|
6915
|
+
}
|
|
6916
|
+
|
|
6917
|
+
export class QueryCarinfoUltimateResponse extends $tea.Model {
|
|
6918
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
6919
|
+
reqMsgId?: string;
|
|
6920
|
+
// 结果码,一般OK表示调用成功
|
|
6921
|
+
resultCode?: string;
|
|
6922
|
+
// 异常信息的文本描述
|
|
6923
|
+
resultMsg?: string;
|
|
6924
|
+
// 扩展信息,为JSONObject。
|
|
6925
|
+
//
|
|
6926
|
+
externInfo?: string;
|
|
6927
|
+
// 用户名下车辆数量,格式:1,2,3...
|
|
6928
|
+
amont?: string;
|
|
6929
|
+
// 车辆信息
|
|
6930
|
+
carInfos?: CarInfo[];
|
|
6931
|
+
static names(): { [key: string]: string } {
|
|
6932
|
+
return {
|
|
6933
|
+
reqMsgId: 'req_msg_id',
|
|
6934
|
+
resultCode: 'result_code',
|
|
6935
|
+
resultMsg: 'result_msg',
|
|
6936
|
+
externInfo: 'extern_info',
|
|
6937
|
+
amont: 'amont',
|
|
6938
|
+
carInfos: 'car_infos',
|
|
6939
|
+
};
|
|
6940
|
+
}
|
|
6941
|
+
|
|
6942
|
+
static types(): { [key: string]: any } {
|
|
6943
|
+
return {
|
|
6944
|
+
reqMsgId: 'string',
|
|
6945
|
+
resultCode: 'string',
|
|
6946
|
+
resultMsg: 'string',
|
|
6947
|
+
externInfo: 'string',
|
|
6948
|
+
amont: 'string',
|
|
6949
|
+
carInfos: { 'type': 'array', 'itemType': CarInfo },
|
|
6950
|
+
};
|
|
6951
|
+
}
|
|
6952
|
+
|
|
6953
|
+
constructor(map?: { [key: string]: any }) {
|
|
6954
|
+
super(map);
|
|
6955
|
+
}
|
|
6956
|
+
}
|
|
6957
|
+
|
|
6958
|
+
export class QueryCarinfoPlusRequest extends $tea.Model {
|
|
6959
|
+
// OAuth模式下的授权token
|
|
6960
|
+
authToken?: string;
|
|
6961
|
+
productInstanceId?: string;
|
|
6962
|
+
// 请求ID,为32位以内的字母数字组合,由调用方自行生成、保证唯一并留存,以便问题定位和授权核查。
|
|
6963
|
+
outerOrderNo: string;
|
|
6964
|
+
// 入参加密模式:
|
|
6965
|
+
// NONE:不加密;
|
|
6966
|
+
// MD5:手机号码字段以MD5加密后的字符串传输
|
|
6967
|
+
reqEncType?: string;
|
|
6968
|
+
// 身份证号
|
|
6969
|
+
certNo: string;
|
|
6970
|
+
// 扩展信息,预留字段
|
|
6971
|
+
//
|
|
6972
|
+
externInfo?: string;
|
|
6973
|
+
static names(): { [key: string]: string } {
|
|
6974
|
+
return {
|
|
6975
|
+
authToken: 'auth_token',
|
|
6976
|
+
productInstanceId: 'product_instance_id',
|
|
6977
|
+
outerOrderNo: 'outer_order_no',
|
|
6978
|
+
reqEncType: 'req_enc_type',
|
|
6979
|
+
certNo: 'cert_no',
|
|
6980
|
+
externInfo: 'extern_info',
|
|
6981
|
+
};
|
|
6982
|
+
}
|
|
6983
|
+
|
|
6984
|
+
static types(): { [key: string]: any } {
|
|
6985
|
+
return {
|
|
6986
|
+
authToken: 'string',
|
|
6987
|
+
productInstanceId: 'string',
|
|
6988
|
+
outerOrderNo: 'string',
|
|
6989
|
+
reqEncType: 'string',
|
|
6990
|
+
certNo: 'string',
|
|
6991
|
+
externInfo: 'string',
|
|
6992
|
+
};
|
|
6993
|
+
}
|
|
6994
|
+
|
|
6995
|
+
constructor(map?: { [key: string]: any }) {
|
|
6996
|
+
super(map);
|
|
6997
|
+
}
|
|
6998
|
+
}
|
|
6999
|
+
|
|
7000
|
+
export class QueryCarinfoPlusResponse extends $tea.Model {
|
|
7001
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
7002
|
+
reqMsgId?: string;
|
|
7003
|
+
// 结果码,一般OK表示调用成功
|
|
7004
|
+
resultCode?: string;
|
|
7005
|
+
// 异常信息的文本描述
|
|
7006
|
+
resultMsg?: string;
|
|
7007
|
+
// 扩展信息,为JSONObject。
|
|
7008
|
+
//
|
|
7009
|
+
externInfo?: string;
|
|
7010
|
+
// 用户名下车辆数量,格式:1,2,3...
|
|
7011
|
+
amont?: string;
|
|
7012
|
+
// 车辆信息
|
|
7013
|
+
carInfos?: CarInfoPlus[];
|
|
7014
|
+
static names(): { [key: string]: string } {
|
|
7015
|
+
return {
|
|
7016
|
+
reqMsgId: 'req_msg_id',
|
|
7017
|
+
resultCode: 'result_code',
|
|
7018
|
+
resultMsg: 'result_msg',
|
|
7019
|
+
externInfo: 'extern_info',
|
|
7020
|
+
amont: 'amont',
|
|
7021
|
+
carInfos: 'car_infos',
|
|
7022
|
+
};
|
|
7023
|
+
}
|
|
7024
|
+
|
|
7025
|
+
static types(): { [key: string]: any } {
|
|
7026
|
+
return {
|
|
7027
|
+
reqMsgId: 'string',
|
|
7028
|
+
resultCode: 'string',
|
|
7029
|
+
resultMsg: 'string',
|
|
7030
|
+
externInfo: 'string',
|
|
7031
|
+
amont: 'string',
|
|
7032
|
+
carInfos: { 'type': 'array', 'itemType': CarInfoPlus },
|
|
7033
|
+
};
|
|
7034
|
+
}
|
|
7035
|
+
|
|
7036
|
+
constructor(map?: { [key: string]: any }) {
|
|
7037
|
+
super(map);
|
|
7038
|
+
}
|
|
7039
|
+
}
|
|
7040
|
+
|
|
6817
7041
|
export class CreateAntcloudGatewayxFileUploadRequest extends $tea.Model {
|
|
6818
7042
|
// OAuth模式下的授权token
|
|
6819
7043
|
authToken?: string;
|
|
@@ -7015,7 +7239,7 @@ export default class Client {
|
|
|
7015
7239
|
req_msg_id: AntchainUtil.getNonce(),
|
|
7016
7240
|
access_key: this._accessKeyId,
|
|
7017
7241
|
base_sdk_version: "TeaSDK-2.0",
|
|
7018
|
-
sdk_version: "1.22.
|
|
7242
|
+
sdk_version: "1.22.10",
|
|
7019
7243
|
_prod_code: "REALPERSON",
|
|
7020
7244
|
_prod_channel: "undefined",
|
|
7021
7245
|
};
|
|
@@ -8490,6 +8714,44 @@ export default class Client {
|
|
|
8490
8714
|
return $tea.cast<ExecFaceThreemetaResponse>(await this.doRequest("1.0", "di.realperson.face.threemeta.exec", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ExecFaceThreemetaResponse({}));
|
|
8491
8715
|
}
|
|
8492
8716
|
|
|
8717
|
+
/**
|
|
8718
|
+
* Description: 用户资产验证-车辆资产验证旗舰版
|
|
8719
|
+
* Summary: 用户资产验证-车辆资产验证旗舰版
|
|
8720
|
+
*/
|
|
8721
|
+
async queryCarinfoUltimate(request: QueryCarinfoUltimateRequest): Promise<QueryCarinfoUltimateResponse> {
|
|
8722
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
8723
|
+
let headers : {[key: string ]: string} = { };
|
|
8724
|
+
return await this.queryCarinfoUltimateEx(request, headers, runtime);
|
|
8725
|
+
}
|
|
8726
|
+
|
|
8727
|
+
/**
|
|
8728
|
+
* Description: 用户资产验证-车辆资产验证旗舰版
|
|
8729
|
+
* Summary: 用户资产验证-车辆资产验证旗舰版
|
|
8730
|
+
*/
|
|
8731
|
+
async queryCarinfoUltimateEx(request: QueryCarinfoUltimateRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryCarinfoUltimateResponse> {
|
|
8732
|
+
Util.validateModel(request);
|
|
8733
|
+
return $tea.cast<QueryCarinfoUltimateResponse>(await this.doRequest("1.0", "di.realperson.carinfo.ultimate.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryCarinfoUltimateResponse({}));
|
|
8734
|
+
}
|
|
8735
|
+
|
|
8736
|
+
/**
|
|
8737
|
+
* Description: 用户资产验证-车辆资产验证增强版
|
|
8738
|
+
* Summary: 用户资产验证-车辆资产验证增强版
|
|
8739
|
+
*/
|
|
8740
|
+
async queryCarinfoPlus(request: QueryCarinfoPlusRequest): Promise<QueryCarinfoPlusResponse> {
|
|
8741
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
8742
|
+
let headers : {[key: string ]: string} = { };
|
|
8743
|
+
return await this.queryCarinfoPlusEx(request, headers, runtime);
|
|
8744
|
+
}
|
|
8745
|
+
|
|
8746
|
+
/**
|
|
8747
|
+
* Description: 用户资产验证-车辆资产验证增强版
|
|
8748
|
+
* Summary: 用户资产验证-车辆资产验证增强版
|
|
8749
|
+
*/
|
|
8750
|
+
async queryCarinfoPlusEx(request: QueryCarinfoPlusRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryCarinfoPlusResponse> {
|
|
8751
|
+
Util.validateModel(request);
|
|
8752
|
+
return $tea.cast<QueryCarinfoPlusResponse>(await this.doRequest("1.0", "di.realperson.carinfo.plus.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryCarinfoPlusResponse({}));
|
|
8753
|
+
}
|
|
8754
|
+
|
|
8493
8755
|
/**
|
|
8494
8756
|
* Description: 创建HTTP PUT提交的文件上传
|
|
8495
8757
|
* Summary: 文件上传创建
|