@be-link/pos-cli-nodejs 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +2 -2
- package/index.js +1 -1
- package/package.json +3 -2
- package/pos/modules/orderCore/service.d.ts +0 -2
- package/pos/modules/orderCore/service.js +1 -7
- package/pos/modules/orderCore/types.d.ts +9 -31
- package/pos/modules/orderFulfill/service.d.ts +7 -6
- package/pos/modules/orderFulfill/service.js +12 -9
- package/pos/modules/orderFulfill/types.d.ts +32 -127
- package/pos/modules/orderNote/service.d.ts +1 -1
- package/pos/modules/orderNote/types.d.ts +9 -27
- package/pos/modules/orderQuery/commodity.d.ts +3 -3
- package/pos/modules/orderQuery/store.d.ts +3 -2
- package/pos/modules/orderQuery/store.js +3 -0
- package/pos/modules/orderQuery/types.d.ts +29 -12
- package/pos/modules/orderQuery/user.d.ts +5 -5
- package/pos/modules/orderQuery/web.d.ts +2 -2
- package/types.d.ts +770 -614
- package/enums.d.ts +0 -154
- package/enums.js +0 -178
package/types.d.ts
CHANGED
|
@@ -1,616 +1,772 @@
|
|
|
1
|
-
import * as PosConstants from '
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import * as PosConstants from 'vitality-meta/enums/pos';
|
|
2
|
+
/**
|
|
3
|
+
* 订单正向结构
|
|
4
|
+
*/
|
|
5
|
+
export interface IPositiveOrder {
|
|
6
|
+
/** 快照:订单ID */
|
|
7
|
+
id: string;
|
|
8
|
+
/** 快照:创建时间 */
|
|
9
|
+
createdAt: number;
|
|
10
|
+
/** 更新时间 */
|
|
11
|
+
updatedAt: number;
|
|
12
|
+
/** 订单状态 */
|
|
13
|
+
status: PosConstants.TradeOrderStatusEnum;
|
|
14
|
+
/** 快照:支付时间 */
|
|
15
|
+
paidAt: number;
|
|
16
|
+
/** 订单履约时间 */
|
|
17
|
+
fulfillAt: number;
|
|
18
|
+
/** 履约结束时间: endOfDay(fulfillAt + T - 1) 回团日期当天的最后一秒 */
|
|
19
|
+
fulfillEndAt: number;
|
|
20
|
+
/** 快照:订单完结时间 */
|
|
21
|
+
completedAt: number;
|
|
22
|
+
/** 快照:订单应付金额(商品总价) */
|
|
23
|
+
originalFee: number;
|
|
24
|
+
/** 快照:订单实付金额(优惠后金额) */
|
|
25
|
+
actuallyPaidFee: number;
|
|
26
|
+
/** 订单剩余金额 */
|
|
27
|
+
remainFee: number;
|
|
28
|
+
/** 快照:归属用户unionId */
|
|
29
|
+
unionId: string;
|
|
30
|
+
/** 快照:归属用户openId */
|
|
31
|
+
openId: string;
|
|
32
|
+
/** 快照:来源用户unionId */
|
|
33
|
+
fromUnionId: string;
|
|
34
|
+
/** 快照:来源用户角色 */
|
|
35
|
+
fromUserRole: string;
|
|
36
|
+
/** 快照:交易主商品一级类目 */
|
|
37
|
+
categoryOne: string;
|
|
38
|
+
/** 快照:交易主商品二级类目 */
|
|
39
|
+
categoryTwo: string;
|
|
40
|
+
/** 快照:商品归属门店ID */
|
|
41
|
+
storeId: string;
|
|
42
|
+
/** 快照:交易主商品ID */
|
|
43
|
+
itemId: string;
|
|
44
|
+
/** 交易主SKUID(改期场景会更新该字段) */
|
|
45
|
+
skuId: string;
|
|
46
|
+
/** 快照:关联主单ID */
|
|
47
|
+
rootOrderId: string;
|
|
48
|
+
/** 快照:下单场景信息 */
|
|
49
|
+
sceneInfo: {
|
|
50
|
+
/** 一级场景 */
|
|
51
|
+
scene1?: string;
|
|
52
|
+
/** 二级场景 */
|
|
53
|
+
scene2?: string;
|
|
54
|
+
/** 小程序场景值 */
|
|
55
|
+
appScene: number;
|
|
56
|
+
};
|
|
57
|
+
/** 联系人信息 */
|
|
58
|
+
contactInfo: {
|
|
59
|
+
/** 姓名 */
|
|
60
|
+
name: string;
|
|
61
|
+
/** 电话 */
|
|
62
|
+
mobile: string;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
export interface IPositiveAttributes {
|
|
66
|
+
/** 订单ID */
|
|
67
|
+
id: string;
|
|
68
|
+
/** 下单时是否是会员 */
|
|
69
|
+
isMemberOrder: boolean;
|
|
70
|
+
/** 是否为首次交易 */
|
|
71
|
+
isFirstTrade: boolean;
|
|
72
|
+
/** 是否合并过其它订单 */
|
|
73
|
+
hasMergedOrder: boolean;
|
|
74
|
+
/** 是否合并到了其它订单 */
|
|
75
|
+
isMerged: boolean;
|
|
76
|
+
/** 是否修改过餐食 */
|
|
77
|
+
isMealInfoModified: boolean;
|
|
78
|
+
/** 是否确认餐食信息 */
|
|
79
|
+
isMealInfoConfirmed: boolean;
|
|
80
|
+
/** 是否购买过保险 */
|
|
81
|
+
isPurchasedInsurance: boolean;
|
|
82
|
+
/** 服务通知是否已读 */
|
|
83
|
+
buyerWxNotificationIsRead: boolean;
|
|
84
|
+
/** 服务通知是否发送 */
|
|
85
|
+
hasSentWXNotification: boolean;
|
|
86
|
+
/** 是否授权服务通知 */
|
|
87
|
+
isAuthSendItineraryInfoSubscribeMessage: boolean;
|
|
88
|
+
/** 出行人是否填写完整 */
|
|
89
|
+
isTouristsCompletely: boolean;
|
|
90
|
+
}
|
|
91
|
+
export interface CostInclusionJson {
|
|
92
|
+
/** 标题 */
|
|
93
|
+
title: string;
|
|
94
|
+
/** 值 */
|
|
95
|
+
value: string;
|
|
96
|
+
}
|
|
97
|
+
export interface CreditInfo {
|
|
98
|
+
/** 抵扣金币 */
|
|
99
|
+
deductRate: number;
|
|
100
|
+
}
|
|
101
|
+
export interface ItinerarySchedule {
|
|
102
|
+
/** 描述 */
|
|
103
|
+
description: any[];
|
|
104
|
+
/** 图片列表 */
|
|
105
|
+
pics: string[];
|
|
106
|
+
/** 标题 */
|
|
107
|
+
title: string;
|
|
108
|
+
}
|
|
109
|
+
export interface Content {
|
|
110
|
+
/** 类型 */
|
|
111
|
+
type: string;
|
|
112
|
+
/** 值 */
|
|
113
|
+
value: string;
|
|
114
|
+
}
|
|
115
|
+
export interface ProductDetail {
|
|
116
|
+
/** 内容 */
|
|
117
|
+
content: Content[];
|
|
118
|
+
/** 标题 */
|
|
119
|
+
title: string;
|
|
120
|
+
}
|
|
121
|
+
export interface SubContent {
|
|
122
|
+
/** 类型 */
|
|
123
|
+
type: string;
|
|
124
|
+
/** 值 */
|
|
125
|
+
value: string;
|
|
126
|
+
}
|
|
127
|
+
export interface PurchasingInstruction {
|
|
128
|
+
/** 内容 */
|
|
129
|
+
content: SubContent[];
|
|
130
|
+
/** 标题 */
|
|
131
|
+
title: string;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* 订单商品快照
|
|
135
|
+
*/
|
|
136
|
+
export interface IPositiveItemInfo {
|
|
137
|
+
/** 商品ID */
|
|
138
|
+
_id: string;
|
|
139
|
+
/** 创建时间 */
|
|
140
|
+
_createTime: number;
|
|
141
|
+
/** 更新时间 */
|
|
142
|
+
_updateTime: number;
|
|
143
|
+
/** 取消政策 */
|
|
144
|
+
cancellationPolicy: string;
|
|
145
|
+
/** 一级类目 */
|
|
146
|
+
categoryOne: string;
|
|
147
|
+
/** 二级类目 */
|
|
148
|
+
categoryTwo: string;
|
|
149
|
+
/** 费用不包含 */
|
|
150
|
+
costExclusion: string;
|
|
151
|
+
/** 费用包含 */
|
|
152
|
+
costInclusion: any;
|
|
153
|
+
/** 费用说明 */
|
|
154
|
+
costInclusionJson: CostInclusionJson[];
|
|
155
|
+
/** 金币信息 */
|
|
156
|
+
creditInfo: CreditInfo;
|
|
157
|
+
/** 地接社 */
|
|
158
|
+
domesticTourOperator: string;
|
|
159
|
+
/** 产品特色 */
|
|
160
|
+
featuredTags: string[];
|
|
161
|
+
/** 门店id */
|
|
162
|
+
storeId?: string;
|
|
163
|
+
/** 头图 */
|
|
164
|
+
headPics: string[];
|
|
165
|
+
/** 视频 */
|
|
166
|
+
headVideo: string;
|
|
167
|
+
/** 是否仅员工可见 */
|
|
168
|
+
isOnlyStaffCanSee: number;
|
|
169
|
+
/** 是否自组团 */
|
|
170
|
+
isSelfLead: number;
|
|
171
|
+
/** 行程安排 */
|
|
172
|
+
itinerarySchedule: ItinerarySchedule[];
|
|
173
|
+
/** 最低市场价 */
|
|
174
|
+
minMarketPrice: number;
|
|
175
|
+
/** 最低会员价 */
|
|
176
|
+
minMemberPrice: number;
|
|
177
|
+
/** 最低价 */
|
|
178
|
+
minPrice: number;
|
|
179
|
+
/** 名称 */
|
|
180
|
+
name: string;
|
|
181
|
+
/** 商品详情 */
|
|
182
|
+
productDetails: ProductDetail[];
|
|
183
|
+
/** 购买须知 */
|
|
184
|
+
purchasingInstruction: PurchasingInstruction[];
|
|
185
|
+
/** 销量 */
|
|
186
|
+
saleCount: number;
|
|
187
|
+
/** 商品状态 */
|
|
188
|
+
status: string;
|
|
189
|
+
/** 出发地 */
|
|
190
|
+
tourBeginPlace: string;
|
|
191
|
+
/** 行程天数 */
|
|
192
|
+
tourDays: number;
|
|
193
|
+
/** 目的地 */
|
|
194
|
+
tourEndPlace: string;
|
|
195
|
+
/** 旅游供应商 */
|
|
196
|
+
tourWholesaler: any;
|
|
197
|
+
/** 浏览次数 */
|
|
198
|
+
viewCount: number;
|
|
199
|
+
/** 视频号feedId */
|
|
200
|
+
wxFeedId: string;
|
|
201
|
+
/** 视频号FinderUserName */
|
|
202
|
+
wxFinderUserName: string;
|
|
203
|
+
/** 合作方 */
|
|
204
|
+
cooperator: string;
|
|
205
|
+
/** 酒店供应商 */
|
|
206
|
+
hotelSupplier: string;
|
|
207
|
+
/** 酒店班车供应商 */
|
|
208
|
+
shuttleBusSupplier: string;
|
|
209
|
+
/** 酒店班车供应商ID */
|
|
210
|
+
shuttleBusSupplierIds: string[];
|
|
211
|
+
/** 酒店班车结算价 */
|
|
212
|
+
shuttleBusSettlementPrice: number;
|
|
213
|
+
/** 旅游负责人 */
|
|
214
|
+
tourPrincipal: string | null;
|
|
215
|
+
/** 设施 */
|
|
216
|
+
facilities: any[];
|
|
217
|
+
/** 历史商品数据,从快照原样返回 */
|
|
218
|
+
voucherInfo: {
|
|
219
|
+
/** 提前预定天数(0~255) */
|
|
220
|
+
bookingDays?: number;
|
|
221
|
+
[key: string]: any;
|
|
222
|
+
};
|
|
223
|
+
/** 预定须知描述 */
|
|
224
|
+
bookingTip?: string;
|
|
225
|
+
/** 有效期开始时间 */
|
|
226
|
+
periodStartTime?: number;
|
|
227
|
+
/** 有效期结束时间 */
|
|
228
|
+
periodEndTime?: number;
|
|
229
|
+
/** 是否可以修改餐食 */
|
|
230
|
+
canUpdateMealInfo: number | boolean;
|
|
231
|
+
}
|
|
232
|
+
export interface IPositiveSkuInfo {
|
|
233
|
+
/** SKU ID */
|
|
234
|
+
_id: string;
|
|
235
|
+
/** 快照Id */
|
|
236
|
+
skuSnapShotId: string;
|
|
237
|
+
/** 创建时间 */
|
|
238
|
+
_createTime: number;
|
|
239
|
+
/** 更新时间 */
|
|
240
|
+
_updateTime: number;
|
|
241
|
+
/** SKU 适用人群类型 */
|
|
242
|
+
applicablePeople: PosConstants.ApplicablePeopleEnum;
|
|
243
|
+
/** SKU 套餐 */
|
|
244
|
+
combo?: string;
|
|
245
|
+
/** SKU 费用天数 */
|
|
246
|
+
costDays?: number;
|
|
247
|
+
/** SKU 出发日期 */
|
|
248
|
+
departureDate: number;
|
|
249
|
+
/** SKU 显示出发日期 */
|
|
250
|
+
displayDepartureDate?: string;
|
|
251
|
+
/** SKU 团信息 */
|
|
252
|
+
groupInfo?: {
|
|
253
|
+
/** 团编号 */
|
|
254
|
+
groupIdx?: number;
|
|
255
|
+
/** 车牌号 */
|
|
256
|
+
carNo?: string;
|
|
257
|
+
/** 领队手机号 */
|
|
258
|
+
leaderMobile?: string;
|
|
259
|
+
/** 领队姓名 */
|
|
260
|
+
leaderName?: string;
|
|
261
|
+
/** 团二维码 */
|
|
262
|
+
wxQrCode?: string;
|
|
263
|
+
/** 返程交通(废弃,兼容历史数据) */
|
|
264
|
+
outboundTraffic?: string;
|
|
265
|
+
/** 去程交通(废弃,兼容历史数据) */
|
|
266
|
+
returnTraffic?: string;
|
|
267
|
+
/** 志愿者姓名 */
|
|
268
|
+
volunteerName?: string;
|
|
269
|
+
/** 志愿者手机号 */
|
|
270
|
+
volunteerMobile?: string;
|
|
271
|
+
/** 提示 */
|
|
272
|
+
tips?: string;
|
|
273
|
+
/** 行前备注 */
|
|
274
|
+
notice: string;
|
|
275
|
+
/** 提前预约(ktv,已废弃,需要兼容) */
|
|
276
|
+
bookingDays?: number;
|
|
277
|
+
};
|
|
278
|
+
/** SKU 所属商品 ID */
|
|
279
|
+
itemId: string;
|
|
280
|
+
/** SKU 市场价 */
|
|
281
|
+
marketPrice: number;
|
|
282
|
+
/** SKU 会员价 */
|
|
283
|
+
memberPrice?: number;
|
|
284
|
+
/** SKU 会员价限制次数 */
|
|
285
|
+
memberPriceLimitTimes?: number;
|
|
286
|
+
/** SKU 最小订单数量 */
|
|
287
|
+
minOrderQuantity: number;
|
|
288
|
+
/** SKU 计划库存 */
|
|
289
|
+
planStock: number;
|
|
290
|
+
/** SKU 数量 */
|
|
291
|
+
quantity: number;
|
|
292
|
+
/** SKU 相关 SKU */
|
|
293
|
+
relatedSku: string;
|
|
294
|
+
/** SKU 开售时间 */
|
|
295
|
+
saleBeginTime: number;
|
|
296
|
+
/** SKU 结束时间 */
|
|
297
|
+
saleEndTime: number;
|
|
298
|
+
/** SKU 售价 */
|
|
299
|
+
salePrice: number;
|
|
300
|
+
/** SKU 状态 */
|
|
301
|
+
status: string;
|
|
302
|
+
/** SKU 剩余库存 */
|
|
303
|
+
surplus: number;
|
|
304
|
+
/** SKU 结算价 */
|
|
305
|
+
settlementPrice: number;
|
|
306
|
+
/** 酒店 SKU 额外信息 */
|
|
307
|
+
hotelExtraInfo?: {
|
|
308
|
+
/** SKU ID */
|
|
309
|
+
_id: string;
|
|
310
|
+
/** SKU 所属商品 ID */
|
|
311
|
+
itemId: string;
|
|
312
|
+
/** SKU 餐饮信息 */
|
|
313
|
+
mealInfo: string;
|
|
314
|
+
/** SKU 是否有下午茶 */
|
|
315
|
+
hasAfternoonTea: number;
|
|
316
|
+
/** SKU 是否有班车 */
|
|
317
|
+
hasShuttleBus: number;
|
|
318
|
+
};
|
|
319
|
+
/** 剩余数量 */
|
|
320
|
+
remainQuantity: number;
|
|
321
|
+
/** 一级类目 */
|
|
322
|
+
categoryOne: string;
|
|
323
|
+
/** 二级类目 */
|
|
324
|
+
categoryTwo: string;
|
|
325
|
+
}
|
|
326
|
+
export interface IWxPaymentInfo {
|
|
327
|
+
appId: string;
|
|
328
|
+
nonceStr: string;
|
|
329
|
+
package: string;
|
|
330
|
+
paySign: string;
|
|
331
|
+
signType: string;
|
|
332
|
+
timeStamp: string;
|
|
333
|
+
}
|
|
334
|
+
export interface IPositivePaymentInfo {
|
|
335
|
+
/** 支付单Id */
|
|
336
|
+
_id: string;
|
|
337
|
+
/** 支付关联的交易订单ID */
|
|
338
|
+
tradeOrderId: string;
|
|
339
|
+
/** 支付类型 */
|
|
340
|
+
type: PosConstants.PaymentTypeEnum;
|
|
341
|
+
/** 支付工具 */
|
|
342
|
+
payTool: PosConstants.PayToolEnum;
|
|
343
|
+
/** 支付总金额 */
|
|
344
|
+
totalFee: number;
|
|
345
|
+
/** 外部系统中的支付交易ID */
|
|
346
|
+
outBizId: string;
|
|
347
|
+
/** 支付交易的预支付ID */
|
|
348
|
+
prepayId: string;
|
|
349
|
+
/** 支付关联的子商户ID */
|
|
350
|
+
subMchId?: string;
|
|
351
|
+
/** 支付交易状态 */
|
|
352
|
+
tradeState: string;
|
|
353
|
+
/** 支付交易状态描述 */
|
|
354
|
+
tradeStateDesc: string;
|
|
355
|
+
/** 支付交易的额外信息 */
|
|
356
|
+
extraInfo?: {
|
|
357
|
+
/** 微信支付交易信息 */
|
|
358
|
+
wxPaymentInfo?: IWxPaymentInfo;
|
|
359
|
+
/** 合并子单信息 */
|
|
360
|
+
tradeOrderId?: string;
|
|
361
|
+
/** 外部订单 */
|
|
362
|
+
outOrderId?: string;
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
export interface CouponSnapShotInfo {
|
|
366
|
+
/** 优惠券Id */
|
|
367
|
+
id: string;
|
|
368
|
+
/** 优惠券的基本信息。 */
|
|
369
|
+
basicInfo: any;
|
|
370
|
+
/** 优惠券的折扣规则。 */
|
|
371
|
+
discountRule: {
|
|
372
|
+
level: string;
|
|
373
|
+
};
|
|
374
|
+
/** 与优惠券相关的任何额外信息。 */
|
|
375
|
+
extraInfo: any;
|
|
376
|
+
/** 优惠券可以提供的授权类型。 */
|
|
377
|
+
grantType: string[];
|
|
378
|
+
/** 优惠券的使用范围。 */
|
|
379
|
+
scope: {
|
|
380
|
+
type: string;
|
|
381
|
+
value: string[];
|
|
382
|
+
}[];
|
|
383
|
+
/** 优惠券的使用限制。 */
|
|
384
|
+
usageLimit: any;
|
|
385
|
+
}
|
|
386
|
+
export interface IPositivePromotionInfo {
|
|
387
|
+
/** 营销记录Id */
|
|
388
|
+
_id: string;
|
|
389
|
+
/** 订单Id */
|
|
390
|
+
tradeOrderId: string;
|
|
391
|
+
/** 与营销关联的业务的唯一标识符。 */
|
|
392
|
+
bizId: string;
|
|
393
|
+
/** 营销类型。 */
|
|
394
|
+
type: PosConstants.PromotionTypeEnum;
|
|
395
|
+
/** 与营销关联的 SKU 列表。 */
|
|
396
|
+
skuIdList: string[];
|
|
397
|
+
/** 营销价格。 */
|
|
398
|
+
price: number;
|
|
399
|
+
/** 营销应用的减免金额。 */
|
|
400
|
+
reduce: number;
|
|
401
|
+
/** 与营销关联的优惠券的快照信息。 */
|
|
402
|
+
snapShotInfo: CouponSnapShotInfo;
|
|
403
|
+
}
|
|
404
|
+
export interface IPositiveItineraryInfo {
|
|
405
|
+
_id: string;
|
|
406
|
+
/** 人员姓名 */
|
|
407
|
+
name: string;
|
|
408
|
+
/** 人员电话 */
|
|
409
|
+
phone: string;
|
|
410
|
+
/** 人员身份证号 */
|
|
411
|
+
idCard: string;
|
|
412
|
+
/** 行程类型 */
|
|
413
|
+
type: PosConstants.ItineraryTypeEnum;
|
|
414
|
+
/** 交通工具类型 */
|
|
415
|
+
transportationType: PosConstants.TransportationTypeEnum;
|
|
416
|
+
/** 出发站 */
|
|
417
|
+
departureStation: string;
|
|
418
|
+
/** 集合时间 */
|
|
419
|
+
assemblyTime: number;
|
|
420
|
+
/** 交通工具出发时间 */
|
|
421
|
+
transportationDepartureTime: number;
|
|
422
|
+
/** 交通工具编号 */
|
|
423
|
+
serialNumber: string;
|
|
424
|
+
/** 行程备注 */
|
|
425
|
+
remark: string;
|
|
426
|
+
/** 座位号 */
|
|
427
|
+
seatNumber: string;
|
|
428
|
+
/** 司机电话 */
|
|
429
|
+
driverPhone: string;
|
|
430
|
+
/** 交易订单 ID */
|
|
431
|
+
tradeOrderId: string;
|
|
432
|
+
/** 商品 ID */
|
|
433
|
+
itemId: string;
|
|
434
|
+
/** SKU ID */
|
|
435
|
+
skuId: string;
|
|
436
|
+
/** 出行人 ID */
|
|
437
|
+
touristId: string;
|
|
438
|
+
}
|
|
439
|
+
export interface ContactInfo {
|
|
440
|
+
/** 联系人姓名 */
|
|
441
|
+
name: string;
|
|
442
|
+
/** 联系人电话 */
|
|
443
|
+
mobile: string;
|
|
444
|
+
/** 联系人身份证号 */
|
|
445
|
+
idCard?: string;
|
|
446
|
+
}
|
|
447
|
+
export interface TouristInfo {
|
|
448
|
+
/** 出行人Id */
|
|
449
|
+
id: string;
|
|
450
|
+
/** 填写人Id */
|
|
451
|
+
fillerUserId?: string;
|
|
452
|
+
/** 性别 */
|
|
453
|
+
gender: number;
|
|
454
|
+
/** 身份证 */
|
|
455
|
+
idCard: string;
|
|
456
|
+
/** 是否自己 */
|
|
457
|
+
isSelf: number;
|
|
458
|
+
/** 电话号码 */
|
|
459
|
+
mobile: string;
|
|
460
|
+
/** 姓名 */
|
|
461
|
+
name: string;
|
|
462
|
+
/** unionId */
|
|
463
|
+
unionId: string;
|
|
464
|
+
/** 是否已通知 */
|
|
465
|
+
hasNotified?: boolean;
|
|
466
|
+
/** skuId */
|
|
467
|
+
skuId?: string;
|
|
468
|
+
/** 是否发送语音消息 */
|
|
469
|
+
isVoiceSucceed?: boolean;
|
|
470
|
+
/** 是否发送短信 */
|
|
471
|
+
isSmsSucceed?: boolean;
|
|
472
|
+
}
|
|
473
|
+
/** 旅游出行信息,已不再适用,兼容旧数据 */
|
|
474
|
+
export interface ItineraryInfo {
|
|
475
|
+
/** 集合时间 */
|
|
476
|
+
assemblyTime: number;
|
|
477
|
+
/** 出发时间 */
|
|
478
|
+
departureTime: number;
|
|
479
|
+
/** 集合点 */
|
|
480
|
+
location: string;
|
|
481
|
+
/** 座位号 */
|
|
482
|
+
seatNo?: string[];
|
|
483
|
+
/** 去程座位号 */
|
|
484
|
+
outboundSeatInfoDesc: string;
|
|
485
|
+
/** 返程座位号 */
|
|
486
|
+
returnSeatInfoDesc: string;
|
|
487
|
+
/** 行程备注 */
|
|
488
|
+
itineraryInfoNote: string;
|
|
489
|
+
}
|
|
490
|
+
export interface IPositiveTouristInfo {
|
|
491
|
+
/** 订单 ID。 */
|
|
492
|
+
_id: string;
|
|
493
|
+
/** 联系人(待废弃) */
|
|
494
|
+
contactInfo?: ContactInfo;
|
|
495
|
+
/** 出行人列表 */
|
|
496
|
+
tourists: TouristInfo[];
|
|
497
|
+
/** 行程信息。 */
|
|
498
|
+
itineraryInfo: ItineraryInfo;
|
|
499
|
+
/** 行程单已读列表 */
|
|
500
|
+
travelFormReadList: string[];
|
|
501
|
+
/** 出行人是否完整(待废弃) */
|
|
502
|
+
isTouristsCompletely: number;
|
|
503
|
+
/** 服务通知已读(待废弃) */
|
|
504
|
+
buyerWxNotificationIsRead: number;
|
|
505
|
+
/** 服务通知已发(待废弃) */
|
|
506
|
+
hasSentWXNotification: number;
|
|
507
|
+
/** 是否授权服务通知(待废弃) */
|
|
508
|
+
isAuthSendItineraryInfoSubscribeMessage: number;
|
|
509
|
+
}
|
|
510
|
+
export interface IPositiveFulfillmentInfo {
|
|
511
|
+
/** 履约信息Id */
|
|
512
|
+
id: string;
|
|
513
|
+
/** 创建时间 */
|
|
514
|
+
createdAt: number;
|
|
515
|
+
/** 更新时间 */
|
|
516
|
+
updatedAt: number;
|
|
517
|
+
/** 订单 ID */
|
|
518
|
+
positiveOrderId: string;
|
|
519
|
+
/** 房间信息。 */
|
|
520
|
+
roomInfo: {
|
|
521
|
+
/** 房间单人床数量。 */
|
|
522
|
+
DOUBLE_BED: {
|
|
523
|
+
count: number;
|
|
524
|
+
remain: number;
|
|
25
525
|
};
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
departureDate: number;
|
|
269
|
-
/** SKU 显示出发日期 */
|
|
270
|
-
displayDepartureDate?: string;
|
|
271
|
-
/** SKU 团信息 */
|
|
272
|
-
groupInfo?: {
|
|
273
|
-
/** 团编号 */
|
|
274
|
-
groupIdx?: number;
|
|
275
|
-
/** 车牌号 */
|
|
276
|
-
carNo?: string;
|
|
277
|
-
/** 领队手机号 */
|
|
278
|
-
leaderMobile?: string;
|
|
279
|
-
/** 领队姓名 */
|
|
280
|
-
leaderName?: string;
|
|
281
|
-
/** 团二维码 */
|
|
282
|
-
wxQrCode?: string;
|
|
283
|
-
/** 返程交通(废弃,兼容历史数据) */
|
|
284
|
-
outboundTraffic?: string;
|
|
285
|
-
/** 去程交通(废弃,兼容历史数据) */
|
|
286
|
-
returnTraffic?: string;
|
|
287
|
-
/** 志愿者姓名 */
|
|
288
|
-
volunteerName?: string;
|
|
289
|
-
/** 志愿者手机号 */
|
|
290
|
-
volunteerMobile?: string;
|
|
291
|
-
/** 提示 */
|
|
292
|
-
tips?: string;
|
|
293
|
-
/** 行前备注 */
|
|
294
|
-
notice: string;
|
|
295
|
-
/** 提前预约(ktv,已废弃,需要兼容) */
|
|
296
|
-
bookingDays?: number;
|
|
297
|
-
};
|
|
298
|
-
/** SKU 所属商品 ID */
|
|
299
|
-
itemId: string;
|
|
300
|
-
/** SKU 市场价 */
|
|
301
|
-
marketPrice: number;
|
|
302
|
-
/** SKU 会员价 */
|
|
303
|
-
memberPrice?: number;
|
|
304
|
-
/** SKU 会员价限制次数 */
|
|
305
|
-
memberPriceLimitTimes?: number;
|
|
306
|
-
/** SKU 最小订单数量 */
|
|
307
|
-
minOrderQuantity: number;
|
|
308
|
-
/** SKU 计划库存 */
|
|
309
|
-
planStock: number;
|
|
310
|
-
/** SKU 数量 */
|
|
311
|
-
quantity: number;
|
|
312
|
-
/** SKU 相关 SKU */
|
|
313
|
-
relatedSku: string;
|
|
314
|
-
/** SKU 开售时间 */
|
|
315
|
-
saleBeginTime: number;
|
|
316
|
-
/** SKU 结束时间 */
|
|
317
|
-
saleEndTime: number;
|
|
318
|
-
/** SKU 售价 */
|
|
319
|
-
salePrice: number;
|
|
320
|
-
/** SKU 状态 */
|
|
321
|
-
status: string;
|
|
322
|
-
/** SKU 剩余库存 */
|
|
323
|
-
surplus: number;
|
|
324
|
-
/** SKU 结算价 */
|
|
325
|
-
settlementPrice: number;
|
|
326
|
-
/** 酒店 SKU 额外信息 */
|
|
327
|
-
hotelExtraInfo?: {
|
|
328
|
-
/** SKU ID */
|
|
329
|
-
_id: string;
|
|
330
|
-
/** SKU 所属商品 ID */
|
|
331
|
-
itemId: string;
|
|
332
|
-
/** SKU 餐饮信息 */
|
|
333
|
-
mealInfo: string;
|
|
334
|
-
/** SKU 是否有下午茶 */
|
|
335
|
-
hasAfternoonTea: number;
|
|
336
|
-
/** SKU 是否有班车 */
|
|
337
|
-
hasShuttleBus: number;
|
|
338
|
-
};
|
|
339
|
-
remainQuantity: number;
|
|
340
|
-
}
|
|
341
|
-
interface IWxPaymentInfo {
|
|
342
|
-
appId: string;
|
|
343
|
-
nonceStr: string;
|
|
344
|
-
package: string;
|
|
345
|
-
paySign: string;
|
|
346
|
-
signType: string;
|
|
347
|
-
timeStamp: string;
|
|
348
|
-
}
|
|
349
|
-
interface IPositivePaymentInfo {
|
|
350
|
-
/** 支付关联的交易订单ID */
|
|
351
|
-
tradeOrderId: string;
|
|
352
|
-
/** 支付类型 */
|
|
353
|
-
type: typeof PosConstants.PaymentTypeEnum;
|
|
354
|
-
/** 支付工具 */
|
|
355
|
-
payTool: typeof PosConstants.PayToolEnum;
|
|
356
|
-
/** 支付总金额 */
|
|
357
|
-
totalFee: number;
|
|
358
|
-
/** 外部系统中的支付交易ID */
|
|
359
|
-
outBizId: string;
|
|
360
|
-
/** 支付交易的预支付ID */
|
|
361
|
-
prepayId: string;
|
|
362
|
-
/** 支付关联的子商户ID */
|
|
363
|
-
subMchId?: string;
|
|
364
|
-
/** 支付交易状态 */
|
|
365
|
-
tradeState: string;
|
|
366
|
-
/** 支付交易状态描述 */
|
|
367
|
-
tradeStateDesc: string;
|
|
368
|
-
/** 支付交易的额外信息 */
|
|
369
|
-
extraInfo?: {
|
|
370
|
-
/** 微信支付交易信息 */
|
|
371
|
-
wxPaymentInfo?: IWxPaymentInfo;
|
|
372
|
-
};
|
|
373
|
-
}
|
|
374
|
-
interface CouponSnapShotInfo {
|
|
375
|
-
/** 优惠券Id */
|
|
376
|
-
id: string;
|
|
377
|
-
/** 优惠券的基本信息。 */
|
|
378
|
-
basicInfo: any;
|
|
379
|
-
/** 优惠券的折扣规则。 */
|
|
380
|
-
discountRule: {
|
|
381
|
-
level: string;
|
|
382
|
-
};
|
|
383
|
-
/** 与优惠券相关的任何额外信息。 */
|
|
384
|
-
extraInfo: any;
|
|
385
|
-
/** 优惠券可以提供的授权类型。 */
|
|
386
|
-
grantType: string[];
|
|
387
|
-
/** 优惠券的使用范围。 */
|
|
388
|
-
scope: {
|
|
389
|
-
type: string;
|
|
390
|
-
value: string[];
|
|
391
|
-
}[];
|
|
392
|
-
/** 优惠券的使用限制。 */
|
|
393
|
-
usageLimit: any;
|
|
394
|
-
}
|
|
395
|
-
interface IPositivePromotionInfo {
|
|
396
|
-
/** 营销记录Id */
|
|
397
|
-
_id: string;
|
|
398
|
-
/** 订单Id */
|
|
399
|
-
tradeOrderId: string;
|
|
400
|
-
/** 与营销关联的业务的唯一标识符。 */
|
|
401
|
-
bizId: string;
|
|
402
|
-
/** 营销类型。 */
|
|
403
|
-
type: typeof PosConstants.PromotionTypeEnum;
|
|
404
|
-
/** 与营销关联的 SKU 列表。 */
|
|
405
|
-
skuIdList: string[];
|
|
406
|
-
/** 营销价格。 */
|
|
407
|
-
price: number;
|
|
408
|
-
/** 营销应用的减免金额。 */
|
|
409
|
-
reduce: number;
|
|
410
|
-
/** 与营销关联的优惠券的快照信息。 */
|
|
411
|
-
snapShotInfo: CouponSnapShotInfo;
|
|
412
|
-
}
|
|
413
|
-
interface IPositiveItineraryInfo {
|
|
414
|
-
/** 行程 ID */
|
|
415
|
-
id: string;
|
|
416
|
-
/** 人员姓名 */
|
|
417
|
-
name: string;
|
|
418
|
-
/** 人员电话 */
|
|
419
|
-
phone: string;
|
|
420
|
-
/** 人员身份证号 */
|
|
421
|
-
idCard: string;
|
|
422
|
-
/** 行程类型 */
|
|
423
|
-
type: typeof PosConstants.ItineraryTypeEnum;
|
|
424
|
-
/** 交通工具类型 */
|
|
425
|
-
transportationType: typeof PosConstants.TransportationTypeEnum;
|
|
426
|
-
/** 出发站 */
|
|
427
|
-
departureStation: string;
|
|
428
|
-
/** 集合时间 */
|
|
429
|
-
assemblyTime: number;
|
|
430
|
-
/** 交通工具出发时间 */
|
|
431
|
-
transportationDepartureTime: number;
|
|
432
|
-
/** 交通工具编号 */
|
|
433
|
-
serialNumber: string;
|
|
434
|
-
/** 行程备注 */
|
|
435
|
-
remark: string;
|
|
436
|
-
/** 座位号 */
|
|
437
|
-
seatNumber: string;
|
|
438
|
-
/** 司机电话 */
|
|
439
|
-
driverPhone: string;
|
|
440
|
-
/** 交易订单 ID */
|
|
441
|
-
tradeOrderId: string;
|
|
442
|
-
/** 商品 ID */
|
|
443
|
-
itemId: string;
|
|
444
|
-
/** SKU ID */
|
|
445
|
-
skuId: string;
|
|
446
|
-
/** 出行人 ID */
|
|
447
|
-
touristId: string;
|
|
448
|
-
}
|
|
449
|
-
interface ContactInfo {
|
|
450
|
-
/** 联系人姓名 */
|
|
451
|
-
name: string;
|
|
452
|
-
/** 联系人电话 */
|
|
453
|
-
mobile: string;
|
|
454
|
-
/** 联系人身份证号 */
|
|
455
|
-
idCard?: string;
|
|
456
|
-
}
|
|
457
|
-
interface TouristInfo {
|
|
458
|
-
/** 出行人Id */
|
|
459
|
-
id: string;
|
|
460
|
-
/** 填写人Id */
|
|
461
|
-
fillerUserId?: string;
|
|
462
|
-
/** 性别 */
|
|
463
|
-
gender: number;
|
|
464
|
-
/** 身份证 */
|
|
465
|
-
idCard: string;
|
|
466
|
-
/** 是否自己 */
|
|
467
|
-
isSelf: number;
|
|
468
|
-
/** 电话号码 */
|
|
469
|
-
mobile: string;
|
|
470
|
-
/** 姓名 */
|
|
471
|
-
name: string;
|
|
472
|
-
/** unionId */
|
|
473
|
-
unionId: string;
|
|
474
|
-
/** 是否已通知 */
|
|
475
|
-
hasNotified?: boolean;
|
|
476
|
-
/** skuId */
|
|
477
|
-
skuId?: string;
|
|
478
|
-
/** 是否发送语音消息 */
|
|
479
|
-
isVoiceSucceed?: boolean;
|
|
480
|
-
/** 是否发送短信 */
|
|
481
|
-
isSmsSucceed?: boolean;
|
|
482
|
-
}
|
|
483
|
-
/** 旅游出行信息,已不再适用,兼容旧数据 */
|
|
484
|
-
interface ItineraryInfo {
|
|
485
|
-
/** 集合时间 */
|
|
486
|
-
assemblyTime: number;
|
|
487
|
-
/** 出发时间 */
|
|
488
|
-
departureTime: number;
|
|
489
|
-
/** 集合点 */
|
|
490
|
-
location: string;
|
|
491
|
-
/** 座位号 */
|
|
492
|
-
seatNo?: string[];
|
|
493
|
-
/** 去程座位号 */
|
|
494
|
-
outboundSeatInfoDesc: string;
|
|
495
|
-
/** 返程座位号 */
|
|
496
|
-
returnSeatInfoDesc: string;
|
|
497
|
-
/** 行程备注 */
|
|
498
|
-
itineraryInfoNote: string;
|
|
499
|
-
}
|
|
500
|
-
interface IPositiveTouristInfo {
|
|
501
|
-
/** 订单 ID。 */
|
|
502
|
-
_id: string;
|
|
503
|
-
/** 联系人(待废弃) */
|
|
504
|
-
contactInfo?: ContactInfo;
|
|
505
|
-
/** 出行人列表 */
|
|
506
|
-
tourists: TouristInfo[];
|
|
507
|
-
/** 行程信息。 */
|
|
508
|
-
itineraryInfo: ItineraryInfo;
|
|
509
|
-
/** 行程单已读列表 */
|
|
510
|
-
travelFormReadList: string[];
|
|
511
|
-
}
|
|
512
|
-
interface IPositiveFulfillmentInfo {
|
|
513
|
-
/** 履约信息Id */
|
|
514
|
-
_id: string;
|
|
515
|
-
/** 创建时间 */
|
|
516
|
-
createdAt: number;
|
|
517
|
-
/** 更新时间 */
|
|
518
|
-
updatedAt: number;
|
|
519
|
-
/** 订单 ID */
|
|
520
|
-
positiveOrderId: string;
|
|
521
|
-
/** 房间信息。 */
|
|
522
|
-
roomInfo: {
|
|
523
|
-
/** 房间单人床数量。 */
|
|
524
|
-
DOUBLE_BED: {
|
|
525
|
-
count: number;
|
|
526
|
-
};
|
|
527
|
-
/** 房间双人床数量。 */
|
|
528
|
-
SINGLE_BED: {
|
|
529
|
-
count: number;
|
|
530
|
-
};
|
|
531
|
-
};
|
|
532
|
-
/** 定制餐食信息。 */
|
|
533
|
-
customMealInfo: string;
|
|
534
|
-
}
|
|
535
|
-
interface TradeOrderMergeRecordResource {
|
|
536
|
-
/** 资源类型 */
|
|
537
|
-
type: string;
|
|
538
|
-
/** 合并前 */
|
|
539
|
-
before: Record<string, any>;
|
|
540
|
-
/** 合并后 */
|
|
541
|
-
after: Record<string, any>;
|
|
542
|
-
}
|
|
543
|
-
interface IPositiveMergeRecord {
|
|
544
|
-
/** 订单Id */
|
|
545
|
-
targetId: string;
|
|
546
|
-
/** 资源 */
|
|
547
|
-
resources: TradeOrderMergeRecordResource[];
|
|
548
|
-
}
|
|
549
|
-
interface IShuttleInfo {
|
|
550
|
-
/** 班车记录Id */
|
|
551
|
-
id: string;
|
|
552
|
-
/** 班车类型 */
|
|
553
|
-
type: typeof PosConstants.ShuttleTypeEnum;
|
|
554
|
-
/** 车牌号 */
|
|
555
|
-
carNo: string;
|
|
556
|
-
/** 出发站 */
|
|
557
|
-
station: string;
|
|
558
|
-
/** 上车时间 */
|
|
559
|
-
pickupTime: string;
|
|
560
|
-
/** 司机电话 */
|
|
561
|
-
driverPhone: string;
|
|
562
|
-
/** 座位号列表 */
|
|
563
|
-
seatNumbers: number[];
|
|
564
|
-
/** 订单Id */
|
|
565
|
-
tradeOrderId: string;
|
|
566
|
-
/** 是否发送短信 */
|
|
567
|
-
isSendSms: number;
|
|
568
|
-
/** 是否发送语音消息 */
|
|
569
|
-
isSendVoice: number;
|
|
570
|
-
/** 班车供应商id */
|
|
571
|
-
shuttleBusId: string;
|
|
572
|
-
}
|
|
573
|
-
interface IPositiveNoteInfo {
|
|
574
|
-
/** 备注Id */
|
|
575
|
-
_id: string;
|
|
576
|
-
/** 订单Id */
|
|
577
|
-
tradeOrderId: string;
|
|
578
|
-
/** 操作人角色 */
|
|
579
|
-
operatorRole: typeof PosConstants.OperatorRoleEnum;
|
|
580
|
-
/** 操作人 */
|
|
581
|
-
operatorUser: string;
|
|
582
|
-
/** 内容 */
|
|
583
|
-
content: string;
|
|
584
|
-
/** 备注状态 */
|
|
585
|
-
status: typeof PosConstants.NoteStatusEnum;
|
|
586
|
-
/** 修改人角色 */
|
|
587
|
-
modifyOperatorRole?: typeof PosConstants.ModifyOperatorRoleEnum;
|
|
588
|
-
/** 修改人 */
|
|
589
|
-
modifyOperatorUser?: string;
|
|
590
|
-
/** 备注类型 */
|
|
591
|
-
type: typeof PosConstants.OperatorRoleEnum;
|
|
592
|
-
}
|
|
593
|
-
interface IPositiveChangeSkuRecord {
|
|
594
|
-
/** 变更记录Id */
|
|
595
|
-
id: string;
|
|
596
|
-
/** 订单id */
|
|
597
|
-
orderId: string;
|
|
598
|
-
/** 操作人 */
|
|
599
|
-
operator: string;
|
|
600
|
-
/** 变更原因类型 */
|
|
601
|
-
reasonType: string;
|
|
602
|
-
/** 变更原因描述内容(手写) */
|
|
603
|
-
reasonDesc: string;
|
|
604
|
-
/** 原skuId */
|
|
605
|
-
originalSkuId: string;
|
|
606
|
-
/** 原sku出行日期 */
|
|
607
|
-
originalDepartureDate: number;
|
|
608
|
-
/** 目标skuID */
|
|
609
|
-
targetSkuId: string;
|
|
610
|
-
/** 目标sku出行日期 */
|
|
611
|
-
targetDepartureDate: number;
|
|
612
|
-
/** 附件文件的URL列表 */
|
|
613
|
-
attachment: string[];
|
|
614
|
-
}
|
|
615
|
-
}
|
|
526
|
+
/** 房间双人床数量。 */
|
|
527
|
+
SINGLE_BED: {
|
|
528
|
+
count: number;
|
|
529
|
+
remain: number;
|
|
530
|
+
};
|
|
531
|
+
};
|
|
532
|
+
/** 定制餐食信息。 */
|
|
533
|
+
customMealInfo: string;
|
|
534
|
+
}
|
|
535
|
+
export interface TradeOrderMergeRecordResource {
|
|
536
|
+
/** 资源类型 */
|
|
537
|
+
type: string;
|
|
538
|
+
/** 合并前 */
|
|
539
|
+
before: Record<string, any>;
|
|
540
|
+
/** 合并后 */
|
|
541
|
+
after: Record<string, any>;
|
|
542
|
+
}
|
|
543
|
+
export interface IPositiveMergeRecord {
|
|
544
|
+
/** 合并记录Id */
|
|
545
|
+
_id: string;
|
|
546
|
+
/** 订单Id */
|
|
547
|
+
targetId: string;
|
|
548
|
+
/** 资源 */
|
|
549
|
+
resources: TradeOrderMergeRecordResource[];
|
|
550
|
+
}
|
|
551
|
+
export interface IShuttleInfo {
|
|
552
|
+
/** 班车记录Id */
|
|
553
|
+
id: string;
|
|
554
|
+
/** 班车类型 */
|
|
555
|
+
type: PosConstants.ShuttleTypeEnum;
|
|
556
|
+
/** 车牌号 */
|
|
557
|
+
carNo: string;
|
|
558
|
+
/** 出发站 */
|
|
559
|
+
station: string;
|
|
560
|
+
/** 上车时间 */
|
|
561
|
+
pickupTime: string;
|
|
562
|
+
/** 司机电话 */
|
|
563
|
+
driverPhone: string;
|
|
564
|
+
/** 座位号列表 */
|
|
565
|
+
seatNumbers: number[];
|
|
566
|
+
/** 订单Id */
|
|
567
|
+
tradeOrderId: string;
|
|
568
|
+
/** 是否发送短信 */
|
|
569
|
+
isSendSms: number;
|
|
570
|
+
/** 是否发送语音消息 */
|
|
571
|
+
isSendVoice: number;
|
|
572
|
+
/** 班车供应商id */
|
|
573
|
+
shuttleBusId: string;
|
|
574
|
+
}
|
|
575
|
+
export interface IPositiveNoteInfo {
|
|
576
|
+
/** 备注Id */
|
|
577
|
+
_id: string;
|
|
578
|
+
/** 订单Id */
|
|
579
|
+
tradeOrderId: string;
|
|
580
|
+
/** 操作人角色 */
|
|
581
|
+
operatorRole: PosConstants.OperatorRoleEnum;
|
|
582
|
+
/** 操作人 */
|
|
583
|
+
operatorUser: string;
|
|
584
|
+
/** 内容 */
|
|
585
|
+
content: string;
|
|
586
|
+
/** 备注状态 */
|
|
587
|
+
status: PosConstants.NoteStatusEnum;
|
|
588
|
+
/** 修改人角色 */
|
|
589
|
+
modifyOperatorRole?: PosConstants.ModifyOperatorRoleEnum;
|
|
590
|
+
/** 修改人 */
|
|
591
|
+
modifyOperatorUser?: string;
|
|
592
|
+
/** 备注类型 */
|
|
593
|
+
type: PosConstants.NoteTypeEnum;
|
|
594
|
+
}
|
|
595
|
+
export interface IPositiveChangeSkuRecord {
|
|
596
|
+
/** 变更记录Id */
|
|
597
|
+
id: string;
|
|
598
|
+
/** 订单id */
|
|
599
|
+
orderId: string;
|
|
600
|
+
/** 操作人 */
|
|
601
|
+
operator: string;
|
|
602
|
+
/** 变更原因类型 */
|
|
603
|
+
reasonType: string;
|
|
604
|
+
/** 变更原因描述内容(手写) */
|
|
605
|
+
reasonDesc: string;
|
|
606
|
+
/** 原skuId */
|
|
607
|
+
originalSkuId: string;
|
|
608
|
+
/** 原sku出行日期 */
|
|
609
|
+
originalDepartureDate: number;
|
|
610
|
+
/** 目标skuID */
|
|
611
|
+
targetSkuId: string;
|
|
612
|
+
/** 目标sku出行日期 */
|
|
613
|
+
targetDepartureDate: number;
|
|
614
|
+
/** 附件文件的URL列表 */
|
|
615
|
+
attachment: string[];
|
|
616
|
+
}
|
|
617
|
+
export interface IRawOrderStructure {
|
|
618
|
+
basicInfo: IPositiveOrder;
|
|
619
|
+
attributes?: {
|
|
620
|
+
isMemberOrder: number;
|
|
621
|
+
isFirstTrade: number;
|
|
622
|
+
hasMergedOrder: number;
|
|
623
|
+
isMerged: number;
|
|
624
|
+
isMealInfoModified: number;
|
|
625
|
+
isMealInfoConfirmed: number;
|
|
626
|
+
isPurchasedInsurance: number;
|
|
627
|
+
buyerWxNotificationIsRead: number;
|
|
628
|
+
hasSentWXNotification: number;
|
|
629
|
+
isAuthSendItineraryInfoSubscribeMessage: number;
|
|
630
|
+
isTouristsCompletely: number;
|
|
631
|
+
};
|
|
632
|
+
commodityInfo?: (IPositiveItemInfo & {
|
|
633
|
+
skus: IPositiveSkuInfo[];
|
|
634
|
+
})[];
|
|
635
|
+
paymentInfo?: IPositivePaymentInfo[];
|
|
636
|
+
promotionInfo?: IPositivePromotionInfo[];
|
|
637
|
+
}
|
|
638
|
+
export interface IRawFulFillStructure {
|
|
639
|
+
tourismInfo: IPositiveTouristInfo;
|
|
640
|
+
fulfillmentInfo: IPositiveFulfillmentInfo;
|
|
641
|
+
}
|
|
642
|
+
export interface IWxPrepayResult {
|
|
643
|
+
payment: {
|
|
644
|
+
appId: string;
|
|
645
|
+
timeStamp: string;
|
|
646
|
+
nonceStr: string;
|
|
647
|
+
package: string;
|
|
648
|
+
signType: string;
|
|
649
|
+
paySign: string;
|
|
650
|
+
};
|
|
651
|
+
appid: string;
|
|
652
|
+
mch_id: string;
|
|
653
|
+
sub_appid: string;
|
|
654
|
+
sub_mch_id: string;
|
|
655
|
+
device_info: string;
|
|
656
|
+
nonce_str: string;
|
|
657
|
+
sign: string;
|
|
658
|
+
result_code: string;
|
|
659
|
+
err_code: string;
|
|
660
|
+
err_code_des: string;
|
|
661
|
+
trade_type?: string;
|
|
662
|
+
prepay_id?: string;
|
|
663
|
+
}
|
|
664
|
+
export interface IMessagePayload {
|
|
665
|
+
orderId: string;
|
|
666
|
+
eventTime: number;
|
|
667
|
+
operator: string;
|
|
668
|
+
operatorRole: string;
|
|
669
|
+
fromStatus: string;
|
|
670
|
+
toStatus: string;
|
|
671
|
+
unionId: string;
|
|
672
|
+
}
|
|
673
|
+
export interface IMessageHeader {
|
|
674
|
+
categoryOne: string;
|
|
675
|
+
categoryTwo: string;
|
|
676
|
+
}
|
|
677
|
+
export interface IOrderOperatorRecord {
|
|
678
|
+
/** 订单Id */
|
|
679
|
+
tradeOrderId: string;
|
|
680
|
+
/** 操作人角色 */
|
|
681
|
+
operatorRole: PosConstants.TradeOperatorRoleEnum;
|
|
682
|
+
/** 操作人 */
|
|
683
|
+
operator: string;
|
|
684
|
+
/** 来源状态 */
|
|
685
|
+
fromStatus: PosConstants.TradeOrderStatusEnum | null;
|
|
686
|
+
/** 目的状态 */
|
|
687
|
+
toStatus: PosConstants.TradeOrderStatusEnum;
|
|
688
|
+
/** 原因 */
|
|
689
|
+
reason: string;
|
|
690
|
+
}
|
|
691
|
+
export interface ITradeTourismInfo {
|
|
692
|
+
/** 订单id */
|
|
693
|
+
_id: string;
|
|
694
|
+
/** 订单联系人(待废弃) */
|
|
695
|
+
contactInfo: {
|
|
696
|
+
/** 姓名 */
|
|
697
|
+
name: string;
|
|
698
|
+
/** 手机号 */
|
|
699
|
+
mobile: string;
|
|
700
|
+
};
|
|
701
|
+
/** 出行人列表 */
|
|
702
|
+
tourists: {
|
|
703
|
+
/** 出行人Id */
|
|
704
|
+
id: string;
|
|
705
|
+
/** 创建时间 */
|
|
706
|
+
_createTime: number;
|
|
707
|
+
/** 更新时间 */
|
|
708
|
+
_updateTime: number;
|
|
709
|
+
/** 填写人Id */
|
|
710
|
+
fillerUserId: string;
|
|
711
|
+
/** 性别 */
|
|
712
|
+
gender: number;
|
|
713
|
+
/** 身份证号 */
|
|
714
|
+
idCard: string;
|
|
715
|
+
/** 是否本人 */
|
|
716
|
+
isSelf: number;
|
|
717
|
+
/** 手机号 */
|
|
718
|
+
mobile: string;
|
|
719
|
+
/** 姓名 */
|
|
720
|
+
name: string;
|
|
721
|
+
/** unionId */
|
|
722
|
+
unionId: string;
|
|
723
|
+
/** 是否已通知 */
|
|
724
|
+
hasNotified: boolean;
|
|
725
|
+
/** skuId */
|
|
726
|
+
skuId: string;
|
|
727
|
+
/** 是否语音通知成功 */
|
|
728
|
+
isVoiceSucceed: boolean;
|
|
729
|
+
/** 是否短信通知成功 */
|
|
730
|
+
isSmsSucceed: boolean;
|
|
731
|
+
}[];
|
|
732
|
+
/** 集合信息(废弃,兼容旧数据) */
|
|
733
|
+
itineraryInfo: {
|
|
734
|
+
/** 集合时间 */
|
|
735
|
+
assemblyTime: number;
|
|
736
|
+
/** 出发时间 */
|
|
737
|
+
departureTime: number;
|
|
738
|
+
/** 集合地点 */
|
|
739
|
+
location: string;
|
|
740
|
+
/** 座位号 */
|
|
741
|
+
seatNo: string[];
|
|
742
|
+
/** 去程座位信息 */
|
|
743
|
+
outboundSeatInfoDesc: string;
|
|
744
|
+
/** 回程座位信息 */
|
|
745
|
+
returnSeatInfoDesc: string;
|
|
746
|
+
/** 行程单备注 */
|
|
747
|
+
itineraryInfoNote: string;
|
|
748
|
+
};
|
|
749
|
+
/** 行程单已读 */
|
|
750
|
+
travelFormReadList: string[];
|
|
751
|
+
}
|
|
752
|
+
/** 订单查询结果和查询块的映射 */
|
|
753
|
+
export interface QueryDataBlockTypeMap {
|
|
754
|
+
/** 订单Id */
|
|
755
|
+
_id: string;
|
|
756
|
+
/** 主要信息 */
|
|
757
|
+
basicInfo: IPositiveOrder;
|
|
758
|
+
/** 标记信息 */
|
|
759
|
+
attributes: IPositiveAttributes;
|
|
760
|
+
/** 商品快照信息 */
|
|
761
|
+
itemInfo: IPositiveItemInfo[];
|
|
762
|
+
/** sku快照信息 */
|
|
763
|
+
skuInfo: IPositiveSkuInfo[];
|
|
764
|
+
/** 支付信息 */
|
|
765
|
+
paymentInfo: IPositivePaymentInfo[];
|
|
766
|
+
/** 营销信息 */
|
|
767
|
+
promotionInfo: IPositivePromotionInfo[];
|
|
616
768
|
}
|
|
769
|
+
/** 订单查询结果 */
|
|
770
|
+
export type QueryDataRes<K extends (keyof QueryDataBlockTypeMap)[]> = {
|
|
771
|
+
[key in K[number]]: QueryDataBlockTypeMap[key];
|
|
772
|
+
};
|