@antchain/ato 1.8.81 → 1.8.86

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/ato",
3
- "version": "1.8.81",
3
+ "version": "1.8.86",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -338,6 +338,59 @@ export class RelationPage extends $tea.Model {
338
338
  }
339
339
  }
340
340
 
341
+ // 公司信息修改
342
+ export class CompanyInfoUpdate extends $tea.Model {
343
+ // 营业执照文件信息
344
+ businessLicenseFile: FileInfo;
345
+ // 业务类型 枚举
346
+ productMainClass: string;
347
+ // 公司名称
348
+ companyName: string;
349
+ // 公司别名
350
+ companyAliasName: string;
351
+ // 公司数科租户id
352
+ tenantId?: string;
353
+ // 公司联系电话
354
+ companyMobile: string;
355
+ // 公司联系地址
356
+ companyAddress: string;
357
+ // 联系人姓名
358
+ contactName: string;
359
+ // 联系人手机号码
360
+ contactMobile: string;
361
+ static names(): { [key: string]: string } {
362
+ return {
363
+ businessLicenseFile: 'business_license_file',
364
+ productMainClass: 'product_main_class',
365
+ companyName: 'company_name',
366
+ companyAliasName: 'company_alias_name',
367
+ tenantId: 'tenant_id',
368
+ companyMobile: 'company_mobile',
369
+ companyAddress: 'company_address',
370
+ contactName: 'contact_name',
371
+ contactMobile: 'contact_mobile',
372
+ };
373
+ }
374
+
375
+ static types(): { [key: string]: any } {
376
+ return {
377
+ businessLicenseFile: FileInfo,
378
+ productMainClass: 'string',
379
+ companyName: 'string',
380
+ companyAliasName: 'string',
381
+ tenantId: 'string',
382
+ companyMobile: 'string',
383
+ companyAddress: 'string',
384
+ contactName: 'string',
385
+ contactMobile: 'string',
386
+ };
387
+ }
388
+
389
+ constructor(map?: { [key: string]: any }) {
390
+ super(map);
391
+ }
392
+ }
393
+
341
394
  // 进件分页对象
