@antchain/ato 1.11.2 → 1.11.3

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.11.2",
3
+ "version": "1.11.3",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -11184,6 +11184,77 @@ export class TransferTradeFinanceResponse extends $tea.Model {
11184
11184
  }
11185
11185
  }
11186
11186
 
11187
+ export class UpdateTradeOrderRequest extends $tea.Model {
11188
+ // OAuth模式下的授权token
11189
+ authToken?: string;
11190
+ productInstanceId?: string;
11191
+ // order_id
11192
+ orderId: string;
11193
+ // merchant_id
11194
+ merchantId: string;
11195
+ // json字符串
11196
+ updateOrderInfo: string;
11197
+ static names(): { [key: string]: string } {
11198
+ return {
11199
+ authToken: 'auth_token',
11200
+ productInstanceId: 'product_instance_id',
11201
+ orderId: 'order_id',
11202
+ merchantId: 'merchant_id',
11203
+ updateOrderInfo: 'update_order_info',
11204
+ };
11205
+ }
11206
+
11207
+ static types(): { [key: string]: any } {
11208
+ return {
11209
+ authToken: 'string',
11210
+ productInstanceId: 'string',
11211
+ orderId: 'string',
11212
+ merchantId: 'string',
11213
+ updateOrderInfo: 'string',
11214
+ };
11215
+ }
11216
+
11217
+ constructor(map?: { [key: string]: any }) {
11218
+ super(map);
11219
+ }
11220
+ }
11221
+
11222
+ export class UpdateTradeOrderResponse extends $tea.Model {
11223
+ // 请求唯一ID,用于链路跟踪和问题排查
11224
+ reqMsgId?: string;
11225
+ // 结果码,一般OK表示调用成功
11226
+ resultCode?: string;
11227
+ // 异常信息的文本描述
11228
+ resultMsg?: string;
11229
+ // order_id
11230
+ orderId?: string;
11231
+ // merchant_id
11232
+ merchantId?: string;
11233
+ static names(): { [key: string]: string } {
11234
+ return {
11235
+ reqMsgId: 'req_msg_id',
11236
+ resultCode: 'result_code',
11237
+ resultMsg: 'result_msg',
11238
+ orderId: 'order_id',
11239
+ merchantId: 'merchant_id',
11240
+ };
11241
+ }
11242
+
11243
+ static types(): { [key: string]: any } {
11244
+ return {
11245
+ reqMsgId: 'string',
11246
+ resultCode: 'string',
11247
+ resultMsg: 'string',
11248
+ orderId: 'string',
11249
+ merchantId: 'string',
11250
+ };
11251
+ }
11252
+
11253
+ constructor(map?: { [key: string]: any }) {
11254
+ super(map);
11255
+ }
11256
+ }
11257
+
11187
11258
  export class CreateWithholdSignRequest extends $tea.Model {
11188
11259
  // OAuth模式下的授权token
11189
11260
  authToken?: string;
@@ -12397,7 +12468,7 @@ export default class Client {
12397
12468
  req_msg_id: AntchainUtil.getNonce(),
12398
12469
  access_key: this._accessKeyId,
12399
12470
  base_sdk_version: "TeaSDK-2.0",
12400
- sdk_version: "1.11.2",
12471
+ sdk_version: "1.11.3",
12401
12472
  _prod_code: "ATO",
12402
12473
  _prod_channel: "undefined",
12403
12474
  };
@@ -14831,6 +14902,25 @@ export default class Client {
14831
14902
  return $tea.cast<TransferTradeFinanceResponse>(await this.doRequest("1.0", "antchain.ato.trade.finance.transfer", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new TransferTradeFinanceResponse({}));
14832
14903
  }
14833
14904
 
14905
+ /**
14906
+ * Description: 更新订单信息
14907
+ * Summary: 更新订单信息
14908
+ */
14909
+ async updateTradeOrder(request: UpdateTradeOrderRequest): Promise<UpdateTradeOrderResponse> {
14910
+ let runtime = new $Util.RuntimeOptions({ });
14911
+ let headers : {[key: string ]: string} = { };
14912
+ return await this.updateTradeOrderEx(request, headers, runtime);
14913
+ }
14914
+
14915
+ /**
14916
+ * Description: 更新订单信息
14917
+ * Summary: 更新订单信息
14918
+ */
14919
+ async updateTradeOrderEx(request: UpdateTradeOrderRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateTradeOrderResponse> {
14920
+ Util.validateModel(request);
14921
+ return $tea.cast<UpdateTradeOrderResponse>(await this.doRequest("1.0", "antchain.ato.trade.order.update", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new UpdateTradeOrderResponse({}));
14922
+ }
14923
+
14834
14924
  /**
14835
14925
  * Description: 代扣签约创建
14836
14926
  * Summary: 代扣签约