tmc.js 0.3.34 → 0.3.35

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.
Files changed (47) hide show
  1. package/package.json +1 -1
  2. package/types/ae.d.ts +12 -0
  3. package/types/ali.d.ts +61 -0
  4. package/types/alibaba.d.ts +2583 -146
  5. package/types/alicom.d.ts +127 -1
  6. package/types/aliexpress.d.ts +153 -11
  7. package/types/alihealth.d.ts +189 -3
  8. package/types/alihouse.d.ts +169 -0
  9. package/types/alios.d.ts +45 -0
  10. package/types/alipay.d.ts +479 -0
  11. package/types/alisports.d.ts +18 -0
  12. package/types/alitrip.d.ts +264 -16
  13. package/types/aliyun.d.ts +94 -1
  14. package/types/alsc.d.ts +329 -0
  15. package/types/ascp.d.ts +26 -1
  16. package/types/banma.d.ts +1 -1
  17. package/types/cainiao.d.ts +979 -2
  18. package/types/damai.d.ts +102 -8
  19. package/types/ele.d.ts +10 -0
  20. package/types/eleme.d.ts +71 -0
  21. package/types/fliggy.d.ts +95 -5
  22. package/types/fuwu.d.ts +2 -2
  23. package/types/gaode.d.ts +16 -0
  24. package/types/genie.d.ts +22 -0
  25. package/types/global.d.ts +22 -0
  26. package/types/gov.d.ts +160 -2
  27. package/types/icbu.d.ts +124 -0
  28. package/types/idle.d.ts +74 -16
  29. package/types/index.d.ts +3406 -14
  30. package/types/intime.d.ts +37 -0
  31. package/types/jae.d.ts +1 -1
  32. package/types/jym.d.ts +12 -0
  33. package/types/lst.d.ts +2 -2
  34. package/types/message.in.d.ts +3450 -77
  35. package/types/message.out.d.ts +1107 -26
  36. package/types/niaochao.d.ts +3 -3
  37. package/types/taobao.d.ts +3685 -239
  38. package/types/taotao.d.ts +44 -0
  39. package/types/tmall.d.ts +893 -36
  40. package/types/tobao.d.ts +26 -0
  41. package/types/trip.d.ts +6 -6
  42. package/types/umeng.d.ts +10 -0
  43. package/types/wdk.d.ts +30 -4
  44. package/types/xhotel.d.ts +16 -0
  45. package/types/xianyu.d.ts +33 -9
  46. package/types/youku.d.ts +18 -1
  47. package/types/yunos.d.ts +27 -2
@@ -1,6 +1,6 @@
1
1
  /** 自动驾驶API */
