@antchain/ato 1.8.73 → 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.73",
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 } {
@@ -1125,6 +1179,8 @@ export class UploadFundFlowRequest extends $tea.Model {
1125
1179
  fileObject?: Readable;
1126
1180
  fileObjectName?: string;
1127
1181
  fileId: string;
1182
+ // 资方统一社会信用代码
1183
+ fundId?: string;
1128
1184
  static names(): { [key: string]: string } {
1129
1185
  return {
1130
1186
  authToken: 'auth_token',
@@ -1136,6 +1192,7 @@ export class UploadFundFlowRequest extends $tea.Model {
1136
1192
  fileObject: 'fileObject',
1137
1193
  fileObjectName: 'fileObjectName',
1138
1194
  fileId: 'file_id',
1195
+ fundId: 'fund_id',
1139
1196
  };
1140
1197
  }
1141
1198
 
@@ -1150,6 +1207,7 @@ export class UploadFundFlowRequest extends $tea.Model {
1150
1207
  fileObject: 'Readable',
1151
1208
  fileObjectName: 'string',
1152
1209
  fileId: 'string',
1210
+ fundId: 'string',
1153
1211
  };
1154
1212
  }
1155
1213
 
@@ -1196,6 +1254,8 @@ export class GetFundFlowRequest extends $tea.Model {
1196
1254
  orderId: string;
1197
1255
  // 合同类型
1198
1256
  contractType?: string;
1257
+ // 资方统一社会信用代码
1258
+ fundId?: string;
1199
1259
  static names(): { [key: string]: string } {
1200
1260
  return {
1201
1261
  authToken: 'auth_token',
@@ -1203,6 +1263,7 @@ export class GetFundFlowRequest extends $tea.Model {
1203
1263
  merchantId: 'merchant_id',
1204
1264
  orderId: 'order_id',
1205
1265
  contractType: 'contract_type',
1266
+ fundId: 'fund_id',
1206
1267
  };
1207
1268
  }
1208
1269
 
@@ -1213,6 +1274,7 @@ export class GetFundFlowRequest extends $tea.Model {
1213
1274
  merchantId: 'string',
1214
1275
  orderId: 'string',
1215
1276
  contractType: 'string',
1277
+ fundId: 'string',
1216
1278
  };
1217
1279
  }
1218
1280
 
@@ -1269,6 +1331,8 @@ export class RefuseFundFlowRequest extends $tea.Model {
1269
1331
  signNo: string;
1270
1332
  // 填写拒绝落章原因,如果同意则不用填写
1271
1333
  signReason?: string;
1334
+ // 资方统一社会信用代码
1335
+ fundId?: string;
1272
1336
  static names(): { [key: string]: string } {
1273
1337
  return {
1274
1338
  authToken: 'auth_token',
@@ -1277,6 +1341,7 @@ export class RefuseFundFlowRequest extends $tea.Model {
1277
1341
  orderId: 'order_id',
1278
1342
  signNo: 'sign_no',
1279
1343
  signReason: 'sign_reason',
1344
+ fundId: 'fund_id',
1280
1345
  };
1281
1346
  }
1282
1347
 
@@ -1288,6 +1353,7 @@ export class RefuseFundFlowRequest extends $tea.Model {
1288
1353
  orderId: 'string',
1289
1354
  signNo: 'string',
1290
1355
  signReason: 'string',
1356
+ fundId: 'string',
1291
1357
  };
1292
1358
  }
1293
1359
 
@@ -1959,6 +2025,8 @@ export class NotifyFundFlowRequest extends $tea.Model {
1959
2025
  signNo: string;
1960
2026
  // 返回的文件fileItemNo编号
1961
2027
  fileItemNo: string;
2028
+ // 资方统一社会信用代码
2029
+ fundId?: string;
1962
2030
  static names(): { [key: string]: string } {
1963
2031
  return {
1964
2032
  authToken: 'auth_token',
@@ -1967,6 +2035,7 @@ export class NotifyFundFlowRequest extends $tea.Model {
1967
2035
  orderId: 'order_id',
1968
2036
  signNo: 'sign_no',
1969
2037
  fileItemNo: 'file_item_no',
2038
+ fundId: 'fund_id',
1970
2039
  };
1971
2040
  }
1972
2041
 
@@ -1978,6 +2047,7 @@ export class NotifyFundFlowRequest extends $tea.Model {
1978
2047
  orderId: 'string',
1979
2048
  signNo: 'string',
1980
2049
  fileItemNo: 'string',
2050
+ fundId: 'string',
1981
2051
  };
1982
2052
  }
1983
2053
 
@@ -2034,6 +2104,8 @@ export class UploadFundCreditRequest extends $tea.Model {
2034
2104
  fileUrl?: string;
2035
2105
  // 内容数据,格式为JSON类型文本,如果类型是JSON_TEXT则必填
2036
2106
  content?: string;
2107
+ // 商户统一社会信用代码
2108
+ merchantId: string;
2037
2109
  static names(): { [key: string]: string } {
2038
2110
  return {
2039
2111
  authToken: 'auth_token',
@@ -2046,6 +2118,7 @@ export class UploadFundCreditRequest extends $tea.Model {
2046
2118
  contentType: 'content_type',
2047
2119
  fileUrl: 'file_url',
2048
2120
  content: 'content',
2121
+ merchantId: 'merchant_id',
2049
2122
  };
2050
2123
  }
2051
2124
 
@@ -2061,6 +2134,7 @@ export class UploadFundCreditRequest extends $tea.Model {
2061
2134
  contentType: 'string',
2062
2135
  fileUrl: 'string',
2063
2136
  content: 'string',
2137
+ merchantId: 'string',
2064
2138
  };
2065
2139
  }
2066
2140
 
@@ -2111,6 +2185,8 @@ export class QueryFundCreditRequest extends $tea.Model {
2111
2185
  orderNo: string;
2112
2186
  // 资方统一社会信用代码
2113
2187
  fundId: string;
2188
+ // 商户统一社会信用代码
2189
+ merchantId: string;
2114
2190
  static names(): { [key: string]: string } {
2115
2191
  return {
2116
2192
  authToken: 'auth_token',
@@ -2118,6 +2194,7 @@ export class QueryFundCreditRequest extends $tea.Model {
2118
2194
  orderNoType: 'order_no_type',
2119
2195
  orderNo: 'order_no',
2120
2196
  fundId: 'fund_id',
2197
+ merchantId: 'merchant_id',
2121
2198
  };
2122
2199
  }
2123
2200
 
@@ -2128,6 +2205,7 @@ export class QueryFundCreditRequest extends $tea.Model {
2128
2205
  orderNoType: 'string',
2129
2206
  orderNo: 'string',
2130
2207
  fundId: 'string',
2208
+ merchantId: 'string',
2131
2209
  };
2132
2210
  }
2133
2211
 
@@ -4100,11 +4178,11 @@ export class CreateInnerMerchantpayexpandRequest extends $tea.Model {
4100
4178
  // 租户ID
4101
4179
  tenantId: string;
4102
4180
  // 公司信息
4103
- companyInfo?: CompanyInfo;
4181
+ companyInfo: CompanyInfo;
4104
4182
  // 法人信息
4105
- legalInfo?: LegalInfo;
4183
+ legalInfo: LegalInfo;
4106
4184
  // 应用信息
4107
- applicationInfo?: ApplicationInfo;
4185
+ applicationInfo: ApplicationInfo;
4108
4186
  // 是否直接提交
4109
4187
  // SUBMITTED 直接提交
4110
4188
  // STAGE 暂存
@@ -4886,6 +4964,167 @@ export class QueryInnerTemplateversionResponse extends $tea.Model {
4886
4964
  }
4887
4965
  }
4888
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
+
4889
5128
  export class RegisterMerchantexpandMerchantRequest extends $tea.Model {
4890
5129
  // OAuth模式下的授权token
4891
5130
  authToken?: string;
@@ -6105,6 +6344,8 @@ export class UploadSignCreditRequest extends $tea.Model {
6105
6344
  fileUrl?: string;
6106
6345
  // 内容数据,格式为JSON类型文本,如果类型是JSON_TEXT则必填
6107
6346
  content?: string;
6347
+ // 商户统一社会信用代码
6348
+ merchantId?: string;
6108
6349
  static names(): { [key: string]: string } {
6109
6350
  return {
6110
6351
  authToken: 'auth_token',
@@ -6116,6 +6357,7 @@ export class UploadSignCreditRequest extends $tea.Model {
6116
6357
  contentType: 'content_type',
6117
6358
  fileUrl: 'file_url',
6118
6359
  content: 'content',
6360
+ merchantId: 'merchant_id',
6119
6361
  };
6120
6362
  }
6121
6363
 
@@ -6130,6 +6372,7 @@ export class UploadSignCreditRequest extends $tea.Model {
6130
6372
  contentType: 'string',
6131
6373
  fileUrl: 'string',
6132
6374
  content: 'string',
6375
+ merchantId: 'string',
6133
6376
  };
6134
6377
  }
6135
6378
 
@@ -6178,12 +6421,15 @@ export class QuerySignCreditRequest extends $tea.Model {
6178
6421
  orderNoType: string;
6179
6422
  // 订单号,或资产包号
6180
6423
  orderNo: string;
6424
+ // 商户统一社会信用代码
6425
+ merchantId?: string;
6181
6426
  static names(): { [key: string]: string } {
6182
6427
  return {
6183
6428
  authToken: 'auth_token',
6184
6429
  productInstanceId: 'product_instance_id',
6185
6430
  orderNoType: 'order_no_type',
6186
6431
  orderNo: 'order_no',
6432
+ merchantId: 'merchant_id',
6187
6433
  };
6188
6434
  }
6189
6435
 
@@ -6193,6 +6439,7 @@ export class QuerySignCreditRequest extends $tea.Model {
6193
6439
  productInstanceId: 'string',
6194
6440
  orderNoType: 'string',
6195
6441
  orderNo: 'string',
6442
+ merchantId: 'string',
6196
6443
  };
6197
6444
  }
6198
6445
 
@@ -6430,7 +6677,7 @@ export class SyncTradeFinanceloanapplyRequest extends $tea.Model {
6430
6677
  authToken?: string;
6431
6678
  productInstanceId?: string;
6432
6679
  // 订单id
6433
- orderId: string;
6680
+ orderId?: string;
6434
6681
  // 订单所属商户的社会信用代码
6435
6682
  merchantId: string;
6436
6683
  // 融资放款申请接口
@@ -7990,7 +8237,7 @@ export default class Client {
7990
8237
  req_msg_id: AntchainUtil.getNonce(),
7991
8238
  access_key: this._accessKeyId,
7992
8239
  base_sdk_version: "TeaSDK-2.0",
7993
- sdk_version: "1.8.73",
8240
+ sdk_version: "1.8.81",
7994
8241
  _prod_code: "ATO",
7995
8242
  _prod_channel: "undefined",
7996
8243
  };
@@ -9161,6 +9408,44 @@ export default class Client {
9161
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({}));
9162
9409
  }
9163
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
+
9164
9449
  /**
9165
9450
  * Description: 商户入驻
9166
9451
  * Summary: 商户入驻
@@ -9755,9 +10040,9 @@ export default class Client {
9755
10040
  }
9756
10041
 
9757
10042
  /**
9758
- * Description: ● 重要说明:
9759
- ①这个接口是取消订单某一期代扣计划中以其他方式还款的金额,取消之后代扣不再执行该期计划。
9760
- ②对通过其他方式还款的第三方单号留存;例如:银行流水号或微信流水号。
10043
+ * Description: 重要说明:
10044
+ 1. 这个接口是取消订单某一期代扣计划中以其他方式还款的金额,取消之后代扣不再执行该期计划。
10045
+ 2. 对通过其他方式还款的第三方单号留存;例如:银行流水号或微信流水号。
9761
10046
  * Summary: 单期代扣取消
9762
10047
  */
9763
10048
  async repayWithholdPlan(request: RepayWithholdPlanRequest): Promise<RepayWithholdPlanResponse> {
@@ -9767,9 +10052,9 @@ export default class Client {
9767
10052
  }
9768
10053
 
9769
10054
  /**
9770
- * Description: ● 重要说明:
9771
- ①这个接口是取消订单某一期代扣计划中以其他方式还款的金额,取消之后代扣不再执行该期计划。
9772
- ②对通过其他方式还款的第三方单号留存;例如:银行流水号或微信流水号。
10055
+ * Description: 重要说明:
10056
+ 1. 这个接口是取消订单某一期代扣计划中以其他方式还款的金额,取消之后代扣不再执行该期计划。
10057
+ 2. 对通过其他方式还款的第三方单号留存;例如:银行流水号或微信流水号。
9773
10058
  * Summary: 单期代扣取消
9774
10059
  */
9775
10060
  async repayWithholdPlanEx(request: RepayWithholdPlanRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RepayWithholdPlanResponse> {