tmc.js 0.3.0

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.
@@ -0,0 +1,1919 @@
1
+ /** 自动驾驶API */
2
+ declare namespace Alibaba.Adlab {
3
+ /** 自动驾驶iot设备消息 */
4
+ interface IotDevice {
5
+ /** iot设备key */
6
+ iot_device_key: string;
7
+ /** 车辆编号 */
8
+ udid: string;
9
+ }
10
+
11
+ /** 包裹eta更新 */
12
+ interface OrderItemEtaUpdate {
13
+ /** 预计到达时间 */
14
+ eta_arrival_time: string;
15
+ /** 消息id */
16
+ message_id: string;
17
+ /** 订单项编列表 */
18
+ order_item_sn: string;
19
+ /** 订单编号 */
20
+ order_sn: string;
21
+ }
22
+
23
+ /** 包裹配送状态更新 */
24
+ interface OrderItemStatus {
25
+ /** 消息id */
26
+ message_id: string;
27
+ /** 订单项编号 */
28
+ order_item_sn: string;
29
+ /** 订单编号 */
30
+ order_sn: string;
31
+ /** 包裹状态 */
32
+ status: string;
33
+ }
34
+ }
35
+
36
+ /** 阿里通信 */
37
+ declare namespace Alibaba.Alicom {
38
+ /** 阿里通信流量统一营销赠品发放通知 */
39
+ interface FlowGiftSendNotify {
40
+ /** 赠品面额(单位:分) */
41
+ gift_amount: number;
42
+ /** 赠品详情 */
43
+ gift_desc: string;
44
+ /** 幂等字段 */
45
+ order_no: string;
46
+ /** 商家名称 */
47
+ seller_nick: string;
48
+ }
49
+ }
50
+
51
+ /** 阿里健康-疫苗 */
52
+ declare namespace Alibaba.Alihealth {
53
+ /** 单据处理状态通知 */
54
+ interface BillProcessStatusNotify {
55
+ /** 单据号 */
56
+ bill_code: string;
57
+ /** 单据时间 */
58
+ bill_time: string;
59
+ /** 单据类型 */
60
+ bill_type: string;
61
+ /** 单据上传人 */
62
+ ic_code: string;
63
+ /** 单据处理时间 */
64
+ process_date: string;
65
+ /** 处理信息 */
66
+ process_info: string;
67
+ /** 单据企业ID */
68
+ ref_user_id: string;
69
+ /** 处理状态 0,处理中 1, 上传成功 3, 处理成功 4, 处理失败 */
70
+ result_type: string;
71
+ /** 出入库号 */
72
+ store_inout_seq_no: string;
73
+ }
74
+
75
+ /** 医生、服务相关消息 */
76
+ interface DoctorMessage {
77
+ /** 医生id */
78
+ doctor_id: string;
79
+ /** 通知消息ID */
80
+ message_id: string;
81
+ /** 枚举:AUDIT_PASS=审核通过,AUDIT_FAILED=审核未通过 */
82
+ message_type: string;
83
+ /** 操作时间 */
84
+ operate_time: string;
85
+ /** 原因 */
86
+ reason: string;
87
+ }
88
+
89
+ /** 中台订单状态变化推送 */
90
+ interface NrmopOrderStatusChange {
91
+ /** 渠道类型:o2o-手淘O2O;ele-饿了么;baidu-百度外卖;meituan-美团;jd-京东;mvm-售药机 */
92
+ biz_type: string;
93
+ /** 渠道订单号 */
94
+ channel_order_id: string;
95
+ /** 物流单号(目前只支持手淘订单) */
96
+ delivery_no: string;
97
+ /** 物流状态:0未呼物流,默认值;1已呼叫物流,2配送员已接单,3配送中,4已完成,5已取消 */
98
+ delivery_status: string;
99
+ /** 中台订单号 */
100
+ order_id: string;
101
+ /** 订单状态:1已支付;2已接单;3已完成;4已取消 */
102
+ order_status: string;
103
+ /** 退款状态:0未申请退款,默认值;1已申请退款;2同意退款;3拒绝退款;4已取消退款 */
104
+ refund_status: string;
105
+ }
106
+
107
+ /** 平台通知三方机构"订单状态变更" */
108
+ interface OrderStatusChange {
109
+ /** 问诊对话结束原因 */
110
+ dialog_close_reason: string;
111
+ /** 医生UUID */
112
+ doctor_id: string;
113
+ /** 三方互联网医院编码 */
114
+ hospital_id: string;
115
+ /** 通知消息ID */
116
+ message_id: string;
117
+ /** 通知消息类型:ORDER(订单状态变更,具体的订单状态需查看order_status字段)或者REVIEW(患者完成服务评价) */
118
+ message_type: string;
119
+ /** 订单ID */
120
+ order_id: string;
121
+ /** 新订单通知:WAIT_DIAGNOSE;医生接诊:DIAGNOSING ; 问诊结束:DIAGNOSED ; 退款成功:REFUNDED ; 已结算:THIRD_SELLER_PAID ; */
122
+ order_status: string;
123
+ /** 会话ID */
124
+ session_id: string;
125
+ /** 通知时间,精确到秒 */
126
+ time: Date;
127
+ }
128
+
129
+ /** O2O订单状态变更通知 */
130
+ interface TradeOrderStatusChange {
131
+ /** O2O订单id。 */
132
+ order_id: number;
133
+ /** O2O订单状态。100:订单已创建;110:用户已支付;180:交易失败,订单关闭;190:交易成功。 */
134
+ order_status: number;
135
+ }
136
+
137
+ /** 疫苗交易预约信息变动 */
138
+ interface TradeVaccineSubscribeChange {
139
+ /** 业务订单号 */
140
+ biz_order_id: string;
141
+ /** 消息ID */
142
+ message_id: string;
143
+ /** 消息类型 */
144
+ message_type: string;
145
+ /** 预约记录对应的订单的商家ID */
146
+ seller_id: string;
147
+ /** 预约记录主键 */
148
+ subscribe_id: string;
149
+ }
150
+ }
151
+
152
+ /** 阿里物联 */
153
+ declare namespace Alibaba.Alink {
154
+ /** 设备数据推送 */
155
+ interface DeviceDataPush {
156
+ /** 设备数据 */
157
+ device_data: string;
158
+ /** 设备MAC */
159
+ mac: string;
160
+ /** 设备型号 */
161
+ model: string;
162
+ /** 设备数据上报时间(毫秒格式) */
163
+ msg_time: string;
164
+ /** 通知Id */
165
+ notify_id: string;
166
+ /** 设备SN */
167
+ sn: string;
168
+ }
169
+
170
+ /** 设备报警消息 */
171
+ interface DeviceMessage {
172
+ /** 消息上下文 */
173
+ context: string;
174
+ /** 消息内容 */
175
+ message: string;
176
+ /** 消息id */
177
+ msg_id: string;
178
+ /** 用户openuid */
179
+ uid: string;
180
+ }
181
+ }
182
+
183
+ /** 阿里通信 */
184
+ declare namespace Alibaba.Aliqin {
185
+ /** 数字短信模板审批回执 */
186
+ interface DigitalSmsTemplateDR {
187
+ /** 审批状态,1:审批通过;2:审批不通过 */
188
+ approval_status: number;
189
+ /** 数字短信模板code */
190
+ template_code: string;
191
+ /** 运营商类型,UNICOM_VENDOR:联通;MOBILE_VENDOR:移动,TELCOM_VENDOR:电信 */
192
+ vendor: string;
193
+ }
194
+
195
+ /** 物联网卡激活通知 */
196
+ interface FcActiveIotcard {
197
+ /** 激活类型:1,实名后激活;2,首话单激活; */
198
+ active_type: string;
199
+ /** 激活时间YYYYMMDDHHMMSS */
200
+ first_activetime: string;
201
+ /** ICCID(SIM卡卡号) */
202
+ iccid: string;
203
+ /** 实名认证的用户身份证号(个人认证) */
204
+ ident_number: string;
205
+ /** 终端ID 终端IMEI */
206
+ imei: string;
207
+ /** 身份证名字(个人认证) */
208
+ name: string;
209
+ /** 手机号码 */
210
+ phone: string;
211
+ }
212
+
213
+ /** 语音呼叫结果推送 */
214
+ interface FcCallCdr {
215
+ /** 任务主键 */
216
+ biz_id: string;
217
+ /** DTMF */
218
+ dtmf: string;
219
+ /** 通话时长,未接通为0 */
220
+ duration: string;
221
+ /** 通话结束时间,未接通则为空 */
222
+ end_time: string;
223
+ /** 扩展字段回传,将调用api时传入的字段返回 */
224
+ extend: string;
225
+ /** 通话开始时间,未接通则为空 */
226
+ start_time: string;
227
+ /** 呼叫结果状态码 */
228
+ status_code: string;
229
+ /** 结果描述 */
230
+ status_msg: string;
231
+ }
232
+
233
+ /** 录音回执 */
234
+ interface FcCallRecord {
235
+ /** 呼叫唯一ID */
236
+ biz_id: string;
237
+ /** 通话时长 */
238
+ duration: number;
239
+ /** 呼叫结束时间 */
240
+ end_time: string;
241
+ /** 录音文件外部可访问的url */
242
+ record_file: string;
243
+ /** 呼叫开始时间 */
244
+ start_time: string;
245
+ /** 呼叫状态 */
246
+ status_code: string;
247
+ }
248
+
249
+ /** 流量直充状态报告 */
250
+ interface FcFlowUp {
251
+ /** 明细id */
252
+ data_id: string;
253
+ /** 错误描述 */
254
+ error_msg: string;
255
+ /** 外部流水号 */
256
+ out_id: string;
257
+ /** 手机号 */
258
+ phone: string;
259
+ /** 状态 */
260
+ status: string;
261
+ /** 状态码 */
262
+ status_code: string;
263
+ }
264
+
265
+ /** 短消息发送结果报告 */
266
+ interface FcSmsDR {
267
+ /** 任务主键 */
268
+ biz_id: string;
269
+ /** 返回原因code */
270
+ err_code: string;
271
+ /** 扩展字段回传,调用api时传入,消息通知原样返回 */
272
+ extend: string;
273
+ /** 短信接收号码 */
274
+ receiver: string;
275
+ /** 报告时间 */
276
+ rept_time: string;
277
+ /** 发送时间 */
278
+ send_time: string;
279
+ /** 状态 1:成功,2:失败 */
280
+ state: string;
281
+ }
282
+
283
+ /** 短信上行 */
284
+ interface FcSmsUp {
285
+ /** 短信内容 */
286
+ content: string;
287
+ /** 扩展码 */
288
+ dest_code: string;
289
+ /** 手机号码 */
290
+ sender: string;
291
+ /** 时间 */
292
+ sender_time: string;
293
+ /** 上行对应的签名 */
294
+ sign_name: string;
295
+ /** 唯一ID */
296
+ sms_seq: string;
297
+ }
298
+
299
+ /** 语音呼叫中间状态消息 */
300
+ interface FcTmpStatus {
301
+ /** 任务主键 */
302
+ biz_id: string;
303
+ /** 呼叫状态码 */
304
+ status_code: string;
305
+ /** 动作发生时间 */
306
+ status_time: string;
307
+ }
308
+
309
+ /** 流量直充 */
310
+ interface FlowDirectCharge {
311
+ /** 渠道ID */
312
+ channel_id: string;
313
+ /** 外部流水号 */
314
+ out_id: string;
315
+ /** 电话号码 */
316
+ phone: string;
317
+ /** 状态 */
318
+ status: string;
319
+ }
320
+
321
+ /** 实名认证结果通知 */
322
+ interface IotPersonalConfirmNotice {
323
+ /** 认证结果(Pass 通过 Reject 拒绝) */
324
+ auth_result: string;
325
+ /** Sim卡编号 */
326
+ iccid: string;
327
+ /** 消息流水id */
328
+ msgid: string;
329
+ }
330
+
331
+ /** 物联网停机消息通知 */
332
+ interface IotStatusNotice {
333
+ /** 卡号编码 */
334
+ iccid: string;
335
+ /** 消息流水号 */
336
+ msgid: string;
337
+ /** 停机原因(control:管理停机;credit:信控停机;) */
338
+ operation_reason: string;
339
+ /** 停机类型(1:停机;2:停GPRS功能;3:停短信功能;4:停语音功能;) */
340
+ oper_type: string;
341
+ }
342
+
343
+ /** 聚石塔短消息发送结果报告 */
344
+ interface TaFcSmsDR {
345
+ /** 任务主键 */
346
+ biz_id: string;
347
+ /** 返回原因code */
348
+ err_code: string;
349
+ /** 扩展字段回传,调用api时传入,消息通知原样返回 */
350
+ extend: string;
351
+ /** 短信接收号码 */
352
+ receiver: string;
353
+ /** 报告时间 */
354
+ rept_time: string;
355
+ /** 发送时间 */
356
+ send_time: string;
357
+ /** 状态 1:成功,2:失败 */
358
+ state: string;
359
+ }
360
+ }
361
+
362
+ /** 电子发票 */
363
+ declare namespace Alibaba.Einvoice {
364
+ /** 发票申请单状态变更通知 */
365
+ interface ApplyUpdate {
366
+ /** 中台发票申请ID,由中台生成。字母或数字组成。 可用于查询发票申请的详情。 */
367
+ apply_id: string;
368
+ /** 申请状态,多个之间逗号分隔。不填则表示查询所有状态。 可选值: applying: 申请中,初始状态; cancelled: 申请已取消; confirmed: 商户已确认,待开/录入发票; craeting_inv: 开票中,待发票结果回传; inv_failed: 开票失败; inv_success: 开票成功; inv_part_success: 部分成功(拆单场景下存在。举例:发票申请拆单之后有10张票,其中有1张开票成功时,此时申请状态即为inv_part_success,当10张票全部成功申请状态则为inv_success) */
369
+ apply_status: string;
370
+ /** 当前申请单中累计已开票失败的金额(含税)。 主要用于拆单场景:拆单的情况下一笔申请可能会拆分成多张发票 */
371
+ fail_amount: string;
372
+ /** 当前申请是否为已终结状态。true: 是,false: 否。 主要用于区分inv_part_success状态下是终态还是中间态 */
373
+ is_finally: string;
374
+ /** 外部业务方发起开票申请的唯一幂等ID, 由调用平台生成。 只能由字母和数字组成。 */
375
+ outer_id: string;
376
+ /** 业务平台code, 由发票中台分配 */
377
+ platform_code: string;
378
+ /** 当前申请单中累计已开票成功的金额(含税)。 主要用于拆单场景:拆单的情况下一笔申请可能会拆分成多张发票 */
379
+ success_amount: string;
380
+ }
381
+
382
+ /** 商户事件触发消息 */
383
+ interface CompanyDoAction {
384
+ /** 事件,可选值: device_launch_query:虚拟设备发行查询; */
385
+ action: string;
386
+ /** 拓展字段,json格式 */
387
+ ext_json: string;
388
+ /** 纳税人识别号 */
389
+ payee_register_no: string;
390
+ }
391
+
392
+ /** 订购单退款审核结果通知 */
393
+ interface OrderRefundResult {
394
+ /** 退款结果: refund_agree: ISV同意退款, refund_reject:ISV拒绝退款 */
395
+ action: string;
396
+ /** 服务市场订单号 */
397
+ order_id: string;
398
+ /** 纳税人识别号 */
399
+ payee_register_no: string;
400
+ /** 业务平台Code */
401
+ platform_code: string;
402
+ /** 退款审核结果备注信息 */
403
+ remark: string;
404
+ }
405
+
406
+ /** 入驻工单状态变更消息 */
407
+ interface RegisterFlowChange {
408
+ /** 事件,可选值: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触发税控应用进行企业信息同步 */
409
+ action: string;
410
+ /** 附加消息,拓展字段,json格式。 当 action = inv_test_fail, 拓展字段必填, 必须包含message(失败原因)。 当 action = confirm_test_success, 拓展字段必填, 必须包含serv_start_time(服务起始时间)和serv_end_time(服务截止时间)。 当 action = isv_reject 或者 action = refund_reject, 拓展字段必填, 必须包含message(拒绝原因)。 */
411
+ ext_json: string;
412
+ /** 入驻开通工单ID,入驻开通工单流程中为必选字段 */
413
+ flow_id: string;
414
+ /** 入驻工单ID */
415
+ register_id: string;
416
+ /** 消息接收目标,业务平台对应为platformCode, 税控服务商对应为productCode */
417
+ target_code: string;
418
+ }
419
+
420
+ /** 入驻工单创建消息 */
421
+ interface RegisterFlowCreate {
422
+ /** 企业名称 */
423
+ company_name: string;
424
+ /** 附加消息, json格式 */
425
+ ext_json: string;
426
+ /** 纳税人识别号 */
427
+ payee_register_no: string;
428
+ /** 入驻工单ID */
429
+ register_id: string;
430
+ }
431
+
432
+ /** 增购税控设备触发消息 */
433
+ interface TaxDeviceOrder {
434
+ /** 订购商品ID */
435
+ article_id: string;
436
+ /** 订购时间,格式yyyy-MM-dd HH:mm:ss */
437
+ buy_date: Date;
438
+ /** 拓展字段,json格式 */
439
+ ext_json: string;
440
+ /** 实付总金额,单位元,最多2位小数 */
441
+ fact_total_fee: string;
442
+ /** 税控设备订购单ID */
443
+ flow_id: string;
444
+ /** 商品规格ID */
445
+ item_id: string;
446
+ /** 服务市场订单号 */
447
+ order_id: string;
448
+ /** 纳税人识别号 */
449
+ payee_register_no: string;
450
+ /** 税控产品code */
451
+ product_code: string;
452
+ }
453
+ }
454
+
455
+ /** 1688服务市场 */
456
+ declare namespace Alibaba.Fuwu {
457
+ /** 订单支付消息 */
458
+ interface OrderPaid {
459
+ /** app唯一标识 */
460
+ app_key: string;
461
+ /** 订单服务状态(B: 服务前; S: 服务中; E: 服务结束; P: 服务暂停; C: 作废;) */
462
+ biz_status: string;
463
+ /** 订单行号 */
464
+ order_item_no: string;
465
+ /** 支付金额 */
466
+ paid_amount: string;
467
+ /** 支付状态(payment_none: 未支付; payment_part: 部分支付; payment_success: 支付完成;) */
468
+ pay_status: string;
469
+ }
470
+ }
471
+
472
+ /** 欢行开放平台 */
473
+ declare namespace Alibaba.Happytrip {
474
+ /** 欢行统一订单模型变更通知消息 */
475
+ interface OrderNotify {
476
+ /** 订单一级类型 (一级类型,一级类型描述,二级类型,二级类型描述) (-1, "未知", -1, "未知") (4, "机票", 24, "飞猪国内机票") (4, "机票", 47, "飞猪国际机票") (4, "机票", 48, "飞猪国际询价单机票") (4, "机票", 49, "GT国际机票") (5, "酒店", 14, "飞猪国内酒店") (5, "酒店", 34, "HRS国际酒店") (6, "用车", 23, "国内用车") */
477
+ order_class_id: string;
478
+ /** 订单二级类型 定义参考一级类型 */
479
+ order_class_second_id: string;
480
+ /** 欢行统一订单id */
481
+ order_id: number;
482
+ /** 订单当前状态 -1, "未知状态" 1, "预定中" 2, "已取消" 3, "待付款" 4, "已付款" 5, "已删除" 6, "已完成" 7, "已关闭" 8, "已预订" 9, "已变更" 10, "预定失败" */
483
+ status: string;
484
+ }
485
+ }
486
+
487
+ /** 阿里发票 */
488
+ declare namespace Alibaba.Invoice {
489
+ /** 开票申请 */
490
+ interface Apply {
491
+ /** 发票申请ID */
492
+ apply_id: string;
493
+ /** 抬头类型,0=个人,1=企业 */
494
+ business_type: string;
495
+ /** 电商平台代码,TB,TM,ALIPAY,JD */
496
+ platform_code: string;
497
+ /** 电商平台对应的订单号 */
498
+ platform_tid: string;
499
+ /** 卖家Nick */
500
+ seller_nick: string;
501
+ /** 开票申请的触发类型,buyer_payed=卖家已付款,sent_goods=卖家已发货,buyer_confirm=买家确认收货,refund_seller_confirm=卖家同意退款,invoice_supply=买家申请补开发票,invoice_change=买家申请改抬头,change_paper=电换纸 */
502
+ trigger_status: string;
503
+ }
504
+
505
+ /** 开票申请审核结果 */
506
+ interface ApplyResult {
507
+ /** 发票申请ID */
508
+ apply_id: string;
509
+ /** 审核备注 */
510
+ message: string;
511
+ /** 电商平台代码,TB,TM,ALIPAY,JD */
512
+ platform_code: string;
513
+ /** 电商平台对应的订单号 */
514
+ platform_tid: string;
515
+ /** 审核结果 */
516
+ result: boolean;
517
+ }
518
+
519
+ /** 税盘下架单新增和更新通知 */
520
+ interface DiskOffline {
521
+ /** 企业名称 */
522
+ company_name: string;
523
+ /** 下架申请单id */
524
+ diskoffline_id: string;
525
+ /** 税盘对应订购单id,用来对应税盘 */
526
+ order_id: string;
527
+ /** 税号 */
528
+ payee_register_no: string;
529
+ }
530
+
531
+ /** 资源包开通/订购记录同步 */
532
+ interface FlowBuket {
533
+ /** 开票业务类型,0 电票,1 纸票 */
534
+ biz_type: number;
535
+ /** 订购时间 */
536
+ buy_date: Date;
537
+ /** 资源包到期时间 */
538
+ end_time: Date;
539
+ /** 产品特性,0 默认值、普通电纸票,1 魔盒版,2 移动版开票 */
540
+ feature: number;
541
+ /** 资源包ID */
542
+ flow_buket_id: string;
543
+ /** 资源包类型:0 基础流量包,1 付费套餐包 */
544
+ flow_type: number;
545
+ /** 税号 */
546
+ payee_register_no: string;
547
+ /** 资源包套餐总流量 */
548
+ quantity: number;
549
+ /** 资源包总价,单位为分 */
550
+ total_price: number;
551
+ /** 订购业务类型:0 新订购,1 续订 */
552
+ trade_type: number;
553
+ }
554
+
555
+ /** 税控服务开票申请 */
556
+ interface InvoiceApply {
557
+ /** 开票申请ID */
558
+ apply_id: string;
559
+ /** 企业名称 */
560
+ company_name: string;
561
+ /** 税号 */
562
+ payee_register_no: string;
563
+ }
564
+
565
+ /** 发票对外通知物流信息 */
566
+ interface Logistics {
567
+ /** 客户id */
568
+ customer_id: string;
569
+ /** 客户站点(必填) */
570
+ customer_site: string;
571
+ /** 具体的客户系统 */
572
+ customer_system: string;
573
+ /** 寄送时间 */
574
+ gmt_send: Date;
575
+ /** 发票代码 */
576
+ invoice_code: string;
577
+ /** 开票日期 */
578
+ invoice_date: Date;
579
+ /** 税务平台发票ID */
580
+ invoice_id: string;
581
+ /** 发票号码 */
582
+ invoice_no: string;
583
+ /** 物流公司 目前只有EMS */
584
+ logistics_companies: string;
585
+ /** 外围系统发票ID,即申请开票时的requestNo */
586
+ related_id: string;
587
+ /** sender */
588
+ sender: string;
589
+ /** 消息时间戳 */
590
+ timestamp: Date;
591
+ /** 运单号 */
592
+ tracking_number: string;
593
+ }
594
+
595
+ /** 纸票操作结果回传(打印、作废等) */
596
+ interface PaperOpsReturn {
597
+ /** 错误码,create_result=fail时有值 */
598
+ biz_error_code: string;
599
+ /** 错误消息,create_result=fail时有值 */
600
+ biz_error_msg: string;
601
+ /** 操作结果,success=成功,fail=失败 */
602
+ create_result: string;
603
+ /** 操作类型,print=打印,invalid=作废 */
604
+ ops_type: string;
605
+ /** 税号 */
606
+ payee_register_no: string;
607
+ /** 打印标记,ops_type=print时有值,0=打印发票,1=打印清单 */
608
+ print_flag: number;
609
+ /** 已开具纸票的流水号 */
610
+ serial_no: string;
611
+ }
612
+
613
+ /** 电子发票售前咨询 */
614
+ interface PreConsulting {
615
+ /** 企业名称 */
616
+ company_name: string;
617
+ /** 联系人邮箱 */
618
+ contact_mail: string;
619
+ /** 联系人名称 */
620
+ contact_name: string;
621
+ /** 联系人电话 */
622
+ contact_phone: string;
623
+ /** 联系人旺旺 */
624
+ contact_wangwang: string;
625
+ /** 信息提交时间 */
626
+ create_time: Date;
627
+ /** 问题类型 */
628
+ issue_type: string;
629
+ }
630
+
631
+ /** 数据查询请求 */
632
+ interface Query {
633
+ /** 查询参数 */
634
+ param: string;
635
+ /** 查询类别码 */
636
+ query_code: string;
637
+ }
638
+
639
+ /** 查询发票信息 */
640
+ interface QueryInvoice {
641
+ /** 发票代码 */
642
+ normal_invoice_code: string;
643
+ /** 发票号码 */
644
+ normal_invoice_no: string;
645
+ /** 收款方税务登记证号 */
646
+ payee_register_no: string;
647
+ /** 平台代码 */
648
+ platform_code: string;
649
+ /** 订单号 */
650
+ platform_tid: string;
651
+ /** 开票服务商的APPKEY */
652
+ provider_appkey: string;
653
+ /** 请求ID */
654
+ req_index: string;
655
+ /** 流水号 */
656
+ serial_no: string;
657
+ /** 税号版本,商品编码、单机版、移动版、魔盒等 */
658
+ version: string;
659
+ }
660
+
661
+ /** 入驻阿里发票平台 */
662
+ interface Regist {
663
+ /** 用户企业名称 */
664
+ company_name: string;
665
+ /** 附加消息 */
666
+ ex_info: string;
667
+ /** 注册ID */
668
+ regist_id: string;
669
+ /** 商家/用户名称 */
670
+ user_name: string;
671
+ }
672
+
673
+ /** 开票请求结果 */
674
+ interface ResultReturn {
675
+ /** 错误码,create_result=fail才有 */
676
+ biz_error_code: string;
677
+ /** 错误原因,create_result=fail才有 */
678
+ biz_error_msg: string;
679
+ /** 开票结果,success=成功,fail=失败 */
680
+ create_result: string;
681
+ /** ERP的开票单号 */
682
+ erp_tid: string;
683
+ /** 错误类型,create_result=fail时有值,biz=业务错误(需要修改报文重新发起开票),sys=服务商系统错误(阿里发票平台自动重试),tax=税务错误(比如盘无票、抄报税等,可重试) */
684
+ error_type: string;
685
+ /** 发票种类,0=电子发票,1=纸质普通发票,2=纸质专用发票 */
686
+ invoice_kind: number;
687
+ /** 发票类型,blue:蓝票,red:红票 */
688
+ invoice_type: string;
689
+ /** 是否重试中,根据开票服务商返回的错误码判断是否在重试中 */
690
+ is_retrying: boolean;
691
+ /** 收款方税务登记证号 */
692
+ payee_register_no: string;
693
+ /** 电商平台代码,TB,TM,ALIPAY,JD */
694
+ platform_code: string;
695
+ /** 电商平台对应的订单号 */
696
+ platform_tid: string;
697
+ /** 开票卖家的nick */
698
+ seller_nick: string;
699
+ /** 开票流水号 */
700
+ serial_no: string;
701
+ }
702
+
703
+ /** 发票状态变更消息 */
704
+ interface StatusChange {
705
+ /** 发票代码 */
706
+ invoice_code: string;
707
+ /** 发票号码 */
708
+ invoice_no: string;
709
+ /** 发票当前状态 */
710
+ invoice_status: string;
711
+ /** 外围系统发票ID,及申请开票时的requestNo */
712
+ related_id: string;
713
+ /** 消息时间戳 */
714
+ time_stamp: Date;
715
+ }
716
+
717
+ /** 商家税号变更 */
718
+ interface TaxChange {
719
+ /** 变更类型 */
720
+ change_type: number;
721
+ /** 企业名称 */
722
+ company_name: string;
723
+ /** 新税号 */
724
+ new_payee_register_no: string;
725
+ /** 旧税号 */
726
+ old_payee_register_no: string;
727
+ /** 税号变更单id */
728
+ taxchange_id: string;
729
+ }
730
+
731
+ /** 创建未开具发票通知 */
732
+ interface Unissue {
733
+ /** 发票列表idlist */
734
+ invoice_id_list: number[];
735
+ /** 请求单号 */
736
+ request_no: string;
737
+ /** 时间戳 */
738
+ timestamp: Date;
739
+ }
740
+ }
741
+
742
+ /** 零售通_公共 */
743
+ declare namespace Alibaba.Lst {
744
+ /** 品牌商-订单物流状态变化 */
745
+ interface BmOrderLogisticsChange {
746
+ /** 主订单id,消息业务id,可用于消息轨迹查询 */
747
+ main_order_id: number;
748
+ /** 子订单id列表 */
749
+ sub_order_ids: string;
750
+ }
751
+
752
+ /** 线下自有订单发货状态变更消息 */
753
+ interface BroadcastSelfOrderShipChange {
754
+ /** 外部主订单号 */
755
+ out_order_id: string;
756
+ /** 零售通供应商userId */
757
+ supplier_user_id: number;
758
+ /** appkey_userId_outOrderId */
759
+ vir_id: string;
760
+ }
761
+
762
+ /** 收银快照同步消息 */
763
+ interface CashierSync {
764
+ /** 收银快照同步消息消息体内容JSON串 */
765
+ data_json: string;
766
+ /** 消息业务Id */
767
+ msg_biz_id: string;
768
+ }
769
+
770
+ /** 商品同步消息 */
771
+ interface GoodsSync {
772
+ /** 消息体数据JSON串 */
773
+ data_json: string;
774
+ /** 业务消息ID */
775
+ msg_biz_id: string;
776
+ }
777
+
778
+ /** 商品库存修改同步消息 */
779
+ interface InventorySync {
780
+ /** 消息体内容JSON串 */
781
+ data_json: string;
782
+ /** 消息业务ID */
783
+ msg_biz_id: string;
784
+ }
785
+
786
+ /** 消息测试 */
787
+ interface MsgTest {
788
+ /** 消息体内容JSON串 */
789
+ data_json: string;
790
+ /** 消息业务Id */
791
+ msg_biz_id: string;
792
+ }
793
+
794
+ /** 零售通交易订单变更消息 */
795
+ interface OrderChange {
796
+ /** 主订单id,消息业务id,可用于消息轨迹查询 */
797
+ main_order_id: number;
798
+ /** 子订单id列表 */
799
+ sub_order_ids: string;
800
+ }
801
+
802
+ /** 订单退单 */
803
+ interface RefundChange {
804
+ /** 主订单id */
805
+ main_order_id: string;
806
+ /** 退款单id */
807
+ refund_id: string;
808
+ /** 子订单列表 */
809
+ sub_order_ids: string;
810
+ }
811
+
812
+ /** 如意音箱播放日志 */
813
+ interface SpeakerAdvertPlayRecord {
814
+ /** 折扣率 */
815
+ advert_discount_ratio: string;
816
+ /** 业务ID */
817
+ biz_id: string;
818
+ /** 设备编码 */
819
+ device_code: string;
820
+ /** 播放开始时间戳 */
821
+ end_date_time: number;
822
+ /** 播放结束的音量 */
823
+ end_volumn: string;
824
+ /** 广告ID */
825
+ id: string;
826
+ /** 订单ID */
827
+ order_id: string;
828
+ /** 播放开始时间戳 */
829
+ start_date_time: number;
830
+ /** 播放开始的音量 */
831
+ start_volumn: string;
832
+ /** 折扣率 */
833
+ store_discount_ratio: string;
834
+ /** 单价 */
835
+ unit_price: string;
836
+ }
837
+
838
+ /** 零售通供应商交易订单变更消息 */
839
+ interface SupplierOrderChange {
840
+ /** 主订单id,消息业务id,可用于消息轨迹查询 */
841
+ main_order_id: number;
842
+ /** 子订单id列表 */
843
+ sub_order_ids: string;
844
+ }
845
+ }
846
+
847
+ /** MMC五盘货项目 */
848
+ declare namespace Alibaba.Mmc {
849
+ /** MMC五盘货盘招投域盘货变更消息 */
850
+ interface OpenStockAlterNotify {
851
+ /** 盘货结束时间 */
852
+ end_time: string;
853
+ /** MMC商家编码 */
854
+ merchant_code: string;
855
+ /** 消息业务id,用于排查问题 */
856
+ msg_id: string;
857
+ /** 消息标签:STOCK_TAKE_SAVE/STOCK_TAKE_DELETE */
858
+ msg_tag: string;
859
+ /** 机构子公司编码 */
860
+ org_no: string;
861
+ /** 外部盘货结束时间(RT专用) */
862
+ out_end_time: string;
863
+ /** 外部盘货开始时间(RT专用),会增加两个小时 */
864
+ out_start_time: string;
865
+ /** 盘货开始时间 */
866
+ start_time: string;
867
+ /** 盘货id */
868
+ stock_take_id: string;
869
+ /** 盘货名称 */
870
+ stock_take_name: string;
871
+ /** 仓编码 */
872
+ warehouse_code: string;
873
+ }
874
+
875
+ /** MMC盘招投商品变更消息 */
876
+ interface OpenStockItemAlter {
877
+ /** 活动信息 */
878
+ activity: string;
879
+ /** 审核结果 */
880
+ audit_status: string;
881
+ /** 消息id */
882
+ message_id: string;
883
+ /** 备注 */
884
+ remark: string;
885
+ /** 商品skuCode */
886
+ sku_code: string;
887
+ /** 盘货id */
888
+ stock_take_id: string;
889
+ /** 仓编码 */
890
+ warehouse_code: string;
891
+ }
892
+
893
+ /** MMC五盘货对接大润发正向订单消息 */
894
+ interface OrderNotify {
895
+ /** 属性 */
896
+ attributes_str: string;
897
+ /** 主订单id */
898
+ biz_order_id: string;
899
+ /** 创建时间 */
900
+ gmt_create: Date;
901
+ /** 修改时间 */
902
+ gmt_modified: Date;
903
+ /** 消息id */
904
+ message_id: string;
905
+ /** 消息标签 */
906
+ message_tag: string;
907
+ /** 子订单信息列表 */
908
+ sub_biz_order_list: string;
909
+ /** 系统时间 */
910
+ sys_time: Date;
911
+ }
912
+
913
+ /** MMC五盘货对接大润发价格修改消息 */
914
+ interface PriceUpdate {
915
+ /** 是否 */
916
+ effective: boolean;
917
+ /** 拓展信息,标准Json格式 */
918
+ ext_info: string;
919
+ /** 商家身份,仅用于测试 */
920
+ merchant_code: string;
921
+ /** 消息id,用于消息轨迹查询 */
922
+ message_id: string;
923
+ /** 生效价格列表 */
924
+ price_amount_list: string;
925
+ /** 失败原因,有改价单的时候 可能会有 */
926
+ reason: string;
927
+ /** 改价单编号,有改价单才会返回(MMC内部改价生成的改价单id不会透出) */
928
+ sheet_no: string;
929
+ /** MMC内部的商品sku编码 */
930
+ sku_code: string;
931
+ /** 改价类型 */
932
+ type: string;
933
+ /** 仓code */
934
+ warehouse_code: string;
935
+ }
936
+
937
+ /** MMC五盘货对接大润发逆向交易消息 */
938
+ interface RefundOrderNotify {
939
+ /** 主订单id */
940
+ biz_order_id: string;
941
+ /** 用户id */
942
+ buyer_id: number;
943
+ /** 创建时间 */
944
+ gmt_create: Date;
945
+ /** 修改时间 */
946
+ gmt_modified: Date;
947
+ /** 消息id */
948
+ message_id: string;
949
+ /** 消息标签 */
950
+ message_tag: string;
951
+ /** 退款单id */
952
+ rp_refund_id: string;
953
+ /** 子订单id */
954
+ sub_biz_order_id: string;
955
+ /** 系统时间 */
956
+ sys_time: Date;
957
+ }
958
+ }
959
+
960
+ /** 聚石塔监控告警 */
961
+ declare namespace Alibaba.Monitor {
962
+ /** 聚石塔监控告警消息投递 */
963
+ interface EventSendMessage {
964
+ /** 告警产生时间 */
965
+ alarm_time: string;
966
+ /** 应用id */
967
+ app_id: number;
968
+ /** 应用名称 */
969
+ app_name: string;
970
+ /** 集群实例id */
971
+ cluster_id: string;
972
+ /** 集群名称 */
973
+ cluster_name: string;
974
+ /** 备注信息 */
975
+ comment: string;
976
+ /** 环境id */
977
+ env_id: number;
978
+ /** 环境名称 */
979
+ env_name: string;
980
+ /** 节点名称 cn-zhangjiakou.内网ip */
981
+ host_name: string;
982
+ /** 事件源类型 Pod或Node */
983
+ kind: string;
984
+ /** 告警信息 */
985
+ message: string;
986
+ /** 推荐的解决方案 */
987
+ resolution: string;
988
+ /** 告警源 POD实例或者节点实例 */
989
+ source: string;
990
+ /** 监控项名称 */
991
+ trigger_name: string;
992
+ }
993
+
994
+ /** 聚石塔监控告警消息投递 */
995
+ interface MessageSend {
996
+ /** 报警级别 */
997
+ alert_level: string;
998
+ /** 监控指标阀值 */
999
+ alert_threshold: string;
1000
+ /** 报警值 */
1001
+ alert_value: string;
1002
+ /** 应用id */
1003
+ app_id: string;
1004
+ /** 应用名称 */
1005
+ app_name: string;
1006
+ /** 集群id */
1007
+ cluster_id: string;
1008
+ /** 环境id */
1009
+ env_id: string;
1010
+ /** 环境名称 */
1011
+ env_name: string;
1012
+ /** 应用实例名称 */
1013
+ instance_name: string;
1014
+ /** 监控指标 */
1015
+ metric_name: string;
1016
+ /** 规则名称 */
1017
+ rule_name: string;
1018
+ }
1019
+ }
1020
+
1021
+ /** 银泰开放平台消息 */
1022
+ declare namespace Alibaba.Mos {
1023
+ /** 销售单状态变更 */
1024
+ interface SaleOrder {
1025
+ /** 业务动作(支付:PAID,完成:FINISHED,退款/关单:REFUND) */
1026
+ biz_action: string;
1027
+ /** 销售单主单号 */
1028
+ master_order_no: string;
1029
+ /** 渠道订单号 */
1030
+ out_trade_no: string;
1031
+ /** 订单渠道 */
1032
+ sale_channel: number;
1033
+ /** 订单状态 */
1034
+ trade_status: number;
1035
+ /** 更新时间 */
1036
+ update_time: Date;
1037
+ }
1038
+
1039
+ /** 销售单退款消息 */
1040
+ interface SaleOrderRefund {
1041
+ /** 渠道订单号 */
1042
+ out_trade_no: string;
1043
+ /** 退款完成时间 */
1044
+ refund_end_time: Date;
1045
+ /** 退款原因 */
1046
+ refund_reason: string;
1047
+ /** 退款状态 */
1048
+ refund_status: number;
1049
+ /** 销售退款单主单号 */
1050
+ rp_master_order_no: string;
1051
+ }
1052
+ }
1053
+
1054
+ /** 网上法庭 */
1055
+ declare namespace Alibaba.Nazca {
1056
+ /** 作废存证消息接口 */
1057
+ interface AbandonCert {
1058
+ /** 申请流水号 */
1059
+ apply_id: string;
1060
+ /** 客户在1688的唯一标识 */
1061
+ platform_user_id: string;
1062
+ }
1063
+
1064
+ /** 查询收费数量 */
1065
+ interface QueryChargeNum {
1066
+ /** 流水号 */
1067
+ apply_id: string;
1068
+ /** 客户ID */
1069
+ customer_id: string;
1070
+ /** 客户在1688的唯一标识 */
1071
+ platform_user_id: string;
1072
+ }
1073
+
1074
+ /** 发起存证消息接口 */
1075
+ interface SaveCert {
1076
+ /** 消息流水号 */
1077
+ apply_id: string;
1078
+ /** 合同编号 */
1079
+ contract_num: string;
1080
+ /** 源文件(加密) */
1081
+ file: string;
1082
+ /** 源文件hash */
1083
+ file_sha: string;
1084
+ /** ip */
1085
+ ip: string;
1086
+ /** 签署后的文件(加密) */
1087
+ pdf_file: string;
1088
+ /** 盖章后的hash */
1089
+ pdf_sha: string;
1090
+ /** 客户在1688的唯一标识 */
1091
+ platform_user_id: string;
1092
+ /** 盖章前的hash */
1093
+ pristine_pdf_sha: string;
1094
+ /** 合同发起时间 */
1095
+ send_date: Date;
1096
+ /** 角色 0:接收者 1:发送者 */
1097
+ send_receive: string;
1098
+ /** 签署合同的时间 */
1099
+ sign_date: Date;
1100
+ /** 签署合同手机验证码 */
1101
+ sms: string;
1102
+ /** 合同名称 */
1103
+ topic: string;
1104
+ }
1105
+
1106
+ /** 更新收费数量 */
1107
+ interface UpdateChargeNum {
1108
+ /** 流水号 */
1109
+ apply_id: string;
1110
+ /** 客户ID */
1111
+ customer_id: string;
1112
+ /** 操作类型 */
1113
+ operation: string;
1114
+ /** 客户在1688的唯一标识 */
1115
+ platform_user_id: string;
1116
+ }
1117
+ }
1118
+
1119
+ /** 零售plus */
1120
+ declare namespace Alibaba.Nlife {
1121
+ /** 采购单状态变化通知 */
1122
+ interface BToBTradeStatusNotify {
1123
+ /** 采购单状态,枚举类型。 1. WAIT_FOR_CONFIRM:等待确认,此时可接单或拒单,新创建的采购单为此状态; 2. REFUSED:供货商已拒单,如果供货商拒单,采购单为此状态; 3. WAIT_FOR_PAY:等待零售商支付预付款,如果供货商接单,采购单为此状态; 3. WAIT_FOR_CONSIGN:等待供货商发货,如果零售商支付了预付款,采购单为此状态,此时可发货; 4. CONSIGNED_PART:部分发货中(含部分发货的情况),如果供货商发货但没有把采购单中的全部商品发出,采购单为此状态,此时,供货商还可以多次发货; 5. CONSIGNED:已全部发货,如果供货商发货且把采购单中的全部商品发出,采购单为此状态; */
1124
+ status: string;
1125
+ /** 供货商的用户nick */
1126
+ supplier_nick: string;
1127
+ /** 零售+平台中的采购单编号 */
1128
+ trade_no: string;
1129
+ }
1130
+
1131
+ /** 零售+订单同步消息 */
1132
+ interface BToCTradeOrderSync {
1133
+ /** 用户实付金额 单位 人民币 分 */
1134
+ actural_pay_fee: number;
1135
+ /** 会员id,会员订单必选 */
1136
+ card_no: string;
1137
+ /** 会员所属的企业,会员订单必选 */
1138
+ company_id: string;
1139
+ /** 订单创建时间 */
1140
+ gmt_create: Date;
1141
+ /** 全渠道订单淘宝/天猫订单号 */
1142
+ omni_trade_no: string;
1143
+ /** 外部订单号 */
1144
+ out_trade_no: string;
1145
+ /** 会员手机号,会员订单必选 */
1146
+ phone_no: string;
1147
+ /** LOGISTICS:物流发货;SELF_DELIVERY:门店自提,全渠道订单设置该字段 */
1148
+ picking_up_type: string;
1149
+ /** 会员所属的零售+门店 */
1150
+ store_id: string;
1151
+ /** 订单总金额 单位 人民币 分 */
1152
+ total_fee: number;
1153
+ /** 0:门店订单;1:全渠道订单;3:网直供订单 */
1154
+ trade_biz_type: number;
1155
+ /** 零售+交易号 */
1156
+ trade_no: string;
1157
+ }
1158
+
1159
+ /** 采购单发货通知消息 */
1160
+ interface BtoBTradeDeliverNotify {
1161
+ /** 发货单号 */
1162
+ consign_no: string;
1163
+ /** 发货单发货时间 */
1164
+ gmt_consign: Date;
1165
+ /** 物流公司 */
1166
+ logistics_company: string;
1167
+ /** 物流单号 */
1168
+ logistics_no: string;
1169
+ /** 零售商的门店id */
1170
+ store_id: number;
1171
+ /** 供应商id */
1172
+ supplier_id: number;
1173
+ /** 关联的门店采购订单号 */
1174
+ trade_no: string;
1175
+ }
1176
+
1177
+ /** 采购单生效通知消息 */
1178
+ interface BtoBTradeEffectiveNotify {
1179
+ /** 集团ID */
1180
+ ent_id: number;
1181
+ /** 集团采购单号 */
1182
+ ent_trade_no: string;
1183
+ /** 生效时间 */
1184
+ gmt_effective: string;
1185
+ /** 门店ID */
1186
+ store_id: string;
1187
+ /** 供应商ID */
1188
+ supplier_id: number;
1189
+ /** 门店采购单号 */
1190
+ trade_no: string;
1191
+ }
1192
+
1193
+ /** 采购单退货单确认消息 */
1194
+ interface BtobTradeRefundConfirmMsgNotify {
1195
+ /** 采购退货单状态 */
1196
+ status: string;
1197
+ /** 零售商的门店id */
1198
+ store_id: number;
1199
+ /** 采购退货单号 */
1200
+ trade_refund_no: string;
1201
+ }
1202
+
1203
+ /** 采购单退货通知消息 */
1204
+ interface BtobTradeRefundNotify {
1205
+ /** 采购退货单生效时间 */
1206
+ gmt_cretae: Date;
1207
+ /** 零售商的门店id */
1208
+ store_id: number;
1209
+ /** 采购退货单号 */
1210
+ trade_refund_no: string;
1211
+ }
1212
+
1213
+ /** 供应商审核差异单的通知消息 */
1214
+ interface InstorageDiffAuditNotify {
1215
+ /** 审核结果 (0为审核通过,1为审核不通过) */
1216
+ audit: number;
1217
+ /** 审核的说明 */
1218
+ audit_msg: string;
1219
+ /** 发货单编号 */
1220
+ consign_no: string;
1221
+ /** 零售商的门店id */
1222
+ store_id: number;
1223
+ }
1224
+
1225
+ /** 零售+商品变动消息 */
1226
+ interface ItemUpdate {
1227
+ /** 商品变动前的值(目前包括库存和价格) */
1228
+ before_value: string;
1229
+ /** 商品的itemId */
1230
+ item_id: number;
1231
+ /** 商品类型:0-IC线上商品; 1-商户导入线下商品 */
1232
+ item_type: number;
1233
+ /** 商品的商家编码 */
1234
+ outer_id: string;
1235
+ /** 商品的skuId */
1236
+ sku_id: number;
1237
+ /** 门店id */
1238
+ store_id: string;
1239
+ /** 商品的变动类型:PRICE_CHANGE-价格变化; INVENTORY_CHANGE-库存变化; ONSALE_CHANGE-上架变化; OFFSALE_CHANGE-下架变化; NEWSKU_CHANGE-新增sku变化; DELSKU_CHANGE-删除sku变化 */
1240
+ type: string;
1241
+ /** 商品变动后的值(目前包括库存和价格) */
1242
+ update_value: string;
1243
+ }
1244
+ }
1245
+
1246
+ /** 天猫服务 */
1247
+ declare namespace Alibaba.Serviceplatform {
1248
+ /** 服务供应链核销单消息 */
1249
+ interface FulfilTask {
1250
+ /** 核销单操作,比如create、reserve */
1251
+ action: string;
1252
+ /** 业务身份 */
1253
+ biz_code: string;
1254
+ /** 核销单id */
1255
+ fulfil_task_id: number;
1256
+ /** 网点id(寄送业务用) */
1257
+ service_store_id: number;
1258
+ /** 操作来源,buyer、worker、system、tp */
1259
+ source: string;
1260
+ /** 核销单操作时间 */
1261
+ update_date: Date;
1262
+ /** 工单id列表 */
1263
+ workcard_ids: number[];
1264
+ }
1265
+
1266
+ /** 服务供应链服务单消息 */
1267
+ interface ServiceOrder {
1268
+ /** 服务单操作,如create,effect */
1269
+ action: string;
1270
+ /** 业务身份 */
1271
+ biz_code: string;
1272
+ /** 服务单id */
1273
+ service_order_id: number;
1274
+ /** 服务单操作时间 */
1275
+ update_date: Date;
1276
+ }
1277
+ }
1278
+
1279
+ /** 阿里智付 */
1280
+ declare namespace Alibaba.Sp {
1281
+ /** 通知付款结果 */
1282
+ interface NotifyPaymentResult {
1283
+ /** 付款时间 */
1284
+ actual_pay_time: Date;
1285
+ /** 业务身份 */
1286
+ biz_code: string;
1287
+ /** 业务付款流水号 */
1288
+ no: string;
1289
+ /** 通知日期 */
1290
+ notify_time: Date;
1291
+ /** 付款单号 */
1292
+ out_trade_no: string;
1293
+ /** 实际付款账号 */
1294
+ pay_account_no: string;
1295
+ /** 付款币种 */
1296
+ pay_currency: string;
1297
+ /** 付款状态信息描述 */
1298
+ pay_msg: string;
1299
+ /** 付款状态 */
1300
+ pay_status: string;
1301
+ /** 交易金额 */
1302
+ trade_amount: string;
1303
+ }
1304
+ }
1305
+
1306
+ /** 阿里发票 */
1307
+ declare namespace Alibaba.Tax {
1308
+ /** 税优雇员签约结果消息 */
1309
+ interface EmployeeSignResult {
1310
+ /** 三方协议ID */
1311
+ agreement_id: string;
1312
+ /** 雇主企业编码 */
1313
+ company_code: string;
1314
+ /** 雇主企业名称 */
1315
+ company_name: string;
1316
+ /** 雇员在雇主企业身份标识 */
1317
+ company_user_identification: string;
1318
+ /** 协议终止时间 */
1319
+ end_time: string;
1320
+ /** 扩展信息 */
1321
+ ext_json: string;
1322
+ /** 服务商编码 */
1323
+ isv_code: string;
1324
+ /** 服务商名称 */
1325
+ isv_name: string;
1326
+ /** 注册结果 */
1327
+ result: boolean;
1328
+ /** 结果码 */
1329
+ result_code: string;
1330
+ /** 结果描述 */
1331
+ result_msg: string;
1332
+ /** 发薪资产符号 */
1333
+ salary_asset_symbol: string;
1334
+ /** 发薪资产类型 */
1335
+ salary_asset_type: string;
1336
+ /** 协议开始时间 */
1337
+ start_time: string;
1338
+ /** 税优模式 */
1339
+ tax_optimization_mode: string;
1340
+ }
1341
+
1342
+ /** 税优发薪结果通知 */
1343
+ interface SalaryPayResult {
1344
+ /** 发薪账期 */
1345
+ account_date: string;
1346
+ /** 发薪流水ID */
1347
+ detail_id: string;
1348
+ /** 业务方编码 */
1349
+ employer_code: string;
1350
+ /** 雇员在雇主企业身份标识别 */
1351
+ identification_in_belonging_employer: string;
1352
+ /** 消息类型 */
1353
+ message_type: string;
1354
+ /** 发薪时间 */
1355
+ pay_salary_time: Date;
1356
+ /** 发薪结果码,当发薪失败时,有这个字段 */
1357
+ result_code: string;
1358
+ /** 发薪结果:SUCCESS-成功, NEED_RETRY-处理中(重试发薪),FAIL(失败,不可重试) */
1359
+ status: string;
1360
+ /** 发薪商户订单号 */
1361
+ tax_fund_order_ids: string;
1362
+ }
1363
+ }
1364
+
1365
+ /** 阿里通信 */
1366
+ declare namespace Alibaba.Tianji {
1367
+ /** 天机平台合约机供应商订单消息 */
1368
+ interface ContractOrder {
1369
+ /** 合约订单状态,1, "未订购" ;2, "订购中"; 4, "订购失败"; 5, "订购成功" ;6, "订购取消" */
1370
+ contract_order_status: number;
1371
+ /** 合约类型 */
1372
+ plan_item_type: number;
1373
+ /** 供应商名称 */
1374
+ supplier_name: string;
1375
+ /** 淘宝订单号 */
1376
+ tb_order_no: string;
1377
+ }
1378
+
1379
+ /** 天机平台订单生成通知消息 */
1380
+ interface OrderCreate {
1381
+ /** 充值账号 */
1382
+ account: string;
1383
+ /** 业务类型,10-企业充值 */
1384
+ biz_type: string;
1385
+ /** 买家nick */
1386
+ buyer_nick: string;
1387
+ /** 购买数量 */
1388
+ buy_quantity: number;
1389
+ /** 分销商用户名称 */
1390
+ distributor_name: string;
1391
+ /** 单笔充值面额(分) */
1392
+ face_price: number;
1393
+ /** 分账总金额,单位:分 */
1394
+ ledger_amount: number;
1395
+ /** 外部产品编码 */
1396
+ out_product_code: string;
1397
+ /** 供应商用户名称 */
1398
+ supplier_name: string;
1399
+ /** 淘宝交易订单创建时间 */
1400
+ tb_order_create_time: Date;
1401
+ /** 淘宝交易订单号 */
1402
+ tb_order_no: string;
1403
+ /** 交易支付时间 */
1404
+ tb_order_pay_time: Date;
1405
+ }
1406
+ }
1407
+
1408
+ /** 五道口商品 */
1409
+ declare namespace Alibaba.Wdk {
1410
+ /** 差评回评 */
1411
+ interface ChannelCommentAudit {
1412
+ /** 回评内容 */
1413
+ audit_content: string;
1414
+ /** 盒马主单号 */
1415
+ biz_order_id: string;
1416
+ /** 商家编码 */
1417
+ merchant_code: string;
1418
+ /** 外部评论id */
1419
+ out_comment_id: string;
1420
+ /** 商品编码 */
1421
+ sku_code: string;
1422
+ }
1423
+
1424
+ /** 五道口售中取消外部订单消息 */
1425
+ interface ChannelOrderCancel {
1426
+ /** 主单号 */
1427
+ biz_order_id: string;
1428
+ /** 商家编码 */
1429
+ merchant_code: string;
1430
+ /** 外部主单号 */
1431
+ out_order_id: string;
1432
+ /** 渠道店Id */
1433
+ shop_id: string;
1434
+ /** 经营店Id */
1435
+ store_id: string;
1436
+ /** 退款子单列表,整单取消时(whole_cancel=true),该值为空,包含子单Id(subBizOrderId)、退款单Id(refundId)、外部子单Id(subOutOrderId)、商家编码(skuCode)、逆向库存数量(refundStockQuantity)、逆向销售数量(refundSaleQuantity)、退款原因类型(refundType)。 */
1437
+ sub_refund_orders: string;
1438
+ /** 是否整单取消 */
1439
+ whole_cancel: boolean;
1440
+ }
1441
+
1442
+ /** 客服审核退款结果 */
1443
+ interface ChannelOrderCsRefundAudit {
1444
+ /** 同意退款子单 */
1445
+ agree_sub_orders: string;
1446
+ /** 盒马主单号 */
1447
+ biz_order_id: string;
1448
+ /** 商家编码 */
1449
+ merchant_code: string;
1450
+ /** 外部订单号 */
1451
+ out_order_id: string;
1452
+ /** 外部退款批次Id */
1453
+ out_refund_batch_id: string;
1454
+ /** 拒绝退款子单 */
1455
+ reject_sub_orders: string;
1456
+ /** 渠道店ID */
1457
+ shop_id: string;
1458
+ /** 经营店ID */
1459
+ store_id: string;
1460
+ }
1461
+
1462
+ /** 客服代客发起售后退款(整单/部分) */
1463
+ interface ChannelOrderCsUserrefund {
1464
+ /** 盒马主单号 */
1465
+ biz_order_id: string;
1466
+ /** 退款备注 */
1467
+ memo: string;
1468
+ /** 商家编码 */
1469
+ merchant_code: string;
1470
+ /** 外部订单号 */
1471
+ out_order_id: string;
1472
+ /** 退款原因 */
1473
+ refund_reason: string;
1474
+ /** 退款子单 */
1475
+ refund_sub_orders: string;
1476
+ /** 渠道店ID */
1477
+ shop_id: string;
1478
+ /** 经营店ID */
1479
+ store_id: string;
1480
+ }
1481
+
1482
+ /** 订单状态变更消息 */
1483
+ interface ChannelOrderStatusChange {
1484
+ /** 主单号 */
1485
+ biz_order_id: string;
1486
+ /** 履约状态 */
1487
+ fulfill_status: string;
1488
+ /** 商家编码 */
1489
+ merchant_code: string;
1490
+ /** 订单状态 */
1491
+ order_status: string;
1492
+ /** 外部订单号 */
1493
+ out_order_id: string;
1494
+ /** 渠道店id */
1495
+ shop_id: string;
1496
+ /** 经营店Id */
1497
+ store_id: string;
1498
+ /** 子单列表 */
1499
+ sub_orders: string;
1500
+ /** 退款子单列表,仅订单完成时,有部分退款的 */
1501
+ sub_refund_orders: string;
1502
+ }
1503
+
1504
+ /** 库存同步 */
1505
+ interface ChannelStockSync {
1506
+ /** 发生时间 */
1507
+ biz_date: string;
1508
+ /** 业务编号,唯一性,用于幂等,避免重复处理 */
1509
+ biz_uniq_id: string;
1510
+ /** 商家编码 */
1511
+ merchant_code: string;
1512
+ /** 发布库存列表 */
1513
+ sale_inventory_list: string;
1514
+ /** 渠道店列表 */
1515
+ shop_ids: string;
1516
+ /** 经营店编码 */
1517
+ store_id: string;
1518
+ }
1519
+
1520
+ /** 售中履约变更消息 */
1521
+ interface FulfillOrderChange {
1522
+ /** 操作修改时间,消息消费端可用此字段处理消息乱序问题 */
1523
+ gmt_modified: string;
1524
+ /** 商家编码 */
1525
+ merchant_code: string;
1526
+ /** 淘宝主单ID */
1527
+ source_order_id: string;
1528
+ /** 经营门店编码 */
1529
+ store_id: string;
1530
+ /** 用户选择送达时间 格式:2019-09-05 11:00:00~2019-09-05 11:30:00 */
1531
+ user_expect_time: string;
1532
+ }
1533
+
1534
+ /** 商家渠道商品变动消息 */
1535
+ interface StoreItemUpdate {
1536
+ /** 此次消息唯一标志 */
1537
+ biz_uniq_id: string;
1538
+ /** 商家编码 */
1539
+ merchant_code: string;
1540
+ /** 门店编码 */
1541
+ ou_code: string;
1542
+ /** 商品编码 */
1543
+ sku_code: string;
1544
+ }
1545
+ }
1546
+
1547
+ /** 五道口商品 */
1548
+ declare namespace Alibaba.Wdkitem {
1549
+ /** 五道口仓商品变更消息 */
1550
+ interface WarehouseSkuModify {
1551
+ /** 商家编码 */
1552
+ merchant_code: string;
1553
+ /** 商品编码 */
1554
+ sku_code: string;
1555
+ /** 仓编码 */
1556
+ warehouse_code: string;
1557
+ }
1558
+ }
1559
+
1560
+ /** 五道口订单 */
1561
+ declare namespace Alibaba.Wdkop {
1562
+ /** Rex用户信息变更消息 */
1563
+ interface RexAccountChange {
1564
+ /** 消息通知id */
1565
+ msg_id: string;
1566
+ }
1567
+ }
1568
+
1569
+ /** 五道口订单 */
1570
+ declare namespace Alibaba.Wdkopen {
1571
+ /** 五道口交易状态变更消息通知 */
1572
+ interface OrderMessage {
1573
+ /** 五道口订单ID */
1574
+ biz_order_id: number;
1575
+ /** 商户编码 */
1576
+ merchant_code: string;
1577
+ /** 订单状态 */
1578
+ order_status: string;
1579
+ /** 外部订单ID */
1580
+ out_order_id: string;
1581
+ /** 经营店ID */
1582
+ store_id: string;
1583
+ }
1584
+
1585
+ /** 采购价变更消息 */
1586
+ interface PriceAdjust {
1587
+ /** 操作类型:1=修改 2=删除 3=失效 */
1588
+ operate_type: number;
1589
+ /** 操作唯一号 */
1590
+ out_unique_id: string;
1591
+ /** 状态:1为"处理中",2为"拦截",3为"审批中",4为"审批拒绝",5为"成功" */
1592
+ status: number;
1593
+ /** 供给方商家编码 */
1594
+ supply_merchant_code: string;
1595
+ /** 供给方商品编码 */
1596
+ supply_sku_code: string;
1597
+ /** 供给方仓编码 */
1598
+ supply_store_code: string;
1599
+ }
1600
+
1601
+ /** 同城零售逆向交易消息 */
1602
+ interface RefundMessage {
1603
+ /** 退款单号 */
1604
+ refund_id: string;
1605
+ /** 淘宝子订单ID */
1606
+ tb_sub_order_id: number;
1607
+ }
1608
+ }
1609
+
1610
+ /** 五道口订单 */
1611
+ declare namespace Alibaba.Wdkorder {
1612
+ /** 五道口订单履约状态变更消息 */
1613
+ interface FulfillStatusChange {
1614
+ /** 履约值 */
1615
+ fulfill: string;
1616
+ /** 业务消息id */
1617
+ msg_id: string;
1618
+ /** 履约状态 */
1619
+ status: string;
1620
+ }
1621
+
1622
+ /** 共享库存保险正向投保消息 */
1623
+ interface InsuranceOrder {
1624
+ /** 淘宝交易子订单 */
1625
+ tb_sub_order_id: number;
1626
+ }
1627
+
1628
+ /** 共享库存保险逆向理赔消息 */
1629
+ interface InsuranceRefund {
1630
+ /** 退货单ID */
1631
+ refund_id: string;
1632
+ /** 淘宝交易子订单ID */
1633
+ tb_sub_order_id: number;
1634
+ }
1635
+
1636
+ /** 订单履约状态变更消息 */
1637
+ interface OrderFulfillPush {
1638
+ /** 履约单ID */
1639
+ fulfill_order_id: string;
1640
+ /** 履约状态 */
1641
+ fulfill_status: string;
1642
+ /** 商户编号 */
1643
+ merchant_code: string;
1644
+ }
1645
+
1646
+ /** 履约状态变更消息 */
1647
+ interface OrderFulfillTokenPush {
1648
+ /** 履约单ID */
1649
+ fulfill_order_id: string;
1650
+ /** 履约状态 */
1651
+ fulfill_status: string;
1652
+ /** 商户编号 */
1653
+ merchant_code: string;
1654
+ }
1655
+
1656
+ /** 猫超订单数据变更消息通知 */
1657
+ interface OrderStatusPush {
1658
+ /** 商户编码 */
1659
+ merchant_code: string;
1660
+ /** 订单状态 */
1661
+ order_status: string;
1662
+ /** 主站主订单ID */
1663
+ tb_order_id: number;
1664
+ }
1665
+
1666
+ /** 逆向单企业积分消息发送 */
1667
+ interface RefundOrgPoint {
1668
+ /** 退款单商品ID */
1669
+ item_id: string;
1670
+ /** 退款单商品标题 */
1671
+ item_title: string;
1672
+ /** 退款子单号 */
1673
+ origin_order_id: string;
1674
+ /** 主订单号 */
1675
+ origin_parent_id: string;
1676
+ /** 支付单号 */
1677
+ pay_order_id: string;
1678
+ /** 企业商户对应渠道code */
1679
+ refund_channel: string;
1680
+ /** 该渠道退款金额, 单位:分 */
1681
+ refund_channel_fee: string;
1682
+ /** 退款单退款金额(不包含折扣计算), 单位:分 */
1683
+ refund_fee: string;
1684
+ /** 退款单号 */
1685
+ refund_order_id: string;
1686
+ /** 退款完成时间 格式: yyyy-MM-dd HH:mm:ss */
1687
+ refund_time: string;
1688
+ /** 退款子订单号_渠道code,作为消息追溯唯一键 */
1689
+ suborder_channel_uuid: string;
1690
+ }
1691
+
1692
+ /** 五道口淘鲜达逆向订单消息 */
1693
+ interface RefundSuccess {
1694
+ /** 实际取货数量 */
1695
+ actual_pick_quantity: string;
1696
+ /** 实际退货数量 */
1697
+ actual_refund_quantity: string;
1698
+ /** 跑批时间 */
1699
+ batch_time: Date;
1700
+ /** 库存单位购买数量 */
1701
+ buy_amount_stock: string;
1702
+ /** 纠纷类型 1:售中 2:售后 */
1703
+ dispute_type: number;
1704
+ /** 商品skucode */
1705
+ item_code: string;
1706
+ /** 商家编码 */
1707
+ merchant_code: string;
1708
+ /** 非标品购买数量 */
1709
+ ns_quantity: string;
1710
+ /** open_uid */
1711
+ open_uid: string;
1712
+ /** 操作人id */
1713
+ operator_id: string;
1714
+ /** 操作人名称 */
1715
+ operator_name: string;
1716
+ /** 订单渠道,2-APP, 3-POS */
1717
+ order_client: number;
1718
+ /** 渠道来源 3:饿了么 4:淘宝 */
1719
+ order_from: number;
1720
+ /** 淘鲜达子订单号 */
1721
+ origin_order_id: number;
1722
+ /** 淘鲜达父订单号 */
1723
+ origin_parent_id: number;
1724
+ /** 外部主订单号 */
1725
+ out_mian_order_id: string;
1726
+ /** 外部子订单号 */
1727
+ out_order_id: string;
1728
+ /** 外部退款id */
1729
+ out_refund_id: string;
1730
+ /** 外部门店id */
1731
+ out_shop_id: string;
1732
+ /** 外部skucode */
1733
+ out_sku_code: string;
1734
+ /** 库存单位拣货数量 */
1735
+ pick_amount_stock: string;
1736
+ /** 履约状态 */
1737
+ promise_status: string;
1738
+ /** 原购买数量 */
1739
+ quantity: number;
1740
+ /** 退款金额 */
1741
+ refund_amount: number;
1742
+ /** 退款渠道 */
1743
+ refund_channel_list: string;
1744
+ /** 退款单id */
1745
+ refund_order_id: number;
1746
+ /** 退款运费,单位为分 */
1747
+ refund_post_fee: number;
1748
+ /** 理论退货数量 */
1749
+ refund_quantity: string;
1750
+ /** 退款时间 */
1751
+ refund_time: Date;
1752
+ /** 退款类型 */
1753
+ refund_type: number;
1754
+ /** 销售单位 */
1755
+ sale_unit: string;
1756
+ /** 非标品单位 */
1757
+ sell_unit: string;
1758
+ /** 渠道店id */
1759
+ shop_id: string;
1760
+ /** 库存单位 */
1761
+ stock_unit: string;
1762
+ /** 店铺码 */
1763
+ store_id: string;
1764
+ /** 同步状态 */
1765
+ sync_status: string;
1766
+ /** 淘宝子订单号 */
1767
+ tb_biz_order_id: number;
1768
+ /** 淘宝主订单号 */
1769
+ tb_biz_parent_id: number;
1770
+ /** 交易属性 */
1771
+ trade_attributes: string;
1772
+ }
1773
+
1774
+ /** 共享库存SOPO */
1775
+ interface SoPo {
1776
+ /** 履约子订单号 如果是正向,则为正向履约子单号,如果是退款,则为逆向履约子单号 */
1777
+ fulfill_sub_order_id: string;
1778
+ /** 45=猫超,100=共享库存 */
1779
+ order_from: number;
1780
+ /** 未税单价 */
1781
+ price_without_tax: string;
1782
+ /** 采购价(含税) */
1783
+ price_with_tax: string;
1784
+ /** PO单单号 */
1785
+ process_order_no: string;
1786
+ /** 数量 */
1787
+ quantity: string;
1788
+ /** 交易类型 */
1789
+ sales_type: number;
1790
+ /** 商品code */
1791
+ sku_code: string;
1792
+ /** 经营店id */
1793
+ store_id: string;
1794
+ /** 税率 */
1795
+ tax_rate: string;
1796
+ /** 淘系子订单号 */
1797
+ tb_sub_order_id: string;
1798
+ }
1799
+
1800
+ /** 五道口订单状态变更消息 */
1801
+ interface StatusChange {
1802
+ /** 盒马主订单号 */
1803
+ biz_order_id: number;
1804
+ /** 商品优惠总额 */
1805
+ discount_amt: number;
1806
+ /** 班次号 */
1807
+ duty_code: string;
1808
+ /** 赠券,格式为 券ID_券金额, 金额单位为分 */
1809
+ gift_coupon: string;
1810
+ /** 会员卡号 */
1811
+ member_card_num: string;
1812
+ /** 会员价优惠总金额 */
1813
+ member_discount_amt: number;
1814
+ /** 会员积分 */
1815
+ member_point: string;
1816
+ /** 商户码 */
1817
+ merchant_code: string;
1818
+ /** open_uid */
1819
+ open_uid: string;
1820
+ /** 收银员编号 */
1821
+ operator_id: string;
1822
+ /** 收银员名字 */
1823
+ operator_name: string;
1824
+ /** app或pos */
1825
+ order_client: string;
1826
+ /** 渠道来源, 3:饿了么 4:盒马 */
1827
+ order_from: number;
1828
+ /** 订单状态 */
1829
+ order_status: string;
1830
+ /** 商品总金额(优惠前) */
1831
+ original_amt: number;
1832
+ /** 外部订单号 */
1833
+ out_order_id: string;
1834
+ /** 外部门店号 */
1835
+ out_shop_id: string;
1836
+ /** 打包时间 */
1837
+ package_time: Date;
1838
+ /** 支付渠道信息 */
1839
+ pay_channels: string;
1840
+ /** 成交时间 */
1841
+ pay_time: Date;
1842
+ /** 配送费 */
1843
+ post_fee: number;
1844
+ /** 渠道店id */
1845
+ shop_id: string;
1846
+ /** 门店编码 */
1847
+ store_id: string;
1848
+ /** 子订单信息 */
1849
+ sub_orders: string;
1850
+ /** 淘宝主订单号 */
1851
+ tb_biz_order_id: number;
1852
+ /** 主订单附加属性 */
1853
+ trade_attributes: string;
1854
+ /** 销售类型(正向销售1:逆向销售2。本接口应返回2) */
1855
+ trd_type: number;
1856
+ }
1857
+
1858
+ /** 淘鲜达订单优惠券状态变更 */
1859
+ interface VoucherStatus {
1860
+ /** 业务时间 */
1861
+ biz_time: Date;
1862
+ /** 经营店id */
1863
+ store_id: string;
1864
+ /** 淘系主订单号 */
1865
+ tb_order_id: string;
1866
+ /** 优惠券状态,occupy:占用 ,used:已使用 ,release:释放 */
1867
+ voucher_status: string;
1868
+ /** 券id和code */
1869
+ wdk_order_voucher_codes: string;
1870
+ }
1871
+ }
1872
+
1873
+ /** 五道口营销 */
1874
+ declare namespace Alibaba.Wdktrade {
1875
+ /** 营销券实例消息 */
1876
+ interface CouponInstance {
1877
+ /** 门槛金额 */
1878
+ amount: number;
1879
+ /** 可使用店列表 */
1880
+ can_use_shop_list: string[];
1881
+ /** 申请渠道 */
1882
+ channel: string;
1883
+ /** 优惠券发放方式 */
1884
+ coupon_send_type: string;
1885
+ /** 卡券来源 */
1886
+ coupon_source: string;
1887
+ /** 优惠券详情描述 */
1888
+ description: string;
1889
+ /** 券详情 */
1890
+ details: string[];
1891
+ /** 结束时间 */
1892
+ end_time: Date;
1893
+ /** 特性 */
1894
+ features: string;
1895
+ /** 匿名码code */
1896
+ ma_code: string;
1897
+ /** 商家编码 */
1898
+ merchant_code: string;
1899
+ /** 开始时间 */
1900
+ start_time: Date;
1901
+ /** 模板id */
1902
+ template_id: string;
1903
+ /** 优惠券名称 */
1904
+ title: string;
1905
+ /** 券实例ID */
1906
+ voucher_id: string;
1907
+ }
1908
+ }
1909
+
1910
+ /** 平台消息 */
1911
+ declare namespace Alibaba.Yunio {
1912
+ /** YunIO数据流转 */
1913
+ interface DataTransfer {
1914
+ /** 流转数据体 */
1915
+ data: string;
1916
+ /** 数据体业务标识 */
1917
+ data_id: string;
1918
+ }
1919
+ }