@antchain/ato 1.14.5 → 1.14.9

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.5",
3
+ "version": "1.14.9",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -1699,6 +1699,38 @@ export class MarketingScoreQueryInfo extends $tea.Model {
1699
1699
  }
1700
1700
  }
1701
1701
 
1702
+ // 用信查询订单履约信息结构体
1703
+ export class OrderPromiseExcelInfo extends $tea.Model {
1704
+ // 文件下载地址
1705
+ downloadUrl?: string;
1706
+ // 文件类型,订单明细表:ORDER_DETAIL 还款记录表:ORDER_FULFILLMENT
1707
+ fileType: string;
1708
+ // 任务状态
1709
+ // ● RUNNING:生成中
1710
+ // ● SUCCESS:已生成
1711
+ // ● FAILED:失败
1712
+ taskStatus: string;
1713
+ static names(): { [key: string]: string } {
1714
+ return {
1715
+ downloadUrl: 'download_url',
1716
+ fileType: 'file_type',
1717
+ taskStatus: 'task_status',
1718
+ };
1719
+ }
1720
+
1721
+ static types(): { [key: string]: any } {
1722
+ return {
1723
+ downloadUrl: 'string',
1724
+ fileType: 'string',
1725
+ taskStatus: 'string',
1726
+ };
1727
+ }
1728
+
1729
+ constructor(map?: { [key: string]: any }) {
1730
+ super(map);
1731
+ }
1732
+ }
1733
+
1702
1734
  // 策略结果详情
1703
1735
  export class RiskStrategy extends $tea.Model {
1704
1736
  // 策略ID
@@ -2014,35 +2046,6 @@ export class AwardingQueryModel extends $tea.Model {
2014
2046
  }
2015
2047
  }
2016
2048
 
2017
- // 用信查询订单履约信息结构体
2018
- export class OrderPrimiseExcelInfo extends $tea.Model {
2019
- // 文件下载地址
2020
- downloadUrl?: string;
2021
- // 文件类型,订单明细表:ORDER_DETAIL 还款记录表:ORDER_FULFILLMENT
2022
- fileType: string;
2023
- // 生成中, 已生成,无效
2024
- taskStatus: string;
2025
- static names(): { [key: string]: string } {
2026
- return {
2027
- downloadUrl: 'download_url',
2028
- fileType: 'file_type',
2029
- taskStatus: 'task_status',
2030
- };
2031
- }
2032
-
2033
- static types(): { [key: string]: any } {
2034
- return {
2035
- downloadUrl: 'string',
2036
- fileType: 'string',
2037
- taskStatus: 'string',
2038
- };
2039
- }
2040
-
2041
- constructor(map?: { [key: string]: any }) {
2042
- super(map);
2043
- }
2044
- }
2045
-
2046
2049
  // 应用信息修改
