@antchain/riskplus 1.16.10 → 1.16.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antchain/riskplus",
3
- "version": "1.16.10",
3
+ "version": "1.16.13",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -5813,7 +5813,7 @@ export class QueryDubbridgeRouterFundrouterRequest extends $tea.Model {
5813
5813
  // 姓名
5814
5814
  customName: string;
5815
5815
  // 合作方产品编号
5816
- prodNo: string;
5816
+ prodNo?: string;
5817
5817
  // 渠道类型
5818
5818
  channelType?: string;
5819
5819
  // 客户类型
@@ -5928,7 +5928,7 @@ export class ApplyDubbridgeCreditRequest extends $tea.Model {
5928
5928
  // 工作信息
5929
5929
  borrowerEmpInfo?: JobInfo;
5930
5930
  // 产品编号
5931
- prodNo: string;
5931
+ prodNo?: string;
5932
5932
  // 风险数据对象json字符串
5933
5933
  riskData: string;
5934
5934
  // 借款用途
@@ -6424,6 +6424,8 @@ export class QueryDubbridgeCreditStatusResponse extends $tea.Model {
6424
6424
  fundCode?: string;
6425
6425
  // 冷静期结束日期
6426
6426
  coolingPeriod?: string;
6427
+ // 资金源编码
6428
+ loanInstCode?: string;
6427
6429
  static names(): { [key: string]: string } {
6428
6430
  return {
6429
6431
  reqMsgId: 'req_msg_id',
@@ -6439,6 +6441,7 @@ export class QueryDubbridgeCreditStatusResponse extends $tea.Model {
6439
6441
  applyNo: 'apply_no',
6440
6442
  fundCode: 'fund_code',
6441
6443
  coolingPeriod: 'cooling_period',
6444
+ loanInstCode: 'loan_inst_code',
6442
6445
  };
6443
6446
  }
6444
6447
 
@@ -6457,6 +6460,7 @@ export class QueryDubbridgeCreditStatusResponse extends $tea.Model {
6457
6460
  applyNo: 'string',
6458
6461
  fundCode: 'string',
6459
6462
  coolingPeriod: 'string',
6463
+ loanInstCode: 'string',
6460
6464
  };
6461
6465
  }
6462
6466
 
@@ -7636,7 +7640,7 @@ export class CountDubbridgeRepayReftrialRequest extends $tea.Model {
7636
7640
  // 授信申请订单号
7637
7641
  originalOrderNo: string;
7638
7642
  // 产品编号
7639
- prodNo: string;
7643
+ prodNo?: string;
7640
7644
  // 借款金额
7641
7645
  applyAmount: number;
7642
7646
  // 借款期数
@@ -7973,6 +7977,8 @@ export class ApplyDubbridgeUsecreditRequest extends $tea.Model {
7973
7977
  customType?: string;
7974
7978
  // 风险数据对象(json字符串)
7975
7979
  riskData?: string;
7980
+ // 资金源编码
7981
+ loanInstCode?: string;
7976
7982
  static names(): { [key: string]: string } {
7977
7983
  return {
7978
7984
  authToken: 'auth_token',
@@ -7988,6 +7994,7 @@ export class ApplyDubbridgeUsecreditRequest extends $tea.Model {
7988
7994
  channelType: 'channel_type',
7989
7995
  customType: 'custom_type',
7990
7996
  riskData: 'risk_data',
7997
+ loanInstCode: 'loan_inst_code',
7991
7998
  };
7992
7999
  }
7993
8000
 
@@ -8006,6 +8013,7 @@ export class ApplyDubbridgeUsecreditRequest extends $tea.Model {
8006
8013
  channelType: 'string',
8007
8014
  customType: 'string',
8008
8015
  riskData: 'string',
8016
+ loanInstCode: 'string',
8009
8017
  };
8010
8018
  }
8011
8019
 
@@ -8894,6 +8902,75 @@ export class ReceiveMdipParamsFileResponse extends $tea.Model {
8894
8902
  }
8895
8903
  }
8896
8904
 
8905
+ export class ReceiveMdipParamsRbbfileRequest extends $tea.Model {
8906
+ // OAuth模式下的授权token
8907
+ authToken?: string;
8908
+ productInstanceId?: string;
8909
+ // file_id
8910
+ fileObject?: Readable;
8911
+ fileObjectName?: string;
8912
+ fileId: string;
8913
+ // 文件名
8914
+ fileName: string;
8915
+ // 租户code
8916
+ tenantCode: string;
8917
+ static names(): { [key: string]: string } {
8918
+ return {
8919
+ authToken: 'auth_token',
8920
+ productInstanceId: 'product_instance_id',
8921
+ fileObject: 'fileObject',
8922
+ fileObjectName: 'fileObjectName',
8923
+ fileId: 'file_id',
8924
+ fileName: 'file_name',
8925
+ tenantCode: 'tenant_code',
8926
+ };
8927
+ }
8928
+
8929
+ static types(): { [key: string]: any } {
8930
+ return {
8931
+ authToken: 'string',
8932
+ productInstanceId: 'string',
8933
+ fileObject: 'Readable',
8934
+ fileObjectName: 'string',
8935
+ fileId: 'string',
8936
+ fileName: 'string',
8937
+ tenantCode: 'string',
8938
+ };
8939
+ }
8940
+
8941
+ constructor(map?: { [key: string]: any }) {
8942
+ super(map);
8943
+ }
8944
+ }
8945
+
8946
+ export class ReceiveMdipParamsRbbfileResponse extends $tea.Model {
8947
+ // 请求唯一ID,用于链路跟踪和问题排查
8948
+ reqMsgId?: string;
8949
+ // 结果码,一般OK表示调用成功
8950
+ resultCode?: string;
8951
+ // 异常信息的文本描述
8952
+ resultMsg?: string;
8953
+ static names(): { [key: string]: string } {
8954
+ return {
8955
+ reqMsgId: 'req_msg_id',
8956
+ resultCode: 'result_code',
8957
+ resultMsg: 'result_msg',
8958
+ };
8959
+ }
8960
+
8961
+ static types(): { [key: string]: any } {
8962
+ return {
8963
+ reqMsgId: 'string',
8964
+ resultCode: 'string',
8965
+ resultMsg: 'string',
8966
+ };
8967
+ }
8968
+
8969
+ constructor(map?: { [key: string]: any }) {
8970
+ super(map);
8971
+ }
8972
+ }
8973
+
8897
8974
  export class QueryRbbGenericInvokeRequest extends $tea.Model {
8898
8975
  // OAuth模式下的授权token
8899
8976
  authToken?: string;
@@ -14481,7 +14558,7 @@ export default class Client {
14481
14558
  noProxy: Util.defaultString(runtime.noProxy, this._noProxy),
14482
14559
  maxIdleConns: Util.defaultNumber(runtime.maxIdleConns, this._maxIdleConns),
14483
14560
  maxIdleTimeMillis: this._maxIdleTimeMillis,
14484
- keepAliveDurationMillis: this._keepAliveDurationMillis,
14561
+ keepAliveDuration: this._keepAliveDurationMillis,
14485
14562
  maxRequests: this._maxRequests,
14486
14563
  maxRequestsPerHost: this._maxRequestsPerHost,
14487
14564
  retry: {
@@ -14520,7 +14597,7 @@ export default class Client {
14520
14597
  req_msg_id: AntchainUtil.getNonce(),
14521
14598
  access_key: this._accessKeyId,
14522
14599
  base_sdk_version: "TeaSDK-2.0",
14523
- sdk_version: "1.16.10",
14600
+ sdk_version: "1.16.13",
14524
14601
  _prod_code: "RISKPLUS",
14525
14602
  _prod_channel: "undefined",
14526
14603
  };
@@ -15807,6 +15884,46 @@ export default class Client {
15807
15884
  return $tea.cast<ReceiveMdipParamsFileResponse>(await this.doRequest("1.0", "riskplus.mdip.params.file.receive", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ReceiveMdipParamsFileResponse({}));
15808
15885
  }
15809
15886
 
15887
+ /**
15888
+ * Description: 接受op的文件id,支持风险大脑文件上传
15889
+ * Summary: 接受op的文件id,支持风险大脑文件上传
15890
+ */
15891
+ async receiveMdipParamsRbbfile(request: ReceiveMdipParamsRbbfileRequest): Promise<ReceiveMdipParamsRbbfileResponse> {
15892
+ let runtime = new $Util.RuntimeOptions({ });
15893
+ let headers : {[key: string ]: string} = { };
15894
+ return await this.receiveMdipParamsRbbfileEx(request, headers, runtime);
15895
+ }
15896
+
15897
+ /**
15898
+ * Description: 接受op的文件id,支持风险大脑文件上传
15899
+ * Summary: 接受op的文件id,支持风险大脑文件上传
15900
+ */
15901
+ async receiveMdipParamsRbbfileEx(request: ReceiveMdipParamsRbbfileRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ReceiveMdipParamsRbbfileResponse> {
15902
+ if (!Util.isUnset(request.fileObject)) {
15903
+ let uploadReq = new CreateAntcloudGatewayxFileUploadRequest({
15904
+ authToken: request.authToken,
15905
+ apiCode: "riskplus.mdip.params.rbbfile.receive",
15906
+ fileName: request.fileObjectName,
15907
+ });
15908
+ let uploadResp = await this.createAntcloudGatewayxFileUploadEx(uploadReq, headers, runtime);
15909
+ if (!AntchainUtil.isSuccess(uploadResp.resultCode, "ok")) {
15910
+ let receiveMdipParamsRbbfileResponse = new ReceiveMdipParamsRbbfileResponse({
15911
+ reqMsgId: uploadResp.reqMsgId,
15912
+ resultCode: uploadResp.resultCode,
15913
+ resultMsg: uploadResp.resultMsg,
15914
+ });
15915
+ return receiveMdipParamsRbbfileResponse;
15916
+ }
15917
+
15918
+ let uploadHeaders = AntchainUtil.parseUploadHeaders(uploadResp.uploadHeaders);
15919
+ await AntchainUtil.putObject(request.fileObject, uploadHeaders, uploadResp.uploadUrl);
15920
+ request.fileId = uploadResp.fileId;
15921
+ }
15922
+
15923
+ Util.validateModel(request);
15924
+ return $tea.cast<ReceiveMdipParamsRbbfileResponse>(await this.doRequest("1.0", "riskplus.mdip.params.rbbfile.receive", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ReceiveMdipParamsRbbfileResponse({}));
15925
+ }
15926
+
15810
15927
  /**
15811
15928
  * Description: 风险大脑企业版通用查询接口
15812
15929
  * Summary: 【已废弃】