@antchain/ato 1.9.2 → 1.9.11
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 +321 -6
- package/dist/client.js +476 -14
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +668 -25
package/src/client.ts
CHANGED
|
@@ -252,6 +252,36 @@ export class AgreementPage extends $tea.Model {
|
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
+
// 用户履约信息
|
|
256
|
+
export class UserPerformanceInfo extends $tea.Model {
|
|
257
|
+
// 履约期数
|
|
258
|
+
periodNum: number;
|
|
259
|
+
// 履约时间,格式 yyyy-MM-dd
|
|
260
|
+
// 针对签收日作为起租日模式,未签收时:以签收日开始计算
|
|
261
|
+
payDate: string;
|
|
262
|
+
// 履约金额,单位为分
|
|
263
|
+
payMoney: number;
|
|
264
|
+
static names(): { [key: string]: string } {
|
|
265
|
+
return {
|
|
266
|
+
periodNum: 'period_num',
|
|
267
|
+
payDate: 'pay_date',
|
|
268
|
+
payMoney: 'pay_money',
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
static types(): { [key: string]: any } {
|
|
273
|
+
return {
|
|
274
|
+
periodNum: 'number',
|
|
275
|
+
payDate: 'string',
|
|
276
|
+
payMoney: 'number',
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
constructor(map?: { [key: string]: any }) {
|
|
281
|
+
super(map);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
255
285
|
// 风险场景的决策结果
|
|
256
286
|
export class RiskScene extends $tea.Model {
|
|
257
287
|
// 风险场景编码
|
|
@@ -783,10 +813,19 @@ export class RiskModel extends $tea.Model {
|
|
|
783
813
|
sceneCode: string;
|
|
784
814
|
// 该风险场景的风险分值
|
|
785
815
|
score: string;
|
|
816
|
+
// 逾期率
|
|
817
|
+
delinquencyRate?: string;
|
|
818
|
+
// 风险建议
|
|
819
|
+
riskAdvice?: string;
|
|
820
|
+
// 风险等级
|
|
821
|
+
riskRank?: string;
|
|
786
822
|
static names(): { [key: string]: string } {
|
|
787
823
|
return {
|
|
788
824
|
sceneCode: 'scene_code',
|
|
789
825
|
score: 'score',
|
|
826
|
+
delinquencyRate: 'delinquency_rate',
|
|
827
|
+
riskAdvice: 'risk_advice',
|
|
828
|
+
riskRank: 'risk_rank',
|
|
790
829
|
};
|
|
791
830
|
}
|
|
792
831
|
|
|
@@ -794,6 +833,9 @@ export class RiskModel extends $tea.Model {
|
|
|
794
833
|
return {
|
|
795
834
|
sceneCode: 'string',
|
|
796
835
|
score: 'string',
|
|
836
|
+
delinquencyRate: 'string',
|
|
837
|
+
riskAdvice: 'string',
|
|
838
|
+
riskRank: 'string',
|
|
797
839
|
};
|
|
798
840
|
}
|
|
799
841
|
|
|
@@ -5288,6 +5330,470 @@ export class RetryInnerOrdermsgResponse extends $tea.Model {
|
|
|
5288
5330
|
}
|
|
5289
5331
|
}
|
|
5290
5332
|
|
|
5333
|
+
export class QueryInnerAuthorizationRequest extends $tea.Model {
|
|
5334
|
+
// OAuth模式下的授权token
|
|
5335
|
+
authToken?: string;
|
|
5336
|
+
productInstanceId?: string;
|
|
5337
|
+
// 签署合同的流程id
|
|
5338
|
+
flowId: string;
|
|
5339
|
+
static names(): { [key: string]: string } {
|
|
5340
|
+
return {
|
|
5341
|
+
authToken: 'auth_token',
|
|
5342
|
+
productInstanceId: 'product_instance_id',
|
|
5343
|
+
flowId: 'flow_id',
|
|
5344
|
+
};
|
|
5345
|
+
}
|
|
5346
|
+
|
|
5347
|
+
static types(): { [key: string]: any } {
|
|
5348
|
+
return {
|
|
5349
|
+
authToken: 'string',
|
|
5350
|
+
productInstanceId: 'string',
|
|
5351
|
+
flowId: 'string',
|
|
5352
|
+
};
|
|
5353
|
+
}
|
|
5354
|
+
|
|
5355
|
+
constructor(map?: { [key: string]: any }) {
|
|
5356
|
+
super(map);
|
|
5357
|
+
}
|
|
5358
|
+
}
|
|
5359
|
+
|
|
5360
|
+
export class QueryInnerAuthorizationResponse extends $tea.Model {
|
|
5361
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
5362
|
+
reqMsgId?: string;
|
|
5363
|
+
// 结果码,一般OK表示调用成功
|
|
5364
|
+
resultCode?: string;
|
|
5365
|
+
// 异常信息的文本描述
|
|
5366
|
+
resultMsg?: string;
|
|
5367
|
+
// true代表需要进行授权询问
|
|
5368
|
+
// false代表不需要进行授权询问
|
|
5369
|
+
isNeedAskAuth?: boolean;
|
|
5370
|
+
static names(): { [key: string]: string } {
|
|
5371
|
+
return {
|
|
5372
|
+
reqMsgId: 'req_msg_id',
|
|
5373
|
+
resultCode: 'result_code',
|
|
5374
|
+
resultMsg: 'result_msg',
|
|
5375
|
+
isNeedAskAuth: 'is_need_ask_auth',
|
|
5376
|
+
};
|
|
5377
|
+
}
|
|
5378
|
+
|
|
5379
|
+
static types(): { [key: string]: any } {
|
|
5380
|
+
return {
|
|
5381
|
+
reqMsgId: 'string',
|
|
5382
|
+
resultCode: 'string',
|
|
5383
|
+
resultMsg: 'string',
|
|
5384
|
+
isNeedAskAuth: 'boolean',
|
|
5385
|
+
};
|
|
5386
|
+
}
|
|
5387
|
+
|
|
5388
|
+
constructor(map?: { [key: string]: any }) {
|
|
5389
|
+
super(map);
|
|
5390
|
+
}
|
|
5391
|
+
}
|
|
5392
|
+
|
|
5393
|
+
export class SignInnerAuthorizationRequest extends $tea.Model {
|
|
5394
|
+
// OAuth模式下的授权token
|
|
5395
|
+
authToken?: string;
|
|
5396
|
+
productInstanceId?: string;
|
|
5397
|
+
// 签署合同的流程id
|
|
5398
|
+
flowId: string;
|
|
5399
|
+
// true代表用户同意授权,
|
|
5400
|
+
// false代表不同意
|
|
5401
|
+
authResult: boolean;
|
|
5402
|
+
static names(): { [key: string]: string } {
|
|
5403
|
+
return {
|
|
5404
|
+
authToken: 'auth_token',
|
|
5405
|
+
productInstanceId: 'product_instance_id',
|
|
5406
|
+
flowId: 'flow_id',
|
|
5407
|
+
authResult: 'auth_result',
|
|
5408
|
+
};
|
|
5409
|
+
}
|
|
5410
|
+
|
|
5411
|
+
static types(): { [key: string]: any } {
|
|
5412
|
+
return {
|
|
5413
|
+
authToken: 'string',
|
|
5414
|
+
productInstanceId: 'string',
|
|
5415
|
+
flowId: 'string',
|
|
5416
|
+
authResult: 'boolean',
|
|
5417
|
+
};
|
|
5418
|
+
}
|
|
5419
|
+
|
|
5420
|
+
constructor(map?: { [key: string]: any }) {
|
|
5421
|
+
super(map);
|
|
5422
|
+
}
|
|
5423
|
+
}
|
|
5424
|
+
|
|
5425
|
+
export class SignInnerAuthorizationResponse extends $tea.Model {
|
|
5426
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
5427
|
+
reqMsgId?: string;
|
|
5428
|
+
// 结果码,一般OK表示调用成功
|
|
5429
|
+
resultCode?: string;
|
|
5430
|
+
// 异常信息的文本描述
|
|
5431
|
+
resultMsg?: string;
|
|
5432
|
+
static names(): { [key: string]: string } {
|
|
5433
|
+
return {
|
|
5434
|
+
reqMsgId: 'req_msg_id',
|
|
5435
|
+
resultCode: 'result_code',
|
|
5436
|
+
resultMsg: 'result_msg',
|
|
5437
|
+
};
|
|
5438
|
+
}
|
|
5439
|
+
|
|
5440
|
+
static types(): { [key: string]: any } {
|
|
5441
|
+
return {
|
|
5442
|
+
reqMsgId: 'string',
|
|
5443
|
+
resultCode: 'string',
|
|
5444
|
+
resultMsg: 'string',
|
|
5445
|
+
};
|
|
5446
|
+
}
|
|
5447
|
+
|
|
5448
|
+
constructor(map?: { [key: string]: any }) {
|
|
5449
|
+
super(map);
|
|
5450
|
+
}
|
|
5451
|
+
}
|
|
5452
|
+
|
|
5453
|
+
export class QueryInnerSupplementalRequest extends $tea.Model {
|
|
5454
|
+
// OAuth模式下的授权token
|
|
5455
|
+
authToken?: string;
|
|
5456
|
+
productInstanceId?: string;
|
|
5457
|
+
// 商户ID
|
|
5458
|
+
tenantId: string;
|
|
5459
|
+
static names(): { [key: string]: string } {
|
|
5460
|
+
return {
|
|
5461
|
+
authToken: 'auth_token',
|
|
5462
|
+
productInstanceId: 'product_instance_id',
|
|
5463
|
+
tenantId: 'tenant_id',
|
|
5464
|
+
};
|
|
5465
|
+
}
|
|
5466
|
+
|
|
5467
|
+
static types(): { [key: string]: any } {
|
|
5468
|
+
return {
|
|
5469
|
+
authToken: 'string',
|
|
5470
|
+
productInstanceId: 'string',
|
|
5471
|
+
tenantId: 'string',
|
|
5472
|
+
};
|
|
5473
|
+
}
|
|
5474
|
+
|
|
5475
|
+
constructor(map?: { [key: string]: any }) {
|
|
5476
|
+
super(map);
|
|
5477
|
+
}
|
|
5478
|
+
}
|
|
5479
|
+
|
|
5480
|
+
export class QueryInnerSupplementalResponse extends $tea.Model {
|
|
5481
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
5482
|
+
reqMsgId?: string;
|
|
5483
|
+
// 结果码,一般OK表示调用成功
|
|
5484
|
+
resultCode?: string;
|
|
5485
|
+
// 异常信息的文本描述
|
|
5486
|
+
resultMsg?: string;
|
|
5487
|
+
// true代表需要进行授权询问
|
|
5488
|
+
// false代表不需要进行授权询问
|
|
5489
|
+
isNeedAskAuth?: boolean;
|
|
5490
|
+
static names(): { [key: string]: string } {
|
|
5491
|
+
return {
|
|
5492
|
+
reqMsgId: 'req_msg_id',
|
|
5493
|
+
resultCode: 'result_code',
|
|
5494
|
+
resultMsg: 'result_msg',
|
|
5495
|
+
isNeedAskAuth: 'is_need_ask_auth',
|
|
5496
|
+
};
|
|
5497
|
+
}
|
|
5498
|
+
|
|
5499
|
+
static types(): { [key: string]: any } {
|
|
5500
|
+
return {
|
|
5501
|
+
reqMsgId: 'string',
|
|
5502
|
+
resultCode: 'string',
|
|
5503
|
+
resultMsg: 'string',
|
|
5504
|
+
isNeedAskAuth: 'boolean',
|
|
5505
|
+
};
|
|
5506
|
+
}
|
|
5507
|
+
|
|
5508
|
+
constructor(map?: { [key: string]: any }) {
|
|
5509
|
+
super(map);
|
|
5510
|
+
}
|
|
5511
|
+
}
|
|
5512
|
+
|
|
5513
|
+
export class SignInnerSupplementalRequest extends $tea.Model {
|
|
5514
|
+
// OAuth模式下的授权token
|
|
5515
|
+
authToken?: string;
|
|
5516
|
+
productInstanceId?: string;
|
|
5517
|
+
// 商户ID
|
|
5518
|
+
tenantId: string;
|
|
5519
|
+
// 同意接受用户补充接口,目前取值只能为true
|
|
5520
|
+
authResult: boolean;
|
|
5521
|
+
static names(): { [key: string]: string } {
|
|
5522
|
+
return {
|
|
5523
|
+
authToken: 'auth_token',
|
|
5524
|
+
productInstanceId: 'product_instance_id',
|
|
5525
|
+
tenantId: 'tenant_id',
|
|
5526
|
+
authResult: 'auth_result',
|
|
5527
|
+
};
|
|
5528
|
+
}
|
|
5529
|
+
|
|
5530
|
+
static types(): { [key: string]: any } {
|
|
5531
|
+
return {
|
|
5532
|
+
authToken: 'string',
|
|
5533
|
+
productInstanceId: 'string',
|
|
5534
|
+
tenantId: 'string',
|
|
5535
|
+
authResult: 'boolean',
|
|
5536
|
+
};
|
|
5537
|
+
}
|
|
5538
|
+
|
|
5539
|
+
constructor(map?: { [key: string]: any }) {
|
|
5540
|
+
super(map);
|
|
5541
|
+
}
|
|
5542
|
+
}
|
|
5543
|
+
|
|
5544
|
+
export class SignInnerSupplementalResponse extends $tea.Model {
|
|
5545
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
5546
|
+
reqMsgId?: string;
|
|
5547
|
+
// 结果码,一般OK表示调用成功
|
|
5548
|
+
resultCode?: string;
|
|
5549
|
+
// 异常信息的文本描述
|
|
5550
|
+
resultMsg?: string;
|
|
5551
|
+
static names(): { [key: string]: string } {
|
|
5552
|
+
return {
|
|
5553
|
+
reqMsgId: 'req_msg_id',
|
|
5554
|
+
resultCode: 'result_code',
|
|
5555
|
+
resultMsg: 'result_msg',
|
|
5556
|
+
};
|
|
5557
|
+
}
|
|
5558
|
+
|
|
5559
|
+
static types(): { [key: string]: any } {
|
|
5560
|
+
return {
|
|
5561
|
+
reqMsgId: 'string',
|
|
5562
|
+
resultCode: 'string',
|
|
5563
|
+
resultMsg: 'string',
|
|
5564
|
+
};
|
|
5565
|
+
}
|
|
5566
|
+
|
|
5567
|
+
constructor(map?: { [key: string]: any }) {
|
|
5568
|
+
super(map);
|
|
5569
|
+
}
|
|
5570
|
+
}
|
|
5571
|
+
|
|
5572
|
+
export class QueryInnerWithholdplanRequest extends $tea.Model {
|
|
5573
|
+
// OAuth模式下的授权token
|
|
5574
|
+
authToken?: string;
|
|
5575
|
+
productInstanceId?: string;
|
|
5576
|
+
// 商户租户id
|
|
5577
|
+
merchantTenantId: string;
|
|
5578
|
+
// 订单id
|
|
5579
|
+
orderId: string;
|
|
5580
|
+
static names(): { [key: string]: string } {
|
|
5581
|
+
return {
|
|
5582
|
+
authToken: 'auth_token',
|
|
5583
|
+
productInstanceId: 'product_instance_id',
|
|
5584
|
+
merchantTenantId: 'merchant_tenant_id',
|
|
5585
|
+
orderId: 'order_id',
|
|
5586
|
+
};
|
|
5587
|
+
}
|
|
5588
|
+
|
|
5589
|
+
static types(): { [key: string]: any } {
|
|
5590
|
+
return {
|
|
5591
|
+
authToken: 'string',
|
|
5592
|
+
productInstanceId: 'string',
|
|
5593
|
+
merchantTenantId: 'string',
|
|
5594
|
+
orderId: 'string',
|
|
5595
|
+
};
|
|
5596
|
+
}
|
|
5597
|
+
|
|
5598
|
+
constructor(map?: { [key: string]: any }) {
|
|
5599
|
+
super(map);
|
|
5600
|
+
}
|
|
5601
|
+
}
|
|
5602
|
+
|
|
5603
|
+
export class QueryInnerWithholdplanResponse extends $tea.Model {
|
|
5604
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
5605
|
+
reqMsgId?: string;
|
|
5606
|
+
// 结果码,一般OK表示调用成功
|
|
5607
|
+
resultCode?: string;
|
|
5608
|
+
// 异常信息的文本描述
|
|
5609
|
+
resultMsg?: string;
|
|
5610
|
+
// 总金额,单位为分
|
|
5611
|
+
totalMoney?: number;
|
|
5612
|
+
// 总期数
|
|
5613
|
+
totalTerm?: number;
|
|
5614
|
+
// 用户履约信息列表
|
|
5615
|
+
payInfo?: UserPerformanceInfo[];
|
|
5616
|
+
static names(): { [key: string]: string } {
|
|
5617
|
+
return {
|
|
5618
|
+
reqMsgId: 'req_msg_id',
|
|
5619
|
+
resultCode: 'result_code',
|
|
5620
|
+
resultMsg: 'result_msg',
|
|
5621
|
+
totalMoney: 'total_money',
|
|
5622
|
+
totalTerm: 'total_term',
|
|
5623
|
+
payInfo: 'pay_info',
|
|
5624
|
+
};
|
|
5625
|
+
}
|
|
5626
|
+
|
|
5627
|
+
static types(): { [key: string]: any } {
|
|
5628
|
+
return {
|
|
5629
|
+
reqMsgId: 'string',
|
|
5630
|
+
resultCode: 'string',
|
|
5631
|
+
resultMsg: 'string',
|
|
5632
|
+
totalMoney: 'number',
|
|
5633
|
+
totalTerm: 'number',
|
|
5634
|
+
payInfo: { 'type': 'array', 'itemType': UserPerformanceInfo },
|
|
5635
|
+
};
|
|
5636
|
+
}
|
|
5637
|
+
|
|
5638
|
+
constructor(map?: { [key: string]: any }) {
|
|
5639
|
+
super(map);
|
|
5640
|
+
}
|
|
5641
|
+
}
|
|
5642
|
+
|
|
5643
|
+
export class CreateInnerWithholdsignRequest extends $tea.Model {
|
|
5644
|
+
// OAuth模式下的授权token
|
|
5645
|
+
authToken?: string;
|
|
5646
|
+
productInstanceId?: string;
|
|
5647
|
+
// 商户租户id
|
|
5648
|
+
merchantTenantId: string;
|
|
5649
|
+
// 订单id
|
|
5650
|
+
orderId: string;
|
|
5651
|
+
// 用户支付宝2088uid
|
|
5652
|
+
alipayUserId?: string;
|
|
5653
|
+
static names(): { [key: string]: string } {
|
|
5654
|
+
return {
|
|
5655
|
+
authToken: 'auth_token',
|
|
5656
|
+
productInstanceId: 'product_instance_id',
|
|
5657
|
+
merchantTenantId: 'merchant_tenant_id',
|
|
5658
|
+
orderId: 'order_id',
|
|
5659
|
+
alipayUserId: 'alipay_user_id',
|
|
5660
|
+
};
|
|
5661
|
+
}
|
|
5662
|
+
|
|
5663
|
+
static types(): { [key: string]: any } {
|
|
5664
|
+
return {
|
|
5665
|
+
authToken: 'string',
|
|
5666
|
+
productInstanceId: 'string',
|
|
5667
|
+
merchantTenantId: 'string',
|
|
5668
|
+
orderId: 'string',
|
|
5669
|
+
alipayUserId: 'string',
|
|
5670
|
+
};
|
|
5671
|
+
}
|
|
5672
|
+
|
|
5673
|
+
constructor(map?: { [key: string]: any }) {
|
|
5674
|
+
super(map);
|
|
5675
|
+
}
|
|
5676
|
+
}
|
|
5677
|
+
|
|
5678
|
+
export class CreateInnerWithholdsignResponse extends $tea.Model {
|
|
5679
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
5680
|
+
reqMsgId?: string;
|
|
5681
|
+
// 结果码,一般OK表示调用成功
|
|
5682
|
+
resultCode?: string;
|
|
5683
|
+
// 异常信息的文本描述
|
|
5684
|
+
resultMsg?: string;
|
|
5685
|
+
// 代扣签约串
|
|
5686
|
+
signStr?: string;
|
|
5687
|
+
static names(): { [key: string]: string } {
|
|
5688
|
+
return {
|
|
5689
|
+
reqMsgId: 'req_msg_id',
|
|
5690
|
+
resultCode: 'result_code',
|
|
5691
|
+
resultMsg: 'result_msg',
|
|
5692
|
+
signStr: 'sign_str',
|
|
5693
|
+
};
|
|
5694
|
+
}
|
|
5695
|
+
|
|
5696
|
+
static types(): { [key: string]: any } {
|
|
5697
|
+
return {
|
|
5698
|
+
reqMsgId: 'string',
|
|
5699
|
+
resultCode: 'string',
|
|
5700
|
+
resultMsg: 'string',
|
|
5701
|
+
signStr: 'string',
|
|
5702
|
+
};
|
|
5703
|
+
}
|
|
5704
|
+
|
|
5705
|
+
constructor(map?: { [key: string]: any }) {
|
|
5706
|
+
super(map);
|
|
5707
|
+
}
|
|
5708
|
+
}
|
|
5709
|
+
|
|
5710
|
+
export class QueryInnerWithholdsignRequest extends $tea.Model {
|
|
5711
|
+
// OAuth模式下的授权token
|
|
5712
|
+
authToken?: string;
|
|
5713
|
+
productInstanceId?: string;
|
|
5714
|
+
// 商户租户id
|
|
5715
|
+
merchantTenantId: string;
|
|
5716
|
+
// 订单id
|
|
5717
|
+
orderId: string;
|
|
5718
|
+
static names(): { [key: string]: string } {
|
|
5719
|
+
return {
|
|
5720
|
+
authToken: 'auth_token',
|
|
5721
|
+
productInstanceId: 'product_instance_id',
|
|
5722
|
+
merchantTenantId: 'merchant_tenant_id',
|
|
5723
|
+
orderId: 'order_id',
|
|
5724
|
+
};
|
|
5725
|
+
}
|
|
5726
|
+
|
|
5727
|
+
static types(): { [key: string]: any } {
|
|
5728
|
+
return {
|
|
5729
|
+
authToken: 'string',
|
|
5730
|
+
productInstanceId: 'string',
|
|
5731
|
+
merchantTenantId: 'string',
|
|
5732
|
+
orderId: 'string',
|
|
5733
|
+
};
|
|
5734
|
+
}
|
|
5735
|
+
|
|
5736
|
+
constructor(map?: { [key: string]: any }) {
|
|
5737
|
+
super(map);
|
|
5738
|
+
}
|
|
5739
|
+
}
|
|
5740
|
+
|
|
5741
|
+
export class QueryInnerWithholdsignResponse extends $tea.Model {
|
|
5742
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
5743
|
+
reqMsgId?: string;
|
|
5744
|
+
// 结果码,一般OK表示调用成功
|
|
5745
|
+
resultCode?: string;
|
|
5746
|
+
// 异常信息的文本描述
|
|
5747
|
+
resultMsg?: string;
|
|
5748
|
+
// 协议当前状态
|
|
5749
|
+
// 1. UNSIGNED:未签约
|
|
5750
|
+
// 2. SIGNED:已签约;
|
|
5751
|
+
// 3.APPLY_TERMINATE:申请解约
|
|
5752
|
+
// 4. TERMINATED:已解约
|
|
5753
|
+
// 5.TIMEOUT_CLOSE:超时关闭
|
|
5754
|
+
status?: string;
|
|
5755
|
+
// 支付宝代扣协议号
|
|
5756
|
+
agreementNo?: string;
|
|
5757
|
+
// 协议签署时间
|
|
5758
|
+
// yyyy-MM-dd HH:mm:ss 格式
|
|
5759
|
+
signTime?: string;
|
|
5760
|
+
// 协议生效时间
|
|
5761
|
+
// yyyy-MM-dd HH:mm:ss 格式
|
|
5762
|
+
validTime?: string;
|
|
5763
|
+
// 协议失效时间
|
|
5764
|
+
// yyyy-MM-dd HH:mm:ss 格式
|
|
5765
|
+
invalidTime?: string;
|
|
5766
|
+
static names(): { [key: string]: string } {
|
|
5767
|
+
return {
|
|
5768
|
+
reqMsgId: 'req_msg_id',
|
|
5769
|
+
resultCode: 'result_code',
|
|
5770
|
+
resultMsg: 'result_msg',
|
|
5771
|
+
status: 'status',
|
|
5772
|
+
agreementNo: 'agreement_no',
|
|
5773
|
+
signTime: 'sign_time',
|
|
5774
|
+
validTime: 'valid_time',
|
|
5775
|
+
invalidTime: 'invalid_time',
|
|
5776
|
+
};
|
|
5777
|
+
}
|
|
5778
|
+
|
|
5779
|
+
static types(): { [key: string]: any } {
|
|
5780
|
+
return {
|
|
5781
|
+
reqMsgId: 'string',
|
|
5782
|
+
resultCode: 'string',
|
|
5783
|
+
resultMsg: 'string',
|
|
5784
|
+
status: 'string',
|
|
5785
|
+
agreementNo: 'string',
|
|
5786
|
+
signTime: 'string',
|
|
5787
|
+
validTime: 'string',
|
|
5788
|
+
invalidTime: 'string',
|
|
5789
|
+
};
|
|
5790
|
+
}
|
|
5791
|
+
|
|
5792
|
+
constructor(map?: { [key: string]: any }) {
|
|
5793
|
+
super(map);
|
|
5794
|
+
}
|
|
5795
|
+
}
|
|
5796
|
+
|
|
5291
5797
|
export class RegisterMerchantexpandMerchantRequest extends $tea.Model {
|
|
5292
5798
|
// OAuth模式下的授权token
|
|
5293
5799
|
authToken?: string;
|
|
@@ -5739,25 +6245,22 @@ export class QueryRiskRequest extends $tea.Model {
|
|
|
5739
6245
|
// OAuth模式下的授权token
|
|
5740
6246
|
authToken?: string;
|
|
5741
6247
|
productInstanceId?: string;
|
|
5742
|
-
//
|
|
5743
|
-
|
|
6248
|
+
// 枚举值:蚁盾版、智租版、旗舰版,蚁盾版代表仅调用蚁盾风控,智租版代表仅调用小程序云风控,旗舰版代表调用蚁盾+旗舰版风控接口
|
|
6249
|
+
productName: string;
|
|
5744
6250
|
// 用户姓名
|
|
5745
6251
|
userName: string;
|
|
5746
6252
|
// 用户证件号码
|
|
5747
6253
|
certNo: string;
|
|
5748
6254
|
// 用户手机号码
|
|
5749
6255
|
mobile: string;
|
|
5750
|
-
// 用户ip地址
|
|
5751
|
-
ip?: string;
|
|
5752
6256
|
static names(): { [key: string]: string } {
|
|
5753
6257
|
return {
|
|
5754
6258
|
authToken: 'auth_token',
|
|
5755
6259
|
productInstanceId: 'product_instance_id',
|
|
5756
|
-
|
|
6260
|
+
productName: 'product_name',
|
|
5757
6261
|
userName: 'user_name',
|
|
5758
6262
|
certNo: 'cert_no',
|
|
5759
6263
|
mobile: 'mobile',
|
|
5760
|
-
ip: 'ip',
|
|
5761
6264
|
};
|
|
5762
6265
|
}
|
|
5763
6266
|
|
|
@@ -5765,11 +6268,10 @@ export class QueryRiskRequest extends $tea.Model {
|
|
|
5765
6268
|
return {
|
|
5766
6269
|
authToken: 'string',
|
|
5767
6270
|
productInstanceId: 'string',
|
|
5768
|
-
|
|
6271
|
+
productName: 'string',
|
|
5769
6272
|
userName: 'string',
|
|
5770
6273
|
certNo: 'string',
|
|
5771
6274
|
mobile: 'string',
|
|
5772
|
-
ip: 'string',
|
|
5773
6275
|
};
|
|
5774
6276
|
}
|
|
5775
6277
|
|
|
@@ -5785,14 +6287,6 @@ export class QueryRiskResponse extends $tea.Model {
|
|
|
5785
6287
|
resultCode?: string;
|
|
5786
6288
|
// 异常信息的文本描述
|
|
5787
6289
|
resultMsg?: string;
|
|
5788
|
-
// 请求唯一ID标识,为空则是异常
|
|
5789
|
-
securityId?: string;
|
|
5790
|
-
// 总风险决策结果,枚举值为:reject[拒绝],validate[待定],accept[通过]。
|
|
5791
|
-
decision?: string;
|
|
5792
|
-
// 风险场景的决策结果
|
|
5793
|
-
scenes?: RiskScene[];
|
|
5794
|
-
// 策略结果详情
|
|
5795
|
-
strategies?: RiskStrategy[];
|
|
5796
6290
|
// 模型结果详情
|
|
5797
6291
|
models?: RiskModel[];
|
|
5798
6292
|
static names(): { [key: string]: string } {
|
|
@@ -5800,10 +6294,6 @@ export class QueryRiskResponse extends $tea.Model {
|
|
|
5800
6294
|
reqMsgId: 'req_msg_id',
|
|
5801
6295
|
resultCode: 'result_code',
|
|
5802
6296
|
resultMsg: 'result_msg',
|
|
5803
|
-
securityId: 'security_id',
|
|
5804
|
-
decision: 'decision',
|
|
5805
|
-
scenes: 'scenes',
|
|
5806
|
-
strategies: 'strategies',
|
|
5807
6297
|
models: 'models',
|
|
5808
6298
|
};
|
|
5809
6299
|
}
|
|
@@ -5813,10 +6303,6 @@ export class QueryRiskResponse extends $tea.Model {
|
|
|
5813
6303
|
reqMsgId: 'string',
|
|
5814
6304
|
resultCode: 'string',
|
|
5815
6305
|
resultMsg: 'string',
|
|
5816
|
-
securityId: 'string',
|
|
5817
|
-
decision: 'string',
|
|
5818
|
-
scenes: { 'type': 'array', 'itemType': RiskScene },
|
|
5819
|
-
strategies: { 'type': 'array', 'itemType': RiskStrategy },
|
|
5820
6306
|
models: { 'type': 'array', 'itemType': RiskModel },
|
|
5821
6307
|
};
|
|
5822
6308
|
}
|
|
@@ -5966,6 +6452,10 @@ export class SubmitSignFlowRequest extends $tea.Model {
|
|
|
5966
6452
|
merchantLegalIdNumber?: string;
|
|
5967
6453
|
// 多方签署的其他参与方的签署信息,json的array格式,参考:[{"tag":"zf_a","orgName":"上海网络科技有限公司","orgIdType":"CRED_ORG_REGCODE","orgIdNumber":"12098760923","orgLegalName":"王大浪","orgLegalIdNumber":"107120196708289012"}],其中:orgIdNumber、orgLegalName、orgLegalIdNumber需要加密传输。
|
|
5968
6454
|
thirdSigner?: string;
|
|
6455
|
+
// 支付宝用户 open_id
|
|
6456
|
+
userOpenId?: string;
|
|
6457
|
+
// 商户支付宝应用 id
|
|
6458
|
+
merchantAppId?: string;
|
|
5969
6459
|
static names(): { [key: string]: string } {
|
|
5970
6460
|
return {
|
|
5971
6461
|
authToken: 'auth_token',
|
|
@@ -5991,6 +6481,8 @@ export class SubmitSignFlowRequest extends $tea.Model {
|
|
|
5991
6481
|
merchantLegalName: 'merchant_legal_name',
|
|
5992
6482
|
merchantLegalIdNumber: 'merchant_legal_id_number',
|
|
5993
6483
|
thirdSigner: 'third_signer',
|
|
6484
|
+
userOpenId: 'user_open_id',
|
|
6485
|
+
merchantAppId: 'merchant_app_id',
|
|
5994
6486
|
};
|
|
5995
6487
|
}
|
|
5996
6488
|
|
|
@@ -6019,6 +6511,8 @@ export class SubmitSignFlowRequest extends $tea.Model {
|
|
|
6019
6511
|
merchantLegalName: 'string',
|
|
6020
6512
|
merchantLegalIdNumber: 'string',
|
|
6021
6513
|
thirdSigner: 'string',
|
|
6514
|
+
userOpenId: 'string',
|
|
6515
|
+
merchantAppId: 'string',
|
|
6022
6516
|
};
|
|
6023
6517
|
}
|
|
6024
6518
|
|
|
@@ -6298,6 +6792,10 @@ export class SubmitFrontSignRequest extends $tea.Model {
|
|
|
6298
6792
|
merchantLegalIdNumber?: string;
|
|
6299
6793
|
// 多方签署的其他参与方的签署信息,json的array格式,参考:[{"tag":"zf_a","orgName":"上海网络科技有限公司","orgIdType":"CRED_ORG_REGCODE","orgIdNumber":"12098760923","orgLegalName":"王大浪","orgLegalIdNumber":"107120196708289012","sealIds":["12b2317-0000-3333-2222-ec087dc97d8b"]}],其中:orgIdNumber、orgLegalName、orgLegalIdNumber需要加密传输。
|
|
6300
6794
|
thirdSigner?: string;
|
|
6795
|
+
// 用户在支付宝开放平台下应用的 open_id
|
|
6796
|
+
userOpenId?: string;
|
|
6797
|
+
// 商户支付宝应用 id
|
|
6798
|
+
merchantAppId?: string;
|
|
6301
6799
|
static names(): { [key: string]: string } {
|
|
6302
6800
|
return {
|
|
6303
6801
|
authToken: 'auth_token',
|
|
@@ -6323,6 +6821,8 @@ export class SubmitFrontSignRequest extends $tea.Model {
|
|
|
6323
6821
|
merchantLegalName: 'merchant_legal_name',
|
|
6324
6822
|
merchantLegalIdNumber: 'merchant_legal_id_number',
|
|
6325
6823
|
thirdSigner: 'third_signer',
|
|
6824
|
+
userOpenId: 'user_open_id',
|
|
6825
|
+
merchantAppId: 'merchant_app_id',
|
|
6326
6826
|
};
|
|
6327
6827
|
}
|
|
6328
6828
|
|
|
@@ -6351,6 +6851,8 @@ export class SubmitFrontSignRequest extends $tea.Model {
|
|
|
6351
6851
|
merchantLegalName: 'string',
|
|
6352
6852
|
merchantLegalIdNumber: 'string',
|
|
6353
6853
|
thirdSigner: 'string',
|
|
6854
|
+
userOpenId: 'string',
|
|
6855
|
+
merchantAppId: 'string',
|
|
6354
6856
|
};
|
|
6355
6857
|
}
|
|
6356
6858
|
|
|
@@ -7555,6 +8057,10 @@ export class CreateWithholdSignRequest extends $tea.Model {
|
|
|
7555
8057
|
alipayUserId?: string;
|
|
7556
8058
|
// 签约完成后的跳转地址,注意只有在h5跳转场景下才有意义其他场景通过方法回调处理业务;无需使用此字段。
|
|
7557
8059
|
returnUrl?: string;
|
|
8060
|
+
// 支付宝用户 open_id,非必填
|
|
8061
|
+
userOpenId?: string;
|
|
8062
|
+
// 商户支付宝应用 id
|
|
8063
|
+
merchantAppId?: string;
|
|
7558
8064
|
static names(): { [key: string]: string } {
|
|
7559
8065
|
return {
|
|
7560
8066
|
authToken: 'auth_token',
|
|
@@ -7566,6 +8072,8 @@ export class CreateWithholdSignRequest extends $tea.Model {
|
|
|
7566
8072
|
alipayMerchantServiceDescription: 'alipay_merchant_service_description',
|
|
7567
8073
|
alipayUserId: 'alipay_user_id',
|
|
7568
8074
|
returnUrl: 'return_url',
|
|
8075
|
+
userOpenId: 'user_open_id',
|
|
8076
|
+
merchantAppId: 'merchant_app_id',
|
|
7569
8077
|
};
|
|
7570
8078
|
}
|
|
7571
8079
|
|
|
@@ -7580,6 +8088,8 @@ export class CreateWithholdSignRequest extends $tea.Model {
|
|
|
7580
8088
|
alipayMerchantServiceDescription: 'string',
|
|
7581
8089
|
alipayUserId: 'string',
|
|
7582
8090
|
returnUrl: 'string',
|
|
8091
|
+
userOpenId: 'string',
|
|
8092
|
+
merchantAppId: 'string',
|
|
7583
8093
|
};
|
|
7584
8094
|
}
|
|
7585
8095
|
|
|
@@ -8619,7 +9129,7 @@ export default class Client {
|
|
|
8619
9129
|
req_msg_id: AntchainUtil.getNonce(),
|
|
8620
9130
|
access_key: this._accessKeyId,
|
|
8621
9131
|
base_sdk_version: "TeaSDK-2.0",
|
|
8622
|
-
sdk_version: "1.9.
|
|
9132
|
+
sdk_version: "1.9.11",
|
|
8623
9133
|
_prod_code: "ATO",
|
|
8624
9134
|
_prod_channel: "undefined",
|
|
8625
9135
|
};
|
|
@@ -9828,6 +10338,139 @@ export default class Client {
|
|
|
9828
10338
|
return $tea.cast<RetryInnerOrdermsgResponse>(await this.doRequest("1.0", "antchain.ato.inner.ordermsg.retry", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new RetryInnerOrdermsgResponse({}));
|
|
9829
10339
|
}
|
|
9830
10340
|
|
|
10341
|
+
/**
|
|
10342
|
+
* Description: 法务协议授权- 签署合同代扣前置授权查询接口
|
|
10343
|
+
* Summary: 签署合同代扣前置授权查询接口
|
|
10344
|
+
*/
|
|
10345
|
+
async queryInnerAuthorization(request: QueryInnerAuthorizationRequest): Promise<QueryInnerAuthorizationResponse> {
|
|
10346
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
10347
|
+
let headers : {[key: string ]: string} = { };
|
|
10348
|
+
return await this.queryInnerAuthorizationEx(request, headers, runtime);
|
|
10349
|
+
}
|
|
10350
|
+
|
|
10351
|
+
/**
|
|
10352
|
+
* Description: 法务协议授权- 签署合同代扣前置授权查询接口
|
|
10353
|
+
* Summary: 签署合同代扣前置授权查询接口
|
|
10354
|
+
*/
|
|
10355
|
+
async queryInnerAuthorizationEx(request: QueryInnerAuthorizationRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryInnerAuthorizationResponse> {
|
|
10356
|
+
Util.validateModel(request);
|
|
10357
|
+
return $tea.cast<QueryInnerAuthorizationResponse>(await this.doRequest("1.0", "antchain.ato.inner.authorization.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryInnerAuthorizationResponse({}));
|
|
10358
|
+
}
|
|
10359
|
+
|
|
10360
|
+
/**
|
|
10361
|
+
* Description: 法务协议授权 - 签署合同代扣前置同意授权接口
|
|
10362
|
+
* Summary: 签署合同代扣前置同意授权接口
|
|
10363
|
+
*/
|
|
10364
|
+
async signInnerAuthorization(request: SignInnerAuthorizationRequest): Promise<SignInnerAuthorizationResponse> {
|
|
10365
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
10366
|
+
let headers : {[key: string ]: string} = { };
|
|
10367
|
+
return await this.signInnerAuthorizationEx(request, headers, runtime);
|
|
10368
|
+
}
|
|
10369
|
+
|
|
10370
|
+
/**
|
|
10371
|
+
* Description: 法务协议授权 - 签署合同代扣前置同意授权接口
|
|
10372
|
+
* Summary: 签署合同代扣前置同意授权接口
|
|
10373
|
+
*/
|
|
10374
|
+
async signInnerAuthorizationEx(request: SignInnerAuthorizationRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<SignInnerAuthorizationResponse> {
|
|
10375
|
+
Util.validateModel(request);
|
|
10376
|
+
return $tea.cast<SignInnerAuthorizationResponse>(await this.doRequest("1.0", "antchain.ato.inner.authorization.sign", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new SignInnerAuthorizationResponse({}));
|
|
10377
|
+
}
|
|
10378
|
+
|
|
10379
|
+
/**
|
|
10380
|
+
* Description: 小程序法务授权 - 商户补充协议状态查询接口
|
|
10381
|
+
* Summary: 商户补充协议状态查询接口
|
|
10382
|
+
*/
|
|
10383
|
+
async queryInnerSupplemental(request: QueryInnerSupplementalRequest): Promise<QueryInnerSupplementalResponse> {
|
|
10384
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
10385
|
+
let headers : {[key: string ]: string} = { };
|
|
10386
|
+
return await this.queryInnerSupplementalEx(request, headers, runtime);
|
|
10387
|
+
}
|
|
10388
|
+
|
|
10389
|
+
/**
|
|
10390
|
+
* Description: 小程序法务授权 - 商户补充协议状态查询接口
|
|
10391
|
+
* Summary: 商户补充协议状态查询接口
|
|
10392
|
+
*/
|
|
10393
|
+
async queryInnerSupplementalEx(request: QueryInnerSupplementalRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryInnerSupplementalResponse> {
|
|
10394
|
+
Util.validateModel(request);
|
|
10395
|
+
return $tea.cast<QueryInnerSupplementalResponse>(await this.doRequest("1.0", "antchain.ato.inner.supplemental.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryInnerSupplementalResponse({}));
|
|
10396
|
+
}
|
|
10397
|
+
|
|
10398
|
+
/**
|
|
10399
|
+
* Description: 法务协议授权 - 商户补充协议状态同意接口
|
|
10400
|
+
* Summary: 商户补充协议状态同意接口
|
|
10401
|
+
*/
|
|
10402
|
+
async signInnerSupplemental(request: SignInnerSupplementalRequest): Promise<SignInnerSupplementalResponse> {
|
|
10403
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
10404
|
+
let headers : {[key: string ]: string} = { };
|
|
10405
|
+
return await this.signInnerSupplementalEx(request, headers, runtime);
|
|
10406
|
+
}
|
|
10407
|
+
|
|
10408
|
+
/**
|
|
10409
|
+
* Description: 法务协议授权 - 商户补充协议状态同意接口
|
|
10410
|
+
* Summary: 商户补充协议状态同意接口
|
|
10411
|
+
*/
|
|
10412
|
+
async signInnerSupplementalEx(request: SignInnerSupplementalRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<SignInnerSupplementalResponse> {
|
|
10413
|
+
Util.validateModel(request);
|
|
10414
|
+
return $tea.cast<SignInnerSupplementalResponse>(await this.doRequest("1.0", "antchain.ato.inner.supplemental.sign", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new SignInnerSupplementalResponse({}));
|
|
10415
|
+
}
|
|
10416
|
+
|
|
10417
|
+
/**
|
|
10418
|
+
* Description: 查询代扣计划
|
|
10419
|
+
* Summary: 代扣计划查询
|
|
10420
|
+
*/
|
|
10421
|
+
async queryInnerWithholdplan(request: QueryInnerWithholdplanRequest): Promise<QueryInnerWithholdplanResponse> {
|
|
10422
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
10423
|
+
let headers : {[key: string ]: string} = { };
|
|
10424
|
+
return await this.queryInnerWithholdplanEx(request, headers, runtime);
|
|
10425
|
+
}
|
|
10426
|
+
|
|
10427
|
+
/**
|
|
10428
|
+
* Description: 查询代扣计划
|
|
10429
|
+
* Summary: 代扣计划查询
|
|
10430
|
+
*/
|
|
10431
|
+
async queryInnerWithholdplanEx(request: QueryInnerWithholdplanRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryInnerWithholdplanResponse> {
|
|
10432
|
+
Util.validateModel(request);
|
|
10433
|
+
return $tea.cast<QueryInnerWithholdplanResponse>(await this.doRequest("1.0", "antchain.ato.inner.withholdplan.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryInnerWithholdplanResponse({}));
|
|
10434
|
+
}
|
|
10435
|
+
|
|
10436
|
+
/**
|
|
10437
|
+
* Description: 创建代扣协议
|
|
10438
|
+
* Summary: 创建代扣协议
|
|
10439
|
+
*/
|
|
10440
|
+
async createInnerWithholdsign(request: CreateInnerWithholdsignRequest): Promise<CreateInnerWithholdsignResponse> {
|
|
10441
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
10442
|
+
let headers : {[key: string ]: string} = { };
|
|
10443
|
+
return await this.createInnerWithholdsignEx(request, headers, runtime);
|
|
10444
|
+
}
|
|
10445
|
+
|
|
10446
|
+
/**
|
|
10447
|
+
* Description: 创建代扣协议
|
|
10448
|
+
* Summary: 创建代扣协议
|
|
10449
|
+
*/
|
|
10450
|
+
async createInnerWithholdsignEx(request: CreateInnerWithholdsignRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateInnerWithholdsignResponse> {
|
|
10451
|
+
Util.validateModel(request);
|
|
10452
|
+
return $tea.cast<CreateInnerWithholdsignResponse>(await this.doRequest("1.0", "antchain.ato.inner.withholdsign.create", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CreateInnerWithholdsignResponse({}));
|
|
10453
|
+
}
|
|
10454
|
+
|
|
10455
|
+
/**
|
|
10456
|
+
* Description: 代扣签约查询
|
|
10457
|
+
* Summary: 代扣签约查询
|
|
10458
|
+
*/
|
|
10459
|
+
async queryInnerWithholdsign(request: QueryInnerWithholdsignRequest): Promise<QueryInnerWithholdsignResponse> {
|
|
10460
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
10461
|
+
let headers : {[key: string ]: string} = { };
|
|
10462
|
+
return await this.queryInnerWithholdsignEx(request, headers, runtime);
|
|
10463
|
+
}
|
|
10464
|
+
|
|
10465
|
+
/**
|
|
10466
|
+
* Description: 代扣签约查询
|
|
10467
|
+
* Summary: 代扣签约查询
|
|
10468
|
+
*/
|
|
10469
|
+
async queryInnerWithholdsignEx(request: QueryInnerWithholdsignRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryInnerWithholdsignResponse> {
|
|
10470
|
+
Util.validateModel(request);
|
|
10471
|
+
return $tea.cast<QueryInnerWithholdsignResponse>(await this.doRequest("1.0", "antchain.ato.inner.withholdsign.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryInnerWithholdsignResponse({}));
|
|
10472
|
+
}
|
|
10473
|
+
|
|
9831
10474
|
/**
|
|
9832
10475
|
* Description: 商户入驻
|
|
9833
10476
|
* Summary: 商户入驻
|