@antchain/ato 1.14.38 → 1.14.41

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.41",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -3535,6 +3535,10 @@ export class CancelFundPlanRequest extends $tea.Model {
3535
3535
  operation?: string;
3536
3536
  // 赎回金额,单位为分,取消并赎回时必填
3537
3537
  redeemAmount?: number;
3538
+ // 赎回类型,为空默认为 TRANSFER
3539
+ // 转账代偿:TRANSFER
3540
+ // 代扣代偿:WITHHOLD
3541
+ redeemType?: string;
3538
3542
  static names(): { [key: string]: string } {
3539
3543
  return {
3540
3544
  authToken: 'auth_token',
@@ -3545,6 +3549,7 @@ export class CancelFundPlanRequest extends $tea.Model {
3545
3549
  fundId: 'fund_id',
3546
3550
  operation: 'operation',
3547
3551
  redeemAmount: 'redeem_amount',
3552
+ redeemType: 'redeem_type',
3548
3553
  };
3549
3554
  }
3550
3555
 
@@ -3558,6 +3563,7 @@ export class CancelFundPlanRequest extends $tea.Model {
3558
3563
  fundId: 'string',
3559
3564
  operation: 'string',
3560
3565
  redeemAmount: 'number',
3566
+ redeemType: 'string',
3561
3567
  };
3562
3568
  }
3563
3569
 
@@ -5585,6 +5591,148 @@ export class RepayFundPlanResponse extends $tea.Model {
5585
5591
  }
5586
5592
  }
5587
5593
 
