@antchain/ato 1.8.76 → 1.8.81

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.76",
3
+ "version": "1.8.81",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -376,6 +376,60 @@ export class MerchantAgentPage extends $tea.Model {
376
376
  }
377
377
  }
378
378
 
379
+ // 订单消息结构体
380
+ export class OrderMsgInfo extends $tea.Model {
381
+ // 订单id
382
+ //
383
+ orderId: string;
384
+ // 消息ID
385
+ //
386
+ msgId: string;
387
+ // 消息类型
388
+ //
389
+ msgPublishType: string;
390
+ // 消息创建时间
391
+ //
392
+ msgCreateTime: string;
393
+ // 消息投递状态 SUCCESS 成功 FAIL 失败 WAIT 等待投递重试
394
+ msgStatus: string;
395
+ // 消息重投次数
396
+ //
397
+ msgRetryTime: number;
398
+ // 消息回调地址
399
+ msgCallbackUrl: string;
400
+ // 消息体内容
401
+ msgContent: string;
402
+ static names(): { [key: string]: string } {
403
+ return {
404
+ orderId: 'order_id',
405
+ msgId: 'msg_id',
406
+ msgPublishType: 'msg_publish_type',
407
+ msgCreateTime: 'msg_create_time',
408
+ msgStatus: 'msg_status',
409
+ msgRetryTime: 'msg_retry_time',
410
+ msgCallbackUrl: 'msg_callback_url',
411
+ msgContent: 'msg_content',
412
+ };
413
+ }
414
+
415
+ static types(): { [key: string]: any } {
416
+ return {
417
+ orderId: 'string',
418
+ msgId: 'string',
419
+ msgPublishType: 'string',
420
+ msgCreateTime: 'string',
421
+ msgStatus: 'string',
422
+ msgRetryTime: 'number',
423
+ msgCallbackUrl: 'string',
424
+ msgContent: 'string',
425
+ };
426
+ }
427
+
428
+ constructor(map?: { [key: string]: any }) {
429
+ super(map);
430
+ }
431
+ }
432
+
379
433
  // 主订单信息
