@antchain/riskplus 1.15.1 → 1.15.4
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 +72 -3
- package/dist/client.js +115 -7
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +184 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antchain/riskplus",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alicloud/tea-typescript": "latest",
|
|
23
23
|
"@antchain/alipay-util": "^1.0.4",
|
|
24
|
-
"@alicloud/tea-util": "^1.4.
|
|
24
|
+
"@alicloud/tea-util": "^1.4.5",
|
|
25
25
|
"@alicloud/rpc-util": "^0.1.0"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
package/src/client.ts
CHANGED
|
@@ -1274,6 +1274,59 @@ export class RiskData extends $tea.Model {
|
|
|
1274
1274
|
}
|
|
1275
1275
|
}
|
|
1276
1276
|
|
|
1277
|
+
// 还款信息列表
|
|
1278
|
+
export class RepayInfos extends $tea.Model {
|
|
1279
|
+
// 期次
|
|
1280
|
+
period: number;
|
|
1281
|
+
// 实还总额
|
|
1282
|
+
amount: number;
|
|
1283
|
+
// 实还本金
|
|
1284
|
+
principal: number;
|
|
1285
|
+
// 实还利息
|
|
1286
|
+
interest: number;
|
|
1287
|
+
// 实还通道手续费
|
|
1288
|
+
channelAmt: number;
|
|
1289
|
+
// 实还手续费
|
|
1290
|
+
fee: number;
|
|
1291
|
+
// 实收罚息
|
|
1292
|
+
punish: number;
|
|
1293
|
+
// 担保费
|
|
1294
|
+
guaranteeFee: number;
|
|
1295
|
+
// 违约金
|
|
1296
|
+
liquidatedDamages: number;
|
|
1297
|
+
static names(): { [key: string]: string } {
|
|
1298
|
+
return {
|
|
1299
|
+
period: 'period',
|
|
1300
|
+
amount: 'amount',
|
|
1301
|
+
principal: 'principal',
|
|
1302
|
+
interest: 'interest',
|
|
1303
|
+
channelAmt: 'channel_amt',
|
|
1304
|
+
fee: 'fee',
|
|
1305
|
+
punish: 'punish',
|
|
1306
|
+
guaranteeFee: 'guarantee_fee',
|
|
1307
|
+
liquidatedDamages: 'liquidated_damages',
|
|
1308
|
+
};
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
static types(): { [key: string]: any } {
|
|
1312
|
+
return {
|
|
1313
|
+
period: 'number',
|
|
1314
|
+
amount: 'number',
|
|
1315
|
+
principal: 'number',
|
|
1316
|
+
interest: 'number',
|
|
1317
|
+
channelAmt: 'number',
|
|
1318
|
+
fee: 'number',
|
|
1319
|
+
punish: 'number',
|
|
1320
|
+
guaranteeFee: 'number',
|
|
1321
|
+
liquidatedDamages: 'number',
|
|
1322
|
+
};
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
constructor(map?: { [key: string]: any }) {
|
|
1326
|
+
super(map);
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1277
1330
|
// 安全数据服务请求参数
|
|
1278
1331
|
export class SecurityDataQueryStruct extends $tea.Model {
|
|
1279
1332
|
// 请求数据参数
|
|
@@ -6493,6 +6546,8 @@ export class UpdateDubbridgeInstitutionCreditRequest extends $tea.Model {
|
|
|
6493
6546
|
extInfoTs: string;
|
|
6494
6547
|
// 扩展信息,json格式
|
|
6495
6548
|
extInfo: string;
|
|
6549
|
+
// 授信有效期-申请调整值,机构发起授信有效期更新场景下有值
|
|
6550
|
+
creditExpireDate?: string;
|
|
6496
6551
|
static names(): { [key: string]: string } {
|
|
6497
6552
|
return {
|
|
6498
6553
|
authToken: 'auth_token',
|
|
@@ -6509,6 +6564,7 @@ export class UpdateDubbridgeInstitutionCreditRequest extends $tea.Model {
|
|
|
6509
6564
|
reasonMsg: 'reason_msg',
|
|
6510
6565
|
extInfoTs: 'ext_info_ts',
|
|
6511
6566
|
extInfo: 'ext_info',
|
|
6567
|
+
creditExpireDate: 'credit_expire_date',
|
|
6512
6568
|
};
|
|
6513
6569
|
}
|
|
6514
6570
|
|
|
@@ -6528,6 +6584,7 @@ export class UpdateDubbridgeInstitutionCreditRequest extends $tea.Model {
|
|
|
6528
6584
|
reasonMsg: 'string',
|
|
6529
6585
|
extInfoTs: 'string',
|
|
6530
6586
|
extInfo: 'string',
|
|
6587
|
+
creditExpireDate: 'string',
|
|
6531
6588
|
};
|
|
6532
6589
|
}
|
|
6533
6590
|
|
|
@@ -8224,6 +8281,110 @@ export class NotifyDubbridgeCallbackResponse extends $tea.Model {
|
|
|
8224
8281
|
}
|
|
8225
8282
|
}
|
|
8226
8283
|
|
|
8284
|
+
export class QueryDubbridgeRepayResultRequest extends $tea.Model {
|
|
8285
|
+
// OAuth模式下的授权token
|
|
8286
|
+
authToken?: string;
|
|
8287
|
+
productInstanceId?: string;
|
|
8288
|
+
// 订单号
|
|
8289
|
+
orderNo: string;
|
|
8290
|
+
// 123
|
|
8291
|
+
originalOrderNo: string;
|
|
8292
|
+
static names(): { [key: string]: string } {
|
|
8293
|
+
return {
|
|
8294
|
+
authToken: 'auth_token',
|
|
8295
|
+
productInstanceId: 'product_instance_id',
|
|
8296
|
+
orderNo: 'order_no',
|
|
8297
|
+
originalOrderNo: 'original_order_no',
|
|
8298
|
+
};
|
|
8299
|
+
}
|
|
8300
|
+
|
|
8301
|
+
static types(): { [key: string]: any } {
|
|
8302
|
+
return {
|
|
8303
|
+
authToken: 'string',
|
|
8304
|
+
productInstanceId: 'string',
|
|
8305
|
+
orderNo: 'string',
|
|
8306
|
+
originalOrderNo: 'string',
|
|
8307
|
+
};
|
|
8308
|
+
}
|
|
8309
|
+
|
|
8310
|
+
constructor(map?: { [key: string]: any }) {
|
|
8311
|
+
super(map);
|
|
8312
|
+
}
|
|
8313
|
+
}
|
|
8314
|
+
|
|
8315
|
+
export class QueryDubbridgeRepayResultResponse extends $tea.Model {
|
|
8316
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
8317
|
+
reqMsgId?: string;
|
|
8318
|
+
// 结果码,一般OK表示调用成功
|
|
8319
|
+
resultCode?: string;
|
|
8320
|
+
// 异常信息的文本描述
|
|
8321
|
+
resultMsg?: string;
|
|
8322
|
+
// 还款编号
|
|
8323
|
+
repayNo?: string;
|
|
8324
|
+
// 借据编号
|
|
8325
|
+
receiptNo?: string;
|
|
8326
|
+
// 客户编号
|
|
8327
|
+
customNo?: string;
|
|
8328
|
+
// 还款类型
|
|
8329
|
+
// 1: 全部结清,
|
|
8330
|
+
// 2:正常还款
|
|
8331
|
+
// 3:当期结清
|
|
8332
|
+
// 4:逾期还款
|
|
8333
|
+
//
|
|
8334
|
+
repayType?: string;
|
|
8335
|
+
// 还款标志
|
|
8336
|
+
// 1 线下还款
|
|
8337
|
+
// 2 用户主动还款
|
|
8338
|
+
// 3 系统代扣
|
|
8339
|
+
//
|
|
8340
|
+
repaySign?: string;
|
|
8341
|
+
// 还款账户
|
|
8342
|
+
repayAccount?: string;
|
|
8343
|
+
// 还款状态
|
|
8344
|
+
repayStatus?: string;
|
|
8345
|
+
// 失败原因
|
|
8346
|
+
failReason?: string;
|
|
8347
|
+
// 还款信息列表
|
|
8348
|
+
repayInfos?: RepayInfos;
|
|
8349
|
+
static names(): { [key: string]: string } {
|
|
8350
|
+
return {
|
|
8351
|
+
reqMsgId: 'req_msg_id',
|
|
8352
|
+
resultCode: 'result_code',
|
|
8353
|
+
resultMsg: 'result_msg',
|
|
8354
|
+
repayNo: 'repay_no',
|
|
8355
|
+
receiptNo: 'receipt_no',
|
|
8356
|
+
customNo: 'custom_no',
|
|
8357
|
+
repayType: 'repay_type',
|
|
8358
|
+
repaySign: 'repay_sign',
|
|
8359
|
+
repayAccount: 'repay_account',
|
|
8360
|
+
repayStatus: 'repay_status',
|
|
8361
|
+
failReason: 'fail_reason',
|
|
8362
|
+
repayInfos: 'repay_infos',
|
|
8363
|
+
};
|
|
8364
|
+
}
|
|
8365
|
+
|
|
8366
|
+
static types(): { [key: string]: any } {
|
|
8367
|
+
return {
|
|
8368
|
+
reqMsgId: 'string',
|
|
8369
|
+
resultCode: 'string',
|
|
8370
|
+
resultMsg: 'string',
|
|
8371
|
+
repayNo: 'string',
|
|
8372
|
+
receiptNo: 'string',
|
|
8373
|
+
customNo: 'string',
|
|
8374
|
+
repayType: 'string',
|
|
8375
|
+
repaySign: 'string',
|
|
8376
|
+
repayAccount: 'string',
|
|
8377
|
+
repayStatus: 'string',
|
|
8378
|
+
failReason: 'string',
|
|
8379
|
+
repayInfos: RepayInfos,
|
|
8380
|
+
};
|
|
8381
|
+
}
|
|
8382
|
+
|
|
8383
|
+
constructor(map?: { [key: string]: any }) {
|
|
8384
|
+
super(map);
|
|
8385
|
+
}
|
|
8386
|
+
}
|
|
8387
|
+
|
|
8227
8388
|
export class VerifyFinserviceZhimaIdentifyRequest extends $tea.Model {
|
|
8228
8389
|
// OAuth模式下的授权token
|
|
8229
8390
|
authToken?: string;
|
|
@@ -12411,10 +12572,6 @@ export class UploadUmktParamsFileRequest extends $tea.Model {
|
|
|
12411
12572
|
// 后续支持
|
|
12412
12573
|
// DEVICE_MD5
|
|
12413
12574
|
fileTemplate: string;
|
|
12414
|
-
// 外部流水号
|
|
12415
|
-
outSerialNo: string;
|
|
12416
|
-
// 外部透传字段
|
|
12417
|
-
outInfo?: string;
|
|
12418
12575
|
static names(): { [key: string]: string } {
|
|
12419
12576
|
return {
|
|
12420
12577
|
authToken: 'auth_token',
|
|
@@ -12425,8 +12582,6 @@ export class UploadUmktParamsFileRequest extends $tea.Model {
|
|
|
12425
12582
|
sceneStrategyId: 'scene_strategy_id',
|
|
12426
12583
|
execTime: 'exec_time',
|
|
12427
12584
|
fileTemplate: 'file_template',
|
|
12428
|
-
outSerialNo: 'out_serial_no',
|
|
12429
|
-
outInfo: 'out_info',
|
|
12430
12585
|
};
|
|
12431
12586
|
}
|
|
12432
12587
|
|
|
@@ -12440,8 +12595,6 @@ export class UploadUmktParamsFileRequest extends $tea.Model {
|
|
|
12440
12595
|
sceneStrategyId: 'number',
|
|
12441
12596
|
execTime: 'string',
|
|
12442
12597
|
fileTemplate: 'string',
|
|
12443
|
-
outSerialNo: 'string',
|
|
12444
|
-
outInfo: 'string',
|
|
12445
12598
|
};
|
|
12446
12599
|
}
|
|
12447
12600
|
|
|
@@ -12848,7 +13001,7 @@ export class ApplyUmktRobotcallRequest extends $tea.Model {
|
|
|
12848
13001
|
// 客户透传字段
|
|
12849
13002
|
outInfo?: string;
|
|
12850
13003
|
// 用户参数类型
|
|
12851
|
-
|
|
13004
|
+
paramTemplate: string;
|
|
12852
13005
|
// 每个手机号的详细参数
|
|
12853
13006
|
customerDetails?: RobotCallCustomerParam[];
|
|
12854
13007
|
static names(): { [key: string]: string } {
|
|
@@ -12858,7 +13011,7 @@ export class ApplyUmktRobotcallRequest extends $tea.Model {
|
|
|
12858
13011
|
outSerialNo: 'out_serial_no',
|
|
12859
13012
|
sceneStrategyId: 'scene_strategy_id',
|
|
12860
13013
|
outInfo: 'out_info',
|
|
12861
|
-
|
|
13014
|
+
paramTemplate: 'param_template',
|
|
12862
13015
|
customerDetails: 'customer_details',
|
|
12863
13016
|
};
|
|
12864
13017
|
}
|
|
@@ -12870,7 +13023,7 @@ export class ApplyUmktRobotcallRequest extends $tea.Model {
|
|
|
12870
13023
|
outSerialNo: 'string',
|
|
12871
13024
|
sceneStrategyId: 'number',
|
|
12872
13025
|
outInfo: 'string',
|
|
12873
|
-
|
|
13026
|
+
paramTemplate: 'string',
|
|
12874
13027
|
customerDetails: { 'type': 'array', 'itemType': RobotCallCustomerParam },
|
|
12875
13028
|
};
|
|
12876
13029
|
}
|
|
@@ -13883,7 +14036,7 @@ export default class Client {
|
|
|
13883
14036
|
req_msg_id: AntchainUtil.getNonce(),
|
|
13884
14037
|
access_key: this._accessKeyId,
|
|
13885
14038
|
base_sdk_version: "TeaSDK-2.0",
|
|
13886
|
-
sdk_version: "1.15.
|
|
14039
|
+
sdk_version: "1.15.4",
|
|
13887
14040
|
_prod_code: "RISKPLUS",
|
|
13888
14041
|
_prod_channel: "undefined",
|
|
13889
14042
|
};
|
|
@@ -15035,6 +15188,25 @@ export default class Client {
|
|
|
15035
15188
|
return $tea.cast<NotifyDubbridgeCallbackResponse>(await this.doRequest("1.0", "riskplus.dubbridge.callback.notify", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new NotifyDubbridgeCallbackResponse({}));
|
|
15036
15189
|
}
|
|
15037
15190
|
|
|
15191
|
+
/**
|
|
15192
|
+
* Description: 2.12 天枢系统还款信息查询V2.0
|
|
15193
|
+
* Summary: 2.12 天枢系统还款信息查询V2.0
|
|
15194
|
+
*/
|
|
15195
|
+
async queryDubbridgeRepayResult(request: QueryDubbridgeRepayResultRequest): Promise<QueryDubbridgeRepayResultResponse> {
|
|
15196
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
15197
|
+
let headers : {[key: string ]: string} = { };
|
|
15198
|
+
return await this.queryDubbridgeRepayResultEx(request, headers, runtime);
|
|
15199
|
+
}
|
|
15200
|
+
|
|
15201
|
+
/**
|
|
15202
|
+
* Description: 2.12 天枢系统还款信息查询V2.0
|
|
15203
|
+
* Summary: 2.12 天枢系统还款信息查询V2.0
|
|
15204
|
+
*/
|
|
15205
|
+
async queryDubbridgeRepayResultEx(request: QueryDubbridgeRepayResultRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryDubbridgeRepayResultResponse> {
|
|
15206
|
+
Util.validateModel(request);
|
|
15207
|
+
return $tea.cast<QueryDubbridgeRepayResultResponse>(await this.doRequest("1.0", "riskplus.dubbridge.repay.result.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryDubbridgeRepayResultResponse({}));
|
|
15208
|
+
}
|
|
15209
|
+
|
|
15038
15210
|
/**
|
|
15039
15211
|
* Description: 四要素认证首先调用此接口
|
|
15040
15212
|
* Summary: 芝麻四要素接口
|