5594
+ export class GetFundCompensatesignurlRequest extends $tea.Model {
5595
+ // OAuth模式下的授权token
5596
+ authToken?: string;
5597
+ productInstanceId?: string;
5598
+ // 资方社会统一信用代码
5599
+ fundId: string;
5600
+ // 商户租户id
5601
+ merchantTenantId: string;
5602
+ // 商户社会统一信用代码
5603
+ merchantId: string;
5604
+ // 签约串类型
5605
+ // TRANSFER:转账代偿签约串
5606
+ // WITHHOLD:代扣代偿签约串
5607
+ type: string;
5608
+ static names(): { [key: string]: string } {
5609
+ return {
5610
+ authToken: 'auth_token',
5611
+ productInstanceId: 'product_instance_id',
5612
+ fundId: 'fund_id',
5613
+ merchantTenantId: 'merchant_tenant_id',
5614
+ merchantId: 'merchant_id',
5615
+ type: 'type',
5616
+ };
5617
+ }
5618
+
5619
+ static types(): { [key: string]: any } {
5620
+ return {
5621
+ authToken: 'string',
5622
+ productInstanceId: 'string',
5623
+ fundId: 'string',
5624
+ merchantTenantId: 'string',
5625
+ merchantId: 'string',
5626
+ type: 'string',
5627
+ };
5628
+ }
5629
+
5630
+ constructor(map?: { [key: string]: any }) {
5631
+ super(map);
5632
+ }
5633
+ }
5634
+
5635
+ export class GetFundCompensatesignurlResponse extends $tea.Model {
5636
+ // 请求唯一ID,用于链路跟踪和问题排查
5637
+ reqMsgId?: string;
5638
+ // 结果码,一般OK表示调用成功
5639
+ resultCode?: string;
5640
+ // 异常信息的文本描述
5641
+ resultMsg?: string;
5642
+ // 签约链接
5643
+ signUrl?: string;
5644
+ static names(): { [key: string]: string } {
5645
+ return {
5646
+ reqMsgId: 'req_msg_id',
5647
+ resultCode: 'result_code',
5648
+ resultMsg: 'result_msg',
5649
+ signUrl: 'sign_url',
5650
+ };
5651
+ }
5652
+
5653
+ static types(): { [key: string]: any } {
5654
+ return {
5655
+ reqMsgId: 'string',
5656
+ resultCode: 'string',
5657
+ resultMsg: 'string',
5658
+ signUrl: 'string',
5659
+ };
5660
+ }
5661
+
5662
+ constructor(map?: { [key: string]: any }) {
5663
+ super(map);
5664
+ }
5665
+ }
5666
+
5667
+ export class ConfirmFundCompensateRequest extends $tea.Model {
5668
+ // OAuth模式下的授权token
5669
+ authToken?: string;
5670
+ productInstanceId?: string;
5671
+ // 资方社会统一信用代码
5672
+ fundId: string;
5673
+ // 商户租户id
5674
+ merchantTenantId: string;
5675
+ // 商户社会统一信用代码
5676
+ merchantId: string;
5677
+ // 签约串类型
5678
+ // TRANSFER:转账代偿签约串
5679
+ // WITHHOLD:代扣代偿签约串
5680
+ type?: string;
5681
+ static names(): { [key: string]: string } {
5682
+ return {
5683
+ authToken: 'auth_token',
5684
+ productInstanceId: 'product_instance_id',
5685
+ fundId: 'fund_id',
5686
+ merchantTenantId: 'merchant_tenant_id',
5687
+ merchantId: 'merchant_id',
5688
+ type: 'type',
5689
+ };
5690
+ }
5691
+
5692
+ static types(): { [key: string]: any } {
5693
+ return {
5694
+ authToken: 'string',
5695
+ productInstanceId: 'string',
5696
+ fundId: 'string',
5697
+ merchantTenantId: 'string',
5698
+ merchantId: 'string',
5699
+ type: 'string',
5700
+ };
5701
+ }
5702
+
5703
+ constructor(map?: { [key: string]: any }) {
5704
+ super(map);
5705
+ }
5706
+ }
5707
+
5708
+ export class ConfirmFundCompensateResponse extends $tea.Model {
5709
+ // 请求唯一ID,用于链路跟踪和问题排查
5710
+ reqMsgId?: string;
5711
+ // 结果码,一般OK表示调用成功
5712
+ resultCode?: string;
5713
+ // 异常信息的文本描述
5714
+ resultMsg?: string;
5715
+ static names(): { [key: string]: string } {
5716
+ return {
5717
+ reqMsgId: 'req_msg_id',
5718
+ resultCode: 'result_code',
5719
+ resultMsg: 'result_msg',
5720
+ };
5721
+ }
5722
+
5723
+ static types(): { [key: string]: any } {
5724
+ return {
5725
+ reqMsgId: 'string',
5726
+ resultCode: 'string',
5727
+ resultMsg: 'string',
5728
+ };
5729
+ }
5730
+
5731
+ constructor(map?: { [key: string]: any }) {
5732
+ super(map);
5733
+ }
5734
+ }
5735
+
5588
5736
  export class GetInnerProductRequest extends $tea.Model {
5589
5737
  // OAuth模式下的授权token
5590
5738
  authToken?: string;
@@ -12688,7 +12836,7 @@ export class QueryRiskRequest extends $tea.Model {
12688
12836
  authToken?: string;
12689
12837
  productInstanceId?: string;
12690
12838
  // 枚举值:蚁盾版、智租版、旗舰版,蚁盾版代表仅调用蚁盾风控,智租版代表仅调用小程序云风控,旗舰版代表调用蚁盾+旗舰版风控接口
12691
- productName: string;
12839
+ productName?: string;
12692
12840
  // 用户姓名
12693
12841
  userName: string;
12694
12842
  // 用户证件号码
@@ -12708,6 +12856,10 @@ export class QueryRiskRequest extends $tea.Model {
12708
12856
  priceDetail?: PriceDetail;
12709
12857
  // 物流信息,智租版可选
12710
12858
  deliveryDetail?: DeliveryDetail;
12859
+ // 枚举值:3C_RENTAL、NE_RENTAL、OTHER_RENTAL、PETS、BEAUTY、EDUCATION、FITNESS、GENERAL_INDUSTRY_OTHER
12860
+ industry?: string;
12861
+ // 枚举值:ZOLOZ_V2、ZOLOZ_V3、GENERAL_INDUSTRY、APPLET_RISK
12862
+ modelVersion?: string;
12711
12863
  static names(): { [key: string]: string } {
12712
12864
  return {
12713
12865
  authToken: 'auth_token',
@@ -12722,6 +12874,8 @@ export class QueryRiskRequest extends $tea.Model {
12722
12874
  itemDetail: 'item_detail',
12723
12875
  priceDetail: 'price_detail',
12724
12876
  deliveryDetail: 'delivery_detail',
12877
+ industry: 'industry',
12878
+ modelVersion: 'model_version',
12725
12879
  };
12726
12880
  }
12727
12881
 
@@ -12739,6 +12893,8 @@ export class QueryRiskRequest extends $tea.Model {
12739
12893
  itemDetail: ItemDetail,
12740
12894
  priceDetail: PriceDetail,
12741
12895
  deliveryDetail: DeliveryDetail,
12896
+ industry: 'string',
12897
+ modelVersion: 'string',
12742
12898
  };
12743
12899
  }
12744
12900
 
@@ -16649,7 +16805,7 @@ export default class Client {
16649
16805
  req_msg_id: AntchainUtil.getNonce(),
16650
16806
  access_key: this._accessKeyId,
16651
16807
  base_sdk_version: "TeaSDK-2.0",
16652
- sdk_version: "1.14.38",
16808
+ sdk_version: "1.14.41",
16653
16809
  _prod_code: "ATO",
16654
16810
  _prod_channel: "undefined",
16655
16811
  };
@@ -17430,6 +17586,44 @@ export default class Client {
17430
17586
  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
17587
  }
17432
17588
 
17589
+ /**
17590
+ * Description: 资方代偿签约链接获取
17591
+ * Summary: 资方代偿签约链接获取
17592
+ */
17593
+ async getFundCompensatesignurl(request: GetFundCompensatesignurlRequest): Promise<GetFundCompensatesignurlResponse> {
17594
+ let runtime = new $Util.RuntimeOptions({ });
17595
+ let headers : {[key: string ]: string} = { };
17596
+ return await this.getFundCompensatesignurlEx(request, headers, runtime);
17597
+ }
17598
+
17599
+ /**
17600
+ * Description: 资方代偿签约链接获取
17601
+ * Summary: 资方代偿签约链接获取
17602
+ */
17603
+ async getFundCompensatesignurlEx(request: GetFundCompensatesignurlRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetFundCompensatesignurlResponse> {
17604
+ Util.validateModel(request);
17605
+ 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({}));
17606
+ }
17607
+
17608
+ /**
17609
+ * Description: 转账代偿签约结果确认
17610
+ * Summary: 转账代偿签约结果确认
17611
+ */
17612
+ async confirmFundCompensate(request: ConfirmFundCompensateRequest): Promise<ConfirmFundCompensateResponse> {
17613
+ let runtime = new $Util.RuntimeOptions({ });
17614
+ let headers : {[key: string ]: string} = { };
17615
+ return await this.confirmFundCompensateEx(request, headers, runtime);
17616
+ }
17617
+
17618
+ /**
17619
+ * Description: 转账代偿签约结果确认
17620
+ * Summary: 转账代偿签约结果确认
17621
+ */
17622
+ async confirmFundCompensateEx(request: ConfirmFundCompensateRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ConfirmFundCompensateResponse> {
17623
+ Util.validateModel(request);
17624
+ 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({}));
17625
+ }
17626
+
17433
17627
  /**
17434
17628
  * Description: 内部调用,商品信息获取
17435
17629
  * Summary: 商品信息获取