380
434
  export class OrderInfo extends $tea.Model {
381
435
  static names(): { [key: string]: string } {
@@ -4910,6 +4964,167 @@ export class QueryInnerTemplateversionResponse extends $tea.Model {
4910
4964
  }
4911
4965
  }
4912
4966
 
4967
+ export class PagequeryInnerOrdermsgRequest extends $tea.Model {
4968
+ // OAuth模式下的授权token
4969
+ authToken?: string;
4970
+ productInstanceId?: string;
4971
+ // 租户8位id
4972
+ //
4973
+ tenantId: string;
4974
+ // 订单ID
4975
+ orderId: string;
4976
+ // 消息类型
4977
+ msgPublishType?: string;
4978
+ // 消息创建时间起始
4979
+ msgCreateTimeFrom?: string;
4980
+ // 消息创建时间结束
4981
+ msgCreateTimeTo?: string;
4982
+ // SANDBOX 沙箱 ;PROD 生产
4983
+ env: string;
4984
+ // 分页查询对象
4985
+ pageInfo: PageQuery;
4986
+ static names(): { [key: string]: string } {
4987
+ return {
4988
+ authToken: 'auth_token',
4989
+ productInstanceId: 'product_instance_id',
4990
+ tenantId: 'tenant_id',
4991
+ orderId: 'order_id',
4992
+ msgPublishType: 'msg_publish_type',
4993
+ msgCreateTimeFrom: 'msg_create_time_from',
4994
+ msgCreateTimeTo: 'msg_create_time_to',
4995
+ env: 'env',
4996
+ pageInfo: 'page_info',
4997
+ };
4998
+ }
4999
+
5000
+ static types(): { [key: string]: any } {
5001
+ return {
5002
+ authToken: 'string',
5003
+ productInstanceId: 'string',
5004
+ tenantId: 'string',
5005
+ orderId: 'string',
5006
+ msgPublishType: 'string',
5007
+ msgCreateTimeFrom: 'string',
5008
+ msgCreateTimeTo: 'string',
5009
+ env: 'string',
5010
+ pageInfo: PageQuery,
5011
+ };
5012
+ }
5013
+
5014
+ constructor(map?: { [key: string]: any }) {
5015
+ super(map);
5016
+ }
5017
+ }
5018
+
5019
+ export class PagequeryInnerOrdermsgResponse extends $tea.Model {
5020
+ // 请求唯一ID,用于链路跟踪和问题排查
5021
+ reqMsgId?: string;
5022
+ // 结果码,一般OK表示调用成功
5023
+ resultCode?: string;
5024
+ // 异常信息的文本描述
5025
+ resultMsg?: string;
5026
+ // 数据总量
5027
+ totalSize?: number;
5028
+ // 消息内容列表
5029
+ orderMsgInfos?: OrderMsgInfo[];
5030
+ static names(): { [key: string]: string } {
5031
+ return {
5032
+ reqMsgId: 'req_msg_id',
5033
+ resultCode: 'result_code',
5034
+ resultMsg: 'result_msg',
5035
+ totalSize: 'total_size',
5036
+ orderMsgInfos: 'order_msg_infos',
5037
+ };
5038
+ }
5039
+
5040
+ static types(): { [key: string]: any } {
5041
+ return {
5042
+ reqMsgId: 'string',
5043
+ resultCode: 'string',
5044
+ resultMsg: 'string',
5045
+ totalSize: 'number',
5046
+ orderMsgInfos: { 'type': 'array', 'itemType': OrderMsgInfo },
5047
+ };
5048
+ }
5049
+
5050
+ constructor(map?: { [key: string]: any }) {
5051
+ super(map);
5052
+ }
5053
+ }
5054
+
5055
+ export class RetryInnerOrdermsgRequest extends $tea.Model {
5056
+ // OAuth模式下的授权token
5057
+ authToken?: string;
5058
+ productInstanceId?: string;
5059
+ // 租户ID
5060
+ tenantId: string;
5061
+ // SANDBOX 沙箱 PROD 生产
5062
+ env: string;
5063
+ // 订单id
5064
+ //
5065
+ orderId: string;
5066
+ // 消息ID
5067
+ //
5068
+ msgId: string;
5069
+ // 使用租户新回调地址
5070
+ usingNewCallbackUrl: boolean;
5071
+ static names(): { [key: string]: string } {
5072
+ return {
5073
+ authToken: 'auth_token',
5074
+ productInstanceId: 'product_instance_id',
5075
+ tenantId: 'tenant_id',
5076
+ env: 'env',
5077
+ orderId: 'order_id',
5078
+ msgId: 'msg_id',
5079
+ usingNewCallbackUrl: 'using_new_callback_url',
5080
+ };
5081
+ }
5082
+
5083
+ static types(): { [key: string]: any } {
5084
+ return {
5085
+ authToken: 'string',
5086
+ productInstanceId: 'string',
5087
+ tenantId: 'string',
5088
+ env: 'string',
5089
+ orderId: 'string',
5090
+ msgId: 'string',
5091
+ usingNewCallbackUrl: 'boolean',
5092
+ };
5093
+ }
5094
+
5095
+ constructor(map?: { [key: string]: any }) {
5096
+ super(map);
5097
+ }
5098
+ }
5099
+
5100
+ export class RetryInnerOrdermsgResponse extends $tea.Model {
5101
+ // 请求唯一ID,用于链路跟踪和问题排查
5102
+ reqMsgId?: string;
5103
+ // 结果码,一般OK表示调用成功
5104
+ resultCode?: string;
5105
+ // 异常信息的文本描述
5106
+ resultMsg?: string;
5107
+ static names(): { [key: string]: string } {
5108
+ return {
5109
+ reqMsgId: 'req_msg_id',
5110
+ resultCode: 'result_code',
5111
+ resultMsg: 'result_msg',
5112
+ };
5113
+ }
5114
+
5115
+ static types(): { [key: string]: any } {
5116
+ return {
5117
+ reqMsgId: 'string',
5118
+ resultCode: 'string',
5119
+ resultMsg: 'string',
5120
+ };
5121
+ }
5122
+
5123
+ constructor(map?: { [key: string]: any }) {
5124
+ super(map);
5125
+ }
5126
+ }
5127
+
4913
5128
  export class RegisterMerchantexpandMerchantRequest extends $tea.Model {
4914
5129
  // OAuth模式下的授权token
4915
5130
  authToken?: string;
@@ -6129,6 +6344,8 @@ export class UploadSignCreditRequest extends $tea.Model {
6129
6344
  fileUrl?: string;
6130
6345
  // 内容数据,格式为JSON类型文本,如果类型是JSON_TEXT则必填
6131
6346
  content?: string;
6347
+ // 商户统一社会信用代码
6348
+ merchantId?: string;
6132
6349
  static names(): { [key: string]: string } {
6133
6350
  return {
6134
6351
  authToken: 'auth_token',
@@ -6140,6 +6357,7 @@ export class UploadSignCreditRequest extends $tea.Model {
6140
6357
  contentType: 'content_type',
6141
6358
  fileUrl: 'file_url',
6142
6359
  content: 'content',
6360
+ merchantId: 'merchant_id',
6143
6361
  };
6144
6362
  }
6145
6363
 
@@ -6154,6 +6372,7 @@ export class UploadSignCreditRequest extends $tea.Model {
6154
6372
  contentType: 'string',
6155
6373
  fileUrl: 'string',
6156
6374
  content: 'string',
6375
+ merchantId: 'string',
6157
6376
  };
6158
6377
  }
6159
6378
 
@@ -6202,12 +6421,15 @@ export class QuerySignCreditRequest extends $tea.Model {
6202
6421
  orderNoType: string;
6203
6422
  // 订单号,或资产包号
6204
6423
  orderNo: string;
6424
+ // 商户统一社会信用代码
6425
+ merchantId?: string;
6205
6426
  static names(): { [key: string]: string } {
6206
6427
  return {
6207
6428
  authToken: 'auth_token',
6208
6429
  productInstanceId: 'product_instance_id',
6209
6430
  orderNoType: 'order_no_type',
6210
6431
  orderNo: 'order_no',
6432
+ merchantId: 'merchant_id',
6211
6433
  };
6212
6434
  }
6213
6435
 
@@ -6217,6 +6439,7 @@ export class QuerySignCreditRequest extends $tea.Model {
6217
6439
  productInstanceId: 'string',
6218
6440
  orderNoType: 'string',
6219
6441
  orderNo: 'string',
6442
+ merchantId: 'string',
6220
6443
  };
6221
6444
  }
6222
6445
 
@@ -6454,7 +6677,7 @@ export class SyncTradeFinanceloanapplyRequest extends $tea.Model {
6454
6677
  authToken?: string;
6455
6678
  productInstanceId?: string;
6456
6679
  // 订单id
6457
- orderId: string;
6680
+ orderId?: string;
6458
6681
  // 订单所属商户的社会信用代码
6459
6682
  merchantId: string;
6460
6683
  // 融资放款申请接口
@@ -8014,7 +8237,7 @@ export default class Client {
8014
8237
  req_msg_id: AntchainUtil.getNonce(),
8015
8238
  access_key: this._accessKeyId,
8016
8239
  base_sdk_version: "TeaSDK-2.0",
8017
- sdk_version: "1.8.76",
8240
+ sdk_version: "1.8.81",
8018
8241
  _prod_code: "ATO",
8019
8242
  _prod_channel: "undefined",
8020
8243
  };
@@ -9185,6 +9408,44 @@ export default class Client {
9185
9408
  return $tea.cast<QueryInnerTemplateversionResponse>(await this.doRequest("1.0", "antchain.ato.inner.templateversion.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryInnerTemplateversionResponse({}));
9186
9409
  }
9187
9410
 
9411
+ /**
9412
+ * Description: 订单消息查询
9413
+ * Summary: 订单消息查询
9414
+ */
9415
+ async pagequeryInnerOrdermsg(request: PagequeryInnerOrdermsgRequest): Promise<PagequeryInnerOrdermsgResponse> {
9416
+ let runtime = new $Util.RuntimeOptions({ });
9417
+ let headers : {[key: string ]: string} = { };
9418
+ return await this.pagequeryInnerOrdermsgEx(request, headers, runtime);
9419
+ }
9420
+
9421
+ /**
9422
+ * Description: 订单消息查询
9423
+ * Summary: 订单消息查询
9424
+ */
9425
+ async pagequeryInnerOrdermsgEx(request: PagequeryInnerOrdermsgRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PagequeryInnerOrdermsgResponse> {
9426
+ Util.validateModel(request);
9427
+ return $tea.cast<PagequeryInnerOrdermsgResponse>(await this.doRequest("1.0", "antchain.ato.inner.ordermsg.pagequery", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PagequeryInnerOrdermsgResponse({}));
9428
+ }
9429
+
9430
+ /**
9431
+ * Description: 订单消息重试
9432
+ * Summary: 订单消息重试
9433
+ */
9434
+ async retryInnerOrdermsg(request: RetryInnerOrdermsgRequest): Promise<RetryInnerOrdermsgResponse> {
9435
+ let runtime = new $Util.RuntimeOptions({ });
9436
+ let headers : {[key: string ]: string} = { };
9437
+ return await this.retryInnerOrdermsgEx(request, headers, runtime);
9438
+ }
9439
+
9440
+ /**
9441
+ * Description: 订单消息重试
9442
+ * Summary: 订单消息重试
9443
+ */
9444
+ async retryInnerOrdermsgEx(request: RetryInnerOrdermsgRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RetryInnerOrdermsgResponse> {
9445
+ Util.validateModel(request);
9446
+ 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({}));
9447
+ }
9448
+
9188
9449
  /**
9189
9450
  * Description: 商户入驻
9190
9451
  * Summary: 商户入驻
@@ -9779,9 +10040,9 @@ export default class Client {
9779
10040
  }
9780
10041
 
9781
10042
  /**
9782
- * Description: ● 重要说明:
9783
- ①这个接口是取消订单某一期代扣计划中以其他方式还款的金额,取消之后代扣不再执行该期计划。
9784
- ②对通过其他方式还款的第三方单号留存;例如:银行流水号或微信流水号。
10043
+ * Description: 重要说明:
10044
+ 1. 这个接口是取消订单某一期代扣计划中以其他方式还款的金额,取消之后代扣不再执行该期计划。
10045
+ 2. 对通过其他方式还款的第三方单号留存;例如:银行流水号或微信流水号。
9785
10046
  * Summary: 单期代扣取消
9786
10047
  */
9787
10048
  async repayWithholdPlan(request: RepayWithholdPlanRequest): Promise<RepayWithholdPlanResponse> {
@@ -9791,9 +10052,9 @@ export default class Client {
9791
10052
  }
9792
10053
 
9793
10054
  /**
9794
- * Description: ● 重要说明:
9795
- ①这个接口是取消订单某一期代扣计划中以其他方式还款的金额,取消之后代扣不再执行该期计划。
9796
- ②对通过其他方式还款的第三方单号留存;例如:银行流水号或微信流水号。
10055
+ * Description: 重要说明:
10056
+ 1. 这个接口是取消订单某一期代扣计划中以其他方式还款的金额,取消之后代扣不再执行该期计划。
10057
+ 2. 对通过其他方式还款的第三方单号留存;例如:银行流水号或微信流水号。
9797
10058
  * Summary: 单期代扣取消
9798
10059
  */
9799
10060
  async repayWithholdPlanEx(request: RepayWithholdPlanRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RepayWithholdPlanResponse> {