@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/dist/client.d.ts CHANGED
@@ -2401,7 +2401,7 @@ export declare class QueryDubbridgeRouterFundrouterRequest extends $tea.Model {
2401
2401
  cardNo: string;
2402
2402
  mobile: string;
2403
2403
  customName: string;
2404
- prodNo: string;
2404
+ prodNo?: string;
2405
2405
  channelType?: string;
2406
2406
  customType?: string;
2407
2407
  trafficPlatform?: string;
@@ -2445,7 +2445,7 @@ export declare class ApplyDubbridgeCreditRequest extends $tea.Model {
2445
2445
  orderNo: string;
2446
2446
  borrowerLiveInfo?: LiveInfo;
2447
2447
  borrowerEmpInfo?: JobInfo;
2448
- prodNo: string;
2448
+ prodNo?: string;
2449
2449
  riskData: string;
2450
2450
  loanReason?: string;
2451
2451
  materials?: Material[];
@@ -2651,6 +2651,7 @@ export declare class QueryDubbridgeCreditStatusResponse extends $tea.Model {
2651
2651
  applyNo?: string;
2652
2652
  fundCode?: string;
2653
2653
  coolingPeriod?: string;
2654
+ loanInstCode?: string;
2654
2655
  static names(): {
2655
2656
  [key: string]: string;
2656
2657
  };
@@ -3156,7 +3157,7 @@ export declare class CountDubbridgeRepayReftrialRequest extends $tea.Model {
3156
3157
  productInstanceId?: string;
3157
3158
  orderNo: string;
3158
3159
  originalOrderNo: string;
3159
- prodNo: string;
3160
+ prodNo?: string;
3160
3161
  applyAmount: number;
3161
3162
  applyPeriod: number;
3162
3163
  repayType: string;
@@ -3302,6 +3303,7 @@ export declare class ApplyDubbridgeUsecreditRequest extends $tea.Model {
3302
3303
  channelType?: string;
3303
3304
  customType?: string;
3304
3305
  riskData?: string;
3306
+ loanInstCode?: string;
3305
3307
  static names(): {
3306
3308
  [key: string]: string;
3307
3309
  };
@@ -3693,6 +3695,38 @@ export declare class ReceiveMdipParamsFileResponse extends $tea.Model {
3693
3695
  [key: string]: any;
3694
3696
  });
3695
3697
  }
3698
+ export declare class ReceiveMdipParamsRbbfileRequest extends $tea.Model {
3699
+ authToken?: string;
3700
+ productInstanceId?: string;
3701
+ fileObject?: Readable;
3702
+ fileObjectName?: string;
3703
+ fileId: string;
3704
+ fileName: string;
3705
+ tenantCode: string;
3706
+ static names(): {
3707
+ [key: string]: string;
3708
+ };
3709
+ static types(): {
3710
+ [key: string]: any;
3711
+ };
3712
+ constructor(map?: {
3713
+ [key: string]: any;
3714
+ });
3715
+ }
3716
+ export declare class ReceiveMdipParamsRbbfileResponse extends $tea.Model {
3717
+ reqMsgId?: string;
3718
+ resultCode?: string;
3719
+ resultMsg?: string;
3720
+ static names(): {
3721
+ [key: string]: string;
3722
+ };
3723
+ static types(): {
3724
+ [key: string]: any;
3725
+ };
3726
+ constructor(map?: {
3727
+ [key: string]: any;
3728
+ });
3729
+ }
3696
3730
  export declare class QueryRbbGenericInvokeRequest extends $tea.Model {
3697
3731
  authToken?: string;
3698
3732
  productInstanceId?: string;
@@ -6879,6 +6913,18 @@ export default class Client {
6879
6913
  receiveMdipParamsFileEx(request: ReceiveMdipParamsFileRequest, headers: {
6880
6914
  [key: string]: string;
6881
6915
  }, runtime: $Util.RuntimeOptions): Promise<ReceiveMdipParamsFileResponse>;
6916
+ /**
6917
+ * Description: 接受op的文件id,支持风险大脑文件上传
6918
+ * Summary: 接受op的文件id,支持风险大脑文件上传
6919
+ */
6920
+ receiveMdipParamsRbbfile(request: ReceiveMdipParamsRbbfileRequest): Promise<ReceiveMdipParamsRbbfileResponse>;
6921
+ /**
6922
+ * Description: 接受op的文件id,支持风险大脑文件上传
6923
+ * Summary: 接受op的文件id,支持风险大脑文件上传
6924
+ */
6925
+ receiveMdipParamsRbbfileEx(request: ReceiveMdipParamsRbbfileRequest, headers: {
6926
+ [key: string]: string;
6927
+ }, runtime: $Util.RuntimeOptions): Promise<ReceiveMdipParamsRbbfileResponse>;
6882
6928
  /**
6883
6929
  * Description: 风险大脑企业版通用查询接口
6884
6930
  * Summary: 【已废弃】
package/dist/client.js CHANGED
@@ -4188,6 +4188,7 @@ class QueryDubbridgeCreditStatusResponse extends $tea.Model {
4188
4188
  applyNo: 'apply_no',
4189
4189
  fundCode: 'fund_code',
4190
4190
  coolingPeriod: 'cooling_period',
4191
+ loanInstCode: 'loan_inst_code',
4191
4192
  };
4192
4193
  }
4193
4194
  static types() {
@@ -4205,6 +4206,7 @@ class QueryDubbridgeCreditStatusResponse extends $tea.Model {
4205
4206
  applyNo: 'string',
4206
4207
  fundCode: 'string',
4207
4208
  coolingPeriod: 'string',
4209
+ loanInstCode: 'string',
4208
4210
  };
4209
4211
  }
4210
4212
  }
@@ -5194,6 +5196,7 @@ class ApplyDubbridgeUsecreditRequest extends $tea.Model {
5194
5196
  channelType: 'channel_type',
5195
5197
  customType: 'custom_type',
5196
5198
  riskData: 'risk_data',
5199
+ loanInstCode: 'loan_inst_code',
5197
5200
  };
5198
5201
  }
5199
5202
  static types() {
@@ -5211,6 +5214,7 @@ class ApplyDubbridgeUsecreditRequest extends $tea.Model {
5211
5214
  channelType: 'string',
5212
5215
  customType: 'string',
5213
5216
  riskData: 'string',
5217
+ loanInstCode: 'string',
5214
5218
  };
5215
5219
  }
5216
5220
  }
@@ -5793,6 +5797,54 @@ class ReceiveMdipParamsFileResponse extends $tea.Model {
5793
5797
  }
5794
5798
  }
5795
5799
  exports.ReceiveMdipParamsFileResponse = ReceiveMdipParamsFileResponse;
5800
+ class ReceiveMdipParamsRbbfileRequest extends $tea.Model {
5801
+ constructor(map) {
5802
+ super(map);
5803
+ }
5804
+ static names() {
5805
+ return {
5806
+ authToken: 'auth_token',
5807
+ productInstanceId: 'product_instance_id',
5808
+ fileObject: 'fileObject',
5809
+ fileObjectName: 'fileObjectName',
5810
+ fileId: 'file_id',
5811
+ fileName: 'file_name',
5812
+ tenantCode: 'tenant_code',
5813
+ };
5814
+ }
5815
+ static types() {
5816
+ return {
5817
+ authToken: 'string',
5818
+ productInstanceId: 'string',
5819
+ fileObject: 'Readable',
5820
+ fileObjectName: 'string',
5821
+ fileId: 'string',
5822
+ fileName: 'string',
5823
+ tenantCode: 'string',
5824
+ };
5825
+ }
5826
+ }
5827
+ exports.ReceiveMdipParamsRbbfileRequest = ReceiveMdipParamsRbbfileRequest;
5828
+ class ReceiveMdipParamsRbbfileResponse extends $tea.Model {
5829
+ constructor(map) {
5830
+ super(map);
5831
+ }
5832
+ static names() {
5833
+ return {
5834
+ reqMsgId: 'req_msg_id',
5835
+ resultCode: 'result_code',
5836
+ resultMsg: 'result_msg',
5837
+ };
5838
+ }
5839
+ static types() {
5840
+ return {
5841
+ reqMsgId: 'string',
5842
+ resultCode: 'string',
5843
+ resultMsg: 'string',
5844
+ };
5845
+ }
5846
+ }
5847
+ exports.ReceiveMdipParamsRbbfileResponse = ReceiveMdipParamsRbbfileResponse;
5796
5848
  class QueryRbbGenericInvokeRequest extends $tea.Model {
5797
5849
  constructor(map) {
5798
5850
  super(map);
@@ -9484,7 +9536,7 @@ class Client {
9484
9536
  noProxy: tea_util_1.default.defaultString(runtime.noProxy, this._noProxy),
9485
9537
  maxIdleConns: tea_util_1.default.defaultNumber(runtime.maxIdleConns, this._maxIdleConns),
9486
9538
  maxIdleTimeMillis: this._maxIdleTimeMillis,
9487
- keepAliveDurationMillis: this._keepAliveDurationMillis,
9539
+ keepAliveDuration: this._keepAliveDurationMillis,
9488
9540
  maxRequests: this._maxRequests,
9489
9541
  maxRequestsPerHost: this._maxRequestsPerHost,
9490
9542
  retry: {
@@ -9521,7 +9573,7 @@ class Client {
9521
9573
  req_msg_id: alipay_util_1.default.getNonce(),
9522
9574
  access_key: this._accessKeyId,
9523
9575
  base_sdk_version: "TeaSDK-2.0",
9524
- sdk_version: "1.16.10",
9576
+ sdk_version: "1.16.13",
9525
9577
  _prod_code: "RISKPLUS",
9526
9578
  _prod_channel: "undefined",
9527
9579
  };
@@ -10667,6 +10719,42 @@ class Client {
10667
10719
  tea_util_1.default.validateModel(request);
10668
10720
  return $tea.cast(await this.doRequest("1.0", "riskplus.mdip.params.file.receive", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ReceiveMdipParamsFileResponse({}));
10669
10721
  }
10722
+ /**
10723
+ * Description: 接受op的文件id,支持风险大脑文件上传
10724
+ * Summary: 接受op的文件id,支持风险大脑文件上传
10725
+ */
10726
+ async receiveMdipParamsRbbfile(request) {
10727
+ let runtime = new $Util.RuntimeOptions({});
10728
+ let headers = {};
10729
+ return await this.receiveMdipParamsRbbfileEx(request, headers, runtime);
10730
+ }
10731
+ /**
10732
+ * Description: 接受op的文件id,支持风险大脑文件上传
10733
+ * Summary: 接受op的文件id,支持风险大脑文件上传
10734
+ */
10735
+ async receiveMdipParamsRbbfileEx(request, headers, runtime) {
10736
+ if (!tea_util_1.default.isUnset(request.fileObject)) {
10737
+ let uploadReq = new CreateAntcloudGatewayxFileUploadRequest({
10738
+ authToken: request.authToken,
10739
+ apiCode: "riskplus.mdip.params.rbbfile.receive",
10740
+ fileName: request.fileObjectName,
10741
+ });
10742
+ let uploadResp = await this.createAntcloudGatewayxFileUploadEx(uploadReq, headers, runtime);
10743
+ if (!alipay_util_1.default.isSuccess(uploadResp.resultCode, "ok")) {
10744
+ let receiveMdipParamsRbbfileResponse = new ReceiveMdipParamsRbbfileResponse({
10745
+ reqMsgId: uploadResp.reqMsgId,
10746
+ resultCode: uploadResp.resultCode,
10747
+ resultMsg: uploadResp.resultMsg,
10748
+ });
10749
+ return receiveMdipParamsRbbfileResponse;
10750
+ }
10751
+ let uploadHeaders = alipay_util_1.default.parseUploadHeaders(uploadResp.uploadHeaders);
10752
+ await alipay_util_1.default.putObject(request.fileObject, uploadHeaders, uploadResp.uploadUrl);
10753
+ request.fileId = uploadResp.fileId;
10754
+ }
10755
+ tea_util_1.default.validateModel(request);
10756
+ return $tea.cast(await this.doRequest("1.0", "riskplus.mdip.params.rbbfile.receive", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ReceiveMdipParamsRbbfileResponse({}));
10757
+ }
10670
10758
  /**
10671
10759
  * Description: 风险大脑企业版通用查询接口
10672
10760
  * Summary: 【已废弃】