@antchain/riskplus 1.19.14 → 1.19.16

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.19.14",
3
+ "version": "1.19.16",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -13391,20 +13391,35 @@ export class OperateRbbCreditResponse extends $tea.Model {
13391
13391
  }
13392
13392
  }
13393
13393
 
13394
- export class GetRbbCustomerInformationRequest extends $tea.Model {
13394
+ export class PushRbbCustomerInformationRequest extends $tea.Model {
13395
13395
  // OAuth模式下的授权token
13396
13396
  authToken?: string;
13397
13397
  productInstanceId?: string;
13398
- // 流水号
13399
- serialNumber: string;
13398
+ // 社会信用代码
13399
+ creditCode: string;
13400
+ // 公司名称
13401
+ companyName: string;
13402
+ // 法人姓名
13403
+ name: string;
13404
+ // 身份证号
13405
+ idCard: string;
13400
13406
  // 手机号
13401
13407
  phoneNumber: string;
13408
+ // 账号
13409
+ account: string;
13410
+ // 密码
13411
+ password: string;
13402
13412
  static names(): { [key: string]: string } {
13403
13413
  return {
13404
13414
  authToken: 'auth_token',
13405
13415
  productInstanceId: 'product_instance_id',
13406
- serialNumber: 'serial_number',
13416
+ creditCode: 'credit_code',
13417
+ companyName: 'company_name',
13418
+ name: 'name',
13419
+ idCard: 'id_card',
13407
13420
  phoneNumber: 'phone_number',
13421
+ account: 'account',
13422
+ password: 'password',
13408
13423
  };
13409
13424
  }
13410
13425
 
@@ -13412,8 +13427,49 @@ export class GetRbbCustomerInformationRequest extends $tea.Model {
13412
13427
  return {
13413
13428
  authToken: 'string',
13414
13429
  productInstanceId: 'string',
13415
- serialNumber: 'string',
13430
+ creditCode: 'string',
13431
+ companyName: 'string',
13432
+ name: 'string',
13433
+ idCard: 'string',
13416
13434
  phoneNumber: 'string',
13435
+ account: 'string',
13436
+ password: 'string',
13437
+ };
13438
+ }
13439
+
13440
+ constructor(map?: { [key: string]: any }) {
13441
+ super(map);
13442
+ }
13443
+ }
13444
+
13445
+ export class PushRbbCustomerInformationResponse extends $tea.Model {
13446
+ // 请求唯一ID,用于链路跟踪和问题排查
13447
+ reqMsgId?: string;
13448
+ // 结果码,一般OK表示调用成功
13449
+ resultCode?: string;
13450
+ // 异常信息的文本描述
13451
+ resultMsg?: string;
13452
+ // 返回代码
13453
+ resCode?: string;
13454
+ // 结果说明
13455
+ resMsg?: string;
13456
+ static names(): { [key: string]: string } {
13457
+ return {
13458
+ reqMsgId: 'req_msg_id',
13459
+ resultCode: 'result_code',
13460
+ resultMsg: 'result_msg',
13461
+ resCode: 'res_code',
13462
+ resMsg: 'res_msg',
13463
+ };
13464
+ }
13465
+
13466
+ static types(): { [key: string]: any } {
13467
+ return {
13468
+ reqMsgId: 'string',
13469
+ resultCode: 'string',
13470
+ resultMsg: 'string',
13471
+ resCode: 'string',
13472
+ resMsg: 'string',
13417
13473
  };
13418
13474
  }
13419
13475
 
@@ -13422,14 +13478,45 @@ export class GetRbbCustomerInformationRequest extends $tea.Model {
13422
13478
  }
13423
13479
  }
13424
13480
 
13425
- export class GetRbbCustomerInformationResponse extends $tea.Model {
13481
+ export class GetRbbTaxinvoiceDataRequest extends $tea.Model {
13482
+ // OAuth模式下的授权token
13483
+ authToken?: string;
13484
+ productInstanceId?: string;
13485
+ // 流水号
13486
+ serialNumber: string;
13487
+ // 社会新信用代码
13488
+ taxpayerId: string;
13489
+ static names(): { [key: string]: string } {
13490
+ return {
13491
+ authToken: 'auth_token',
13492
+ productInstanceId: 'product_instance_id',
13493
+ serialNumber: 'serial_number',
13494
+ taxpayerId: 'taxpayer_id',
13495
+ };
13496
+ }
13497
+
13498
+ static types(): { [key: string]: any } {
13499
+ return {
13500
+ authToken: 'string',
13501
+ productInstanceId: 'string',
13502
+ serialNumber: 'string',
13503
+ taxpayerId: 'string',
13504
+ };
13505
+ }
13506
+
13507
+ constructor(map?: { [key: string]: any }) {
13508
+ super(map);
13509
+ }
13510
+ }
13511
+
13512
+ export class GetRbbTaxinvoiceDataResponse extends $tea.Model {
13426
13513
  // 请求唯一ID,用于链路跟踪和问题排查
13427
13514
  reqMsgId?: string;
13428
13515
  // 结果码,一般OK表示调用成功
13429
13516
  resultCode?: string;
13430
13517
  // 异常信息的文本描述
13431
13518
  resultMsg?: string;
13432
- // 客户信息结果数据
13519
+ // 税票授权数据结果
13433
13520
  resultData?: string;
13434
13521
  static names(): { [key: string]: string } {
13435
13522
  return {
@@ -13454,6 +13541,85 @@ export class GetRbbCustomerInformationResponse extends $tea.Model {
13454
13541
  }
13455
13542
  }
13456
13543
 
13544
+ export class PushRbbCustomerStatusRequest extends $tea.Model {
13545
+ // OAuth模式下的授权token
13546
+ authToken?: string;
13547
+ productInstanceId?: string;
13548
+ // 统一社会信用代码
13549
+ creditCode: string;
13550
+ // 相关产品id
13551
+ productCode: string;
13552
+ // 企业名称
13553
+ companyName: string;
13554
+ // 状态编号
13555
+ statusCode: string;
13556
+ // 状态文本
13557
+ status: string;
13558
+ static names(): { [key: string]: string } {
13559
+ return {
13560
+ authToken: 'auth_token',
13561
+ productInstanceId: 'product_instance_id',
13562
+ creditCode: 'credit_code',
13563
+ productCode: 'product_code',
13564
+ companyName: 'company_name',
13565
+ statusCode: 'status_code',
13566
+ status: 'status',
13567
+ };
13568
+ }
13569
+
13570
+ static types(): { [key: string]: any } {
13571
+ return {
13572
+ authToken: 'string',
13573
+ productInstanceId: 'string',
13574
+ creditCode: 'string',
13575
+ productCode: 'string',
13576
+ companyName: 'string',
13577
+ statusCode: 'string',
13578
+ status: 'string',
13579
+ };
13580
+ }
13581
+
13582
+ constructor(map?: { [key: string]: any }) {
13583
+ super(map);
13584
+ }
13585
+ }
13586
+
13587
+ export class PushRbbCustomerStatusResponse extends $tea.Model {
13588
+ // 请求唯一ID,用于链路跟踪和问题排查
13589
+ reqMsgId?: string;
13590
+ // 结果码,一般OK表示调用成功
13591
+ resultCode?: string;
13592
+ // 异常信息的文本描述
13593
+ resultMsg?: string;
13594
+ // 结果说明
13595
+ resMsg?: string;
13596
+ // 返回代码
13597
+ resCode?: string;
13598
+ static names(): { [key: string]: string } {
13599
+ return {
13600
+ reqMsgId: 'req_msg_id',
13601
+ resultCode: 'result_code',
13602
+ resultMsg: 'result_msg',
13603
+ resMsg: 'res_msg',
13604
+ resCode: 'res_code',
13605
+ };
13606
+ }
13607
+
13608
+ static types(): { [key: string]: any } {
13609
+ return {
13610
+ reqMsgId: 'string',
13611
+ resultCode: 'string',
13612
+ resultMsg: 'string',
13613
+ resMsg: 'string',
13614
+ resCode: 'string',
13615
+ };
13616
+ }
13617
+
13618
+ constructor(map?: { [key: string]: any }) {
13619
+ super(map);
13620
+ }
13621
+ }
13622
+
13457
13623
  export class PushRpaasReportAnswerRequest extends $tea.Model {
13458
13624
  // OAuth模式下的授权token
13459
13625
  authToken?: string;
@@ -19682,7 +19848,7 @@ export default class Client {
19682
19848
  req_msg_id: AntchainUtil.getNonce(),
19683
19849
  access_key: this._accessKeyId,
19684
19850
  base_sdk_version: "TeaSDK-2.0",
19685
- sdk_version: "1.19.14",
19851
+ sdk_version: "1.19.16",
19686
19852
  _prod_code: "RISKPLUS",
19687
19853
  _prod_channel: "undefined",
19688
19854
  };
@@ -21908,19 +22074,57 @@ export default class Client {
21908
22074
  * Description: 获取客户信息
21909
22075
  * Summary: 获取客户信息
21910
22076
  */
21911
- async getRbbCustomerInformation(request: GetRbbCustomerInformationRequest): Promise<GetRbbCustomerInformationResponse> {
22077
+ async pushRbbCustomerInformation(request: PushRbbCustomerInformationRequest): Promise<PushRbbCustomerInformationResponse> {
21912
22078
  let runtime = new $Util.RuntimeOptions({ });
21913
22079
  let headers : {[key: string ]: string} = { };
21914
- return await this.getRbbCustomerInformationEx(request, headers, runtime);
22080
+ return await this.pushRbbCustomerInformationEx(request, headers, runtime);
21915
22081
  }
21916
22082
 
21917
22083
  /**
21918
22084
  * Description: 获取客户信息
21919
22085
  * Summary: 获取客户信息
21920
22086
  */
21921
- async getRbbCustomerInformationEx(request: GetRbbCustomerInformationRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetRbbCustomerInformationResponse> {
22087
+ async pushRbbCustomerInformationEx(request: PushRbbCustomerInformationRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PushRbbCustomerInformationResponse> {
22088
+ Util.validateModel(request);
22089
+ return $tea.cast<PushRbbCustomerInformationResponse>(await this.doRequest("1.0", "riskplus.rbb.customer.information.push", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PushRbbCustomerInformationResponse({}));
22090
+ }
22091
+
22092
+ /**
22093
+ * Description: 获取税票授权数据
22094
+ * Summary: 获取税票授权数据
22095
+ */
22096
+ async getRbbTaxinvoiceData(request: GetRbbTaxinvoiceDataRequest): Promise<GetRbbTaxinvoiceDataResponse> {
22097
+ let runtime = new $Util.RuntimeOptions({ });
22098
+ let headers : {[key: string ]: string} = { };
22099
+ return await this.getRbbTaxinvoiceDataEx(request, headers, runtime);
22100
+ }
22101
+
22102
+ /**
22103
+ * Description: 获取税票授权数据
22104
+ * Summary: 获取税票授权数据
22105
+ */
22106
+ async getRbbTaxinvoiceDataEx(request: GetRbbTaxinvoiceDataRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetRbbTaxinvoiceDataResponse> {
22107
+ Util.validateModel(request);
22108
+ return $tea.cast<GetRbbTaxinvoiceDataResponse>(await this.doRequest("1.0", "riskplus.rbb.taxinvoice.data.get", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new GetRbbTaxinvoiceDataResponse({}));
22109
+ }
22110
+
22111
+ /**
22112
+ * Description: 客户实时状态通知
22113
+ * Summary: 客户实时状态通知
22114
+ */
22115
+ async pushRbbCustomerStatus(request: PushRbbCustomerStatusRequest): Promise<PushRbbCustomerStatusResponse> {
22116
+ let runtime = new $Util.RuntimeOptions({ });
22117
+ let headers : {[key: string ]: string} = { };
22118
+ return await this.pushRbbCustomerStatusEx(request, headers, runtime);
22119
+ }
22120
+
22121
+ /**
22122
+ * Description: 客户实时状态通知
22123
+ * Summary: 客户实时状态通知
22124
+ */
22125
+ async pushRbbCustomerStatusEx(request: PushRbbCustomerStatusRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PushRbbCustomerStatusResponse> {
21922
22126
  Util.validateModel(request);
21923
- return $tea.cast<GetRbbCustomerInformationResponse>(await this.doRequest("1.0", "riskplus.rbb.customer.information.get", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new GetRbbCustomerInformationResponse({}));
22127
+ return $tea.cast<PushRbbCustomerStatusResponse>(await this.doRequest("1.0", "riskplus.rbb.customer.status.push", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PushRbbCustomerStatusResponse({}));
21924
22128
  }
21925
22129
 
21926
22130
  /**