342
395
  export class MerchantAgentPage extends $tea.Model {
343
396
  // 进件id
@@ -395,10 +448,12 @@ export class OrderMsgInfo extends $tea.Model {
395
448
  // 消息重投次数
396
449
  //
397
450
  msgRetryTime: number;
398
- // 消息回调地址
399
- msgCallbackUrl: string;
400
451
  // 消息体内容
401
452
  msgContent: string;
453
+ // 消息回调地址
454
+ msgCallbackUrl: string;
455
+ // 新回调地址
456
+ newMsgCallbackUrl: string;
402
457
  static names(): { [key: string]: string } {
403
458
  return {
404
459
  orderId: 'order_id',
@@ -407,8 +462,9 @@ export class OrderMsgInfo extends $tea.Model {
407
462
  msgCreateTime: 'msg_create_time',
408
463
  msgStatus: 'msg_status',
409
464
  msgRetryTime: 'msg_retry_time',
410
- msgCallbackUrl: 'msg_callback_url',
411
465
  msgContent: 'msg_content',
466
+ msgCallbackUrl: 'msg_callback_url',
467
+ newMsgCallbackUrl: 'new_msg_callback_url',
412
468
  };
413
469
  }
414
470
 
@@ -420,8 +476,9 @@ export class OrderMsgInfo extends $tea.Model {
420
476
  msgCreateTime: 'string',
421
477
  msgStatus: 'string',
422
478
  msgRetryTime: 'number',
423
- msgCallbackUrl: 'string',
424
479
  msgContent: 'string',
480
+ msgCallbackUrl: 'string',
481
+ newMsgCallbackUrl: 'string',
425
482
  };
426
483
  }
427
484
 
@@ -2546,6 +2603,8 @@ export class AllInnerTemplateRequest extends $tea.Model {
2546
2603
  templateCode?: string;
2547
2604
  // 魔法库模板文件名称
2548
2605
  templateName?: string;
2606
+ // 线上模板ID
2607
+ templateCodeProd?: string;
2549
2608
  static names(): { [key: string]: string } {
2550
2609
  return {
2551
2610
  authToken: 'auth_token',
@@ -2554,6 +2613,7 @@ export class AllInnerTemplateRequest extends $tea.Model {
2554
2613
  tenantId: 'tenant_id',
2555
2614
  templateCode: 'template_code',
2556
2615
  templateName: 'template_name',
2616
+ templateCodeProd: 'template_code_prod',
2557
2617
  };
2558
2618
  }
2559
2619
 
@@ -2565,6 +2625,7 @@ export class AllInnerTemplateRequest extends $tea.Model {
2565
2625
  tenantId: 'string',
2566
2626
  templateCode: 'string',
2567
2627
  templateName: 'string',
2628
+ templateCodeProd: 'string',
2568
2629
  };
2569
2630
  }
2570
2631
 
@@ -4431,7 +4492,9 @@ export class PagequeryInnerMerchantagentRequest extends $tea.Model {
4431
4492
  // 租户8位id
4432
4493
  tenantId: string;
4433
4494
  // 代理商户名称
4434
- agentName: string;
4495
+ agentName?: string;
4496
+ // 进件状态
4497
+ payExpandStatus?: string;
4435
4498
  // 分页对象
4436
4499
  pageInfo: PageQuery;
4437
4500
  static names(): { [key: string]: string } {
@@ -4440,6 +4503,7 @@ export class PagequeryInnerMerchantagentRequest extends $tea.Model {
4440
4503
  productInstanceId: 'product_instance_id',
4441
4504
  tenantId: 'tenant_id',
4442
4505
  agentName: 'agent_name',
4506
+ payExpandStatus: 'pay_expand_status',
4443
4507
  pageInfo: 'page_info',
4444
4508
  };
4445
4509
  }
@@ -4450,6 +4514,7 @@ export class PagequeryInnerMerchantagentRequest extends $tea.Model {
4450
4514
  productInstanceId: 'string',
4451
4515
  tenantId: 'string',
4452
4516
  agentName: 'string',
4517
+ payExpandStatus: 'string',
4453
4518
  pageInfo: PageQuery,
4454
4519
  };
4455
4520
  }
@@ -5333,37 +5398,120 @@ export class QueryMerchantexpandMerchantResponse extends $tea.Model {
5333
5398
  }
5334
5399
  }
5335
5400
 
5401
+ export class UpdateMerchantexpandMerchantRequest extends $tea.Model {
5402
+ // OAuth模式下的授权token
5403
+ authToken?: string;
5404
+ productInstanceId?: string;
5405
+ // 公司信息
5406
+ companyInfo: CompanyInfoUpdate;
5407
+ // 法人信息
5408
+ legalInfo: LegalInfo;
5409
+ // 应用信息
5410
+ applicationInfo: ApplicationInfo;
5411
+ // 进件模式 DIRECT(直连进件) AGENT(代理进件)
5412
+ expandMode: string;
5413
+ // expand_mode=_AGENT_ 必填
5414
+ subTenantId?: string;
5415
+ // 进件流水号
5416
+ payExpandId: string;
5417
+ static names(): { [key: string]: string } {
5418
+ return {
5419
+ authToken: 'auth_token',
5420
+ productInstanceId: 'product_instance_id',
5421
+ companyInfo: 'company_info',
5422
+ legalInfo: 'legal_info',
5423
+ applicationInfo: 'application_info',
5424
+ expandMode: 'expand_mode',
5425
+ subTenantId: 'sub_tenant_id',
5426
+ payExpandId: 'pay_expand_id',
5427
+ };
5428
+ }
5429
+
5430
+ static types(): { [key: string]: any } {
5431
+ return {
5432
+ authToken: 'string',
5433
+ productInstanceId: 'string',
5434
+ companyInfo: CompanyInfoUpdate,
5435
+ legalInfo: LegalInfo,
5436
+ applicationInfo: ApplicationInfo,
5437
+ expandMode: 'string',
5438
+ subTenantId: 'string',
5439
+ payExpandId: 'string',
5440
+ };
5441
+ }
5442
+
5443
+ constructor(map?: { [key: string]: any }) {
5444
+ super(map);
5445
+ }
5446
+ }
5447
+
5448
+ export class UpdateMerchantexpandMerchantResponse extends $tea.Model {
5449
+ // 请求唯一ID,用于链路跟踪和问题排查
5450
+ reqMsgId?: string;
5451
+ // 结果码,一般OK表示调用成功
5452
+ resultCode?: string;
5453
+ // 异常信息的文本描述
5454
+ resultMsg?: string;
5455
+ // 进件流水号
5456
+ payExpandId?: string;
5457
+ static names(): { [key: string]: string } {
5458
+ return {
5459
+ reqMsgId: 'req_msg_id',
5460
+ resultCode: 'result_code',
5461
+ resultMsg: 'result_msg',
5462
+ payExpandId: 'pay_expand_id',
5463
+ };
5464
+ }
5465
+
5466
+ static types(): { [key: string]: any } {
5467
+ return {
5468
+ reqMsgId: 'string',
5469
+ resultCode: 'string',
5470
+ resultMsg: 'string',
5471
+ payExpandId: 'string',
5472
+ };
5473
+ }
5474
+
5475
+ constructor(map?: { [key: string]: any }) {
5476
+ super(map);
5477
+ }
5478
+ }
5479
+
5336
5480
  export class CreateRealpersonFacevrfRequest extends $tea.Model {
5337
5481
  // OAuth模式下的授权token
5338
5482
  authToken?: string;
5339
5483
  productInstanceId?: string;
5484
+ // 实人认证方案枚举
5485
+ // APP(客户端android/ios方案)
5486
+ // H5(网页)
5487
+ // ZFB(支付宝客户端H5方案)
5488
+ solutionType: string;
5340
5489
  // 真实姓名
5341
5490
  certName: string;
5342
5491
  // 证件号码
5343
5492
  certNo: string;
5344
- // 身份信息来源类型,当前仅支持证件(CERT_INFO)
5345
- identityType: string;
5346
- // 证件类型,当前仅支持身份证(IDENTITY_CARD)
5493
+ // 身份信息来源类型
5494
+ // IDENTITY_CARD(身份证)
5495
+ // RESIDENCE_HK_MC(港澳居民居住证)
5496
+ // RESIDENCE_TAIWAN(台湾居民居住证)
5347
5497
  certType: string;
5348
- // 商户请求的唯一标识。
5349
- //
5350
- // 值为 32 位长度的字母数字组合。其中,前面几位字符是商户自定义的简称,中间几位可以使用一段时间,后段可以使用一个随机或递增序列。该值也可以使用 UUID。
5351
- outerOrderNo: string;
5352
- // 认证结束回跳地址
5353
- returnUrl: string;
5354
- // 订单id 长度不可超过50
5355
- orderId: string;
5498
+ // 【solution_type=ZFB使用】
5499
+ // reserve(保存活体人脸 默认值)
5500
+ // never(不保存活体人脸)
5501
+ faceReserveStrategy?: string;
5502
+ // 【solution_type=ZFB使用】
5503
+ // 认证成功后需要跳转的地址
5504
+ returnUrl?: string;
5356
5505
  static names(): { [key: string]: string } {
5357
5506
  return {
5358
5507
  authToken: 'auth_token',
5359
5508
  productInstanceId: 'product_instance_id',
5509
+ solutionType: 'solution_type',
5360
5510
  certName: 'cert_name',
5361
5511
  certNo: 'cert_no',
5362
- identityType: 'identity_type',
5363
5512
  certType: 'cert_type',
5364
- outerOrderNo: 'outer_order_no',
5513
+ faceReserveStrategy: 'face_reserve_strategy',
5365
5514
  returnUrl: 'return_url',
5366
- orderId: 'order_id',
5367
5515
  };
5368
5516
  }
5369
5517
 
@@ -5371,13 +5519,12 @@ export class CreateRealpersonFacevrfRequest extends $tea.Model {
5371
5519
  return {
5372
5520
  authToken: 'string',
5373
5521
  productInstanceId: 'string',
5522
+ solutionType: 'string',
5374
5523
  certName: 'string',
5375
5524
  certNo: 'string',
5376
- identityType: 'string',
5377
5525
  certType: 'string',
5378
- outerOrderNo: 'string',
5526
+ faceReserveStrategy: 'string',
5379
5527
  returnUrl: 'string',
5380
- orderId: 'string',
5381
5528
  };
5382
5529
  }
5383
5530
 
@@ -5393,14 +5540,18 @@ export class CreateRealpersonFacevrfResponse extends $tea.Model {
5393
5540
  resultCode?: string;
5394
5541
  // 异常信息的文本描述
5395
5542
  resultMsg?: string;
5396
- // 业务返回字段,JSON格式
5397
- data?: string;
5543
+ // 请求唯一ID标识,为空则是异常
5544
+ realPersonVerificationCode?: string;
5545
+ // 【solution_type=H5 | ZFB返回】
5546
+ // 人脸核身url地址
5547
+ webUrl?: string;
5398
5548
  static names(): { [key: string]: string } {
5399
5549
  return {
5400
5550
  reqMsgId: 'req_msg_id',
5401
5551
  resultCode: 'result_code',
5402
5552
  resultMsg: 'result_msg',
5403
- data: 'data',
5553
+ realPersonVerificationCode: 'real_person_verification_code',
5554
+ webUrl: 'web_url',
5404
5555
  };
5405
5556
  }
5406
5557
 
@@ -5409,7 +5560,8 @@ export class CreateRealpersonFacevrfResponse extends $tea.Model {
5409
5560
  reqMsgId: 'string',
5410
5561
  resultCode: 'string',
5411
5562
  resultMsg: 'string',
5412
- data: 'string',
5563
+ realPersonVerificationCode: 'string',
5564
+ webUrl: 'string',
5413
5565
  };
5414
5566
  }
5415
5567
 
@@ -5423,20 +5575,12 @@ export class QueryRealpersonFacevrfRequest extends $tea.Model {
5423
5575
  authToken?: string;
5424
5576
  productInstanceId?: string;
5425
5577
  // 可信实人认证的唯一标识
5426
- certifyId: string;
5427
- // 商户请求的唯一标识。
5428
- //
5429
- // 值为 32 位长度的字母数字组合。其中,前面几位字符是商户自定义的简称,中间几位可以使用一段时间,后段可以使用一个随机或递增序列。该值也可以使用 UUID。
5430
- outerOrderNo: string;
5431
- // 订单id 长度不可超过50
5432
- orderId: string;
5578
+ realPersonVerificationCode: string;
5433
5579
  static names(): { [key: string]: string } {
5434
5580
  return {
5435
5581
  authToken: 'auth_token',
5436
5582
  productInstanceId: 'product_instance_id',
5437
- certifyId: 'certify_id',
5438
- outerOrderNo: 'outer_order_no',
5439
- orderId: 'order_id',
5583
+ realPersonVerificationCode: 'real_person_verification_code',
5440
5584
  };
5441
5585
  }
5442
5586
 
@@ -5444,9 +5588,7 @@ export class QueryRealpersonFacevrfRequest extends $tea.Model {
5444
5588
  return {
5445
5589
  authToken: 'string',
5446
5590
  productInstanceId: 'string',
5447
- certifyId: 'string',
5448
- outerOrderNo: 'string',
5449
- orderId: 'string',
5591
+ realPersonVerificationCode: 'string',
5450
5592
  };
5451
5593
  }
5452
5594
 
@@ -5462,14 +5604,26 @@ export class QueryRealpersonFacevrfResponse extends $tea.Model {
5462
5604
  resultCode?: string;
5463
5605
  // 异常信息的文本描述
5464
5606
  resultMsg?: string;
5465
- // 业务返回字段,JSON格式
5466
- data?: string;
5607
+ // 实人认证结果
5608
+ // PROCESSING(初始化)
5609
+ // SUCCESS(认证通过)FAIL(认证不通过)
5610
+ certifyState?: string;
5611
+ // 【solution_type=H5 | APP 返回】
5612
+ // 本次认证是否存在安全风险
5613
+ // true(检测到安全风险)
5614
+ // false(未检测到安全风险)
5615
+ attackFlag?: string;
5616
+ // 【solution_type=H5 | APP 返回】
5617
+ // base64过后的二值化图片
5618
+ alivePhoto?: string;
5467
5619
  static names(): { [key: string]: string } {
5468
5620
  return {
5469
5621
  reqMsgId: 'req_msg_id',
5470
5622
  resultCode: 'result_code',
5471
5623
  resultMsg: 'result_msg',
5472
- data: 'data',
5624
+ certifyState: 'certify_state',
5625
+ attackFlag: 'attack_flag',
5626
+ alivePhoto: 'alive_photo',
5473
5627
  };
5474
5628
  }
5475
5629
 
@@ -5478,7 +5632,9 @@ export class QueryRealpersonFacevrfResponse extends $tea.Model {
5478
5632
  reqMsgId: 'string',
5479
5633
  resultCode: 'string',
5480
5634
  resultMsg: 'string',
5481
- data: 'string',
5635
+ certifyState: 'string',
5636
+ attackFlag: 'string',
5637
+ alivePhoto: 'string',
5482
5638
  };
5483
5639
  }
5484
5640
 
@@ -8237,7 +8393,7 @@ export default class Client {
8237
8393
  req_msg_id: AntchainUtil.getNonce(),
8238
8394
  access_key: this._accessKeyId,
8239
8395
  base_sdk_version: "TeaSDK-2.0",
8240
- sdk_version: "1.8.81",
8396
+ sdk_version: "1.8.86",
8241
8397
  _prod_code: "ATO",
8242
8398
  _prod_channel: "undefined",
8243
8399
  };
@@ -9503,6 +9659,25 @@ export default class Client {
9503
9659
  return $tea.cast<QueryMerchantexpandMerchantResponse>(await this.doRequest("1.0", "antchain.ato.merchantexpand.merchant.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryMerchantexpandMerchantResponse({}));
9504
9660
  }
9505
9661
 
9662
+ /**
9663
+ * Description: 商家信息修改
9664
+ * Summary: 商家信息修改
9665
+ */
9666
+ async updateMerchantexpandMerchant(request: UpdateMerchantexpandMerchantRequest): Promise<UpdateMerchantexpandMerchantResponse> {
9667
+ let runtime = new $Util.RuntimeOptions({ });
9668
+ let headers : {[key: string ]: string} = { };
9669
+ return await this.updateMerchantexpandMerchantEx(request, headers, runtime);
9670
+ }
9671
+
9672
+ /**
9673
+ * Description: 商家信息修改
9674
+ * Summary: 商家信息修改
9675
+ */
9676
+ async updateMerchantexpandMerchantEx(request: UpdateMerchantexpandMerchantRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateMerchantexpandMerchantResponse> {
9677
+ Util.validateModel(request);
9678
+ return $tea.cast<UpdateMerchantexpandMerchantResponse>(await this.doRequest("1.0", "antchain.ato.merchantexpand.merchant.update", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new UpdateMerchantexpandMerchantResponse({}));
9679
+ }
9680
+
9506
9681
  /**
9507
9682
  * Description: 可信身份认证,创建认证
9508
9683
  * Summary: 创建认证