2047
2050
  export class ApplicationInfoUpdate extends $tea.Model {
2048
2051
  // 应用场景 MINI_APP 小程序 APP 自有app ALL 两种都有
@@ -4462,7 +4465,7 @@ export class ApplyFundAssertorderRequest extends $tea.Model {
4462
4465
  // 是否过滤被其他资方标记的订单(融资申请中+融资申请通过),默认值false
4463
4466
  filterFinancingStatus?: boolean;
4464
4467
  // 是否过滤已取消订单 (无剩余应还期数),默认值false
4465
- filterCance?: boolean;
4468
+ filterCancel?: boolean;
4466
4469
  // 是否过滤提前结清订单,默认值false
4467
4470
  filterEarlySettlement?: boolean;
4468
4471
  // 是否过滤某一期已逾期的订单,默认值false
@@ -4483,7 +4486,7 @@ export class ApplyFundAssertorderRequest extends $tea.Model {
4483
4486
  startTime: 'start_time',
4484
4487
  endTime: 'end_time',
4485
4488
  filterFinancingStatus: 'filter_financing_status',
4486
- filterCance: 'filter_cance',
4489
+ filterCancel: 'filter_cancel',
4487
4490
  filterEarlySettlement: 'filter_early_settlement',
4488
4491
  filterOverdue: 'filter_overdue',
4489
4492
  filterRetry: 'filter_retry',
@@ -4503,7 +4506,7 @@ export class ApplyFundAssertorderRequest extends $tea.Model {
4503
4506
  startTime: 'string',
4504
4507
  endTime: 'string',
4505
4508
  filterFinancingStatus: 'boolean',
4506
- filterCance: 'boolean',
4509
+ filterCancel: 'boolean',
4507
4510
  filterEarlySettlement: 'boolean',
4508
4511
  filterOverdue: 'boolean',
4509
4512
  filterRetry: 'boolean',
@@ -4523,7 +4526,10 @@ export class ApplyFundAssertorderResponse extends $tea.Model {
4523
4526
  resultCode?: string;
4524
4527
  // 异常信息的文本描述
4525
4528
  resultMsg?: string;
4526
- // 生成中: TODO、已生成,:FINISH、无效:FAILURE
4529
+ // 任务状态
4530
+ // ● RUNNING:生成中
4531
+ // ● SUCCESS:已生成
4532
+ // ● FAILED:失败
4527
4533
  taskStatus?: string;
4528
4534
  static names(): { [key: string]: string } {
4529
4535
  return {
@@ -4599,7 +4605,7 @@ export class QueryFundAssertorderResponse extends $tea.Model {
4599
4605
  // 异常信息的文本描述
4600
4606
  resultMsg?: string;
4601
4607
  // 用信订单履约信息
4602
- data?: OrderPrimiseExcelInfo[];
4608
+ data?: OrderPromiseExcelInfo[];
4603
4609
  static names(): { [key: string]: string } {
4604
4610
  return {
4605
4611
  reqMsgId: 'req_msg_id',
@@ -4614,7 +4620,7 @@ export class QueryFundAssertorderResponse extends $tea.Model {
4614
4620
  reqMsgId: 'string',
4615
4621
  resultCode: 'string',
4616
4622
  resultMsg: 'string',
4617
- data: { 'type': 'array', 'itemType': OrderPrimiseExcelInfo },
4623
+ data: { 'type': 'array', 'itemType': OrderPromiseExcelInfo },
4618
4624
  };
4619
4625
  }
4620
4626
 
@@ -4637,7 +4643,7 @@ export class SyncFundCreditgrantingRequest extends $tea.Model {
4637
4643
  merchantId: string;
4638
4644
  // 商户租户id
4639
4645
  tenantId: string;
4640
- // 授权额度,单位为分
4646
+ // 授信额度,单位为分
4641
4647
  grantingLine: number;
4642
4648
  // 授信有效期开始时间(yyyy-MM-dd HH:mm:ss)
4643
4649
  effectStartTime: string;
@@ -4719,9 +4725,9 @@ export class AuthFundCreditgrantingRequest extends $tea.Model {
4719
4725
  // 授权id
4720
4726
  authId: string;
4721
4727
  // 授权开始时间,格式为yyyy-MM-dd
4722
- authBeginTime: string;
4728
+ authBeginTime?: string;
4723
4729
  // 授权结束时间,格式为yyyy-MM-dd
4724
- authEndTime: string;
4730
+ authEndTime?: string;
4725
4731
  // 订单查询开始时间,格式为yyyy-MM-dd HH:mm:ss,需要在auth_begin_time之后。
4726
4732
  orderQueryBegin: string;
4727
4733
  // 订单查询结束时间,格式为yyyy-MM-dd HH:mm:ss,需要在auth_end_time之前
@@ -4770,12 +4776,15 @@ export class AuthFundCreditgrantingResponse extends $tea.Model {
4770
4776
  resultMsg?: string;
4771
4777
  // 商家授权链接
4772
4778
  merchantAuthUrl?: string;
4779
+ // 传入的auth_id
4780
+ authId?: string;
4773
4781
  static names(): { [key: string]: string } {
4774
4782
  return {
4775
4783
  reqMsgId: 'req_msg_id',
4776
4784
  resultCode: 'result_code',
4777
4785
  resultMsg: 'result_msg',
4778
4786
  merchantAuthUrl: 'merchant_auth_url',
4787
+ authId: 'auth_id',
4779
4788
  };
4780
4789
  }
4781
4790
 
@@ -4785,6 +4794,7 @@ export class AuthFundCreditgrantingResponse extends $tea.Model {
4785
4794
  resultCode: 'string',
4786
4795
  resultMsg: 'string',
4787
4796
  merchantAuthUrl: 'string',
4797
+ authId: 'string',
4788
4798
  };
4789
4799
  }
4790
4800
 
@@ -4864,6 +4874,201 @@ export class QueryFundAssertreportResponse extends $tea.Model {
4864
4874
  }
4865
4875
  }
4866
4876
 
4877
+ export class QueryFundCreditgrantingRequest extends $tea.Model {
4878
+ // OAuth模式下的授权token
4879
+ authToken?: string;
4880
+ productInstanceId?: string;
4881
+ // 授信id
4882
+ grantingId: string;
4883
+ // 资方社会信用代码
4884
+ fundId: string;
4885
+ static names(): { [key: string]: string } {
4886
+ return {
4887
+ authToken: 'auth_token',
4888
+ productInstanceId: 'product_instance_id',
4889
+ grantingId: 'granting_id',
4890
+ fundId: 'fund_id',
4891
+ };
4892
+ }
4893
+
4894
+ static types(): { [key: string]: any } {
4895
+ return {
4896
+ authToken: 'string',
4897
+ productInstanceId: 'string',
4898
+ grantingId: 'string',
4899
+ fundId: 'string',
4900
+ };
4901
+ }
4902
+
4903
+ constructor(map?: { [key: string]: any }) {
4904
+ super(map);
4905
+ }
4906
+ }
4907
+
4908
+ export class QueryFundCreditgrantingResponse extends $tea.Model {
4909
+ // 请求唯一ID,用于链路跟踪和问题排查
4910
+ reqMsgId?: string;
4911
+ // 结果码,一般OK表示调用成功
4912
+ resultCode?: string;
4913
+ // 异常信息的文本描述
4914
+ resultMsg?: string;
4915
+ // 授信id
4916
+ grantingId?: string;
4917
+ // 授信授权id
4918
+ authId?: string;
4919
+ // 资方社会信用代码
4920
+ fundId?: string;
4921
+ // 商户社会信用代码
4922
+ merchantId?: string;
4923
+ // 商户租户id
4924
+ //
4925
+ tenantId?: string;
4926
+ // 授信额度,单位为分
4927
+ grantingLine?: number;
4928
+ // 授信有效期开始时间(yyyy-MM-dd HH:mm:ss)
4929
+ effectStartTime?: string;
4930
+ // 授信有效期结束时间(yyyy-MM-dd HH:mm:ss)
4931
+ effectEndTime?: string;
4932
+ // 授信状态
4933
+ // CREDITED:已授信
4934
+ status?: string;
4935
+ static names(): { [key: string]: string } {
4936
+ return {
4937
+ reqMsgId: 'req_msg_id',
4938
+ resultCode: 'result_code',
4939
+ resultMsg: 'result_msg',
4940
+ grantingId: 'granting_id',
4941
+ authId: 'auth_id',
4942
+ fundId: 'fund_id',
4943
+ merchantId: 'merchant_id',
4944
+ tenantId: 'tenant_id',
4945
+ grantingLine: 'granting_line',
4946
+ effectStartTime: 'effect_start_time',
4947
+ effectEndTime: 'effect_end_time',
4948
+ status: 'status',
4949
+ };
4950
+ }
4951
+
4952
+ static types(): { [key: string]: any } {
4953
+ return {
4954
+ reqMsgId: 'string',
4955
+ resultCode: 'string',
4956
+ resultMsg: 'string',
4957
+ grantingId: 'string',
4958
+ authId: 'string',
4959
+ fundId: 'string',
4960
+ merchantId: 'string',
4961
+ tenantId: 'string',
4962
+ grantingLine: 'number',
4963
+ effectStartTime: 'string',
4964
+ effectEndTime: 'string',
4965
+ status: 'string',
4966
+ };
4967
+ }
4968
+
4969
+ constructor(map?: { [key: string]: any }) {
4970
+ super(map);
4971
+ }
4972
+ }
4973
+
4974
+ export class QueryFundCreditauthRequest extends $tea.Model {
4975
+ // OAuth模式下的授权token
4976
+ authToken?: string;
4977
+ productInstanceId?: string;
4978
+ // 资方社会引用代码
4979
+ fundId: string;
4980
+ // 授权id
4981
+ authId: string;
4982
+ // 授权类型
4983
+ // CREDIT_GRANTING 授信
4984
+ // CREDIT_UTILIZATION 用信
4985
+ authType: string;
4986
+ static names(): { [key: string]: string } {
4987
+ return {
4988
+ authToken: 'auth_token',
4989
+ productInstanceId: 'product_instance_id',
4990
+ fundId: 'fund_id',
4991
+ authId: 'auth_id',
4992
+ authType: 'auth_type',
4993
+ };
4994
+ }
4995
+
4996
+ static types(): { [key: string]: any } {
4997
+ return {
4998
+ authToken: 'string',
4999
+ productInstanceId: 'string',
5000
+ fundId: 'string',
5001
+ authId: 'string',
5002
+ authType: 'string',
5003
+ };
5004
+ }
5005
+
5006
+ constructor(map?: { [key: string]: any }) {
5007
+ super(map);
5008
+ }
5009
+ }
5010
+
5011
+ export class QueryFundCreditauthResponse extends $tea.Model {
5012
+ // 请求唯一ID,用于链路跟踪和问题排查
5013
+ reqMsgId?: string;
5014
+ // 结果码,一般OK表示调用成功
5015
+ resultCode?: string;
5016
+ // 异常信息的文本描述
5017
+ resultMsg?: string;
5018
+ // 授权id
5019
+ authId?: string;
5020
+ // 授权类型
5021
+ // ● CREDIT_GRANTING 授信
5022
+ // ● CREDIT_UTILIZATION 用信
5023
+ authType?: string;
5024
+ // 授权结果
5025
+ // AUTHORIZED 已同意
5026
+ // REJECTED 已拒绝
5027
+ // EXPIRED 已过期
5028
+ authResult?: string;
5029
+ // 授权开始时间
5030
+ authBeginTime?: string;
5031
+ // 授权结束时间
5032
+ authEndTime?: string;
5033
+ // 授权申请过期时间
5034
+ authApplyExpireTime?: string;
5035
+ // 授信/用信授权信息,json结构
5036
+ authInfo?: string;
5037
+ static names(): { [key: string]: string } {
5038
+ return {
5039
+ reqMsgId: 'req_msg_id',
5040
+ resultCode: 'result_code',
5041
+ resultMsg: 'result_msg',
5042
+ authId: 'auth_id',
5043
+ authType: 'auth_type',
5044
+ authResult: 'auth_result',
5045
+ authBeginTime: 'auth_begin_time',
5046
+ authEndTime: 'auth_end_time',
5047
+ authApplyExpireTime: 'auth_apply_expire_time',
5048
+ authInfo: 'auth_info',
5049
+ };
5050
+ }
5051
+
5052
+ static types(): { [key: string]: any } {
5053
+ return {
5054
+ reqMsgId: 'string',
5055
+ resultCode: 'string',
5056
+ resultMsg: 'string',
5057
+ authId: 'string',
5058
+ authType: 'string',
5059
+ authResult: 'string',
5060
+ authBeginTime: 'string',
5061
+ authEndTime: 'string',
5062
+ authApplyExpireTime: 'string',
5063
+ authInfo: 'string',
5064
+ };
5065
+ }
5066
+
5067
+ constructor(map?: { [key: string]: any }) {
5068
+ super(map);
5069
+ }
5070
+ }
5071
+
4867
5072
  export class GetInnerProductRequest extends $tea.Model {
4868
5073
  // OAuth模式下的授权token
4869
5074
  authToken?: string;
@@ -15108,7 +15313,7 @@ export default class Client {
15108
15313
  req_msg_id: AntchainUtil.getNonce(),
15109
15314
  access_key: this._accessKeyId,
15110
15315
  base_sdk_version: "TeaSDK-2.0",
15111
- sdk_version: "1.14.5",
15316
+ sdk_version: "1.14.9",
15112
15317
  _prod_code: "ATO",
15113
15318
  _prod_channel: "undefined",
15114
15319
  };
@@ -15771,6 +15976,44 @@ export default class Client {
15771
15976
  return $tea.cast<QueryFundAssertreportResponse>(await this.doRequest("1.0", "antchain.ato.fund.assertreport.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryFundAssertreportResponse({}));
15772
15977
  }
15773
15978
 
15979
+ /**
15980
+ * Description: 本接口用于查询授信结果
15981
+ * Summary: 授信结果查询
15982
+ */
15983
+ async queryFundCreditgranting(request: QueryFundCreditgrantingRequest): Promise<QueryFundCreditgrantingResponse> {
15984
+ let runtime = new $Util.RuntimeOptions({ });
15985
+ let headers : {[key: string ]: string} = { };
15986
+ return await this.queryFundCreditgrantingEx(request, headers, runtime);
15987
+ }
15988
+
15989
+ /**
15990
+ * Description: 本接口用于查询授信结果
15991
+ * Summary: 授信结果查询
15992
+ */
15993
+ async queryFundCreditgrantingEx(request: QueryFundCreditgrantingRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryFundCreditgrantingResponse> {
15994
+ Util.validateModel(request);
15995
+ return $tea.cast<QueryFundCreditgrantingResponse>(await this.doRequest("1.0", "antchain.ato.fund.creditgranting.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryFundCreditgrantingResponse({}));
15996
+ }
15997
+
15998
+ /**
15999
+ * Description: 授权信息查询
16000
+ * Summary: 授权信息查询
16001
+ */
16002
+ async queryFundCreditauth(request: QueryFundCreditauthRequest): Promise<QueryFundCreditauthResponse> {
16003
+ let runtime = new $Util.RuntimeOptions({ });
16004
+ let headers : {[key: string ]: string} = { };
16005
+ return await this.queryFundCreditauthEx(request, headers, runtime);
16006
+ }
16007
+
16008
+ /**
16009
+ * Description: 授权信息查询
16010
+ * Summary: 授权信息查询
16011
+ */
16012
+ async queryFundCreditauthEx(request: QueryFundCreditauthRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryFundCreditauthResponse> {
16013
+ Util.validateModel(request);
16014
+ return $tea.cast<QueryFundCreditauthResponse>(await this.doRequest("1.0", "antchain.ato.fund.creditauth.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryFundCreditauthResponse({}));
16015
+ }
16016
+
15774
16017
  /**
15775
16018
  * Description: 内部调用,商品信息获取
15776
16019
  * Summary: 商品信息获取