2
2
  declare namespace Alibaba.Adlab {
3
- /** 自动驾驶iot设备消息 */
3
+ /** {@link https://open.taobao.com/tmc.htm?docId=2015&docType=9 自动驾驶iot设备消息} */
4
4
  interface IotDevice {
5
5
  /** iot设备key */
6
6
  iot_device_key: string;
@@ -8,7 +8,7 @@ declare namespace Alibaba.Adlab {
8
8
  udid: string;
9
9
  }
10
10
 
11
- /** 包裹eta更新 */
11
+ /** {@link https://open.taobao.com/tmc.htm?docId=2010&docType=9 包裹eta更新} */
12
12
  interface OrderItemEtaUpdate {
13
13
  /** 预计到达时间 */
14
14
  eta_arrival_time: string;
@@ -20,7 +20,7 @@ declare namespace Alibaba.Adlab {
20
20
  order_sn: string;
21
21
  }
22
22
 
23
- /** 包裹配送状态更新 */
23
+ /** {@link https://open.taobao.com/tmc.htm?docId=2002&docType=9 包裹配送状态更新} */
24
24
  interface OrderItemStatus {
25
25
  /** 消息id */
26
26
  message_id: string;
@@ -31,11 +31,212 @@ declare namespace Alibaba.Adlab {
31
31
  /** 包裹状态 */
32
32
  status: string;
33
33
  }
34
+
35
+ /** {@link https://open.taobao.com/tmc.htm?docId=2013&docType=9 包裹入库消息} */
36
+ interface PackageCheckIn {
37
+ /** 快递公司名 */
38
+ cp_name: string;
39
+ /** 运单号 */
40
+ mail_no: string;
41
+ /** 消息id */
42
+ message_id: string;
43
+ }
44
+ }
45
+
46
+ /** 蜂巢 */
47
+ declare namespace Alibaba.Agro {
48
+ /** {@link https://open.taobao.com/tmc.htm?docId=1705&docType=9 分销商同意或者拒绝调价} */
49
+ interface AccountConfirmPrice {
50
+ /** 蜂巢id */
51
+ account_id: number;
52
+ /** 消息业务id */
53
+ data_id: string;
54
+ /** 是否同意,y同意,n不同意 */
55
+ price_confirm_status: string;
56
+ /** 产品id */
57
+ product_id: number;
58
+ }
59
+
60
+ /** {@link https://open.taobao.com/tmc.htm?docId=1697&docType=9 商品调价通知isv} */
61
+ interface ItemPriceChange {
62
+ /** 调价后的价格 */
63
+ adjust_price: number;
64
+ /** 消息唯一标志 */
65
+ data_id: string;
66
+ /** 价格生效时间 */
67
+ executive_time: Date | number | string;
68
+ /** 原始价格 */
69
+ origin_price: number;
70
+ /** 蜂巢产品id */
71
+ product_id: number;
72
+ }
73
+
74
+ /** {@link https://open.taobao.com/tmc.htm?docId=1679&docType=9 子物流单状态变化小} */
75
+ interface LogisticsOrderStatusChange {
76
+ /** 蜂巢id */
77
+ account_id: number;
78
+ /** 物流公司编码 */
79
+ logistics_company_code: string;
80
+ /** 物流公司名字 */
81
+ logistics_company_name: string;
82
+ /** 运单号,多个以英文逗号分隔 */
83
+ logistics_no?: string;
84
+ /** 商家内部主订单号 */
85
+ out_sale_order_no: string;
86
+ /** 商家内部子订单号 */
87
+ out_sub_sale_order_no: string;
88
+ /** 备注 */
89
+ remark?: string;
90
+ /** 订单发货状态值, (10, "未发货"), (20, "已发货"), (30, "已收货"), */
91
+ status: number;
92
+ /** 状态变更时间 */
93
+ update_time?: Date | number | string;
94
+ }
95
+
96
+ /** {@link https://open.taobao.com/tmc.htm?docId=1706&docType=9 取消铺货产品下架} */
97
+ interface UnpunishProduct {
98
+ /** 消息业务id */
99
+ data_id: string;
100
+ /** 产品id */
101
+ product_id: string;
102
+ }
103
+ }
104
+
105
+ /** 无人车 */
106
+ declare namespace Alibaba.Ailabs {
107
+ /** {@link https://open.taobao.com/tmc.htm?docId=1325&docType=9 无人车消息推送} */
108
+ interface AutocarNofity {
109
+ /** 车辆id */
110
+ car_id?: string;
111
+ /** 消息内容 */
112
+ content: string;
113
+ /** 消息id */
114
+ msg_id: string;
115
+ /** 消息类型 */
116
+ type: string;
117
+ }
118
+ }
119
+
120
+ /** 精灵IOT */
121
+ declare namespace Alibaba.Ailbas {
122
+ /** {@link https://open.taobao.com/tmc.htm?docId=1766&docType=9 精灵iot消息} */
123
+ interface IotMessage {
124
+ /** 设备id */
125
+ device_id: string;
126
+ /** iot设备事件与属性 */
127
+ payload: string;
128
+ /** 产品key */
129
+ product_key: string;
130
+ /** 时间戳 */
131
+ timestamp: string;
132
+ /** 消息id */
133
+ trace_id: string;
134
+ /** 设备类型 */
135
+ type: string;
136
+ /** 用户id */
137
+ user_id: string;
138
+ /** 音箱id */
139
+ uuid?: string;
140
+ }
141
+ }
142
+
143
+ /** AIS&供应商数据对接 */
144
+ declare namespace Alibaba.Ais {
145
+ /** {@link https://open.taobao.com/tmc.htm?docId=1217&docType=9 部件实际发货通知} */
146
+ interface SupplierComponentActualDepartureNote {
147
+ /** 实际发货通知单号(全局唯一),EAN开头,后面10位数字 */
148
+ actual_departure_note_number: string;
149
+ }
150
+
151
+ /** {@link https://open.taobao.com/tmc.htm?docId=1372&docType=9 部件扣料计划反馈通知} */
152
+ interface SupplierComponentDeductionPlanNote {
153
+ /** 指令号 */
154
+ inventory_directive: string;
155
+ /** 部件扣料类型20,目前只有20 */
156
+ inventory_type: string;
157
+ }
158
+
159
+ /** {@link https://open.taobao.com/tmc.htm?docId=1216&docType=9 部件预计到货通知-ETA} */
160
+ interface SupplierComponentEstimatedArrivalNote {
161
+ /** ETA变更 0:新反馈ETA 1:ETA量变更 */
162
+ estimated_arrival_note_change: string;
163
+ /** 预计到货发货通知单号(全局唯一),EAN开头,后面10位数字 */
164
+ estimated_arrival_note_number: string;
165
+ }
166
+
167
+ /** {@link https://open.taobao.com/tmc.htm?docId=1331&docType=9 订阅整机库存反馈通知} */
168
+ interface SupplierComponentInventoryNote {
169
+ /** 库存反馈指令 */
170
+ inventory_directive: string;
171
+ /** 库存类型:(1代表整机) */
172
+ inventory_type: string;
173
+ }
174
+
175
+ /** {@link https://open.taobao.com/tmc.htm?docId=1233&docType=9 订阅整机生产指令通知} */
176
+ interface SupplierComponentManufactureOrderNote {
177
+ /** 指令类型 1:预发指令;2:正式指令 */
178
+ directive_type: string;
179
+ /** 生产指令 */
180
+ manufacturing_directive: string;
181
+ }
182
+
183
+ /** {@link https://open.taobao.com/tmc.htm?docId=1218&docType=9 订阅MPN/PN查询通知} */
184
+ interface SupplierComponentMpnPnNote {
185
+ /** 采购品牌 Intel、Samsung */
186
+ brand: string;
187
+ /** MPN */
188
+ mpn: string;
189
+ /** 规格 */
190
+ spec: string;
191
+ }
192
+
193
+ /** {@link https://open.taobao.com/tmc.htm?docId=1202&docType=9 阿里向整机供应商下发部件采购指令} */
194
+ interface SupplierComponentPurchaseDirective {
195
+ /** 采购品牌 intel、samsung */
196
+ brand: string;
197
+ /** 指令发送日期、精确到毫秒 */
198
+ create_time: Date | number | string;
199
+ /** 指令变更 0:指令新建 1:指令量变更 */
200
+ directive_change: string;
201
+ /** 指令号(消息数据唯一标识) */
202
+ directive_number: string;
203
+ /** 采购方式 1:B&S;2:AVAP */
204
+ purchase_way: string;
205
+ }
206
+ }
207
+
208
+ /** 蚂蚁安全 */
209
+ declare namespace Alibaba.Aliabs {
210
+ /** {@link https://open.taobao.com/tmc.htm?docId=1324&docType=9 ailabs蚂蚁安全异步消息} */
211
+ interface TmallSign {
212
+ /** 业务的操作场景 */
213
+ "30": string;
214
+ /** 不同业务自定义的流水号 */
215
+ "112": string;
216
+ /** 业务创建的来源 */
217
+ "134": string;
218
+ /** 蚂蚁SDK获取参数 */
219
+ apdid_token: string;
220
+ /** 业务场景定义 */
221
+ business_code: string;
222
+ /** databus业务流配置中的client_ip */
223
+ client_ip: string;
224
+ /** 业务场景定义 */
225
+ event_code: string;
226
+ /** databus业务流配置中的serverid */
227
+ server_id: string;
228
+ /** 蚂蚁SDK获取参数 */
229
+ umid_token: string;
230
+ /** 用户ID */
231
+ user_id: string;
232
+ /** 本期代扣签约的有效期 */
233
+ withhold_sign_period: string;
234
+ }
34
235
  }
35
236
 
36
237
  /** 阿里通信 */
37
238
  declare namespace Alibaba.Alicom {
38
- /** 阿里通信流量统一营销赠品发放通知 */
239
+ /** {@link https://open.taobao.com/tmc.htm?docId=1155&docType=9 阿里通信流量统一营销赠品发放通知} */
39
240
  interface FlowGiftSendNotify {
40
241
  /** 赠品面额(单位:分) */
41
242
  gift_amount: number;
@@ -50,7 +251,7 @@ declare namespace Alibaba.Alicom {
50
251
 
51
252
  /** 阿里健康追溯码 */
52
253
  declare namespace Alibaba.Alihealth {
53
- /** 单据处理状态通知 */
254
+ /** {@link https://open.taobao.com/tmc.htm?docId=1977&docType=9 单据处理状态通知} */
54
255
  interface BillProcessStatusNotify {
55
256
  /** 单据号 */
56
257
  bill_code: string;
@@ -72,7 +273,7 @@ declare namespace Alibaba.Alihealth {
72
273
  store_inout_seq_no: string;
73
274
  }
74
275
 
75
- /** 医生、服务相关消息 */
276
+ /** {@link https://open.taobao.com/tmc.htm?docId=1806&docType=9 医生、服务相关消息} */
76
277
  interface DoctorMessage {
77
278
  /** 医生id */
78
279
  doctor_id?: string;
@@ -86,7 +287,71 @@ declare namespace Alibaba.Alihealth {
86
287
  reason?: string;
87
288
  }
88
289
 
89
- /** 中台订单状态变化推送 */
290
+ /** {@link https://open.taobao.com/tmc.htm?docId=1467&docType=9 售药机营业、歇业消息} */
291
+ interface MvmBizStatusChange {
292
+ /** ERP店铺ID */
293
+ erp_shop_id: string;
294
+ /** 0:营业 / 1:歇业 */
295
+ status: number;
296
+ }
297
+
298
+ /** {@link https://open.taobao.com/tmc.htm?docId=1472&docType=9 售药机商品库存切换} */
299
+ interface MvmInventorySwitch {
300
+ /** ERPID */
301
+ erp_shop_id: string;
302
+ /** 库存状态 */
303
+ status: string;
304
+ }
305
+
306
+ /** {@link https://open.taobao.com/tmc.htm?docId=1474&docType=9 接单/拒单/取货成功/取消订单消息通知} */
307
+ interface MvmOrderNotify {
308
+ /** 渠道ID(1-饿百 2-手淘 3-京东 4-美团 5-售药机) */
309
+ channel_id: number;
310
+ /** 渠道订单号 */
311
+ channel_order_id: string;
312
+ /** 拒单原因(按照渠道要求) */
313
+ refuse_reason?: string;
314
+ /** 消息类型 1-接单 2-拒单 3-取货成功 4-取消订单 */
315
+ type: number;
316
+ }
317
+
318
+ /** {@link https://open.taobao.com/tmc.htm?docId=1469&docType=9 售药机线下订单生成通知} */
319
+ interface MvmOrderOfflineSync {
320
+ /** 渠道id,一般为5-售药机 */
321
+ channel_id: number;
322
+ /** 订单在渠道方的订单id */
323
+ channel_order_id: string;
324
+ /** 中台订单ID */
325
+ nrmop_order_id?: number;
326
+ /** 订单状态 */
327
+ order_status: number;
328
+ }
329
+
330
+ /** {@link https://open.taobao.com/tmc.htm?docId=1468&docType=9 售药机绑定、解绑} */
331
+ interface MvmShopBindStatusChange {
332
+ /** 售药机地址 */
333
+ device_address?: string;
334
+ /** 设备id */
335
+ device_id: number;
336
+ /** 售药机营业结束时间 */
337
+ end_time?: string;
338
+ /** ERP店铺id */
339
+ erp_shop_id: string;
340
+ /** 售药机是否处理线上订单(0 -处理 1-不处理;default=0) */
341
+ mvn_deal_status?: number;
342
+ /** 售药机营业开始时间 */
343
+ start_time?: string;
344
+ }
345
+
346
+ /** {@link https://open.taobao.com/tmc.htm?docId=1476&docType=9 售药机商品上下架} */
347
+ interface MvmUpdateInventory {
348
+ /** ErpShopID */
349
+ erp_shop_id: string;
350
+ /** 更新商品信息 */
351
+ nrmop_item: string;
352
+ }
353
+
354
+ /** {@link https://open.taobao.com/tmc.htm?docId=1374&docType=9 中台订单状态变化推送} */
90
355
  interface NrmopOrderStatusChange {
91
356
  /** 渠道类型:o2o-手淘O2O;ele-饿了么;baidu-百度外卖;meituan-美团;jd-京东;mvm-售药机 */
92
357
  biz_type: string;
@@ -104,7 +369,7 @@ declare namespace Alibaba.Alihealth {
104
369
  refund_status: string;
105
370
  }
106
371
 
107
- /** 平台通知三方机构"订单状态变更" */
372
+ /** {@link https://open.taobao.com/tmc.htm?docId=1795&docType=9 平台通知三方机构"订单状态变更"} */
108
373
  interface OrderStatusChange {
109
374
  /** 问诊对话结束原因 */
110
375
  dialog_close_reason?: string;
@@ -126,7 +391,17 @@ declare namespace Alibaba.Alihealth {
126
391
  time?: Date | number | string;
127
392
  }
128
393
 
129
- /** O2O订单状态变更通知 */
394
+ /** {@link https://open.taobao.com/tmc.htm?docId=1528&docType=9 处方平台处方核销消息} */
395
+ interface PrescriptionConfirm {
396
+ /** 消息id,用于识别一条独立消息 */
397
+ message_id: string;
398
+ /** 处方id */
399
+ rx_id: string;
400
+ /** 处方状态 */
401
+ status: number;
402
+ }
403
+
404
+ /** {@link https://open.taobao.com/tmc.htm?docId=1466&docType=9 O2O订单状态变更通知} */
130
405
  interface TradeOrderStatusChange {
131
406
  /** O2O订单id。 */
132
407
  order_id: number;
@@ -134,7 +409,7 @@ declare namespace Alibaba.Alihealth {
134
409
  order_status: number;
135
410
  }
136
411
 
137
- /** 疫苗交易预约信息变动 */
412
+ /** {@link https://open.taobao.com/tmc.htm?docId=2278&docType=9 疫苗交易预约信息变动} */
138
413
  interface TradeVaccineSubscribeChange {
139
414
  /** 业务订单号 */
140
415
  biz_order_id: string;
@@ -148,7 +423,7 @@ declare namespace Alibaba.Alihealth {
148
423
  subscribe_id: string;
149
424
  }
150
425
 
151
- /** 用户取消订阅缺苗登记同步isv */
426
+ /** {@link https://open.taobao.com/tmc.htm?docId=2449&docType=9 用户取消订阅缺苗登记同步isv} */
152
427
  interface VcRegisterCancel {
153
428
  /** 消息id */
154
429
  message_id: string;
@@ -161,7 +436,7 @@ declare namespace Alibaba.Alihealth {
161
436
 
162
437
  /** 阿里物联 */
163
438
  declare namespace Alibaba.Alink {
164
- /** 设备数据推送 */
439
+ /** {@link https://open.taobao.com/tmc.htm?docId=993&docType=9 设备数据推送} */
165
440
  interface DeviceDataPush {
166
441
  /** 设备数据 */
167
442
  device_data?: string;
@@ -177,7 +452,7 @@ declare namespace Alibaba.Alink {
177
452
  sn?: string;
178
453
  }
179
454
 
180
- /** 设备报警消息 */
455
+ /** {@link https://open.taobao.com/tmc.htm?docId=958&docType=9 设备报警消息} */
181
456
  interface DeviceMessage {
182
457
  /** 消息上下文 */
183
458
  context: string;
@@ -192,7 +467,65 @@ declare namespace Alibaba.Alink {
192
467
 
193
468
  /** 阿里通信 */
194
469
  declare namespace Alibaba.Aliqin {
195
- /** 数字短信模板审批回执 */
470
+ /** {@link https://open.taobao.com/tmc.htm?docId=877&docType=9 axb通话记录} */
471
+ interface AxbCallRecord {
472
+ /** 呼叫ID */
473
+ call_id?: string;
474
+ /** 拨打时间点 */
475
+ call_time?: Date | number | string;
476
+ /** 呼叫类型(0:主叫;1:被叫;2:短信发送;3:短信接收) */
477
+ call_type?: number;
478
+ /** id */
479
+ id: number;
480
+ /** 原始呼叫号码 */
481
+ origin_no?: string;
482
+ /** 商户Key */
483
+ partner_key: string;
484
+ /** 对端号码 */
485
+ peer_no: string;
486
+ /** 真实号码 */
487
+ phone_no: string;
488
+ /** 隐私号码 */
489
+ secret_no: string;
490
+ /** 订购ID */
491
+ sub_id?: number;
492
+ }
493
+
494
+ /** {@link https://open.taobao.com/tmc.htm?docId=885&docType=9 通话结束时产生的通话记录} */
495
+ interface AxbCallRelease {
496
+ /** 运营商通话标识id */
497
+ call_id?: string;
498
+ /** 拨打时间 */
499
+ call_time?: Date | number | string;
500
+ /** 呼叫类型(0:主叫;1:被叫;2:短信发送;3:短信接收) */
501
+ call_type?: number;
502
+ /** id */
503
+ id: number;
504
+ /** 原始呼叫号码 */
505
+ origin_no?: string;
506
+ /** 商户Key */
507
+ partner_key: string;
508
+ /** 对端号码B */
509
+ peer_no: string;
510
+ /** 真实号码A */
511
+ phone_no: string;
512
+ /** 释放原因: 1:未分配的号码 2:无路由到指定的转接网 3:无路由到目的地 4:发送专用信息音 16:正常的呼叫拆线 17:用户忙 18:用户未响应 19:用户未应答 20:用户缺席 21:呼叫拒收 22:号码改变 27:目的地不可达 28:无效的号码格式(地址不全) 29:性能拒绝 31:正常—未指定 34: 无电路/通路可用 42: 交换设备拥塞 50:所请求的性能未预定 53:CUG中限制去呼叫 55: CUG中限制来呼叫 57:承载能力无权 58:承载能力目前不可用 65:承载能力未实现 69:所请求的性能未实现 87:被叫用户不是CUG的成员 88:不兼容的目的地 90:不存在的CUG 91:无效的转接网选择 95:无效的消息,未指定 97:消息类型不存在或未实现 99:参数不存在或未实现 102:定时器终了时恢复 103:参数不存在或未实现—传递 110:消息带有未被识别的参数—舍弃 111:协议错误,未指定 127:互通,未指定 */
513
+ release_cause?: number;
514
+ /** 释放方向: 0:平台释放 1:主叫释放, 2:被叫释放 */
515
+ release_dir?: number;
516
+ /** 通话结束时间 */
517
+ release_time?: Date | number | string;
518
+ /** 振铃时间 */
519
+ ring_time?: Date | number | string;
520
+ /** 隐私号码X */
521
+ secret_no: string;
522
+ /** 通话开始时间 */
523
+ start_time?: Date | number | string;
524
+ /** 订单号 */
525
+ sub_id?: number;
526
+ }
527
+
528
+ /** {@link https://open.taobao.com/tmc.htm?docId=1434&docType=9 数字短信模板审批回执} */
196
529
  interface DigitalSmsTemplateDR {
197
530
  /** 审批状态,1:审批通过;2:审批不通过 */
198
531
  approval_status: number;
@@ -202,7 +535,7 @@ declare namespace Alibaba.Aliqin {
202
535
  vendor: string;
203
536
  }
204
537
 
205
- /** 物联网卡激活通知 */
538
+ /** {@link https://open.taobao.com/tmc.htm?docId=970&docType=9 物联网卡激活通知} */
206
539
  interface FcActiveIotcard {
207
540
  /** 激活类型:1,实名后激活;2,首话单激活; */
208
541
  active_type: string;
@@ -220,7 +553,7 @@ declare namespace Alibaba.Aliqin {
220
553
  phone: string;
221
554
  }
222
555
 
223
- /** 语音呼叫结果推送 */
556
+ /** {@link https://open.taobao.com/tmc.htm?docId=730&docType=9 语音呼叫结果推送} */
224
557
  interface FcCallCdr {
225
558
  /** 任务主键 */
226
559
  biz_id: string;
@@ -240,7 +573,7 @@ declare namespace Alibaba.Aliqin {
240
573
  status_msg?: string;
241
574
  }
242
575
 
243
- /** 录音回执 */
576
+ /** {@link https://open.taobao.com/tmc.htm?docId=1156&docType=9 录音回执} */
244
577
  interface FcCallRecord {
245
578
  /** 呼叫唯一ID */
246
579
  biz_id: string;
@@ -256,7 +589,23 @@ declare namespace Alibaba.Aliqin {
256
589
  status_code: string;
257
590
  }
258
591
 
259
- /** 流量直充状态报告 */
592
+ /** {@link https://open.taobao.com/tmc.htm?docId=873&docType=9 编码发送短信上行消息} */
593
+ interface FcCodeSmsUp {
594
+ /** 短信内容 */
595
+ content?: string;
596
+ /** 扩展码 */
597
+ dest_code: string;
598
+ /** 时间 */
599
+ sender_time: string;
600
+ /** 唯一ID */
601
+ sms_seq: string;
602
+ /** 编码类型 */
603
+ type: string;
604
+ /** 编码值 */
605
+ value: string;
606
+ }
607
+
608
+ /** {@link https://open.taobao.com/tmc.htm?docId=852&docType=9 流量直充状态报告} */
260
609
  interface FcFlowUp {
261
610
  /** 明细id */
262
611
  data_id: string;
@@ -272,7 +621,7 @@ declare namespace Alibaba.Aliqin {
272
621
  status_code: string;
273
622
  }
274
623
 
275
- /** 短消息发送结果报告 */
624
+ /** {@link https://open.taobao.com/tmc.htm?docId=738&docType=9 短消息发送结果报告} */
276
625
  interface FcSmsDR {
277
626
  /** 任务主键 */
278
627
  biz_id: string;
@@ -290,7 +639,7 @@ declare namespace Alibaba.Aliqin {
290
639
  state: string;
291
640
  }
292
641
 
293
- /** 短信上行 */
642
+ /** {@link https://open.taobao.com/tmc.htm?docId=820&docType=9 短信上行} */
294
643
  interface FcSmsUp {
295
644
  /** 短信内容 */
296
645
  content?: string;
@@ -306,7 +655,7 @@ declare namespace Alibaba.Aliqin {
306
655
  sms_seq: string;
307
656
  }
308
657
 
309
- /** 语音呼叫中间状态消息 */
658
+ /** {@link https://open.taobao.com/tmc.htm?docId=1049&docType=9 语音呼叫中间状态消息} */
310
659
  interface FcTmpStatus {
311
660
  /** 任务主键 */
312
661
  biz_id: string;
@@ -316,7 +665,7 @@ declare namespace Alibaba.Aliqin {
316
665
  status_time: string;
317
666
  }
318
667
 
319
- /** 流量直充 */
668
+ /** {@link https://open.taobao.com/tmc.htm?docId=729&docType=9 流量直充} */
320
669
  interface FlowDirectCharge {
321
670
  /** 渠道ID */
322
671
  channel_id: string;
@@ -328,7 +677,17 @@ declare namespace Alibaba.Aliqin {
328
677
  status: string;
329
678
  }
330
679
 
331
- /** 实名认证结果通知 */
680
+ /** {@link https://open.taobao.com/tmc.htm?docId=1096&docType=9 物联网卡剩余流量提醒} */
681
+ interface IotCurFlowLimitNotice {
682
+ /** 物联卡号信息 */
683
+ iccid: string;
684
+ /** 触发通知时剩余流量等级 */
685
+ limit_leve: string;
686
+ /** 消息流水号 */
687
+ msgid: string;
688
+ }
689
+
690
+ /** {@link https://open.taobao.com/tmc.htm?docId=1074&docType=9 实名认证结果通知} */
332
691
  interface IotPersonalConfirmNotice {
333
692
  /** 认证结果(Pass 通过 Reject 拒绝) */
334
693
  auth_result: string;
@@ -338,7 +697,7 @@ declare namespace Alibaba.Aliqin {
338
697
  msgid: string;
339
698
  }
340
699
 
341
- /** 物联网停机消息通知 */
700
+ /** {@link https://open.taobao.com/tmc.htm?docId=1091&docType=9 物联网停机消息通知} */
342
701
  interface IotStatusNotice {
343
702
  /** 卡号编码 */
344
703
  iccid: string;
@@ -350,7 +709,57 @@ declare namespace Alibaba.Aliqin {
350
709
  oper_type: string;
351
710
  }
352
711
 
353
- /** 语音呼叫结果推送 */
712
+ /** {@link https://open.taobao.com/tmc.htm?docId=880&docType=9 Miua通话记录Top推送} */
713
+ interface MiuaCallRecord {
714
+ /** 运营商通话ID */
715
+ call_id?: string;
716
+ /** 呼叫来源类型( 0:保留; 1:未获取到ip; 2:获取到ip,无法判断ip类别; 3:端局ip; 4:关口局国际ip; 5:互联互通关口局ip; 6:运营商其他网元ip ;) */
717
+ call_source_class?: number;
718
+ /** 呼叫来源IP */
719
+ call_source_ip?: string;
720
+ /** 呼叫来源检查结果( 0:无法判断呼叫来源 1:正常的呼叫 2:异常的呼叫 ) */
721
+ call_source_result?: number;
722
+ /** 拨打时间点 */
723
+ call_time: Date | number | string;
724
+ /** 市 */
725
+ city?: string;
726
+ /** 区 */
727
+ district?: string;
728
+ /** DTMF语音码 */
729
+ dtmf_code?: string;
730
+ /** DTMF结果 */
731
+ dtmf_result?: string;
732
+ /** id */
733
+ id: number;
734
+ /** 业务方外键,验证结果会回传 */
735
+ out_id?: string;
736
+ /** 商户Key */
737
+ partner_key: string;
738
+ /** 对端号码(非真实) */
739
+ peer_no: string;
740
+ /** 真实号码 */
741
+ phone_no: string;
742
+ /** 真实号码状态 (0:空闲;1:忙;2:空号;3:关机;4:停机;5:异常) */
743
+ phone_state?: number;
744
+ /** 省 */
745
+ province?: string;
746
+ /** 虚拟号码(小号) */
747
+ secret_no: string;
748
+ /** 街道 */
749
+ street?: string;
750
+ /** 订购关系 */
751
+ sub_id?: number;
752
+ }
753
+
754
+ /** {@link https://open.taobao.com/tmc.htm?docId=890&docType=9 平台监控记录} */
755
+ interface PlatformMonitorRecord {
756
+ /** 小号平台可用 */
757
+ available: boolean;
758
+ /** 推送毫秒时间戳 */
759
+ ts_in_milliseconds: number;
760
+ }
761
+
762
+ /** {@link https://open.taobao.com/tmc.htm?docId=889&docType=9 语音呼叫结果推送} */
354
763
  interface TaFcCallCdr {
355
764
  /** 任务主键 */
356
765
  readonly biz_id: string;
@@ -370,7 +779,7 @@ declare namespace Alibaba.Aliqin {
370
779
  status_msg?: string;
371
780
  }
372
781
 
373
- /** 聚石塔短消息发送结果报告 */
782
+ /** {@link https://open.taobao.com/tmc.htm?docId=808&docType=9 聚石塔短消息发送结果报告} */
374
783
  interface TaFcSmsDR {
375
784
  /** 任务主键 */
376
785
  biz_id: string;
@@ -389,9 +798,218 @@ declare namespace Alibaba.Aliqin {
389
798
  }
390
799
  }
391
800
 
801
+ /** 阿里体育 */
802
+ declare namespace Alibaba.Alisports {
803
+ /** {@link https://open.taobao.com/tmc.htm?docId=1608&docType=9 钓鱼测试消息} */
804
+ interface FishingTest {
805
+ /** id */
806
+ id: number;
807
+ /** 状态 2:成功, 1:失败 */
808
+ status: number;
809
+ }
810
+ }
811
+
812
+ /** 集采 */
813
+ declare namespace Alibaba.Ascpchannelmanagermentmsg {
814
+ /** {@link https://open.taobao.com/tmc.htm?docId=1373&docType=9 集采订单审核通知} */
815
+ interface OrderAudit {
816
+ /** 商品列表 */
817
+ audit_item_infos?: string[];
818
+ /** 渠道编码 */
819
+ channel_code: string;
820
+ /** 外部订单号 */
821
+ external_order_no: string;
822
+ /** 审核是否通过 */
823
+ pass: boolean;
824
+ }
825
+
826
+ /** {@link https://open.taobao.com/tmc.htm?docId=1382&docType=9 集采订单关闭通知} */
827
+ interface OrderClose {
828
+ /** 渠道编码 */
829
+ channel_code: string;
830
+ /** 外部订单号 */
831
+ external_order_no: string;
832
+ /** 渠道单号 */
833
+ main_channel_purchase_order_no: string;
834
+ }
835
+
836
+ /** {@link https://open.taobao.com/tmc.htm?docId=1376&docType=9 集采订单发货通知} */
837
+ interface OrderDeliver {
838
+ /** 渠道编码 */
839
+ channel_code: string;
840
+ /** 发货商品列表json串 */
841
+ consigned_item_infos: string[];
842
+ /** 签收单编号 */
843
+ delivery_receipt_no: string;
844
+ /** 外部订单号 */
845
+ external_order_no: string;
846
+ }
847
+ }
848
+
849
+ /** TMI付款及银行支行主数据 */
850
+ declare namespace Alibaba.Cfo {
851
+ /** {@link https://open.taobao.com/tmc.htm?docId=2101&docType=9 账号流水通知消息} */
852
+ interface AccountFlowNotify {
853
+ /** 账号 */
854
+ account_no: string;
855
+ /** 专属账号 */
856
+ account_no_ex?: string;
857
+ /** 接收方应用code */
858
+ app_code: string;
859
+ /** 余额 */
860
+ balance?: string;
861
+ /** 银行编码 */
862
+ bank_code?: string;
863
+ /** 业务名称 */
864
+ biz_name?: string;
865
+ /** 业务参考号 */
866
+ biz_ref_no?: string;
867
+ /** 业务摘要 */
868
+ biz_summary?: string;
869
+ /** 手续费金额 */
870
+ charges_amount?: string;
871
+ /** 手续费币种 */
872
+ charges_currency_type?: string;
873
+ /** 转入金额(收入) */
874
+ credit_amount?: string;
875
+ /** 币种 */
876
+ currency_type: string;
877
+ /** 转出金额(支出) */
878
+ debit_amount?: string;
879
+ /** 跨币种转账时的汇率 */
880
+ exchange_rate?: string;
881
+ /** 交易对手名称 */
882
+ other_side_account_name?: string;
883
+ /** 交易对手账号 */
884
+ other_side_account_no?: string;
885
+ /** 对方账号币种 */
886
+ other_side_currency_type?: string;
887
+ /** 其它摘要 */
888
+ other_summary?: string;
889
+ /** 支付金额 */
890
+ payment_amount?: string;
891
+ /** 支付币种 */
892
+ payment_currency_type?: string;
893
+ /** 流程实例号 */
894
+ process_no?: string;
895
+ /** 用途 */
896
+ purpose?: string;
897
+ /** 摘要 */
898
+ summary?: string;
899
+ /** 交易同步时间时间戳 */
900
+ sync_date: number;
901
+ /** 交易发生时间时间戳 */
902
+ trade_date: number;
903
+ /** 交易流水号 */
904
+ trade_no?: string;
905
+ /** 交易类型 */
906
+ trade_type?: string;
907
+ /** 唯一编码 */
908
+ unique_no: string;
909
+ }
910
+ }
911
+
912
+ /** 券开放消息权限包 */
913
+ declare namespace Alibaba.Coupon {
914
+ /** {@link https://open.taobao.com/tmc.htm?docId=1378&docType=9 用户领取券消息通知} */
915
+ interface OpenCouponDraw {
916
+ /** 领券来源导购 */
917
+ guider_id?: string;
918
+ /** 领券用户 OPEN ID */
919
+ open_buyer_id: number;
920
+ /** 领券来源门店 */
921
+ store_id?: string;
922
+ /** 券模板 */
923
+ template_code: string;
924
+ /** 被领取的券模板 code 码 */
925
+ template_code_instance: string;
926
+ /** 用于消息追踪 */
927
+ trace_id: string;
928
+ /** 领券用户 UNI ID */
929
+ uni_buyer_id: number;
930
+ }
931
+ }
932
+
933
+ /** ICBU-CRM智能机器人外呼沟通 */
934
+ declare namespace Alibaba.Crm {
935
+ /** {@link https://open.taobao.com/tmc.htm?docId=2479&docType=9 外呼名单消息发送} */
936
+ interface OutboundInfoMessage {
937
+ /** 公司名称 */
938
+ company_name: string;
939
+ /** 联系人 */
940
+ contact: string;
941
+ /** { "address":"", "model_name":"测试外呼小i", "model_id":11203, "table_name":"et_model_output_11203", "result_count":4, "partition_info":"ds='20231102'" } */
942
+ ext_map: string;
943
+ /** 424324242 */
944
+ global_id: string;
945
+ /** 13721766721 */
946
+ mobile_phone: string;
947
+ /** 小i_23232 */
948
+ xiaoi_task_id: string;
949
+ }
950
+ }
951
+
952
+ /** - */
953
+ declare namespace Alibaba.Crowdsourcing {
954
+ /** {@link https://open.taobao.com/tmc.htm?docId=2165&docType=9 素材生成通知} */
955
+ interface Material {
956
+ /** 企业id */
957
+ enterpriseid?: string;
958
+ /** 商品id */
959
+ item_id?: string;
960
+ /** skuid */
961
+ sku_id?: string;
962
+ /** 完成状态 */
963
+ status?: string;
964
+ }
965
+ }
966
+
967
+ /** 阿里楼盘 */
968
+ declare namespace Alibaba.Decoration {
969
+ /** {@link https://open.taobao.com/tmc.htm?docId=2014&docType=9 AI设计方案状态变更通知} */
970
+ interface AidesignFinish {
971
+ /** 1:成功 2:失败 */
972
+ status: number;
973
+ /** 提交生成AI设计方案的任务的唯一id */
974
+ unique_task_id: string;
975
+ }
976
+
977
+ /** {@link https://open.taobao.com/tmc.htm?docId=2279&docType=9 生成户型图消息} */
978
+ interface ApartmentExport {
979
+ /** 方案id */
980
+ design_id: string;
981
+ /** 状态 1成功 2失败 */
982
+ status: number;
983
+ }
984
+
985
+ /** {@link https://open.taobao.com/tmc.htm?docId=2285&docType=9 达摩院户型图消息推送} */
986
+ interface DamoStatusChange {
987
+ /** 1成功 2失败 */
988
+ status: number;
989
+ /** 任务id */
990
+ task_id: string;
991
+ }
992
+
993
+ /** {@link https://open.taobao.com/tmc.htm?docId=2275&docType=9 账号绑定消息} */
994
+ interface ExternalAccountFinish {
995
+ /** 外部账号 */
996
+ external_account_id: string;
997
+ /** 状态 1:成功 */
998
+ status: number;
999
+ }
1000
+
1001
+ /** {@link https://open.taobao.com/tmc.htm?docId=2281&docType=9 生成3d全屋漫游图后的消息} */
1002
+ interface HousethreedImage {
1003
+ /** 1成功 2失败 */
1004
+ status: number;
1005
+ /** 任务id */
1006
+ unique_task_id: string;
1007
+ }
1008
+ }
1009
+
392
1010
  /** 电子发票 */
393
1011
  declare namespace Alibaba.Einvoice {
394
- /** 发票申请单状态变更通知 */
1012
+ /** {@link https://open.taobao.com/tmc.htm?docId=1789&docType=9 发票申请单状态变更通知} */
395
1013
  interface ApplyUpdate {
396
1014
  /** 中台发票申请ID,由中台生成。字母或数字组成。 可用于查询发票申请的详情。 */
397
1015
  apply_id: string;
@@ -409,7 +1027,7 @@ declare namespace Alibaba.Einvoice {
409
1027
  success_amount: string;
410
1028
  }
411
1029
 
412
- /** 商户事件触发消息 */
1030
+ /** {@link https://open.taobao.com/tmc.htm?docId=1674&docType=9 商户事件触发消息} */
413
1031
  interface CompanyDoAction {
414
1032
  /** 事件,可选值: device_launch_query:虚拟设备发行查询; */
415
1033
  action: string;
@@ -419,7 +1037,55 @@ declare namespace Alibaba.Einvoice {
419
1037
  payee_register_no: string;
420
1038
  }
421
1039
 
422
- /** 订购单退款审核结果通知 */
1040
+ /** {@link https://open.taobao.com/tmc.htm?docId=1805&docType=9 设备绑定变化消息通知} */
1041
+ interface DeviceOperation {
1042
+ /** 税控设备ID */
1043
+ device_id: string;
1044
+ /** 工单ID(绑定时必传,解绑不传) */
1045
+ flow_id?: string;
1046
+ /** 工单类型 1:入驻工单,2:加盘工单(绑定时必传,解绑时不传) */
1047
+ flow_type?: number;
1048
+ /** 操作类型 BIND:绑定,UNBIND:解绑 */
1049
+ operation_type: string;
1050
+ /** 纳税人识别号 */
1051
+ payee_register_no: string;
1052
+ /** 业务平台Code,由中台定义 */
1053
+ platform_code: string;
1054
+ }
1055
+
1056
+ /** {@link https://open.taobao.com/tmc.htm?docId=1802&docType=9 开票能力变更通知} */
1057
+ interface MerchantAbilityUpdate {
1058
+ /** 结果类型: opened:开通,invalid:失效 */
1059
+ biz_type: string;
1060
+ /** 服务市场订单号。入驻、增购开通必填(有多个时用英文逗号","分隔) */
1061
+ order_ids?: string;
1062
+ /** 纳税人识别号 */
1063
+ payee_register_no: string;
1064
+ /** 业务平台code, 由发票中台分配 */
1065
+ platform_code: string;
1066
+ /** 业务平台商户ID/用户ID */
1067
+ platform_user_id: string;
1068
+ /** 税控产品Code, 由发票中台定义 */
1069
+ product_code?: string;
1070
+ /** 服务截止时间。开通必填 */
1071
+ serv_end_time?: string;
1072
+ /** 服务生效时间。开通必填 */
1073
+ serv_start_time?: string;
1074
+ /** 子业务类型: register_open:入驻开通 added_open:增购开通 authorize_open:授权开通 authorize_release:解除授权 renew_open:续费 */
1075
+ sub_biz_type: string;
1076
+ }
1077
+
1078
+ /** {@link https://open.taobao.com/tmc.htm?docId=1912&docType=9 订购单退款通知} */
1079
+ interface OrderRefund {
1080
+ /** 退款工单流程ID */
1081
+ flow_id: string;
1082
+ /** 服务市场订单号 */
1083
+ order_id: string;
1084
+ /** 退款原因 */
1085
+ reason?: string;
1086
+ }
1087
+
1088
+ /** {@link https://open.taobao.com/tmc.htm?docId=1892&docType=9 订购单退款审核结果通知} */
423
1089
  interface OrderRefundResult {
424
1090
  /** 退款结果: refund_agree: ISV同意退款, refund_reject:ISV拒绝退款 */
425
1091
  action: string;
@@ -433,7 +1099,7 @@ declare namespace Alibaba.Einvoice {
433
1099
  remark?: string;
434
1100
  }
435
1101
 
436
- /** 入驻工单状态变更消息 */
1102
+ /** {@link https://open.taobao.com/tmc.htm?docId=1660&docType=9 入驻工单状态变更消息} */
437
1103
  interface RegisterFlowChange {
438
1104
  /** 事件,可选值:isv_agree: 服务商接单,isv_reject: 服务商驳回工单, device_deploy: 税控设备上架部署完成,confirm_qualification: 商户确认获取电子发票资质, fill_delivery_address: 商家填写税控设备收获地址, confirm_published: 服务商回传发行完毕,user_send_device: 商家确认已发出税控设备, machine_room_received: 服务商确认已收到税控设备, refund_start: 发起退款, refund_agree: 服务商同意退款, refund_reject: 服务商拒绝退单, inv_test_start: 开始测试开票, inv_test_success: 开票结果回传:开票成功,inv_test_fail: 开票结果回传:开票失败,confirm_test_success: 确认测试开票成功proxy_sync_ca: ISV同步CA与签章信息至税控应用proxy_sync_company: ISV触发税控应用进行企业信息同步 */
439
1105
  action?: string;
@@ -447,7 +1113,7 @@ declare namespace Alibaba.Einvoice {
447
1113
  target_code?: string;
448
1114
  }
449
1115
 
450
- /** 入驻工单创建消息 */
1116
+ /** {@link https://open.taobao.com/tmc.htm?docId=1659&docType=9 入驻工单创建消息} */
451
1117
  interface RegisterFlowCreate {
452
1118
  /** 企业名称 */
453
1119
  company_name: string;
@@ -459,7 +1125,29 @@ declare namespace Alibaba.Einvoice {
459
1125
  register_id: string;
460
1126
  }
461
1127
 
462
- /** 增购税控设备触发消息 */
1128
+ /** {@link https://open.taobao.com/tmc.htm?docId=1913&docType=9 订购单续约通知} */
1129
+ interface RenewOrder {
1130
+ /** 订购时间 */
1131
+ buy_date: Date | number | string;
1132
+ /** 服务结束时间 */
1133
+ end_time: Date | number | string;
1134
+ /** 实付总金额,单位元,最多2位小数 */
1135
+ fact_total_fee: string;
1136
+ /** 订购单ID,格式:platformCode_outerId */
1137
+ flow_id: string;
1138
+ /** 当前续约订购单的服务市场订单id */
1139
+ order_id: string;
1140
+ /** 被续约订购单的服务市场订单ID */
1141
+ original_order_id: string;
1142
+ /** 商户税号 */
1143
+ payee_register_no: string;
1144
+ /** 产品Code,中台定义的税控产品Code */
1145
+ product_code: string;
1146
+ /** 服务起始时间 */
1147
+ start_time: Date | number | string;
1148
+ }
1149
+
1150
+ /** {@link https://open.taobao.com/tmc.htm?docId=1785&docType=9 增购税控设备触发消息} */
463
1151
  interface TaxDeviceOrder {
464
1152
  /** 订购商品ID */
465
1153
  article_id: string;
@@ -482,9 +1170,20 @@ declare namespace Alibaba.Einvoice {
482
1170
  }
483
1171
  }
484
1172
 
1173
+ /** ESL */
1174
+ declare namespace Alibaba.Esl {
1175
+ /** {@link https://open.taobao.com/tmc.htm?docId=1651&docType=9 给阿里云发送消息} */
1176
+ interface SendMsgAliyun {
1177
+ /** mac地址 */
1178
+ esl_mac: string;
1179
+ /** nfc_tag */
1180
+ nfc_tag_ids: string;
1181
+ }
1182
+ }
1183
+
485
1184
  /** 1688服务市场 */
486
1185
  declare namespace Alibaba.Fuwu {
487
- /** 订单支付消息 */
1186
+ /** {@link https://open.taobao.com/tmc.htm?docId=1318&docType=9 订单支付消息} */
488
1187
  interface OrderPaid {
489
1188
  /** app唯一标识 */
490
1189
  app_key?: string;
@@ -497,11 +1196,34 @@ declare namespace Alibaba.Fuwu {
497
1196
  /** 支付状态(payment_none: 未支付; payment_part: 部分支付; payment_success: 支付完成;) */
498
1197
  pay_status: string;
499
1198
  }
1199
+
1200
+ /** {@link https://open.taobao.com/tmc.htm?docId=1171&docType=9 外贸服务市场订单变更消息} */
1201
+ interface TradeAction {
1202
+ /** 交易状态 */
1203
+ tid_trade_status: string;
1204
+ }
1205
+
1206
+ /** {@link https://open.taobao.com/tmc.htm?docId=1170&docType=9 ICBU服务市场交易支付消息} */
1207
+ interface TradePayAction {
1208
+ /** 交易支付状态 */
1209
+ tid_pay_status: string;
1210
+ }
1211
+ }
1212
+
1213
+ /** 娱乐宝 */
1214
+ declare namespace Alibaba.Happyfinance {
1215
+ /** {@link https://open.taobao.com/tmc.htm?docId=1180&docType=9 CP入驻通知} */
1216
+ interface InNotify {
1217
+ /** msg_id */
1218
+ msg_id: string;
1219
+ /** value */
1220
+ value: string;
1221
+ }
500
1222
  }
501
1223
 
502
1224
  /** 欢行开放平台 */
503
1225
  declare namespace Alibaba.Happytrip {
504
- /** 欢行统一订单模型变更通知消息 */
1226
+ /** {@link https://open.taobao.com/tmc.htm?docId=1346&docType=9 欢行统一订单模型变更通知消息} */
505
1227
  interface OrderNotify {
506
1228
  /** 订单一级类型 (一级类型,一级类型描述,二级类型,二级类型描述) (-1, "未知", -1, "未知") (4, "机票", 24, "飞猪国内机票") (4, "机票", 47, "飞猪国际机票") (4, "机票", 48, "飞猪国际询价单机票") (4, "机票", 49, "GT国际机票") (5, "酒店", 14, "飞猪国内酒店") (5, "酒店", 34, "HRS国际酒店") (6, "用车", 23, "国内用车") */
507
1229
  order_class_id: string;
@@ -514,9 +1236,163 @@ declare namespace Alibaba.Happytrip {
514
1236
  }
515
1237
  }
516
1238
 
1239
+ /** 汇金销项票 */
1240
+ declare namespace Alibaba.Hj {
1241
+ /** {@link https://open.taobao.com/tmc.htm?docId=1500&docType=9 汇金销项票作废通知} */
1242
+ interface InvoiceCancel {
1243
+ /** 蓝票(发票ID,请求单号,发票号,发票状态,是否重开以及关联发票号) */
1244
+ blue_invoice_info?: string;
1245
+ /** 作废/冲红的原因类型 */
1246
+ cancel_type?: string;
1247
+ /** 是否重开的标志 */
1248
+ is_reissue?: boolean;
1249
+ /** 红票(发票ID,请求单号,发票号,发票状态,是否重开以及关联发票号) */
1250
+ red_invoice_info?: string;
1251
+ /** 关联发票编码 */
1252
+ related_invoice_code?: string;
1253
+ /** 关联发票号 */
1254
+ related_invoice_no?: string;
1255
+ /** 请求单号 */
1256
+ request_no?: string;
1257
+ /** 时间戳 */
1258
+ timestamp?: Date | number | string;
1259
+ }
1260
+
1261
+ /** {@link https://open.taobao.com/tmc.htm?docId=1498&docType=9 汇金销项票开具通知} */
1262
+ interface InvoiceIssue {
1263
+ /** 蓝票(发票ID,请求单号,发票号,发票状态,是否重开以及关联发票号) */
1264
+ blue_invoice_info?: string;
1265
+ /** 作废/冲红的原因类型 */
1266
+ cancel_type?: string;
1267
+ /** 是否重开的标志 */
1268
+ is_reissue?: boolean;
1269
+ /** 红票(发票ID,请求单号,发票号,发票状态,是否重开以及关联发票号) */
1270
+ red_invoice_info?: string;
1271
+ /** 关联发票编码 */
1272
+ related_invoice_code?: string;
1273
+ /** 关联发票号 */
1274
+ related_invoice_no?: string;
1275
+ /** 请求单号 */
1276
+ request_no?: string;
1277
+ /** 时间戳 */
1278
+ timestamp?: Date | number | string;
1279
+ }
1280
+
1281
+ /** {@link https://open.taobao.com/tmc.htm?docId=1499&docType=9 汇金销项票冲红通知} */
1282
+ interface InvoiceRedIssue {
1283
+ /** 蓝票(发票ID,请求单号,发票号,发票状态,是否重开以及关联发票号) */
1284
+ blue_invoice_info?: string;
1285
+ /** 作废/冲红的原因类型 */
1286
+ cancel_type?: string;
1287
+ /** 是否重开的标志 */
1288
+ is_reissue?: boolean;
1289
+ /** 红票(发票ID,请求单号,发票号,发票状态,是否重开以及关联发票号) */
1290
+ red_invoice_info?: string;
1291
+ /** 关联票编码 */
1292
+ related_invoice_code?: string;
1293
+ /** 关联发票号 */
1294
+ related_invoice_no?: string;
1295
+ /** 请求单号 */
1296
+ request_no?: string;
1297
+ /** 时间戳 */
1298
+ timestamp?: Date | number | string;
1299
+ }
1300
+
1301
+ /** {@link https://open.taobao.com/tmc.htm?docId=1501&docType=9 汇金销项票开票拒绝通知} */
1302
+ interface InvoiceReject {
1303
+ /** 统一透出为sys */
1304
+ auditor?: string;
1305
+ /** 发票平台id */
1306
+ invoice_id: number;
1307
+ /** 拒绝开票原因 */
1308
+ reject_reason?: string;
1309
+ /** 请求单号 */
1310
+ request_no: string;
1311
+ /** 时间戳 */
1312
+ timestamp: Date | number | string;
1313
+ }
1314
+
1315
+ /** {@link https://open.taobao.com/tmc.htm?docId=1504&docType=9 汇金销项票拒绝退票通知} */
1316
+ interface InvoiceReturnReject {
1317
+ /** 统一为sys */
1318
+ auditor?: string;
1319
+ /** 请求操作时间 */
1320
+ audit_date?: Date | number | string;
1321
+ /** 发票编码 */
1322
+ invoice_code?: string;
1323
+ /** 发票ID */
1324
+ invoice_id?: number;
1325
+ /** 发票号 */
1326
+ invoice_no?: string;
1327
+ /** 是否成功处理 */
1328
+ is_success?: boolean;
1329
+ /** 拒绝原因 */
1330
+ refuse_reason?: string;
1331
+ /** 时间戳 */
1332
+ timestamp?: Date | number | string;
1333
+ }
1334
+
1335
+ /** {@link https://open.taobao.com/tmc.htm?docId=1505&docType=9 汇金销项票发票寄送通知} */
1336
+ interface InvoiceSend {
1337
+ /** 发票编码 */
1338
+ invoice_code: string;
1339
+ /** 开票时间 */
1340
+ invoice_date: Date | number | string;
1341
+ /** 发票号 */
1342
+ invoice_no: string;
1343
+ /** 物流公司 */
1344
+ logistics_company: string;
1345
+ /** 请求单号 */
1346
+ request_no: string;
1347
+ /** 时间戳 */
1348
+ timestamp: Date | number | string;
1349
+ /** 物流单号 */
1350
+ tracking_number: string;
1351
+ }
1352
+
1353
+ /** {@link https://open.taobao.com/tmc.htm?docId=1497&docType=9 汇金销项票待开通知} */
1354
+ interface InvoiceUnissue {
1355
+ /** 发票列表idlist */
1356
+ invoice_id_list: number[];
1357
+ /** 请求单号 */
1358
+ request_no: string;
1359
+ /** 时间戳 */
1360
+ timestamp: Date | number | string;
1361
+ }
1362
+ }
1363
+
1364
+ /** 洞窝 */
1365
+ declare namespace Alibaba.Homestyler {
1366
+ /** {@link https://open.taobao.com/tmc.htm?docId=2497&docType=9 设计家aigc生图结果消息通知} */
1367
+ interface AigcContentImageGenerateCallback {
1368
+ /** 结果数据 */
1369
+ data_str: string;
1370
+ /** 生成类型 */
1371
+ generate_type: string;
1372
+ /** 错误信息 */
1373
+ message: string;
1374
+ /** 同步请求返回的requestId */
1375
+ request_id: string;
1376
+ /** 生成状态 */
1377
+ status: string;
1378
+ }
1379
+
1380
+ /** {@link https://open.taobao.com/tmc.htm?docId=2498&docType=9 洞窝全景图替换消息回调} */
1381
+ interface AigcPanoramaReplaceCallback {
1382
+ /** 合成结果图片地址 */
1383
+ imageUrl: string;
1384
+ /** 错误信息描述 */
1385
+ message: string;
1386
+ /** 同步请求返回的requestId */
1387
+ requestId: string;
1388
+ /** 合成结果 */
1389
+ status: string;
1390
+ }
1391
+ }
1392
+
517
1393
  /** 五道口配送 */
518
1394
  declare namespace Alibaba.Ifp {
519
- /** 同城履约包裹状态变更消息 */
1395
+ /** {@link https://open.taobao.com/tmc.htm?docId=2386&docType=9 同城履约包裹状态变更消息} */
520
1396
  interface PackageCfcContainer {
521
1397
  /** 履约单号 */
522
1398
  fulfillOrderId: string;
@@ -531,14 +1407,158 @@ declare namespace Alibaba.Ifp {
531
1407
  }
532
1408
  }
533
1409
 
534
- /** 电子发票 */
535
- declare namespace Alibaba.Invoice {
536
- /** 开票申请 */
537
- interface Apply {
538
- /** 发票申请ID */
539
- apply_id: string;
540
- /** 抬头类型,0=个人,1=企业 */
541
- business_type: string;
1410
+ /** 采购系统 */
1411
+ declare namespace Alibaba.Infop {
1412
+ /** {@link https://open.taobao.com/tmc.htm?docId=1299&docType=9 采购系统商品消息变更消息} */
1413
+ interface GoodsChange {
1414
+ /** 商品ID */
1415
+ goods_id: number;
1416
+ /** 品类英文名 */
1417
+ product_catalog_en_name: string;
1418
+ /** 品类中文名 */
1419
+ product_catalog_name: string;
1420
+ /** 相关联的商品ID */
1421
+ refer_goods_id_list: number[];
1422
+ }
1423
+
1424
+ /** {@link https://open.taobao.com/tmc.htm?docId=1616&docType=9 PR 审批完成通知} */
1425
+ interface PRAudited {
1426
+ /** 审批结果:通过、不通过 */
1427
+ approval_action: string;
1428
+ /** 审批意见 */
1429
+ approval_remark?: string;
1430
+ /** 采购pr单号 */
1431
+ pr_number: string;
1432
+ }
1433
+
1434
+ /** {@link https://open.taobao.com/tmc.htm?docId=1296&docType=9 采购系统接收单状态变更通知} */
1435
+ interface RcvAuditStatusChange {
1436
+ /** 审批内容节点 */
1437
+ audit_fail_node: string;
1438
+ /** 来源系统code */
1439
+ interface_source_code: string;
1440
+ /** 接收单号 */
1441
+ rcv_number: string;
1442
+ /** 接收单状态 */
1443
+ status: string;
1444
+ }
1445
+
1446
+ /** {@link https://open.taobao.com/tmc.htm?docId=1304&docType=9 接收单创建成功通知} */
1447
+ interface RcvCreateSuccess {
1448
+ /** 来源系统 */
1449
+ interface_source_code: string;
1450
+ /** 接收单列表 */
1451
+ rcv_number_list: string[];
1452
+ /** 幂等校验id */
1453
+ unique_id: string;
1454
+ }
1455
+ }
1456
+
1457
+ /** 银泰 */
1458
+ declare namespace Alibaba.Intime {
1459
+ /** {@link https://open.taobao.com/tmc.htm?docId=1946&docType=9 银泰服务订单创建&更新} */
1460
+ interface ServiceOrderCreateUpdate {
1461
+ /** 工单变更动作。枚举。创建create,完成complete,取消cancel,发货consign */
1462
+ action?: string;
1463
+ /** 备注 */
1464
+ comment?: string;
1465
+ /** 服务单id */
1466
+ sc_order_id: number;
1467
+ /** 服务单状态,初始状态是1 */
1468
+ status: number;
1469
+ /** 类型,默认1 */
1470
+ type?: number;
1471
+ /** 变更时间 */
1472
+ update_date: Date | number | string;
1473
+ /** 本次使用的服务次数 */
1474
+ used_service_count?: number;
1475
+ }
1476
+ }
1477
+
1478
+ /** 电子发票 */
1479
+ declare namespace Alibaba.Invoice {
1480
+ /** {@link https://open.taobao.com/tmc.htm?docId=896&docType=9 开票申请(支付宝专用)} */
1481
+ interface AlipayApply {
1482
+ /** 支付宝用户ID */
1483
+ alipay_user_id: string;
1484
+ /** 发票申请ID */
1485
+ apply_id: string;
1486
+ /** 电商平台代码,TB,TM,ALIPAY,JD */
1487
+ platform_code: string;
1488
+ /** 电商平台对应的订单号 */
1489
+ platform_tid: string;
1490
+ }
1491
+
1492
+ /** {@link https://open.taobao.com/tmc.htm?docId=895&docType=9 开票申请审核结果(支付宝专用)} */
1493
+ interface AlipayApplyResult {
1494
+ /** 支付宝用户ID */
1495
+ alipay_user_id: string;
1496
+ /** 发票申请ID */
1497
+ apply_id: string;
1498
+ /** 审核备注 */
1499
+ message?: string;
1500
+ /** 电商平台代码,TB,TM,ALIPAY,JD */
1501
+ platform_code: string;
1502
+ /** 电商平台对应的订单号 */
1503
+ platform_tid: string;
1504
+ /** 审核结果 */
1505
+ result: boolean;
1506
+ }
1507
+
1508
+ /** {@link https://open.taobao.com/tmc.htm?docId=898&docType=9 开票请求(支付宝专用)} */
1509
+ interface AlipayCreateReq {
1510
+ /** 支付宝用户ID */
1511
+ alipay_buyer_id?: string;
1512
+ /** 税号 */
1513
+ payee_register_no?: string;
1514
+ /** 支付单号 */
1515
+ pay_no?: string;
1516
+ /** 电商平台代码。TB=淘宝 、TM=天猫 、JD=京东、DD=当当、PP=拍拍、YX=易讯、EBAY=ebay、QQ=QQ网购、AMAZON=亚马逊、SN=苏宁、GM=国美、WPH=唯品会、JM=聚美、LF=乐蜂、MGJ=蘑菇街、JS=聚尚、PX=拍鞋、YT=银泰、YHD=1号店、VANCL=凡客、YL=邮乐、YG=优购、1688=阿里巴巴、POS=POS门店、OTHER=其他, (只传英文编码) */
1517
+ platform_code: string;
1518
+ /** 电商平台对应的订单号 */
1519
+ platform_tid: string;
1520
+ /** 卖家id */
1521
+ seller_id?: string;
1522
+ /** 开票流水号,唯一标志开票请求。如果两次请求流水号相同,则表示重复请求。 */
1523
+ serial_no: string;
1524
+ /** 卖家所属平台 */
1525
+ user_platform_code?: string;
1526
+ }
1527
+
1528
+ /** {@link https://open.taobao.com/tmc.htm?docId=897&docType=9 开票请求结果(支付宝专用)} */
1529
+ interface AlipayResultReturn {
1530
+ /** 支付宝买家id */
1531
+ alipay_buyer_id: string;
1532
+ /** 支付宝卖家id */
1533
+ alipay_seller_id: string;
1534
+ /** 发票请求ID */
1535
+ apply_id?: string;
1536
+ /** 淘宝买家id */
1537
+ buyer_id: string;
1538
+ /** 开票结果 */
1539
+ create_result: string;
1540
+ /** 收款方税务登记证号 */
1541
+ payee_register_no: string;
1542
+ /** 支付流水号 */
1543
+ pay_no: string;
1544
+ /** 电商平台代码,TB,TM,ALIPAY,JD */
1545
+ platform_code: string;
1546
+ /** 电商平台对应的订单号 */
1547
+ platform_tid: string;
1548
+ /** 淘宝卖家id */
1549
+ seller_id: string;
1550
+ /** 开票流水号 */
1551
+ serial_no: string;
1552
+ /** 卖家所属电商平台 */
1553
+ user_platform_code: string;
1554
+ }
1555
+
1556
+ /** {@link https://open.taobao.com/tmc.htm?docId=891&docType=9 开票申请} */
1557
+ interface Apply {
1558
+ /** 发票申请ID */
1559
+ apply_id: string;
1560
+ /** 抬头类型,0=个人,1=企业 */
1561
+ business_type: string;
542
1562
  /** 电商平台代码,TB,TM,ALIPAY,JD */
543
1563
  platform_code: string;
544
1564
  /** 电商平台对应的订单号 */
@@ -549,7 +1569,27 @@ declare namespace Alibaba.Invoice {
549
1569
  trigger_status?: string;
550
1570
  }
551
1571
 
552
- /** 开票申请审核结果 */
1572
+ /** {@link https://open.taobao.com/tmc.htm?docId=1043&docType=9 商家拒绝开票} */
1573
+ interface ApplyDisagree {
1574
+ /** 扩展字段 */
1575
+ ex_info: string;
1576
+ /** 销方税号 */
1577
+ payee_register_no?: string;
1578
+ /** 订单所属平台 */
1579
+ platform_code: string;
1580
+ /** 平台订单id */
1581
+ platform_tid: string;
1582
+ /** 卖家id */
1583
+ seller_id: string;
1584
+ /** 卖家所属平台 */
1585
+ seller_platform_code: string;
1586
+ /** 开票流水号 */
1587
+ serial_no?: string;
1588
+ /** 拒绝类型:1.已开纸票;2.已开电票;3.与消费者协商;4.其它原因 */
1589
+ type: string;
1590
+ }
1591
+
1592
+ /** {@link https://open.taobao.com/tmc.htm?docId=892&docType=9 开票申请审核结果} */
553
1593
  interface ApplyResult {
554
1594
  /** 发票申请ID */
555
1595
  apply_id: string;
@@ -563,7 +1603,75 @@ declare namespace Alibaba.Invoice {
563
1603
  result: boolean;
564
1604
  }
565
1605
 
566
- /** 税盘下架单新增和更新通知 */
1606
+ /** {@link https://open.taobao.com/tmc.htm?docId=1436&docType=9 电换纸消息} */
1607
+ interface ChangePaper {
1608
+ /** 买家昵称 */
1609
+ buyer_nick: string;
1610
+ /** 发票种类,0:电票,1:纸票,2:电票 */
1611
+ invoice_kind?: number;
1612
+ /** 购买方企业地址 */
1613
+ payer_address?: string;
1614
+ /** 购买方开户行 */
1615
+ payer_bank?: string;
1616
+ /** 购买方开户行账号 */
1617
+ payer_bank_account?: string;
1618
+ /** 抬头 */
1619
+ payer_name?: string;
1620
+ /** 购买方企业电话 */
1621
+ payer_phone?: string;
1622
+ /** 购买方税号 */
1623
+ payer_register_no?: string;
1624
+ /** 来源 */
1625
+ source?: string;
1626
+ /** 订单号 */
1627
+ tid: string;
1628
+ /** 用户所属平台 */
1629
+ user_platform_code?: string;
1630
+ }
1631
+
1632
+ /** {@link https://open.taobao.com/tmc.htm?docId=1936&docType=9 商户店员状态变更} */
1633
+ interface ClerkStatusChange {
1634
+ /** 店员状态变更,可选值:join加入,exit退出 */
1635
+ action: string;
1636
+ /** 企业店员id */
1637
+ clerk_id: string;
1638
+ /** 企业税号 */
1639
+ register_no: string;
1640
+ /** 状态变更时间,可用于判断消息时序 */
1641
+ ts: number;
1642
+ }
1643
+
1644
+ /** {@link https://open.taobao.com/tmc.htm?docId=908&docType=9 开票请求消息} */
1645
+ interface CreateReq {
1646
+ /** 商家税号 */
1647
+ payee_register_no: string;
1648
+ /** 电商平台代码。TB=淘宝 、TM=天猫 、JD=京东、DD=当当、PP=拍拍、YX=易讯、EBAY=ebay、QQ=QQ网购、AMAZON=亚马逊、SN=苏宁、GM=国美、WPH=唯品会、JM=聚美、LF=乐蜂、MGJ=蘑菇街、JS=聚尚、PX=拍鞋、YT=银泰、YHD=1号店、VANCL=凡客、YL=邮乐、YG=优购、1688=阿里巴巴、POS=POS门店、OTHER=其他, (只传英文编码) */
1649
+ platform_code: string;
1650
+ /** 平台订单号 */
1651
+ platform_tid: string;
1652
+ /** 开票流水号 */
1653
+ serial_no: string;
1654
+ }
1655
+
1656
+ /** {@link https://open.taobao.com/tmc.htm?docId=954&docType=9 商家邮寄税控盘消息} */
1657
+ interface DiskMail {
1658
+ /** 寄件人名称 */
1659
+ contact_name: string;
1660
+ /** 寄件人联系电话 */
1661
+ contact_phone: string;
1662
+ /** 物流公司 */
1663
+ logistics_company: string;
1664
+ /** 物流单号 */
1665
+ logistics_no: string;
1666
+ /** 工单编号 */
1667
+ order_id: string;
1668
+ /** 税控盘数量 */
1669
+ tax_disk_count: string;
1670
+ /** 工单类型:1-入驻工单,2-购买税控单元工单,3-税控单元下架单 */
1671
+ type: number;
1672
+ }
1673
+
1674
+ /** {@link https://open.taobao.com/tmc.htm?docId=1038&docType=9 税盘下架单新增和更新通知} */
567
1675
  interface DiskOffline {
568
1676
  /** 企业名称 */
569
1677
  company_name: string;
@@ -575,7 +1683,7 @@ declare namespace Alibaba.Invoice {
575
1683
  payee_register_no: string;
576
1684
  }
577
1685
 
578
- /** 资源包开通/订购记录同步 */
1686
+ /** {@link https://open.taobao.com/tmc.htm?docId=1168&docType=9 资源包开通/订购记录同步} */
579
1687
  interface FlowBuket {
580
1688
  /** 开票业务类型,0 电票,1 纸票 */
581
1689
  biz_type?: number;
@@ -599,7 +1707,7 @@ declare namespace Alibaba.Invoice {
599
1707
  trade_type: number;
600
1708
  }
601
1709
 
602
- /** 获取xml发票文件 */
1710
+ /** {@link https://open.taobao.com/tmc.htm?docId=2512&docType=9 获取xml发票文件} */
603
1711
  interface GetXmlFile {
604
1712
  /** 全电发票的发票号码 */
605
1713
  invoice_no: string;
@@ -609,7 +1717,127 @@ declare namespace Alibaba.Invoice {
609
1717
  seller_nick?: string;
610
1718
  }
611
1719
 
612
- /** 税控服务开票申请 */
1720
+ /** {@link https://open.taobao.com/tmc.htm?docId=1090&docType=9 830平台查询单机盒子消息} */
1721
+ interface HxQuery {
1722
+ /** 查询Id */
1723
+ machine_no: string;
1724
+ /** 内容 */
1725
+ payee_register_no: string;
1726
+ }
1727
+
1728
+ /** {@link https://open.taobao.com/tmc.htm?docId=1395&docType=9 进项发票认证结果通知} */
1729
+ interface IncomeCertificateResult {
1730
+ /** 错误码,is_success=false时有值 */
1731
+ biz_error_code?: string;
1732
+ /** 错误消息,is_success=false时有值 */
1733
+ biz_error_msg?: string;
1734
+ /** 是否成功,true|false */
1735
+ is_success: boolean;
1736
+ /** 本次发票认证的流水号 */
1737
+ serial_no: string;
1738
+ /** 认证的步骤,1=勾选,2=汇总,3=确认 */
1739
+ step: number;
1740
+ }
1741
+
1742
+ /** {@link https://open.taobao.com/tmc.htm?docId=1393&docType=9 ocr结果通知} */
1743
+ interface IncomeOcrResult {
1744
+ /** 错误码,is_success=false时有值 */
1745
+ biz_error_code?: string;
1746
+ /** 错误消息,is_success=false时有值 */
1747
+ biz_error_msg?: string;
1748
+ /** 影像的id标识,type=1时有值 */
1749
+ image_id?: string;
1750
+ /** 是否成功,true|false */
1751
+ is_success: boolean;
1752
+ /** 本次ocr的请求流水号,type=1时流水号为批次号 */
1753
+ serial_no: string;
1754
+ /** ocr类型,0=主动发起ocr,1=批量ocr */
1755
+ type: number;
1756
+ }
1757
+
1758
+ /** {@link https://open.taobao.com/tmc.htm?docId=1392&docType=9 进项扫描结果通知} */
1759
+ interface IncomeScanResult {
1760
+ /** 本次扫描的批次号 */
1761
+ batch_no: string;
1762
+ /** 错误码 */
1763
+ biz_error_code?: string;
1764
+ /** 错误消息 */
1765
+ biz_error_msg?: string;
1766
+ /** 扫描驱动是否成功 */
1767
+ is_success: boolean;
1768
+ /** 扫描状态,0=开始扫描,1=扫描结束,2=开始查验,3=查验结束 */
1769
+ status?: number;
1770
+ }
1771
+
1772
+ /** {@link https://open.taobao.com/tmc.htm?docId=1394&docType=9 进项查验结果通知} */
1773
+ interface IncomeVerifyResult {
1774
+ /** 错误码,is_success=false时有值 */
1775
+ biz_error_code?: string;
1776
+ /** 错误消息,is_success=false时有值 */
1777
+ biz_error_msg?: string;
1778
+ /** 影像的id标识,type=1时有值 */
1779
+ image_id?: string;
1780
+ /** 是否成功,true|false */
1781
+ is_success: boolean;
1782
+ /** 本次查验的请求流水号,type=1时流水号为批次号 */
1783
+ serial_no: string;
1784
+ /** 查验类型,0=主动发起查验,1=批量扫描查验 */
1785
+ type: number;
1786
+ }
1787
+
1788
+ /** {@link https://open.taobao.com/tmc.htm?docId=921&docType=9 开票请求结果(内部专用)} */
1789
+ interface InnerResultReturn {
1790
+ /** halo授权token */
1791
+ access_token?: string;
1792
+ /** 支付宝买家id */
1793
+ alipay_buyer_id: string;
1794
+ /** 支付宝卖家id */
1795
+ alipay_seller_id: string;
1796
+ /** 发票请求ID */
1797
+ apply_id?: string;
1798
+ /** 错误码,开票失败返回 */
1799
+ biz_error_code?: string;
1800
+ /** 错误消息,开票失败返回 */
1801
+ biz_error_msg?: string;
1802
+ /** create_result=fail开票失败的情况下才会有值,biz=业务参数错误(最终状态),sys=服务商系统错误(发票平台自动重试),waiting=盘余量不足、欠费或者抄报税等错误(开票中需要卖家进行处理) */
1803
+ biz_error_type?: string;
1804
+ /** 淘宝买家id */
1805
+ buyer_id: string;
1806
+ /** 开票结果 */
1807
+ create_result: string;
1808
+ /** 0=电子发票,1=纸票,2=专票,默认为电子发票 */
1809
+ invoice_kind?: number;
1810
+ /** 发票(开票)类型蓝票blue,红票red,默认blue */
1811
+ invoice_type?: string;
1812
+ /** 物流单号 */
1813
+ logistic_code?: string;
1814
+ /** 物流公司 */
1815
+ logistic_name?: string;
1816
+ /** 是否需要物流,true:需要物流,则logistic_code和logistic_name不能为空,false:不需要物流 */
1817
+ need_logistic?: boolean;
1818
+ /** 原发票代码(开红票时传入) */
1819
+ normal_invoice_code?: string;
1820
+ /** 原发票号码(开红票时传入) */
1821
+ normal_invoice_no?: string;
1822
+ /** 收款方税务登记证号 */
1823
+ payee_register_no?: string;
1824
+ /** 支付流水号 */
1825
+ pay_no?: string;
1826
+ /** 电商平台代码,TB,TM,ALIPAY,JD */
1827
+ platform_code: string;
1828
+ /** 电商平台对应的订单号 */
1829
+ platform_tid: string;
1830
+ /** 淘宝卖家id */
1831
+ seller_id: string;
1832
+ /** 开票流水号 */
1833
+ serial_no?: string;
1834
+ /** 触发类型,ep_auto=平台自动开票,ep_manual=平台手动开票,third_erp=三方erp开票,upload=只回传发票的ERP */
1835
+ trigger_type?: string;
1836
+ /** 卖家所属电商平台 */
1837
+ user_platform_code: string;
1838
+ }
1839
+
1840
+ /** {@link https://open.taobao.com/tmc.htm?docId=1005&docType=9 税控服务开票申请} */
613
1841
  interface InvoiceApply {
614
1842
  /** 开票申请ID */
615
1843
  apply_id: string;
@@ -619,7 +1847,15 @@ declare namespace Alibaba.Invoice {
619
1847
  payee_register_no: string;
620
1848
  }
621
1849
 
622
- /** 发票对外通知物流信息 */
1850
+ /** {@link https://open.taobao.com/tmc.htm?docId=1070&docType=9 税号商品编码切换消息} */
1851
+ interface ItemNoSwitch {
1852
+ /** 商品编码开关,on=开启,off=关闭 */
1853
+ item_no_switch?: string;
1854
+ /** 税号 */
1855
+ payee_register_no?: string;
1856
+ }
1857
+
1858
+ /** {@link https://open.taobao.com/tmc.htm?docId=1352&docType=9 发票对外通知物流信息} */
623
1859
  interface Logistics {
624
1860
  /** 客户id */
625
1861
  customer_id?: string;
@@ -649,7 +1885,27 @@ declare namespace Alibaba.Invoice {
649
1885
  tracking_number?: string;
650
1886
  }
651
1887
 
652
- /** 纸票操作结果回传(打印、作废等) */
1888
+ /** {@link https://open.taobao.com/tmc.htm?docId=1013&docType=9 补开票消息} */
1889
+ interface MakeUp {
1890
+ /** 补票申请id */
1891
+ apply_id?: string;
1892
+ /** 来源渠道 */
1893
+ channel?: string;
1894
+ /** 发票种类,1=电子发票,2=纸质发票 */
1895
+ invoice_kind?: string;
1896
+ /** 买家抬头 */
1897
+ payer_name?: string;
1898
+ /** 买家税号 */
1899
+ payer_register_no?: string;
1900
+ /** 来源 */
1901
+ source?: string;
1902
+ /** 记录一个状态,冗余自动 */
1903
+ status?: string;
1904
+ /** 订单号 */
1905
+ tid?: number | bigint;
1906
+ }
1907
+
1908
+ /** {@link https://open.taobao.com/tmc.htm?docId=1358&docType=9 纸票操作结果回传(打印、作废等)} */
653
1909
  interface PaperOpsReturn {
654
1910
  /** 错误码,create_result=fail时有值 */
655
1911
  biz_error_code?: string;
@@ -667,7 +1923,7 @@ declare namespace Alibaba.Invoice {
667
1923
  readonly serial_no: string;
668
1924
  }
669
1925
 
670
- /** 电子发票售前咨询 */
1926
+ /** {@link https://open.taobao.com/tmc.htm?docId=1065&docType=9 电子发票售前咨询} */
671
1927
  interface PreConsulting {
672
1928
  /** 企业名称 */
673
1929
  company_name?: string;
@@ -685,7 +1941,175 @@ declare namespace Alibaba.Invoice {
685
1941
  issue_type?: string;
686
1942
  }
687
1943
 
688
- /** 数据查询请求 */
1944
+ /** {@link https://open.taobao.com/tmc.htm?docId=893&docType=9 开票请求消息} */
1945
+ interface ProxyCreateReq {
1946
+ /** 支付宝帐号id */
1947
+ alipay_id?: string;
1948
+ /** 默认:0。对于商家对个人开具,为0;对于商家对企业开具,为1; */
1949
+ business_type?: string;
1950
+ /** 差额征税 */
1951
+ deduct_amount?: string;
1952
+ /** ERP系统中的单据号。如果没有erp的唯一单据号。建议使用platform_code+”_”+ platform_tid的组合方式 */
1953
+ erp_tid?: string;
1954
+ /** 扩展属性 */
1955
+ ext_props?: string;
1956
+ /** 开票金额 */
1957
+ invoice_amount?: string;
1958
+ /** 电子发票明细JSON数据 */
1959
+ invoice_items?: string;
1960
+ /** 发票种类,51=电子发票,1=纸质发票,0=专票 */
1961
+ invoice_kind?: string;
1962
+ /** 发票备注,有些省市会把此信息打印到PDF中 */
1963
+ invoice_memo?: string;
1964
+ /** 开票日期, 格式"YYYY-MM-DD HH:SS:MM" */
1965
+ invoice_time?: string;
1966
+ /** 发票(开票)类型,蓝票blue,红票red,默认blue */
1967
+ invoice_type?: string;
1968
+ /** 原发票代码(开红票时传入) */
1969
+ normal_invoice_code?: string;
1970
+ /** 原发票号码(开红票时传入) */
1971
+ normal_invoice_no?: string;
1972
+ /** 老税号,只有红票才有,税号变更后冲红老税号下的发票,做个标识,给开票服务商用 */
1973
+ old_payee_register_no?: string;
1974
+ /** 开票方地址(新版中为必传) */
1975
+ payee_address?: string;
1976
+ /** 开票方银行及 帐号 */
1977
+ payee_bankaccount?: string;
1978
+ /** 复核人 */
1979
+ payee_checker?: string;
1980
+ /** 开票方名称,公司名(如:XX商城) */
1981
+ payee_name?: string;
1982
+ /** 开票人 */
1983
+ payee_operator?: string;
1984
+ /** 收款方电话 */
1985
+ payee_phone?: string;
1986
+ /** 收款人 */
1987
+ payee_receiver?: string;
1988
+ /** 收款方税务登记证号 */
1989
+ payee_register_no: string;
1990
+ /** 消费者地址 */
1991
+ payer_address?: string;
1992
+ /** 付款方开票开户银行及账号 */
1993
+ payer_bankaccount?: string;
1994
+ /** 消费者电子邮箱 */
1995
+ payer_email?: string;
1996
+ /** 付款方名称, 对应发票台头 */
1997
+ payer_name?: string;
1998
+ /** 消费者联系电话 */
1999
+ payer_phone?: string;
2000
+ /** 付款方税务登记证号。对企业开具电子发票时必填。目前北京地区暂未开放对企业开具电子发票,若北京地区放开后,对于向企业开具的情况,付款方税务登记证号和名称也不能为空 */
2001
+ payer_register_no?: string;
2002
+ /** 电商平台代码。TB=淘宝 、TM=天猫 、JD=京东、DD=当当、PP=拍拍、YX=易讯、EBAY=ebay、QQ=QQ网购、AMAZON=亚马逊、SN=苏宁、GM=国美、WPH=唯品会、JM=聚美、LF=乐蜂、MGJ=蘑菇街、JS=聚尚、PX=拍鞋、YT=银泰、YHD=1号店、VANCL=凡客、YL=邮乐、YG=优购、1688=阿里巴巴、POS=POS门店、OTHER=其他, (只传英文编码) */
2003
+ platform_code: string;
2004
+ /** 电商平台对应的订单号 */
2005
+ platform_tid: string;
2006
+ /** 开票服务商的APPKEY */
2007
+ provider_appkey: string;
2008
+ /** 商家自己申请的放在开票代理客户端的appkey */
2009
+ proxy_appkey?: string;
2010
+ /** 开票请求唯一索引 */
2011
+ req_index: string;
2012
+ /** 开票流水号,唯一标志开票请求。如果两次请求流水号相同,则表示重复请求。 */
2013
+ serial_no: string;
2014
+ /** SPI模式的请求body */
2015
+ spi_body?: string;
2016
+ /** SPI模式的服务商url */
2017
+ spi_url?: string;
2018
+ /** 合计金额(新版中为必传) */
2019
+ sum_price?: string;
2020
+ /** 合计税额 */
2021
+ sum_tax?: string;
2022
+ /** 税控产品code,用于路由到真实税控服务商 */
2023
+ target_code?: string;
2024
+ /** 请求版本,null=正常版本,single_disk=单机盘,item_no=商品编码版本 */
2025
+ version?: string;
2026
+ }
2027
+
2028
+ /** {@link https://open.taobao.com/tmc.htm?docId=1970&docType=9 开票请求消息影子Topic} */
2029
+ interface ProxyCreateReqTest {
2030
+ /** 支付宝帐号id */
2031
+ alipay_id?: string;
2032
+ /** 默认:0。对于商家对个人开具,为0;对于商家对企业开具,为1; */
2033
+ business_type?: string;
2034
+ /** 差额征税 */
2035
+ deduct_amount?: string;
2036
+ /** ERP系统中的单据号。如果没有erp的唯一单据号。建议使用platform_code+”_”+ platform_tid的组合方式 */
2037
+ erp_tid?: string;
2038
+ /** 扩展属性 */
2039
+ ext_props?: string;
2040
+ /** 开票金额 */
2041
+ invoice_amount?: string;
2042
+ /** 电子发票明细JSON数据 */
2043
+ invoice_items?: string;
2044
+ /** 发票类型:0电子发票,1纸质发票,2专票 */
2045
+ invoice_kind?: string;
2046
+ /** 发票备注,有些省市会把此信息打印到PDF中 */
2047
+ invoice_memo?: string;
2048
+ /** 开票日期, 格式"YYYY-MM-DD HH:SS:MM" */
2049
+ invoice_time?: string;
2050
+ /** 发票(开票)类型,蓝票blue,红票red,默认blue */
2051
+ invoice_type?: string;
2052
+ /** 原发票代码(开红票时传入) */
2053
+ normal_invoice_code?: string;
2054
+ /** 原发票号码(开红票时传入) */
2055
+ normal_invoice_no?: string;
2056
+ /** 老税号,只有红票才有,税号变更后冲红老税号下的发票,做个标识,给开票服务商用 */
2057
+ old_payee_register_no?: string;
2058
+ /** 开票方地址(新版中为必传) */
2059
+ payee_address?: string;
2060
+ /** 开票方银行及 帐号 */
2061
+ payee_bankaccount?: string;
2062
+ /** 复核人 */
2063
+ payee_checker?: string;
2064
+ /** 开票方名称,公司名(如:XX商城) */
2065
+ payee_name?: string;
2066
+ /** 开票人 */
2067
+ payee_operator?: string;
2068
+ /** 收款方电话 */
2069
+ payee_phone?: string;
2070
+ /** 收款人 */
2071
+ payee_receiver?: string;
2072
+ /** 收款方税务登记证号 */
2073
+ payee_register_no: string;
2074
+ /** 购方地址 */
2075
+ payer_address?: string;
2076
+ /** 付款方开票开户银行及账号 */
2077
+ payer_bankaccount?: string;
2078
+ /** 消费者电子邮箱 */
2079
+ payer_email?: string;
2080
+ /** 付款方名称, 对应发票台头 */
2081
+ payer_name?: string;
2082
+ /** 消费者联系电话 */
2083
+ payer_phone?: string;
2084
+ /** 付款方税务登记证号。对企业开具电子发票时必填。目前北京地区暂未开放对企业开具电子发票,若北京地区放开后,对于向企业开具的情况,付款方税务登记证号和名称也不能为空 */
2085
+ payer_register_no?: string;
2086
+ /** 电商平台代码。TB=淘宝 、TM=天猫 、JD=京东、DD=当当、PP=拍拍、YX=易讯、EBAY=ebay、QQ=QQ网购、AMAZON=亚马逊、SN=苏宁、GM=国美、WPH=唯品会、JM=聚美、LF=乐蜂、MGJ=蘑菇街、JS=聚尚、PX=拍鞋、YT=银泰、YHD=1号店、VANCL=凡客、YL=邮乐、YG=优购、1688=阿里巴巴、POS=POS门店、OTHER=其他, (只传英文编码) */
2087
+ platform_code: string;
2088
+ /** 电商平台对应的订单号 */
2089
+ platform_tid: string;
2090
+ /** 开票服务商的APPKEY */
2091
+ provider_appkey: string;
2092
+ /** 商家自己申请的放在开票代理客户端的appkey */
2093
+ proxy_appkey?: string;
2094
+ /** 开票请求唯一索引 */
2095
+ req_index: string;
2096
+ /** 开票流水号,唯一标志开票请求。如果两次请求流水号相同,则表示重复请求。 */
2097
+ serial_no: string;
2098
+ /** SPI模式的请求body */
2099
+ spi_body?: string;
2100
+ /** SPI模式的服务商url */
2101
+ spi_url?: string;
2102
+ /** 合计金额(新版中为必传) */
2103
+ sum_price?: string;
2104
+ /** 合计税额 */
2105
+ sum_tax?: string;
2106
+ /** 税控产品code,用于路由到真实税控服务商 */
2107
+ target_code?: string;
2108
+ /** 请求版本,null=正常版本,single_disk=单机盘,item_no=商品编码版本 */
2109
+ version?: string;
2110
+ }
2111
+
2112
+ /** {@link https://open.taobao.com/tmc.htm?docId=992&docType=9 数据查询请求} */
689
2113
  interface Query {
690
2114
  /** 查询参数 */
691
2115
  param: string;
@@ -693,7 +2117,7 @@ declare namespace Alibaba.Invoice {
693
2117
  query_code: string;
694
2118
  }
695
2119
 
696
- /** 查询发票信息 */
2120
+ /** {@link https://open.taobao.com/tmc.htm?docId=902&docType=9 查询发票信息} */
697
2121
  interface QueryInvoice {
698
2122
  /** 发票代码 */
699
2123
  normal_invoice_code?: string;
@@ -715,7 +2139,17 @@ declare namespace Alibaba.Invoice {
715
2139
  version?: string;
716
2140
  }
717
2141
 
718
- /** 入驻阿里发票平台 */
2142
+ /** {@link https://open.taobao.com/tmc.htm?docId=1012&docType=9 订单退款冲红后重开蓝票消息} */
2143
+ interface RecreateBlue {
2144
+ /** 红票的流水号,用来查询triggerStatus,改抬头的入口在天猫那边 */
2145
+ serial_no?: string;
2146
+ /** 订单的状态 */
2147
+ status?: string;
2148
+ /** 订单号 */
2149
+ tid?: number | bigint;
2150
+ }
2151
+
2152
+ /** {@link https://open.taobao.com/tmc.htm?docId=899&docType=9 入驻阿里发票平台} */
719
2153
  interface Regist {
720
2154
  /** 用户企业名称 */
721
2155
  company_name: string;
@@ -727,7 +2161,67 @@ declare namespace Alibaba.Invoice {
727
2161
  user_name: string;
728
2162
  }
729
2163
 
730
- /** 开票请求结果 */
2164
+ /** {@link https://open.taobao.com/tmc.htm?docId=2442&docType=9 商家请求退出} */
2165
+ interface RegistQuit {
2166
+ /** 公司名称 */
2167
+ company_name: string;
2168
+ /** 服务结束时间 */
2169
+ end_time: Date | number | string;
2170
+ /** 附加消息, json格式 */
2171
+ ext_info?: string;
2172
+ /** 纳税人识别号 */
2173
+ payee_register_no: string;
2174
+ /** 产品编码 */
2175
+ product_code: string;
2176
+ /** 服务起始时间 */
2177
+ start_time: Date | number | string;
2178
+ /** 子产品编码 */
2179
+ sub_product_code?: string;
2180
+ }
2181
+
2182
+ /** {@link https://open.taobao.com/tmc.htm?docId=900&docType=9 入驻阿里发票平台结果} */
2183
+ interface RegistResult {
2184
+ /** 支付宝卖家id */
2185
+ alipay_seller_id?: string;
2186
+ /** 自动开票规则 */
2187
+ auto_invoice_rule?: string;
2188
+ /** 开户行 */
2189
+ bank?: string;
2190
+ /** 银行账号 */
2191
+ bank_account?: string;
2192
+ /** 店铺当前支持的开票业务类型,0 电子发票,1 纸质发票,10 同时支持电票和纸票 */
2193
+ biz_type?: number;
2194
+ /** 默认税率 */
2195
+ default_tax_rate: string;
2196
+ /** 是否自动开票 */
2197
+ is_auto_invoice: boolean;
2198
+ /** 是否默认勾选开票 */
2199
+ is_default_invoice: boolean;
2200
+ /** 是否支持补票 */
2201
+ is_support_makeup?: boolean;
2202
+ /** 其他说明信息 */
2203
+ message: string;
2204
+ /** 开票服务商appkey */
2205
+ partner_appkey: string;
2206
+ /** 纳税主体地址 */
2207
+ payee_address: string;
2208
+ /** 纳税主体 */
2209
+ payee_name: string;
2210
+ /** 开票人 */
2211
+ payee_operator: string;
2212
+ /** 税号 */
2213
+ payee_register_no: string;
2214
+ /** 注册ID */
2215
+ regist_id: string;
2216
+ /** 注册结果 */
2217
+ result: boolean;
2218
+ /** 卖家所在平台Id */
2219
+ user_id: string;
2220
+ /** 卖家所在平台 */
2221
+ user_platform_code: string;
2222
+ }
2223
+
2224
+ /** {@link https://open.taobao.com/tmc.htm?docId=894&docType=9 开票请求结果} */
731
2225
  interface ResultReturn {
732
2226
  /** 错误码,create_result=fail才有 */
733
2227
  biz_error_code?: string;
@@ -757,7 +2251,25 @@ declare namespace Alibaba.Invoice {
757
2251
  readonly serial_no: string;
758
2252
  }
759
2253
 
760
- /** 发票状态变更消息 */
2254
+ /** {@link https://open.taobao.com/tmc.htm?docId=1029&docType=9 开票申请失败重试消息} */
2255
+ interface RetryApply {
2256
+ /** 流水号 */
2257
+ serial_no?: string;
2258
+ /** 订单的状态 */
2259
+ status?: string;
2260
+ /** 订单号 */
2261
+ tid?: number | bigint;
2262
+ }
2263
+
2264
+ /** {@link https://open.taobao.com/tmc.htm?docId=1204&docType=9 服务到期关闭} */
2265
+ interface ServiceClose {
2266
+ /** 开票业务类型 0 电票,1 纸票 */
2267
+ biz_type: number;
2268
+ /** 税号 */
2269
+ payee_register_no: string;
2270
+ }
2271
+
2272
+ /** {@link https://open.taobao.com/tmc.htm?docId=1349&docType=9 发票状态变更消息} */
761
2273
  interface StatusChange {
762
2274
  /** 发票代码 */
763
2275
  invoice_code: string;
@@ -771,34 +2283,313 @@ declare namespace Alibaba.Invoice {
771
2283
  time_stamp: Date | number | string;
772
2284
  }
773
2285
 
774
- /** 商家税号变更 */
775
- interface TaxChange {
776
- /** 变更类型 */
777
- change_type?: number;
778
- /** 企业名称 */
779
- company_name?: string;
780
- /** 新税号 */
781
- new_payee_register_no: string;
782
- /** 旧税号 */
783
- old_payee_register_no: string;
784
- /** 税号变更单id */
785
- taxchange_id: string;
2286
+ /** {@link https://open.taobao.com/tmc.htm?docId=1364&docType=9 服务子单消息} */
2287
+ interface SubService {
2288
+ /** 重开标识 */
2289
+ is_recreate?: boolean;
2290
+ /** 补票标识 */
2291
+ is_sub_service_supply?: boolean;
2292
+ /** 开具服务子单发票的卖家id */
2293
+ seller_id?: number;
2294
+ /** 订单号 */
2295
+ tid?: number | bigint;
2296
+ }
2297
+
2298
+ /** {@link https://open.taobao.com/tmc.htm?docId=1089&docType=9 商家税号变更} */
2299
+ interface TaxChange {
2300
+ /** 变更类型 */
2301
+ change_type?: number;
2302
+ /** 企业名称 */
2303
+ company_name?: string;
2304
+ /** 新税号 */
2305
+ new_payee_register_no: string;
2306
+ /** 旧税号 */
2307
+ old_payee_register_no: string;
2308
+ /** 税号变更单id */
2309
+ taxchange_id: string;
2310
+ }
2311
+
2312
+ /** {@link https://open.taobao.com/tmc.htm?docId=1073&docType=9 税号切换商品编码消息} */
2313
+ interface TaxCodeSwitch {
2314
+ /** 商品编码开关,on=开启,off=关闭 */
2315
+ item_no_switch?: string;
2316
+ /** 税号 */
2317
+ payee_register_no?: string;
2318
+ }
2319
+
2320
+ /** {@link https://open.taobao.com/tmc.htm?docId=1776&docType=9 浙江税局注册商户信息回传} */
2321
+ interface TaxOfficeUserkeyReturn {
2322
+ /** 加密的身份证号码 */
2323
+ id: string;
2324
+ /** 注册商户税号 */
2325
+ payee_register_no: string;
2326
+ /** 注册商户标识 */
2327
+ userkey: string;
2328
+ /** 接入方串联字段 */
2329
+ uuid: string;
2330
+ }
2331
+
2332
+ /** {@link https://open.taobao.com/tmc.htm?docId=1347&docType=9 创建未开具发票通知} */
2333
+ interface Unissue {
2334
+ /** 发票列表idlist */
2335
+ invoice_id_list: number[];
2336
+ /** 请求单号 */
2337
+ request_no: string;
2338
+ /** 时间戳 */
2339
+ timestamp?: Date | number | string;
2340
+ }
2341
+
2342
+ /** {@link https://open.taobao.com/tmc.htm?docId=955&docType=9 税控单元订购记录同步} */
2343
+ interface UnitBuy {
2344
+ /** 订购时间 */
2345
+ buy_date: Date | number | string;
2346
+ /** 企业名称 */
2347
+ company_name: string;
2348
+ /** 产品属性,0 默认值、普通电纸票,1 魔盒版,2 移动版开票 */
2349
+ feature?: number;
2350
+ /** 所订购规格的单价(单位分) */
2351
+ item_base_price: number;
2352
+ /** 所订购规格的规格编码 */
2353
+ item_code: string;
2354
+ /** 订单编号 */
2355
+ order_id: string;
2356
+ /** 税号 */
2357
+ payee_register_no: string;
2358
+ /** 服务操作类型:1-新增,2-释放,3-移除,4-续订 */
2359
+ status: number;
2360
+ /** 实付总金额(单位分) */
2361
+ total_pay_fee?: number;
2362
+ }
2363
+
2364
+ /** {@link https://open.taobao.com/tmc.htm?docId=956&docType=9 税控单元退款消息} */
2365
+ interface UnitRefund {
2366
+ /** 订购时间 */
2367
+ buy_date: Date | number | string;
2368
+ /** 公司名称 */
2369
+ company_name: string;
2370
+ /** 订单编号 */
2371
+ order_id: string;
2372
+ /** 税号 */
2373
+ payee_register_no: string;
2374
+ /** 退款原因 */
2375
+ reason: string;
2376
+ }
2377
+
2378
+ /** {@link https://open.taobao.com/tmc.htm?docId=994&docType=9 发票查验结果通知消息} */
2379
+ interface VerifyResult {
2380
+ /** 错误码 */
2381
+ biz_error_code?: string;
2382
+ /** 错误消息 */
2383
+ biz_error_msg?: string;
2384
+ /** 业务流水id,用于标志某次调用 */
2385
+ biz_serial_id?: string;
2386
+ /** 大写开票金额 */
2387
+ capital_invoice_amount?: string;
2388
+ /** 校验码 */
2389
+ checksum?: string;
2390
+ /** 价税合计金额(invoiceAmount=sumPrice+sumTax) */
2391
+ invoice_amount?: string;
2392
+ /** 发票代码 */
2393
+ invoice_code?: string;
2394
+ /** 开票日期 */
2395
+ invoice_date?: string;
2396
+ /** 发票明细 */
2397
+ invoice_items?: string;
2398
+ /** 发票备注 */
2399
+ invoice_memo?: string;
2400
+ /** 发票号码 */
2401
+ invoice_no?: string;
2402
+ /** 开票行政区域 */
2403
+ invoice_region?: string;
2404
+ /** 发票(开票)类型,蓝票blue,红票red,默认blue */
2405
+ invoice_type?: string;
2406
+ /** 查验结果 */
2407
+ is_success: boolean;
2408
+ /** 机器编号 */
2409
+ machine_no?: string;
2410
+ /** 开票方地址和电话 */
2411
+ payee_address_phone?: string;
2412
+ /** 开票方银行及帐号 */
2413
+ payee_bank_account?: string;
2414
+ /** 收款方名称 */
2415
+ payee_name?: string;
2416
+ /** 收款方税务登记证号 */
2417
+ payee_register_no?: string;
2418
+ /** 消费者地址和电话 */
2419
+ payer_address_phone?: string;
2420
+ /** 付款方开票开户银行及账号 */
2421
+ payer_bank_account?: string;
2422
+ /** 付款方名称, 对应发票抬头 */
2423
+ payer_name?: string;
2424
+ /** 付款方税务登记证号 */
2425
+ payer_register_no?: string;
2426
+ /** 合计不含税金额 */
2427
+ sum_price?: string;
2428
+ /** 合计税额 */
2429
+ sum_tax?: string;
2430
+ }
2431
+ }
2432
+
2433
+ /** 交易猫 */
2434
+ declare namespace Alibaba.Jym {
2435
+ /** {@link https://open.taobao.com/tmc.htm?docId=2445&docType=9 交易猫steam正向消息通知} */
2436
+ interface SteamTradeOrderNotify {
2437
+ /** 订单ID */
2438
+ orderId: string;
2439
+ /** 订单状态 1.交易成功 2.结算成功 */
2440
+ orderStatus: number;
2441
+ }
2442
+
2443
+ /** {@link https://open.taobao.com/tmc.htm?docId=2446&docType=9 交易猫steam逆向通知} */
2444
+ interface SteamTradeRefundNotify {
2445
+ /** 1-新建 */
2446
+ isNewRefund?: number;
2447
+ /** 逆向单新状态 */
2448
+ newStatus: number;
2449
+ /** 逆向单新子状态 */
2450
+ newSubStatus: number;
2451
+ /** 逆向单旧状态 */
2452
+ oldStatus?: number;
2453
+ /** 逆向单旧子状态 */
2454
+ oldSubStatus?: number;
2455
+ /** 订单ID */
2456
+ orderId: string;
2457
+ /** 1.快速退款 2.审核退款 */
2458
+ processType: number;
2459
+ /** 退款单ID */
2460
+ refundOrderId: string;
2461
+ /** 退款类型 1:售中 2:售后 */
2462
+ refundType: number;
2463
+ }
2464
+
2465
+ /** {@link https://open.taobao.com/tmc.htm?docId=2441&docType=9 交易猫逆向单状态通知} */
2466
+ interface TradeRefundNotify {
2467
+ /** 1-新建 */
2468
+ isNewRefund?: number;
2469
+ /** 逆向单新状态 */
2470
+ newStatus?: number;
2471
+ /** 逆向单新子状态 */
2472
+ newSubStatus?: number;
2473
+ /** 逆向单旧状态 */
2474
+ oldStatus?: number;
2475
+ /** 逆向单旧子状态 */
2476
+ oldSubStatus?: number;
2477
+ /** 商品ID */
2478
+ orderId: string;
2479
+ /** 1.快速退款 2.审核退款 */
2480
+ processType: number;
2481
+ /** 退款单ID */
2482
+ refundOrderId: string;
2483
+ /** 退款类型 1:售中 2:售后 */
2484
+ refundType: number;
2485
+ }
2486
+ }
2487
+
2488
+ /** 考拉 */
2489
+ declare namespace Alibaba.Kaola {
2490
+ /** {@link https://open.taobao.com/tmc.htm?docId=1911&docType=9 考拉用户完成支付宝任务} */
2491
+ interface AlipayTaskFinish {
2492
+ /** 支付宝id */
2493
+ alipay_uid?: string;
2494
+ /** 业务id */
2495
+ biz_id?: string;
2496
+ /** 业务时间 */
2497
+ biz_time?: string;
2498
+ /** 冗余字段 */
2499
+ ext_info?: string;
2500
+ /** 请求id */
2501
+ id?: string;
2502
+ /** 考拉用户id */
2503
+ kl_uid?: string;
2504
+ /** 发送时间 */
2505
+ send_time?: string;
2506
+ /** 任务信息 */
2507
+ task_status?: string;
2508
+ /** 消息topic */
2509
+ topic?: string;
2510
+ }
2511
+
2512
+ /** {@link https://open.taobao.com/tmc.htm?docId=1875&docType=9 考拉发送消息到Promoevent} */
2513
+ interface SendPromoevent {
2514
+ /** 支付宝用户id */
2515
+ alipay_uid?: string;
2516
+ /** 流水号,用来做幂等 */
2517
+ biz_id?: string;
2518
+ /** 业务时间 */
2519
+ biz_time?: string;
2520
+ /** 消息主键id */
2521
+ id?: string;
2522
+ /** 考拉用户账号 */
2523
+ kl_uid?: string;
2524
+ /** 发送时间 */
2525
+ send_time?: string;
2526
+ /** 用户任务状态 */
2527
+ task_status?: string;
2528
+ /** databus消息TOPIC */
2529
+ topic?: string;
2530
+ }
2531
+ }
2532
+
2533
+ /** 司法开放平台 */
2534
+ declare namespace Alibaba.Kongur {
2535
+ /** {@link https://open.taobao.com/tmc.htm?docId=1076&docType=9 司法开放平台推送消息给提供律师服务的供应商} */
2536
+ interface BusinessMsg {
2537
+ /** 消息id */
2538
+ apply_id: string;
2539
+ /** 消息内容 */
2540
+ content: string;
2541
+ /** 消息类型 */
2542
+ type: string;
2543
+ }
2544
+ }
2545
+
2546
+ /** 网上法庭 */
2547
+ declare namespace Alibaba.Lassen {
2548
+ /** {@link https://open.taobao.com/tmc.htm?docId=1011&docType=9 网上法庭证据文件状态变更通知} */
2549
+ interface FileStatusNotify {
2550
+ /** 消费方记录ID */
2551
+ record_id: string;
2552
+ /** 状态 */
2553
+ status: string;
2554
+ /** 服务方记录ID */
2555
+ uploadfile_id: string;
2556
+ }
2557
+
2558
+ /** {@link https://open.taobao.com/tmc.htm?docId=1109&docType=9 发送支付令} */
2559
+ interface LegalCasePaymentOrderNotify {
2560
+ /** 文件流 */
2561
+ content: string;
2562
+ /** 对接催收的任务ID */
2563
+ task_id: string;
786
2564
  }
787
2565
 
788
- /** 创建未开具发票通知 */
789
- interface Unissue {
790
- /** 发票列表idlist */
791
- invoice_id_list: number[];
792
- /** 请求单号 */
793
- request_no: string;
794
- /** 时间戳 */
795
- timestamp?: Date | number | string;
2566
+ /** {@link https://open.taobao.com/tmc.htm?docId=1026&docType=9 网上法庭案件状态变更通知} */
2567
+ interface LegalCaseStatusNotify {
2568
+ /** 状态 */
2569
+ status: string;
2570
+ /** 外部关联的任务ID */
2571
+ task_id: string;
2572
+ }
2573
+ }
2574
+
2575
+ /** - */
2576
+ declare namespace Alibaba.Legal {
2577
+ /** {@link https://open.taobao.com/tmc.htm?docId=1606&docType=9 公司消息变更通知} */
2578
+ interface MasterdataCompany {
2579
+ /** socialCreditCode */
2580
+ credit_code: string;
2581
+ /** 旧的socialCreditCode(当社会统一信用代码变化时,才有值,默认为null) */
2582
+ old_credit_code?: string;
2583
+ /** 操作类型:insert 新增公司;update 变更公司;cancel注销公司 */
2584
+ operate_type: string;
2585
+ /** 消息的唯一标志 */
2586
+ uuid: string;
796
2587
  }
797
2588
  }
798
2589
 
799
2590
  /** 零售通_公共 */
800
2591
  declare namespace Alibaba.Lst {
801
- /** 品牌商-订单物流状态变化 */
2592
+ /** {@link https://open.taobao.com/tmc.htm?docId=1862&docType=9 品牌商-订单物流状态变化} */
802
2593
  interface BmOrderLogisticsChange {
803
2594
  /** 主订单id,消息业务id,可用于消息轨迹查询 */
804
2595
  main_order_id: number;
@@ -806,7 +2597,7 @@ declare namespace Alibaba.Lst {
806
2597
  sub_order_ids: string;
807
2598
  }
808
2599
 
809
- /** 线下自有订单发货状态变更消息 */
2600
+ /** {@link https://open.taobao.com/tmc.htm?docId=1816&docType=9 线下自有订单发货状态变更消息} */
810
2601
  interface BroadcastSelfOrderShipChange {
811
2602
  /** 外部主订单号 */
812
2603
  out_order_id: string;
@@ -816,7 +2607,7 @@ declare namespace Alibaba.Lst {
816
2607
  vir_id: string;
817
2608
  }
818
2609
 
819
- /** 收银快照同步消息 */
2610
+ /** {@link https://open.taobao.com/tmc.htm?docId=1210&docType=9 收银快照同步消息} */
820
2611
  interface CashierSync {
821
2612
  /** 收银快照同步消息消息体内容JSON串 */
822
2613
  data_json: string;
@@ -824,7 +2615,7 @@ declare namespace Alibaba.Lst {
824
2615
  msg_biz_id: string;
825
2616
  }
826
2617
 
827
- /** 商品同步消息 */
2618
+ /** {@link https://open.taobao.com/tmc.htm?docId=1214&docType=9 商品同步消息} */
828
2619
  interface GoodsSync {
829
2620
  /** 消息体数据JSON串 */
830
2621
  data_json: string;
@@ -832,7 +2623,7 @@ declare namespace Alibaba.Lst {
832
2623
  msg_biz_id: string;
833
2624
  }
834
2625
 
835
- /** 商品库存修改同步消息 */
2626
+ /** {@link https://open.taobao.com/tmc.htm?docId=1213&docType=9 商品库存修改同步消息} */
836
2627
  interface InventorySync {
837
2628
  /** 消息体内容JSON串 */
838
2629
  data_json: string;
@@ -840,7 +2631,7 @@ declare namespace Alibaba.Lst {
840
2631
  msg_biz_id: string;
841
2632
  }
842
2633
 
843
- /** 消息测试 */
2634
+ /** {@link https://open.taobao.com/tmc.htm?docId=1481&docType=9 消息测试} */
844
2635
  interface MsgTest {
845
2636
  /** 消息体内容JSON串 */
846
2637
  data_json: string;
@@ -848,7 +2639,15 @@ declare namespace Alibaba.Lst {
848
2639
  msg_biz_id: string;
849
2640
  }
850
2641
 
851
- /** 零售通交易订单变更消息 */
2642
+ /** {@link https://open.taobao.com/tmc.htm?docId=1316&docType=9 零售通门店订单创建消息推送} */
2643
+ interface OpenOrderCreate {
2644
+ /** 消息体数据JSON串 */
2645
+ data_json: string;
2646
+ /** 业务消息ID */
2647
+ msg_biz_id: string;
2648
+ }
2649
+
2650
+ /** {@link https://open.taobao.com/tmc.htm?docId=1517&docType=9 零售通交易订单变更消息} */
852
2651
  interface OrderChange {
853
2652
  /** 主订单id,消息业务id,可用于消息轨迹查询 */
854
2653
  main_order_id: number;
@@ -856,7 +2655,7 @@ declare namespace Alibaba.Lst {
856
2655
  sub_order_ids: string;
857
2656
  }
858
2657
 
859
- /** 订单退单 */
2658
+ /** {@link https://open.taobao.com/tmc.htm?docId=1545&docType=9 订单退单} */
860
2659
  interface RefundChange {
861
2660
  /** 主订单id */
862
2661
  main_order_id: string;
@@ -866,7 +2665,17 @@ declare namespace Alibaba.Lst {
866
2665
  sub_order_ids: string;
867
2666
  }
868
2667
 
869
- /** 如意音箱播放日志 */
2668
+ /** {@link https://open.taobao.com/tmc.htm?docId=1799&docType=9 线下自有订单发货状态变更消息} */
2669
+ interface SelfOrderShipChange {
2670
+ /** 外部主订单号 */
2671
+ out_order_id: string;
2672
+ /** 零售通供应商userId */
2673
+ supplier_user_id: number;
2674
+ /** appkey_userId_outOrderId */
2675
+ vir_id: string;
2676
+ }
2677
+
2678
+ /** {@link https://open.taobao.com/tmc.htm?docId=1617&docType=9 如意音箱播放日志} */
870
2679
  interface SpeakerAdvertPlayRecord {
871
2680
  /** 折扣率 */
872
2681
  advert_discount_ratio?: string;
@@ -892,18 +2701,58 @@ declare namespace Alibaba.Lst {
892
2701
  unit_price: string;
893
2702
  }
894
2703
 
895
- /** 零售通供应商交易订单变更消息 */
2704
+ /** {@link https://open.taobao.com/tmc.htm?docId=1863&docType=9 零售通供应商交易订单变更消息} */
896
2705
  interface SupplierOrderChange {
897
2706
  /** 主订单id,消息业务id,可用于消息轨迹查询 */
898
2707
  main_order_id: number;
899
2708
  /** 子订单id列表 */
900
2709
  sub_order_ids: string;
901
2710
  }
2711
+
2712
+ /** {@link https://open.taobao.com/tmc.htm?docId=1371&docType=9 自动售货机库存更新消息} */
2713
+ interface VendingInventoryUpdate {
2714
+ /** 消息内容 */
2715
+ data_json: string;
2716
+ /** 业务ID,用于幂等处理 */
2717
+ msg_biz_id: string;
2718
+ }
2719
+
2720
+ /** {@link https://open.taobao.com/tmc.htm?docId=1370&docType=9 售货机交易创建消息} */
2721
+ interface VendingTradeCreate {
2722
+ /** 消息体 */
2723
+ data_json: string;
2724
+ /** 业务ID,用于幂等处理 */
2725
+ msg_biz_id: string;
2726
+ }
902
2727
  }
903
2728
 
904
2729
  /** MMC五盘货项目 */
905
2730
  declare namespace Alibaba.Mmc {
906
- /** MMC五盘货盘招投域盘货变更消息 */
2731
+ /** {@link https://open.taobao.com/tmc.htm?docId=2099&docType=9 RT店仓项目-MMC库存增量推送消息} */
2732
+ interface InventorySynchronous {
2733
+ /** 订单时间 */
2734
+ bizdate: number;
2735
+ /** 订单库存变动数量 */
2736
+ moving_quantity: string;
2737
+ /** 消息Id */
2738
+ msg_id: string;
2739
+ /** 消息类型 */
2740
+ msg_tag: string;
2741
+ /** 消息时间戳 */
2742
+ msg_time_stamp: string;
2743
+ /** 经营店编码 */
2744
+ operation_shop_code: string;
2745
+ /** 交易订单号 */
2746
+ order_no: string;
2747
+ /** 外部商品编码 */
2748
+ out_sku_code: string;
2749
+ /** 商品编码 */
2750
+ sku_code: string;
2751
+ /** 中心仓编码 */
2752
+ warehouse_code: string;
2753
+ }
2754
+
2755
+ /** {@link https://open.taobao.com/tmc.htm?docId=2126&docType=9 MMC五盘货盘招投域盘货变更消息} */
907
2756
  interface OpenStockAlterNotify {
908
2757
  /** 盘货结束时间 */
909
2758
  end_time?: string;
@@ -929,7 +2778,7 @@ declare namespace Alibaba.Mmc {
929
2778
  warehouse_code?: string;
930
2779
  }
931
2780
 
932
- /** MMC盘招投商品变更消息 */
2781
+ /** {@link https://open.taobao.com/tmc.htm?docId=2019&docType=9 MMC盘招投商品变更消息} */
933
2782
  interface OpenStockItemAlter {
934
2783
  /** 活动信息 */
935
2784
  activity: string;
@@ -947,7 +2796,7 @@ declare namespace Alibaba.Mmc {
947
2796
  warehouse_code: string;
948
2797
  }
949
2798
 
950
- /** MMC五盘货对接大润发正向订单消息 */
2799
+ /** {@link https://open.taobao.com/tmc.htm?docId=2024&docType=9 MMC五盘货对接大润发正向订单消息} */
951
2800
  interface OrderNotify {
952
2801
  /** 属性 */
953
2802
  attributes_str: string;
@@ -967,7 +2816,7 @@ declare namespace Alibaba.Mmc {
967
2816
  sys_time: Date | number | string;
968
2817
  }
969
2818
 
970
- /** MMC五盘货对接大润发价格修改消息 */
2819
+ /** {@link https://open.taobao.com/tmc.htm?docId=2017&docType=9 MMC五盘货对接大润发价格修改消息} */
971
2820
  interface PriceUpdate {
972
2821
  /** 是否 */
973
2822
  effective: boolean;
@@ -991,7 +2840,7 @@ declare namespace Alibaba.Mmc {
991
2840
  warehouse_code: string;
992
2841
  }
993
2842
 
994
- /** MMC五盘货对接大润发逆向交易消息 */
2843
+ /** {@link https://open.taobao.com/tmc.htm?docId=2025&docType=9 MMC五盘货对接大润发逆向交易消息} */
995
2844
  interface RefundOrderNotify {
996
2845
  /** 主订单id */
997
2846
  biz_order_id: string;
@@ -1016,7 +2865,7 @@ declare namespace Alibaba.Mmc {
1016
2865
 
1017
2866
  /** 聚石塔监控告警 */
1018
2867
  declare namespace Alibaba.Monitor {
1019
- /** 聚石塔监控告警消息投递 */
2868
+ /** {@link https://open.taobao.com/tmc.htm?docId=1812&docType=9 聚石塔监控告警消息投递} */
1020
2869
  interface EventSendMessage {
1021
2870
  /** 告警产生时间 */
1022
2871
  alarm_time: string;
@@ -1048,7 +2897,7 @@ declare namespace Alibaba.Monitor {
1048
2897
  trigger_name: string;
1049
2898
  }
1050
2899
 
1051
- /** 聚石塔监控告警消息投递 */
2900
+ /** {@link https://open.taobao.com/tmc.htm?docId=1811&docType=9 聚石塔监控告警消息投递} */
1052
2901
  interface MessageSend {
1053
2902
  /** 报警级别 */
1054
2903
  alert_level: string;
@@ -1077,7 +2926,7 @@ declare namespace Alibaba.Monitor {
1077
2926
 
1078
2927
  /** 银泰开放平台消息 */
1079
2928
  declare namespace Alibaba.Mos {
1080
- /** 销售单状态变更 */
2929
+ /** {@link https://open.taobao.com/tmc.htm?docId=2194&docType=9 销售单状态变更} */
1081
2930
  interface SaleOrder {
1082
2931
  /** 业务动作(支付:PAID,完成:FINISHED,退款/关单:REFUND) */
1083
2932
  biz_action: string;
@@ -1093,7 +2942,19 @@ declare namespace Alibaba.Mos {
1093
2942
  update_time: Date | number | string;
1094
2943
  }
1095
2944
 
1096
- /** 销售单退款消息 */
2945
+ /** {@link https://open.taobao.com/tmc.htm?docId=2249&docType=9 销售单发货消息} */
2946
+ interface SaleOrderDeliver {
2947
+ /** 发货商品 */
2948
+ deliver_items: string;
2949
+ /** 发货时间 */
2950
+ deliver_time: Date | number | string;
2951
+ /** 销售单主单号 */
2952
+ master_order_no: string;
2953
+ /** 渠道订单号 */
2954
+ out_trade_no: string;
2955
+ }
2956
+
2957
+ /** {@link https://open.taobao.com/tmc.htm?docId=2193&docType=9 销售单退款消息} */
1097
2958
  interface SaleOrderRefund {
1098
2959
  /** 渠道订单号 */
1099
2960
  out_trade_no: string;
@@ -1106,11 +2967,25 @@ declare namespace Alibaba.Mos {
1106
2967
  /** 销售退款单主单号 */
1107
2968
  rp_master_order_no: string;
1108
2969
  }
2970
+
2971
+ /** {@link https://open.taobao.com/tmc.htm?docId=2186&docType=9 交易订单状态变动} */
2972
+ interface TradeOrder {
2973
+ /** 销售单主单号 */
2974
+ master_order_no: string;
2975
+ /** 渠道订单号 */
2976
+ out_trade_no: string;
2977
+ /** 订单渠道 */
2978
+ sale_channel: number;
2979
+ /** 订单状态 */
2980
+ trade_status: number;
2981
+ /** 更新时间 */
2982
+ update_time: Date | number | string;
2983
+ }
1109
2984
  }
1110
2985
 
1111
2986
  /** 天猫服务 */
1112
2987
  declare namespace Alibaba.Msd {
1113
- /** 喵速达服务供应链结算单明细消息 */
2988
+ /** {@link https://open.taobao.com/tmc.htm?docId=2458&docType=9 喵速达服务供应链结算单明细消息} */
1114
2989
  interface SettlementBillDetail {
1115
2990
  /** 支付流水号 */
1116
2991
  alipayOrderId: string;
@@ -1125,7 +3000,7 @@ declare namespace Alibaba.Msd {
1125
3000
 
1126
3001
  /** 天猫服务 */
1127
3002
  declare namespace Alibaba.Msfservice {
1128
- /** 喵师傅审核单通知 */
3003
+ /** {@link https://open.taobao.com/tmc.htm?docId=2387&docType=9 喵师傅审核单通知} */
1129
3004
  interface AuditCreate {
1130
3005
  /** 审核单id */
1131
3006
  audit_id: number;
@@ -1161,7 +3036,7 @@ declare namespace Alibaba.Msfservice {
1161
3036
  worker_name: string;
1162
3037
  }
1163
3038
 
1164
- /** 喵师傅收费单消息通知 */
3039
+ /** {@link https://open.taobao.com/tmc.htm?docId=2452&docType=9 喵师傅收费单消息通知} */
1165
3040
  interface ExtrafeeRecordCreate {
1166
3041
  /** 收费明细 */
1167
3042
  content_detail: string;
@@ -1181,7 +3056,7 @@ declare namespace Alibaba.Msfservice {
1181
3056
  worker_name: string;
1182
3057
  }
1183
3058
 
1184
- /** 催单消息 */
3059
+ /** {@link https://open.taobao.com/tmc.htm?docId=2431&docType=9 催单消息} */
1185
3060
  interface ReminderCreate {
1186
3061
  /** 渠道(0:商家端 1消费者端) */
1187
3062
  channel: number;
@@ -1200,9 +3075,88 @@ declare namespace Alibaba.Msfservice {
1200
3075
  }
1201
3076
  }
1202
3077
 
3078
+ /** MTP */
3079
+ declare namespace Alibaba.Mtp {
3080
+ /** {@link https://open.taobao.com/tmc.htm?docId=2098&docType=9 MTP-商品新建/编辑成功消息} */
3081
+ interface ItemAddOrUpdate {
3082
+ /** 商品条码 */
3083
+ bar_code: string;
3084
+ /** 平台类目叶子类目(三级类目)ID */
3085
+ cat_id: string;
3086
+ /** 保质期天数 */
3087
+ durability_period: number;
3088
+ /** 平台类目一级类目名称 */
3089
+ forest_first_cat_name: string;
3090
+ /** 平台类目二级类目名称 */
3091
+ forest_second_cat_name: string;
3092
+ /** 平台类目三级类目名称 */
3093
+ forest_third_cat_name: string;
3094
+ /** 货主 */
3095
+ goods_owner: string;
3096
+ /** 销售规格描述 */
3097
+ goods_standards: string;
3098
+ /** 外箱高 */
3099
+ height: string;
3100
+ /** 商品是否进口 */
3101
+ import_goods: boolean;
3102
+ /** 商品最后更新时间 */
3103
+ last_update_time: Date | number | string;
3104
+ /** 外箱长 */
3105
+ length: string;
3106
+ /** 商品状态 */
3107
+ life_status: string;
3108
+ /** 商家编码 */
3109
+ merchant_code: string;
3110
+ /** 消息id */
3111
+ msg_id: string;
3112
+ /** 消息类型 */
3113
+ msg_tag: string;
3114
+ /** 消息发送时间戳 */
3115
+ msg_timestamp: string;
3116
+ /** 商品产地 */
3117
+ producing_area: string;
3118
+ /** 采购规格 */
3119
+ purchasing_specific: number;
3120
+ /** 商品编码 */
3121
+ sku_code: string;
3122
+ /** 商品名称 */
3123
+ sku_name: string;
3124
+ /** 二级供应商编码 */
3125
+ supplier_id: string;
3126
+ /** 共享仓Id */
3127
+ warehouse_code: string;
3128
+ /** 单品重量 */
3129
+ weight: string;
3130
+ /** 外箱宽 */
3131
+ width: string;
3132
+ }
3133
+
3134
+ /** {@link https://open.taobao.com/tmc.htm?docId=2095&docType=9 二级供应商入驻/编辑消息} */
3135
+ interface SupplierAddUpdate {
3136
+ /** 二级供应商对应各仓编码 */
3137
+ dc_ids: string;
3138
+ /** 货主 */
3139
+ goods_owner: string;
3140
+ /** 二级供应商最后更新时间戳 */
3141
+ last_update_time: Date | number | string;
3142
+ /** 商家编码 */
3143
+ merchant_code: string;
3144
+ /** 消息id */
3145
+ msg_id: string;
3146
+ /** 消息类型 */
3147
+ msg_tag: string;
3148
+ /** 消息发送时间戳 */
3149
+ msg_timestamp: string;
3150
+ /** 二级供应商id */
3151
+ supplier_id: string;
3152
+ /** 二级供应商名称 */
3153
+ supplier_name: string;
3154
+ }
3155
+ }
3156
+
1203
3157
  /** 网上法庭 */
1204
3158
  declare namespace Alibaba.Nazca {
1205
- /** 作废存证消息接口 */
3159
+ /** {@link https://open.taobao.com/tmc.htm?docId=1041&docType=9 作废存证消息接口} */
1206
3160
  interface AbandonCert {
1207
3161
  /** 申请流水号 */
1208
3162
  apply_id: string;
@@ -1210,7 +3164,7 @@ declare namespace Alibaba.Nazca {
1210
3164
  platform_user_id: string;
1211
3165
  }
1212
3166
 
1213
- /** 查询收费数量 */
3167
+ /** {@link https://open.taobao.com/tmc.htm?docId=1053&docType=9 查询收费数量} */
1214
3168
  interface QueryChargeNum {
1215
3169
  /** 流水号 */
1216
3170
  apply_id: string;
@@ -1220,7 +3174,7 @@ declare namespace Alibaba.Nazca {
1220
3174
  platform_user_id: string;
1221
3175
  }
1222
3176
 
1223
- /** 发起存证消息接口 */
3177
+ /** {@link https://open.taobao.com/tmc.htm?docId=1032&docType=9 发起存证消息接口} */
1224
3178
  interface SaveCert {
1225
3179
  /** 消息流水号 */
1226
3180
  apply_id: string;
@@ -1252,7 +3206,7 @@ declare namespace Alibaba.Nazca {
1252
3206
  topic: string;
1253
3207
  }
1254
3208
 
1255
- /** 更新收费数量 */
3209
+ /** {@link https://open.taobao.com/tmc.htm?docId=1054&docType=9 更新收费数量} */
1256
3210
  interface UpdateChargeNum {
1257
3211
  /** 流水号 */
1258
3212
  apply_id: string;
@@ -1265,9 +3219,20 @@ declare namespace Alibaba.Nazca {
1265
3219
  }
1266
3220
  }
1267
3221
 
3222
+ /** 本地生活 */
3223
+ declare namespace Alibaba.Newretail {
3224
+ /** {@link https://open.taobao.com/tmc.htm?docId=1717&docType=9 阿里本地生活智慧菜场RTP订单消息} */
3225
+ interface PosOrderMessage {
3226
+ /** 客如云本地订单id */
3227
+ pos_order_id: number;
3228
+ /** 饿了么RTF处理状态 */
3229
+ status: number;
3230
+ }
3231
+ }
3232
+
1268
3233
  /** 零售plus */
1269
3234
  declare namespace Alibaba.Nlife {
1270
- /** 采购单状态变化通知 */
3235
+ /** {@link https://open.taobao.com/tmc.htm?docId=1028&docType=9 采购单状态变化通知} */
1271
3236
  interface BToBTradeStatusNotify {
1272
3237
  /** 采购单状态,枚举类型。 1. WAIT_FOR_CONFIRM:等待确认,此时可接单或拒单,新创建的采购单为此状态; 2. REFUSED:供货商已拒单,如果供货商拒单,采购单为此状态; 3. WAIT_FOR_PAY:等待零售商支付预付款,如果供货商接单,采购单为此状态; 3. WAIT_FOR_CONSIGN:等待供货商发货,如果零售商支付了预付款,采购单为此状态,此时可发货; 4. CONSIGNED_PART:部分发货中(含部分发货的情况),如果供货商发货但没有把采购单中的全部商品发出,采购单为此状态,此时,供货商还可以多次发货; 5. CONSIGNED:已全部发货,如果供货商发货且把采购单中的全部商品发出,采购单为此状态; */
1273
3238
  status: string;
@@ -1277,7 +3242,7 @@ declare namespace Alibaba.Nlife {
1277
3242
  trade_no: string;
1278
3243
  }
1279
3244
 
1280
- /** 零售+订单同步消息 */
3245
+ /** {@link https://open.taobao.com/tmc.htm?docId=1125&docType=9 零售+订单同步消息} */
1281
3246
  interface BToCTradeOrderSync {
1282
3247
  /** 用户实付金额 单位 人民币 分 */
1283
3248
  actural_pay_fee: number;
@@ -1305,7 +3270,31 @@ declare namespace Alibaba.Nlife {
1305
3270
  trade_no: string;
1306
3271
  }
1307
3272
 
1308
- /** 采购单发货通知消息 */
3273
+ /** {@link https://open.taobao.com/tmc.htm?docId=1034&docType=9 B2C交易订单状态变化通知} */
3274
+ interface BToCTradeStatusNotify {
3275
+ /** 订单汇总的物流状态,枚举类型。1. WAIT_FOR_CONSIGN:有待发货商品(可能存在部分商品已发货,甚至已收货);2. WAIT_FOR_SIGN:全部商品已发货,有商品待收货(可能存在部分商品已收货);3. SIGNED:全部商品已收货;4. REJECTED:全部商品已拒收; */
3276
+ logistics_status?: string;
3277
+ /** 物流状态列表,商品是itemId_skuId:数量 */
3278
+ logistics_status_list?: string[];
3279
+ /** 全渠道订单淘宝/天猫订单号 */
3280
+ omni_trade_no?: string;
3281
+ /** 外部订单号 */
3282
+ out_trade_no?: string;
3283
+ /** 订单的支付状态:1. WAIT_BUYER_PAY:等待付款;2. CLOSED:交易关闭;3. SUCCESS:交易成功; */
3284
+ pay_status: string;
3285
+ /** 最新一条退款记录,金额单位 人民币:分 */
3286
+ refund_detail?: string;
3287
+ /** 订单的退款状态,枚举类型。如果未退款,不返回。1. REFUNDED:已全额退款;2. REFUNDED_PART:已部分退款; */
3288
+ refund_status?: string;
3289
+ /** 订单归属零售+门店ID */
3290
+ store_id: number;
3291
+ /** 0:门店订单;1:全渠道订单;3:网直供订单 */
3292
+ trade_biz_type: number;
3293
+ /** 零售+平台订单号 */
3294
+ trade_no: string;
3295
+ }
3296
+
3297
+ /** {@link https://open.taobao.com/tmc.htm?docId=1222&docType=9 采购单发货通知消息} */
1309
3298
  interface BtoBTradeDeliverNotify {
1310
3299
  /** 发货单号 */
1311
3300
  consign_no: string;
@@ -1323,7 +3312,7 @@ declare namespace Alibaba.Nlife {
1323
3312
  trade_no: string;
1324
3313
  }
1325
3314
 
1326
- /** 采购单生效通知消息 */
3315
+ /** {@link https://open.taobao.com/tmc.htm?docId=1221&docType=9 采购单生效通知消息} */
1327
3316
  interface BtoBTradeEffectiveNotify {
1328
3317
  /** 集团ID */
1329
3318
  ent_id: number;
@@ -1339,7 +3328,19 @@ declare namespace Alibaba.Nlife {
1339
3328
  trade_no: string;
1340
3329
  }
1341
3330
 
1342
- /** 采购单退货单确认消息 */
3331
+ /** {@link https://open.taobao.com/tmc.htm?docId=1323&docType=9 二级供货商批次采退单通知信息} */
3332
+ interface BtobRefundInfoNotify {
3333
+ /** 退货地址 */
3334
+ refund_address: string;
3335
+ /** 退货商品的itemId */
3336
+ refund_itemids: string;
3337
+ /** 采退子单号 */
3338
+ sub_refund_no: string;
3339
+ /** 采购退货单号 */
3340
+ trade_refund_no: string;
3341
+ }
3342
+
3343
+ /** {@link https://open.taobao.com/tmc.htm?docId=1230&docType=9 采购单退货单确认消息} */
1343
3344
  interface BtobTradeRefundConfirmMsgNotify {
1344
3345
  /** 采购退货单状态 */
1345
3346
  status: string;
@@ -1349,7 +3350,7 @@ declare namespace Alibaba.Nlife {
1349
3350
  trade_refund_no: string;
1350
3351
  }
1351
3352
 
1352
- /** 采购单退货通知消息 */
3353
+ /** {@link https://open.taobao.com/tmc.htm?docId=1227&docType=9 采购单退货通知消息} */
1353
3354
  interface BtobTradeRefundNotify {
1354
3355
  /** 采购退货单生效时间 */
1355
3356
  gmt_cretae: Date | number | string;
@@ -1359,7 +3360,7 @@ declare namespace Alibaba.Nlife {
1359
3360
  trade_refund_no: string;
1360
3361
  }
1361
3362
 
1362
- /** 供应商审核差异单的通知消息 */
3363
+ /** {@link https://open.taobao.com/tmc.htm?docId=1225&docType=9 供应商审核差异单的通知消息} */
1363
3364
  interface InstorageDiffAuditNotify {
1364
3365
  /** 审核结果 (0为审核通过,1为审核不通过) */
1365
3366
  audit: number;
@@ -1371,7 +3372,7 @@ declare namespace Alibaba.Nlife {
1371
3372
  store_id: number;
1372
3373
  }
1373
3374
 
1374
- /** 零售+商品变动消息 */
3375
+ /** {@link https://open.taobao.com/tmc.htm?docId=1154&docType=9 零售+商品变动消息} */
1375
3376
  interface ItemUpdate {
1376
3377
  /** 商品变动前的值(目前包括库存和价格) */
1377
3378
  before_value?: string;
@@ -1392,9 +3393,160 @@ declare namespace Alibaba.Nlife {
1392
3393
  }
1393
3394
  }
1394
3395
 
3396
+ /** 阿里拍卖 */
3397
+ declare namespace Alibaba.Paimai {
3398
+ /** {@link https://open.taobao.com/tmc.htm?docId=2111&docType=9 支付宝用户完成消费金任务} */
3399
+ interface AlipayConsumeGoldTaskFinish {
3400
+ /** 支付宝用户id */
3401
+ alipay_uid?: string;
3402
+ /** 消息业务id */
3403
+ biz_id?: string;
3404
+ /** 额外信息 */
3405
+ features?: string;
3406
+ /** 支付完成时间 */
3407
+ finish_time?: string;
3408
+ /** 请求id */
3409
+ id?: string;
3410
+ /** 发送时间 */
3411
+ send_time?: string;
3412
+ /** 任务状态 */
3413
+ task_status?: string;
3414
+ /** 消息topic */
3415
+ topic?: string;
3416
+ }
3417
+
3418
+ /** {@link https://open.taobao.com/tmc.htm?docId=2114&docType=9 拍卖支付宝营销通用消息} */
3419
+ interface CommonPromoTask {
3420
+ /** 活动行为【VISIT | SUBSCRIBE | FOREGIFT | BID ...】 */
3421
+ action: string;
3422
+ /** 支付宝用户id */
3423
+ alipay_uid: string;
3424
+ /** 海豚消息id(幂等键) */
3425
+ biz_order_id: string;
3426
+ /** 业务完成时间 */
3427
+ biz_time: string;
3428
+ /** 额外信息 */
3429
+ features: string;
3430
+ /** 活动场景【LARGE_PROMO | CONSUME_GOLD ...】 */
3431
+ scene: string;
3432
+ /** Y | N */
3433
+ state: string;
3434
+ /** 消息topic */
3435
+ topic: string;
3436
+ /** top消息id */
3437
+ top_id: string;
3438
+ }
3439
+ }
3440
+
1395
3441
  /** 信息平台-采购 */
1396
3442
  declare namespace Alibaba.Pur {
1397
- /** 取消订单结果通知 */
3443
+ /** {@link https://open.taobao.com/tmc.htm?docId=2119&docType=9 合同状态改变发送消息} */
3444
+ interface ContractStatusChange {
3445
+ /** 合同id */
3446
+ contract_ids: string;
3447
+ /** 合同状态 */
3448
+ status: string;
3449
+ }
3450
+
3451
+ /** {@link https://open.taobao.com/tmc.htm?docId=1975&docType=9 作废结算合同} */
3452
+ interface DelSettlementContract {
3453
+ /** 操作类型,作废 */
3454
+ action_type: string;
3455
+ /** 立项id */
3456
+ project_number: string;
3457
+ /** 寻源ID */
3458
+ sourcing_request_ids: number[];
3459
+ }
3460
+
3461
+ /** {@link https://open.taobao.com/tmc.htm?docId=1648&docType=9 入库单审批完成消息广播} */
3462
+ interface FaApproveFinished {
3463
+ /** 入库单ID */
3464
+ business_number: string;
3465
+ /** 备注信息,无业务敏感数据 */
3466
+ ext_str?: string;
3467
+ /** 单据ID */
3468
+ id: number;
3469
+ /** 完成状态 */
3470
+ status?: string;
3471
+ /** 租户 */
3472
+ tenant_id: number;
3473
+ }
3474
+
3475
+ /** {@link https://open.taobao.com/tmc.htm?docId=1657&docType=9 PO审批完成} */
3476
+ interface PoAudited {
3477
+ /** 业务类型 */
3478
+ biz_type?: string;
3479
+ /** 订单编号 */
3480
+ po_number: string;
3481
+ /** 订单状态 */
3482
+ status: string;
3483
+ }
3484
+
3485
+ /** {@link https://open.taobao.com/tmc.htm?docId=1665&docType=9 PO作废消息发送} */
3486
+ interface PoCancelled {
3487
+ /** 业务类型 */
3488
+ biz_type?: string;
3489
+ /** 订单编号 */
3490
+ po_number: string;
3491
+ /** {行号:状态} */
3492
+ status_list: string;
3493
+ }
3494
+
3495
+ /** {@link https://open.taobao.com/tmc.htm?docId=1666&docType=9 PO关闭发送消息} */
3496
+ interface PoClosed {
3497
+ /** 订单编号 */
3498
+ po_number: string;
3499
+ /** 订单状态 */
3500
+ status: string;
3501
+ }
3502
+
3503
+ /** {@link https://open.taobao.com/tmc.htm?docId=2089&docType=9 PR审批完成消息通知} */
3504
+ interface PrApproved {
3505
+ /** 消息唯一标识sourceType + sourceValue */
3506
+ message_id: string;
3507
+ /** PR单号 */
3508
+ pr_number: string;
3509
+ /** PR状态 */
3510
+ status: string;
3511
+ }
3512
+
3513
+ /** {@link https://open.taobao.com/tmc.htm?docId=1514&docType=9 pr删除通知消息} */
3514
+ interface PrDelete {
3515
+ /** PR编号 */
3516
+ pr_number: string;
3517
+ }
3518
+
3519
+ /** {@link https://open.taobao.com/tmc.htm?docId=1844&docType=9 创建pr} */
3520
+ interface PurchaseRequisition {
3521
+ /** 消息唯一标识sourceType + sourceValue */
3522
+ message_id: string;
3523
+ /** pr单号 */
3524
+ pr_number: string;
3525
+ /** 创建成功与否 */
3526
+ result_msg: string;
3527
+ }
3528
+
3529
+ /** {@link https://open.taobao.com/tmc.htm?docId=2026&docType=9 PR作废消息通知} */
3530
+ interface PurchaseRequisitionCancel {
3531
+ /** 消息唯一标识sourceType + sourceValue */
3532
+ message_id: string;
3533
+ /** pr单号 */
3534
+ pr_number: string;
3535
+ /** PR状态 */
3536
+ status: string;
3537
+ }
3538
+
3539
+ /** {@link https://open.taobao.com/tmc.htm?docId=2058&docType=9 PR删除消息通知} */
3540
+ interface PurchaseRequisitionDelete {
3541
+ /** 消息唯一标识sourceType + sourceValue */
3542
+ message_id: string;
3543
+ /** PR单号 */
3544
+ pr_number: string;
3545
+ /** PR状态 */
3546
+ status: string;
3547
+ }
3548
+
3549
+ /** {@link https://open.taobao.com/tmc.htm?docId=2485&docType=9 取消订单结果通知} */
1398
3550
  interface ResourceOrderCancelNotify {
1399
3551
  /** 失败原因 */
1400
3552
  failedMsg?: string;
@@ -1412,7 +3564,7 @@ declare namespace Alibaba.Pur {
1412
3564
  success: boolean;
1413
3565
  }
1414
3566
 
1415
- /** 发货提醒 */
3567
+ /** {@link https://open.taobao.com/tmc.htm?docId=2448&docType=9 发货提醒} */
1416
3568
  interface ResourceOrderShipNotify {
1417
3569
  /** 子订单 */
1418
3570
  orderItems: string;
@@ -1421,11 +3573,53 @@ declare namespace Alibaba.Pur {
1421
3573
  /** 三方订单号 */
1422
3574
  outOrderNo: string;
1423
3575
  }
3576
+
3577
+ /** {@link https://open.taobao.com/tmc.htm?docId=2084&docType=9 RT审批完成消息通知} */
3578
+ interface RtAudited {
3579
+ /** RT单号 */
3580
+ rt_number: string;
3581
+ /** RT的状态 */
3582
+ status: string;
3583
+ }
3584
+
3585
+ /** {@link https://open.taobao.com/tmc.htm?docId=1974&docType=9 维护结算合同消息发送} */
3586
+ interface SettlementContract {
3587
+ /** 操作类型,创建/更新/作废 */
3588
+ action_type: string;
3589
+ /** 立项id */
3590
+ project_number: string;
3591
+ /** 寻源id */
3592
+ sourcing_request_ids: number[];
3593
+ }
3594
+
3595
+ /** {@link https://open.taobao.com/tmc.htm?docId=1653&docType=9 供应商信息变更} */
3596
+ interface SupplierChange {
3597
+ /** 供应商的归属组织 */
3598
+ org_id?: string;
3599
+ /** 变更/删除 */
3600
+ status: string;
3601
+ /** 供应商编号 */
3602
+ supplier_code: string;
3603
+ /** 供应商ID */
3604
+ supplier_id: number;
3605
+ /** 供应商名称 */
3606
+ supplier_name: string;
3607
+ /** 消息业务ID(32位) */
3608
+ trace_id: string;
3609
+ }
3610
+
3611
+ /** {@link https://open.taobao.com/tmc.htm?docId=1976&docType=9 VPR审批报价完成发送消息} */
3612
+ interface VprApproved {
3613
+ /** VPR审批报价消息 */
3614
+ audit_call_back_send_msg: string;
3615
+ /** 寻源id */
3616
+ sourcing_project_id: string;
3617
+ }
1424
3618
  }
1425
3619
 
1426
3620
  /** 天猫服务 */
1427
3621
  declare namespace Alibaba.Serviceplatform {
1428
- /** 服务供应链核销单消息 */
3622
+ /** {@link https://open.taobao.com/tmc.htm?docId=1945&docType=9 服务供应链核销单消息} */
1429
3623
  interface FulfilTask {
1430
3624
  /** 核销单操作,比如create、reserve */
1431
3625
  action: string;
@@ -1443,7 +3637,7 @@ declare namespace Alibaba.Serviceplatform {
1443
3637
  workcard_ids?: number[];
1444
3638
  }
1445
3639
 
1446
- /** 服务供应链服务单消息 */
3640
+ /** {@link https://open.taobao.com/tmc.htm?docId=1965&docType=9 服务供应链服务单消息} */
1447
3641
  interface ServiceOrder {
1448
3642
  /** 服务单操作,如create,effect */
1449
3643
  action: string;
@@ -1458,7 +3652,7 @@ declare namespace Alibaba.Serviceplatform {
1458
3652
 
1459
3653
  /** 阿里智付 */
1460
3654
  declare namespace Alibaba.Sp {
1461
- /** 通知付款结果 */
3655
+ /** {@link https://open.taobao.com/tmc.htm?docId=2107&docType=9 通知付款结果} */
1462
3656
  interface NotifyPaymentResult {
1463
3657
  /** 付款时间 */
1464
3658
  actual_pay_time?: Date | number | string;
@@ -1485,7 +3679,7 @@ declare namespace Alibaba.Sp {
1485
3679
 
1486
3680
  /** 阿里发票 */
1487
3681
  declare namespace Alibaba.Tax {
1488
- /** 税优雇员签约结果消息 */
3682
+ /** {@link https://open.taobao.com/tmc.htm?docId=1809&docType=9 税优雇员签约结果消息} */
1489
3683
  interface EmployeeSignResult {
1490
3684
  /** 三方协议ID */
1491
3685
  agreement_id: string;
@@ -1519,7 +3713,7 @@ declare namespace Alibaba.Tax {
1519
3713
  tax_optimization_mode: string;
1520
3714
  }
1521
3715
 
1522
- /** 税优发薪结果通知 */
3716
+ /** {@link https://open.taobao.com/tmc.htm?docId=1821&docType=9 税优发薪结果通知} */
1523
3717
  interface SalaryPayResult {
1524
3718
  /** 发薪账期 */
1525
3719
  account_date: string;
@@ -1542,9 +3736,136 @@ declare namespace Alibaba.Tax {
1542
3736
  }
1543
3737
  }
1544
3738
 
3739
+ /** 淘宝电子书 */
3740
+ declare namespace Alibaba.Tbdx {
3741
+ /** {@link https://open.taobao.com/tmc.htm?docId=2144&docType=9 电子书内容变更消息} */
3742
+ interface EBookContent {
3743
+ /** itemId */
3744
+ item_id: number;
3745
+ /** open_uid */
3746
+ seller_open_id: number;
3747
+ /** 类型:11-电子书内容新建,12-电子书内容编辑,21-宝贝新建,22-宝贝编辑,23-宝贝下架 */
3748
+ type: number;
3749
+ }
3750
+
3751
+ /** {@link https://open.taobao.com/tmc.htm?docId=2148&docType=9 电子书商家签约消息} */
3752
+ interface EBookSellerSign {
3753
+ /** 机构ID */
3754
+ org_id: number;
3755
+ /** 卖家openUid */
3756
+ seller_open_id: number;
3757
+ /** 签约状态:1-已签约;2-终止协议 */
3758
+ sign_status: number;
3759
+ }
3760
+
3761
+ /** {@link https://open.taobao.com/tmc.htm?docId=2149&docType=9 电子书用户下单消息} */
3762
+ interface EBookUserOrder {
3763
+ /** 买家openUid */
3764
+ buyer_open_id: number;
3765
+ /** 订单号 */
3766
+ order_id: number;
3767
+ }
3768
+
3769
+ /** {@link https://open.taobao.com/tmc.htm?docId=1939&docType=9 淘宝教育论文查重推送} */
3770
+ interface PaperPush {
3771
+ /** 论文ID */
3772
+ paper_id: string;
3773
+ /** 提交时间 */
3774
+ submit_time: Date | number | string;
3775
+ }
3776
+ }
3777
+
3778
+ /** 同城 */
3779
+ declare namespace Alibaba.Tc {
3780
+ /** {@link https://open.taobao.com/tmc.htm?docId=2049&docType=9 同城履约物流状态通知} */
3781
+ interface LogisticsStatusUpdate {
3782
+ /** 外部订单ID */
3783
+ source_order_id: string;
3784
+ /** 当前状态 */
3785
+ status: string;
3786
+ /** 状态描述 */
3787
+ status_desc: string;
3788
+ /** 发生时间 */
3789
+ time: Date | number | string;
3790
+ /** 仓作业单IDs */
3791
+ work_order_ids: string[];
3792
+ }
3793
+ }
3794
+
3795
+ /** 三小时公益 */
3796
+ declare namespace Alibaba.Threehours {
3797
+ /** {@link https://open.taobao.com/tmc.htm?docId=2083&docType=9 授权结果} */
3798
+ interface AuthorizationResult {
3799
+ /** 行为,AUTH:授权,CANCEL_AUTH:取消授权 */
3800
+ action: string;
3801
+ /** 授权码 */
3802
+ auth_code?: string;
3803
+ /** 错误信息 */
3804
+ error_msg?: string;
3805
+ /** 200:成功 4001:认证失败 500:意料之外的异常 */
3806
+ result_code: number;
3807
+ /** 传入参数 */
3808
+ source_params?: string;
3809
+ }
3810
+
3811
+ /** {@link https://open.taobao.com/tmc.htm?docId=1960&docType=9 益起来捐步成功消息} */
3812
+ interface DonateStep {
3813
+ /** 支付宝ID */
3814
+ alipay_user_id: number | bigint;
3815
+ /** 捐步数量 */
3816
+ donate_step: number;
3817
+ /** 捐步时间 yyyy-MM-dd HH:mm:ss */
3818
+ donate_step_time: string;
3819
+ /** 捐步唯一ID */
3820
+ id: number;
3821
+ /** 是否为孩子 */
3822
+ kids_user?: boolean;
3823
+ /** 家长支付宝ID */
3824
+ parent_alipay_user_id?: number | bigint;
3825
+ /** 家长3小时公益用户ID */
3826
+ parent_user_id?: number;
3827
+ /** 3小时公益用户ID */
3828
+ user_id: number;
3829
+ }
3830
+
3831
+ /** {@link https://open.taobao.com/tmc.htm?docId=2112&docType=9 用户绑定结果通知} */
3832
+ interface UserBindResult {
3833
+ /** 行为 绑定/取消绑定 */
3834
+ action: string;
3835
+ /** 错误信息 */
3836
+ error_msg?: string;
3837
+ /** 消息结果值,200成功 4001失败 500未知异常 */
3838
+ result_code: number;
3839
+ /** 第三方用户ID */
3840
+ user_key: string;
3841
+ }
3842
+
3843
+ /** {@link https://open.taobao.com/tmc.htm?docId=1959&docType=9 用户参与志愿服务活动} */
3844
+ interface UserJoinActivity {
3845
+ /** 活动ID */
3846
+ activity_id: number;
3847
+ /** 活动名称 */
3848
+ activity_name: string;
3849
+ /** 支付宝ID */
3850
+ alipay_user_id: number | bigint;
3851
+ /** 报名唯一ID */
3852
+ id: number;
3853
+ /** 是否为孩子 */
3854
+ kids_user?: boolean;
3855
+ /** 家长支付宝ID */
3856
+ parent_alipay_user_id?: number | bigint;
3857
+ /** 家长3小时公益用户ID */
3858
+ parent_user_id?: number;
3859
+ /** 报名时间 yyyy-MM-dd HH:mm:ss */
3860
+ register_time: string;
3861
+ /** 3小时公益用户ID */
3862
+ user_id: number;
3863
+ }
3864
+ }
3865
+
1545
3866
  /** 阿里通信 */
1546
3867
  declare namespace Alibaba.Tianji {
1547
- /** 天机平台合约机供应商订单消息 */
3868
+ /** {@link https://open.taobao.com/tmc.htm?docId=870&docType=9 天机平台合约机供应商订单消息} */
1548
3869
  interface ContractOrder {
1549
3870
  /** 合约订单状态,1, "未订购" ;2, "订购中"; 4, "订购失败"; 5, "订购成功" ;6, "订购取消" */
1550
3871
  contract_order_status: number;
@@ -1556,7 +3877,7 @@ declare namespace Alibaba.Tianji {
1556
3877
  tb_order_no: string;
1557
3878
  }
1558
3879
 
1559
- /** 天机平台订单生成通知消息 */
3880
+ /** {@link https://open.taobao.com/tmc.htm?docId=839&docType=9 天机平台订单生成通知消息} */
1560
3881
  interface OrderCreate {
1561
3882
  /** 充值账号 */
1562
3883
  account: string;
@@ -1585,9 +3906,63 @@ declare namespace Alibaba.Tianji {
1585
3906
  }
1586
3907
  }
1587
3908
 
3909
+ /** 淘鲜达 */
3910
+ declare namespace Alibaba.Txd {
3911
+ /** {@link https://open.taobao.com/tmc.htm?docId=1769&docType=9 淘鲜达互动事件通知} */
3912
+ interface InteractEventNotice {
3913
+ /** 活动id */
3914
+ activity_id: number;
3915
+ /** 业务唯一号,用于幂等去重 */
3916
+ biz_id: string;
3917
+ /** 互动事件code */
3918
+ interact_event_code: string;
3919
+ /** 商家编码 */
3920
+ merchant_code?: string;
3921
+ /** 用户id */
3922
+ user_id?: number;
3923
+ /** 混淆昵称 */
3924
+ user_nick?: string;
3925
+ }
3926
+
3927
+ /** {@link https://open.taobao.com/tmc.htm?docId=2118&docType=9 淘鲜达交易状态变化} */
3928
+ interface OrderStatusChangeToAlipay {
3929
+ /** 支付宝用户id */
3930
+ alipay_user_id: string;
3931
+ /** 业务id */
3932
+ biz_id: string;
3933
+ /** 业务幂等id */
3934
+ biz_order_no: string;
3935
+ /** 业务请求时间 */
3936
+ biz_time: string;
3937
+ /** 海豚事件code */
3938
+ event_code: string;
3939
+ /** 状态 */
3940
+ status: string;
3941
+ /** 消息topic */
3942
+ topic: string;
3943
+ }
3944
+ }
3945
+
3946
+ /** 全域收单 */
3947
+ declare namespace Alibaba.Uni {
3948
+ /** {@link https://open.taobao.com/tmc.htm?docId=1260&docType=9 全域收单交易消息} */
3949
+ interface TradeStatusNotify {
3950
+ /** 外部商家订单号 */
3951
+ out_trade_no: string;
3952
+ /** 退款状态。REFUND_FAILED:退款失败; REFUND_SUCCESS:退款成功,针对指定退款号; REFUND_PARTLY:部分退款,针对整单交易; REFUND_FINISHED:退款完成,针对整单交易; */
3953
+ refund_status?: string;
3954
+ /** 订单归属门店 */
3955
+ store_id?: string;
3956
+ /** 平台订单号 */
3957
+ trade_no: string;
3958
+ /** 订单状态.WAIT_BUYER_PAY:等待用户付款, TRADE_SUCCESS:已付款,交易成功, TRADE_ACCEPT:已接单,需要配货的情况, TRADE_FINISHED:交易完成, TRADE_CLOSED:交易关闭; */
3959
+ trade_status: string;
3960
+ }
3961
+ }
3962
+
1588
3963
  /** 五道口订单 */
1589
3964
  declare namespace Alibaba.Wdk {
1590
- /** 差评回评 */
3965
+ /** {@link https://open.taobao.com/tmc.htm?docId=1564&docType=9 差评回评} */
1591
3966
  interface ChannelCommentAudit {
1592
3967
  /** 回评内容 */
1593
3968
  audit_content: string;
@@ -1601,7 +3976,7 @@ declare namespace Alibaba.Wdk {
1601
3976
  sku_code?: string;
1602
3977
  }
1603
3978
 
1604
- /** 五道口售中取消外部订单消息 */
3979
+ /** {@link https://open.taobao.com/tmc.htm?docId=1550&docType=9 五道口售中取消外部订单消息} */
1605
3980
  interface ChannelOrderCancel {
1606
3981
  /** 主单号 */
1607
3982
  biz_order_id: string;
@@ -1619,7 +3994,7 @@ declare namespace Alibaba.Wdk {
1619
3994
  whole_cancel: boolean;
1620
3995
  }
1621
3996
 
1622
- /** 客服审核退款结果 */
3997
+ /** {@link https://open.taobao.com/tmc.htm?docId=1561&docType=9 客服审核退款结果} */
1623
3998
  interface ChannelOrderCsRefundAudit {
1624
3999
  /** 同意退款子单 */
1625
4000
  agree_sub_orders: string;
@@ -1639,7 +4014,7 @@ declare namespace Alibaba.Wdk {
1639
4014
  store_id: string;
1640
4015
  }
1641
4016
 
1642
- /** 客服代客发起售后退款(整单/部分) */
4017
+ /** {@link https://open.taobao.com/tmc.htm?docId=1560&docType=9 客服代客发起售后退款(整单/部分)} */
1643
4018
  interface ChannelOrderCsUserrefund {
1644
4019
  /** 盒马主单号 */
1645
4020
  biz_order_id: string;
@@ -1659,7 +4034,7 @@ declare namespace Alibaba.Wdk {
1659
4034
  store_id: string;
1660
4035
  }
1661
4036
 
1662
- /** 订单状态变更消息 */
4037
+ /** {@link https://open.taobao.com/tmc.htm?docId=1559&docType=9 订单状态变更消息} */
1663
4038
  interface ChannelOrderStatusChange {
1664
4039
  /** 主单号 */
1665
4040
  biz_order_id: string;
@@ -1681,7 +4056,7 @@ declare namespace Alibaba.Wdk {
1681
4056
  sub_refund_orders?: string;
1682
4057
  }
1683
4058
 
1684
- /** 库存同步 */
4059
+ /** {@link https://open.taobao.com/tmc.htm?docId=1562&docType=9 库存同步} */
1685
4060
  interface ChannelStockSync {
1686
4061
  /** 发生时间 */
1687
4062
  biz_date: string;
@@ -1697,7 +4072,23 @@ declare namespace Alibaba.Wdk {
1697
4072
  store_id: string;
1698
4073
  }
1699
4074
 
1700
- /** 售中履约变更消息 */
4075
+ /** {@link https://open.taobao.com/tmc.htm?docId=2301&docType=9 配送异常信消息} */
4076
+ interface DmsSignError {
4077
+ /** 配送异常原因 */
4078
+ abnormal_reason: string;
4079
+ /** 配送异常原因编码 */
4080
+ abnormal_reason_code: string;
4081
+ /** 配送异常时间(时间戳) */
4082
+ abnormal_time: string;
4083
+ /** 骑手名称 */
4084
+ deliverer_name: string;
4085
+ /** 骑手电话 */
4086
+ deliverer_phone: string;
4087
+ /** 交易单号 */
4088
+ order_id: string;
4089
+ }
4090
+
4091
+ /** {@link https://open.taobao.com/tmc.htm?docId=1738&docType=9 售中履约变更消息} */
1701
4092
  interface FulfillOrderChange {
1702
4093
  /** 操作修改时间,消息消费端可用此字段处理消息乱序问题 */
1703
4094
  gmt_modified: string;
@@ -1711,7 +4102,29 @@ declare namespace Alibaba.Wdk {
1711
4102
  user_expect_time: string;
1712
4103
  }
1713
4104
 
1714
- /** 商家渠道商品变动消息 */
4105
+ /** {@link https://open.taobao.com/tmc.htm?docId=1624&docType=9 仓配交接消息} */
4106
+ interface FulfillWarehouseHandover {
4107
+ /** 批次号 */
4108
+ batch_id: string;
4109
+ /** 过机时间 */
4110
+ passing_machine_time: string;
4111
+ /** 仓编码 */
4112
+ warehouse_code: string;
4113
+ }
4114
+
4115
+ /** {@link https://open.taobao.com/tmc.htm?docId=1996&docType=9 退仓单物流状态变更通知} */
4116
+ interface ReturnWarehouseStatusChange {
4117
+ /** 退仓单附加属性 */
4118
+ attribute: string;
4119
+ /** 物流状态,REFUND_LEAVE_DELIVERY_DOCK:出配送站 REFUND_ARRIVE_WAREHOUSE:送达仓 */
4120
+ logistics_status: string;
4121
+ /** 退仓单号 */
4122
+ return_warehouse_bill_id: string;
4123
+ /** 仓编码 */
4124
+ warehouse_code: string;
4125
+ }
4126
+
4127
+ /** {@link https://open.taobao.com/tmc.htm?docId=1733&docType=9 商家渠道商品变动消息} */
1715
4128
  interface StoreItemUpdate {
1716
4129
  /** 此次消息唯一标志 */
1717
4130
  biz_uniq_id: string;
@@ -1722,11 +4135,27 @@ declare namespace Alibaba.Wdk {
1722
4135
  /** 商品编码 */
1723
4136
  sku_code: string;
1724
4137
  }
4138
+
4139
+ /** {@link https://open.taobao.com/tmc.htm?docId=1694&docType=9 外部商家发送push消息} */
4140
+ interface TxdCrmChannelMessagePush {
4141
+ /** 渠道编码 */
4142
+ channel_code: string;
4143
+ /** 发送内容 */
4144
+ content: string;
4145
+ /** 此次push唯一标志 */
4146
+ crm_push_id: string;
4147
+ /** 商家编码 */
4148
+ merchant_code: string;
4149
+ /** 商家用户id */
4150
+ merchant_user_id?: string;
4151
+ /** 外部用户id */
4152
+ open_member_id: string;
4153
+ }
1725
4154
  }
1726
4155
 
1727
4156
  /** 五道口商品 */
1728
4157
  declare namespace Alibaba.Wdkitem {
1729
- /** 五道口仓商品变更消息 */
4158
+ /** {@link https://open.taobao.com/tmc.htm?docId=1440&docType=9 五道口仓商品变更消息} */
1730
4159
  interface WarehouseSkuModify {
1731
4160
  /** 商家编码 */
1732
4161
  merchant_code: string;
@@ -1739,7 +4168,7 @@ declare namespace Alibaba.Wdkitem {
1739
4168
 
1740
4169
  /** 五道口订单 */
1741
4170
  declare namespace Alibaba.Wdkop {
1742
- /** Rex用户信息变更消息 */
4171
+ /** {@link https://open.taobao.com/tmc.htm?docId=1703&docType=9 Rex用户信息变更消息} */
1743
4172
  interface RexAccountChange {
1744
4173
  /** 消息通知id */
1745
4174
  msg_id: string;
@@ -1748,7 +4177,7 @@ declare namespace Alibaba.Wdkop {
1748
4177
 
1749
4178
  /** 五道口订单 */
1750
4179
  declare namespace Alibaba.Wdkopen {
1751
- /** 五道口交易状态变更消息通知 */
4180
+ /** {@link https://open.taobao.com/tmc.htm?docId=1774&docType=9 五道口交易状态变更消息通知} */
1752
4181
  interface OrderMessage {
1753
4182
  /** 五道口订单ID */
1754
4183
  biz_order_id: number;
@@ -1762,7 +4191,7 @@ declare namespace Alibaba.Wdkopen {
1762
4191
  store_id: string;
1763
4192
  }
1764
4193
 
1765
- /** 采购价变更消息 */
4194
+ /** {@link https://open.taobao.com/tmc.htm?docId=2125&docType=9 采购价变更消息} */
1766
4195
  interface PriceAdjust {
1767
4196
  /** 操作类型:1=修改 2=删除 3=失效 */
1768
4197
  operate_type: number;
@@ -1778,7 +4207,7 @@ declare namespace Alibaba.Wdkopen {
1778
4207
  supply_store_code: string;
1779
4208
  }
1780
4209
 
1781
- /** 同城零售逆向交易消息 */
4210
+ /** {@link https://open.taobao.com/tmc.htm?docId=1819&docType=9 同城零售逆向交易消息} */
1782
4211
  interface RefundMessage {
1783
4212
  /** 退款单号 */
1784
4213
  refund_id?: string;
@@ -1789,7 +4218,7 @@ declare namespace Alibaba.Wdkopen {
1789
4218
 
1790
4219
  /** 五道口订单 */
1791
4220
  declare namespace Alibaba.Wdkorder {
1792
- /** 五道口订单履约状态变更消息 */
4221
+ /** {@link https://open.taobao.com/tmc.htm?docId=1289&docType=9 五道口订单履约状态变更消息} */
1793
4222
  interface FulfillStatusChange {
1794
4223
  /** 履约值 */
1795
4224
  fulfill?: string;
@@ -1799,13 +4228,13 @@ declare namespace Alibaba.Wdkorder {
1799
4228
  status?: string;
1800
4229
  }
1801
4230
 
1802
- /** 共享库存保险正向投保消息 */
4231
+ /** {@link https://open.taobao.com/tmc.htm?docId=1807&docType=9 共享库存保险正向投保消息} */
1803
4232
  interface InsuranceOrder {
1804
4233
  /** 淘宝交易子订单 */
1805
4234
  tb_sub_order_id: number;
1806
4235
  }
1807
4236
 
1808
- /** 共享库存保险逆向理赔消息 */
4237
+ /** {@link https://open.taobao.com/tmc.htm?docId=1808&docType=9 共享库存保险逆向理赔消息} */
1809
4238
  interface InsuranceRefund {
1810
4239
  /** 退货单ID */
1811
4240
  refund_id: string;
@@ -1813,7 +4242,7 @@ declare namespace Alibaba.Wdkorder {
1813
4242
  tb_sub_order_id: number;
1814
4243
  }
1815
4244
 
1816
- /** 订单履约状态变更消息 */
4245
+ /** {@link https://open.taobao.com/tmc.htm?docId=1770&docType=9 订单履约状态变更消息} */
1817
4246
  interface OrderFulfillPush {
1818
4247
  /** 履约单ID */
1819
4248
  fulfill_order_id: string;
@@ -1823,7 +4252,7 @@ declare namespace Alibaba.Wdkorder {
1823
4252
  merchant_code: string;
1824
4253
  }
1825
4254
 
1826
- /** 履约状态变更消息 */
4255
+ /** {@link https://open.taobao.com/tmc.htm?docId=1801&docType=9 履约状态变更消息} */
1827
4256
  interface OrderFulfillTokenPush {
1828
4257
  /** 履约单ID */
1829
4258
  fulfill_order_id: string;
@@ -1833,7 +4262,15 @@ declare namespace Alibaba.Wdkorder {
1833
4262
  merchant_code: string;
1834
4263
  }
1835
4264
 
1836
- /** 猫超订单数据变更消息通知 */
4265
+ /** {@link https://open.taobao.com/tmc.htm?docId=1762&docType=9 猫超订单逆向消息通知商户} */
4266
+ interface OrderRefundPush {
4267
+ /** 商户编码 */
4268
+ merchant_code: string;
4269
+ /** 退款单ID */
4270
+ refund_id: string;
4271
+ }
4272
+
4273
+ /** {@link https://open.taobao.com/tmc.htm?docId=1761&docType=9 猫超订单数据变更消息通知} */
1837
4274
  interface OrderStatusPush {
1838
4275
  /** 商户编码 */
1839
4276
  merchant_code: string;
@@ -1843,7 +4280,7 @@ declare namespace Alibaba.Wdkorder {
1843
4280
  tb_order_id: number;
1844
4281
  }
1845
4282
 
1846
- /** 逆向单企业积分消息发送 */
4283
+ /** {@link https://open.taobao.com/tmc.htm?docId=1631&docType=9 逆向单企业积分消息发送} */
1847
4284
  interface RefundOrgPoint {
1848
4285
  /** 退款单商品ID */
1849
4286
  item_id?: string;
@@ -1869,7 +4306,7 @@ declare namespace Alibaba.Wdkorder {
1869
4306
  suborder_channel_uuid: string;
1870
4307
  }
1871
4308
 
1872
- /** 五道口淘鲜达逆向订单消息 */
4309
+ /** {@link https://open.taobao.com/tmc.htm?docId=1283&docType=9 五道口淘鲜达逆向订单消息} */
1873
4310
  interface RefundSuccess {
1874
4311
  /** 实际取货数量 */
1875
4312
  actual_pick_quantity?: string;
@@ -1951,7 +4388,7 @@ declare namespace Alibaba.Wdkorder {
1951
4388
  trade_attributes?: string;
1952
4389
  }
1953
4390
 
1954
- /** 共享库存SOPO */
4391
+ /** {@link https://open.taobao.com/tmc.htm?docId=1587&docType=9 共享库存SOPO} */
1955
4392
  interface SoPo {
1956
4393
  /** 履约子订单号 如果是正向,则为正向履约子单号,如果是退款,则为逆向履约子单号 */
1957
4394
  fulfill_sub_order_id?: string;
@@ -1977,7 +4414,7 @@ declare namespace Alibaba.Wdkorder {
1977
4414
  tb_sub_order_id: string;
1978
4415
  }
1979
4416
 
1980
- /** 五道口订单状态变更消息 */
4417
+ /** {@link https://open.taobao.com/tmc.htm?docId=1272&docType=9 五道口订单状态变更消息} */
1981
4418
  interface StatusChange {
1982
4419
  /** 盒马主订单号 */
1983
4420
  biz_order_id: number;
@@ -2035,7 +4472,7 @@ declare namespace Alibaba.Wdkorder {
2035
4472
  trd_type?: number;
2036
4473
  }
2037
4474
 
2038
- /** 淘鲜达订单优惠券状态变更 */
4475
+ /** {@link https://open.taobao.com/tmc.htm?docId=1623&docType=9 淘鲜达订单优惠券状态变更} */
2039
4476
  interface VoucherStatus {
2040
4477
  /** 业务时间 */
2041
4478
  biz_time: Date | number | string;
@@ -2052,7 +4489,7 @@ declare namespace Alibaba.Wdkorder {
2052
4489
 
2053
4490
  /** 五道口营销 */
2054
4491
  declare namespace Alibaba.Wdktrade {
2055
- /** 营销券实例消息 */
4492
+ /** {@link https://open.taobao.com/tmc.htm?docId=1625&docType=9 营销券实例消息} */
2056
4493
  interface CouponInstance {
2057
4494
  /** 门槛金额 */
2058
4495
  amount?: number;
@@ -2089,7 +4526,7 @@ declare namespace Alibaba.Wdktrade {
2089
4526
 
2090
4527
  /** 平台消息 */
2091
4528
  declare namespace Alibaba.Yunio {
2092
- /** YunIO数据流转 */
4529
+ /** {@link https://open.taobao.com/tmc.htm?docId=1063&docType=9 YunIO数据流转} */
2093
4530
  interface DataTransfer {
2094
4531
  /** 流转数据体 */
2095
4532
  data: string;