@antchain/ato 1.14.38 → 1.14.40

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.14.38",
3
+ "version": "1.14.40",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -5585,6 +5585,148 @@ export class RepayFundPlanResponse extends $tea.Model {
5585
5585
  }
5586
5586
  }
5587
5587
 
5588
+ export class GetFundCompensatesignurlRequest extends $tea.Model {
5589
+ // OAuth模式下的授权token
5590
+ authToken?: string;
5591
+ productInstanceId?: string;
5592
+ // 资方社会统一信用代码
5593
+ fundId: string;
5594
+ // 商户租户id
5595
+ merchantTenantId: string;
5596
+ // 商户社会统一信用代码
5597
+ merchantId: string;
5598
+ // 签约串类型
5599
+ // TRANSFER:转账代偿签约串
5600
+ // WITHHOLD:代扣代偿签约串
5601
+ type: string;
5602
+ static names(): { [key: string]: string } {
5603
+ return {
5604
+ authToken: 'auth_token',
5605
+ productInstanceId: 'product_instance_id',
5606
+ fundId: 'fund_id',
5607
+ merchantTenantId: 'merchant_tenant_id',
5608
+ merchantId: 'merchant_id',
5609
+ type: 'type',
5610
+ };
5611
+ }
5612
+
5613
+ static types(): { [key: string]: any } {
5614
+ return {
5615
+ authToken: 'string',
5616
+ productInstanceId: 'string',
5617
+ fundId: 'string',
5618
+ merchantTenantId: 'string',
5619
+ merchantId: 'string',
5620
+ type: 'string',
5621
+ };
5622
+ }
5623
+
5624
+ constructor(map?: { [key: string]: any }) {
5625
+ super(map);
5626
+ }
5627
+ }
5628
+
5629
+ export class GetFundCompensatesignurlResponse extends $tea.Model {
5630
+ // 请求唯一ID,用于链路跟踪和问题排查
5631
+ reqMsgId?: string;
5632
+ // 结果码,一般OK表示调用成功
5633
+ resultCode?: string;
5634
+ // 异常信息的文本描述
5635
+ resultMsg?: string;
5636
+ // 签约链接
5637
+ signUrl?: string;
5638
+ static names(): { [key: string]: string } {
5639
+ return {
5640
+ reqMsgId: 'req_msg_id',
5641
+ resultCode: 'result_code',
5642
+ resultMsg: 'result_msg',
5643
+ signUrl: 'sign_url',
5644
+ };
5645
+ }
5646
+
5647
+ static types(): { [key: string]: any } {
5648
+ return {
5649
+ reqMsgId: 'string',
5650
+ resultCode: 'string',
5651
+ resultMsg: 'string',
5652
+ signUrl: 'string',
5653
+ };
5654
+ }
5655
+
5656
+ constructor(map?: { [key: string]: any }) {
5657
+ super(map);
5658
+ }
5659
+ }
5660
+
5661
+ export class ConfirmFundCompensateRequest extends $tea.Model {
5662
+ // OAuth模式下的授权token
5663
+ authToken?: string;
5664
+ productInstanceId?: string;
5665
+ // 资方社会统一信用代码
5666
+ fundId: string;
5667
+ // 商户租户id
5668
+ merchantTenantId: string;
5669
+ // 商户社会统一信用代码
5670
+ merchantId: string;
5671
+ // 签约串类型
5672
+ // TRANSFER:转账代偿签约串
5673
+ // WITHHOLD:代扣代偿签约串
5674
+ type?: string;
5675
+ static names(): { [key: string]: string } {
5676
+ return {
5677
+ authToken: 'auth_token',
5678
+ productInstanceId: 'product_instance_id',
5679
+ fundId: 'fund_id',
5680
+ merchantTenantId: 'merchant_tenant_id',
5681
+ merchantId: 'merchant_id',
5682
+ type: 'type',
5683
+ };
5684
+ }
5685
+
5686
+ static types(): { [key: string]: any } {
5687
+ return {
5688
+ authToken: 'string',
5689
+ productInstanceId: 'string',
5690
+ fundId: 'string',
5691
+ merchantTenantId: 'string',
5692
+ merchantId: 'string',
5693
+ type: 'string',
5694
+ };
5695
+ }
5696
+
5697
+ constructor(map?: { [key: string]: any }) {
5698
+ super(map);
5699
+ }
5700
+ }
5701
+
5702
+ export class ConfirmFundCompensateResponse extends $tea.Model {
5703
+ // 请求唯一ID,用于链路跟踪和问题排查
5704
+ reqMsgId?: string;
5705
+ // 结果码,一般OK表示调用成功
5706
+ resultCode?: string;
5707
+ // 异常信息的文本描述
5708
+ resultMsg?: string;
5709
+ static names(): { [key: string]: string } {
5710
+ return {
5711
+ reqMsgId: 'req_msg_id',
5712
+ resultCode: 'result_code',
5713
+ resultMsg: 'result_msg',
5714
+ };
5715
+ }
5716
+
5717
+ static types(): { [key: string]: any } {
5718
+ return {
5719
+ reqMsgId: 'string',
5720
+ resultCode: 'string',
5721
+ resultMsg: 'string',
5722
+ };
5723
+ }
5724
+
5725
+ constructor(map?: { [key: string]: any }) {
5726
+ super(map);
5727
+ }
5728
+ }
5729
+
5588
5730
  export class GetInnerProductRequest extends $tea.Model {
5589
5731
  // OAuth模式下的授权token
5590
5732
  authToken?: string;
@@ -12688,7 +12830,7 @@ export class QueryRiskRequest extends $tea.Model {
12688
12830
  authToken?: string;
12689
12831
  productInstanceId?: string;
12690
12832
  // 枚举值:蚁盾版、智租版、旗舰版,蚁盾版代表仅调用蚁盾风控,智租版代表仅调用小程序云风控,旗舰版代表调用蚁盾+旗舰版风控接口
12691
- productName: string;
12833
+ productName?: string;
12692
12834
  // 用户姓名
12693
12835
  userName: string;
12694
12836
  // 用户证件号码
@@ -12708,6 +12850,10 @@ export class QueryRiskRequest extends $tea.Model {
12708
12850
  priceDetail?: PriceDetail;
12709
12851
  // 物流信息,智租版可选
12710
12852
  deliveryDetail?: DeliveryDetail;
12853
+ // 枚举值:3C_RENTAL、NE_RENTAL、OTHER_RENTAL、PETS、BEAUTY、EDUCATION、FITNESS、GENERAL_INDUSTRY_OTHER
12854
+ industry?: string;
12855
+ // 枚举值:ZOLOZ_V2、ZOLOZ_V3、GENERAL_INDUSTRY、APPLET_RISK
12856
+ modelVersion?: string;
12711
12857
  static names(): { [key: string]: string } {
12712
12858
  return {
12713
12859
  authToken: 'auth_token',
@@ -12722,6 +12868,8 @@ export class QueryRiskRequest extends $tea.Model {
12722
12868
  itemDetail: 'item_detail',
12723
12869
  priceDetail: 'price_detail',
12724
12870
  deliveryDetail: 'delivery_detail',
12871
+ industry: 'industry',
12872
+ modelVersion: 'model_version',
12725
12873
  };
12726
12874
  }
12727
12875
 
@@ -12739,6 +12887,8 @@ export class QueryRiskRequest extends $tea.Model {
12739
12887
  itemDetail: ItemDetail,
12740
12888
  priceDetail: PriceDetail,
12741
12889
  deliveryDetail: DeliveryDetail,
12890
+ industry: 'string',
12891
+ modelVersion: 'string',
12742
12892
  };
12743
12893
  }
12744
12894
 
@@ -16649,7 +16799,7 @@ export default class Client {
16649
16799
  req_msg_id: AntchainUtil.getNonce(),
16650
16800
  access_key: this._accessKeyId,
16651
16801
  base_sdk_version: "TeaSDK-2.0",
16652
- sdk_version: "1.14.38",
16802
+ sdk_version: "1.14.40",
16653
16803
  _prod_code: "ATO",
16654
16804
  _prod_channel: "undefined",
16655
16805
  };
@@ -17430,6 +17580,44 @@ export default class Client {
17430
17580
  return $tea.cast<RepayFundPlanResponse>(await this.doRequest("1.0", "antchain.ato.fund.plan.repay", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new RepayFundPlanResponse({}));
17431
17581
  }
17432
17582
 
17583
+ /**
17584
+ * Description: 资方代偿签约链接获取
17585
+ * Summary: 资方代偿签约链接获取
17586
+ */
17587
+ async getFundCompensatesignurl(request: GetFundCompensatesignurlRequest): Promise<GetFundCompensatesignurlResponse> {
17588
+ let runtime = new $Util.RuntimeOptions({ });
17589
+ let headers : {[key: string ]: string} = { };
17590
+ return await this.getFundCompensatesignurlEx(request, headers, runtime);
17591
+ }
17592
+
17593
+ /**
17594
+ * Description: 资方代偿签约链接获取
17595
+ * Summary: 资方代偿签约链接获取
17596
+ */
17597
+ async getFundCompensatesignurlEx(request: GetFundCompensatesignurlRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetFundCompensatesignurlResponse> {
17598
+ Util.validateModel(request);
17599
+ return $tea.cast<GetFundCompensatesignurlResponse>(await this.doRequest("1.0", "antchain.ato.fund.compensatesignurl.get", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new GetFundCompensatesignurlResponse({}));
17600
+ }
17601
+
17602
+ /**
17603
+ * Description: 转账代偿签约结果确认
17604
+ * Summary: 转账代偿签约结果确认
17605
+ */
17606
+ async confirmFundCompensate(request: ConfirmFundCompensateRequest): Promise<ConfirmFundCompensateResponse> {
17607
+ let runtime = new $Util.RuntimeOptions({ });
17608
+ let headers : {[key: string ]: string} = { };
17609
+ return await this.confirmFundCompensateEx(request, headers, runtime);
17610
+ }
17611
+
17612
+ /**
17613
+ * Description: 转账代偿签约结果确认
17614
+ * Summary: 转账代偿签约结果确认
17615
+ */
17616
+ async confirmFundCompensateEx(request: ConfirmFundCompensateRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ConfirmFundCompensateResponse> {
17617
+ Util.validateModel(request);
17618
+ return $tea.cast<ConfirmFundCompensateResponse>(await this.doRequest("1.0", "antchain.ato.fund.compensate.confirm", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ConfirmFundCompensateResponse({}));
17619
+ }
17620
+
17433
17621
  /**
17434
17622
  * Description: 内部调用,商品信息获取
17435
17623
  * Summary: 商品信息获取