@be-link/pos-cli-nodejs 1.0.51-beta.0 → 1.0.51-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +12 -11
- package/.github/workflows/JMeter.yml +0 -92
- package/.husky/commit-msg +0 -4
- package/.versionrc +0 -22
- package/CHANGELOG.md +0 -599
- package/Makefile +0 -4
- package/ceshi.jmx +0 -326
- package/ci/index.ts +0 -73
- package/commitlint.config.js +0 -3
- package/dist/README.md +0 -40
- package/dist/package.json +0 -54
- package/jest.config.js +0 -194
- package/src/errors/BizError.ts +0 -10
- package/src/errors/SystemError.ts +0 -10
- package/src/index.ts +0 -33
- package/src/pos/http.ts +0 -70
- package/src/pos/modules/dataMigrate/service.ts +0 -18
- package/src/pos/modules/dataMigrate/types.ts +0 -11
- package/src/pos/modules/orderCore/service.ts +0 -80
- package/src/pos/modules/orderCore/types.ts +0 -418
- package/src/pos/modules/orderFulfill/service.ts +0 -126
- package/src/pos/modules/orderFulfill/types.ts +0 -548
- package/src/pos/modules/orderJob/service.ts +0 -87
- package/src/pos/modules/orderJob/types.ts +0 -54
- package/src/pos/modules/orderNote/service.ts +0 -29
- package/src/pos/modules/orderNote/types.ts +0 -78
- package/src/pos/modules/orderQuery/commodity.ts +0 -59
- package/src/pos/modules/orderQuery/store.ts +0 -24
- package/src/pos/modules/orderQuery/supplier.ts +0 -34
- package/src/pos/modules/orderQuery/types.ts +0 -1159
- package/src/pos/modules/orderQuery/user.ts +0 -83
- package/src/pos/modules/orderQuery/web.ts +0 -26
- package/src/pos/modules/service.ts +0 -31
- package/src/types.ts +0 -1237
- package/src/utils/env.ts +0 -14
- package/src/utils/string.ts +0 -6
- package/tsconfig.json +0 -114
- package/typedoc.json +0 -15
- /package/{dist/errors → errors}/BizError.d.ts +0 -0
- /package/{dist/errors → errors}/BizError.js +0 -0
- /package/{dist/errors → errors}/SystemError.d.ts +0 -0
- /package/{dist/errors → errors}/SystemError.js +0 -0
- /package/{dist/index.d.ts → index.d.ts} +0 -0
- /package/{dist/index.js → index.js} +0 -0
- /package/{dist/pos → pos}/http.d.ts +0 -0
- /package/{dist/pos → pos}/http.js +0 -0
- /package/{dist/pos → pos}/modules/dataMigrate/service.d.ts +0 -0
- /package/{dist/pos → pos}/modules/dataMigrate/service.js +0 -0
- /package/{dist/pos → pos}/modules/dataMigrate/types.d.ts +0 -0
- /package/{dist/pos → pos}/modules/dataMigrate/types.js +0 -0
- /package/{dist/pos → pos}/modules/orderCore/service.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderCore/service.js +0 -0
- /package/{dist/pos → pos}/modules/orderCore/types.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderCore/types.js +0 -0
- /package/{dist/pos → pos}/modules/orderFulfill/service.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderFulfill/service.js +0 -0
- /package/{dist/pos → pos}/modules/orderFulfill/types.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderFulfill/types.js +0 -0
- /package/{dist/pos → pos}/modules/orderJob/service.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderJob/service.js +0 -0
- /package/{dist/pos → pos}/modules/orderJob/types.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderJob/types.js +0 -0
- /package/{dist/pos → pos}/modules/orderNote/service.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderNote/service.js +0 -0
- /package/{dist/pos → pos}/modules/orderNote/types.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderNote/types.js +0 -0
- /package/{dist/pos → pos}/modules/orderQuery/commodity.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderQuery/commodity.js +0 -0
- /package/{dist/pos → pos}/modules/orderQuery/store.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderQuery/store.js +0 -0
- /package/{dist/pos → pos}/modules/orderQuery/supplier.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderQuery/supplier.js +0 -0
- /package/{dist/pos → pos}/modules/orderQuery/types.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderQuery/types.js +0 -0
- /package/{dist/pos → pos}/modules/orderQuery/user.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderQuery/user.js +0 -0
- /package/{dist/pos → pos}/modules/orderQuery/web.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderQuery/web.js +0 -0
- /package/{dist/pos → pos}/modules/service.d.ts +0 -0
- /package/{dist/pos → pos}/modules/service.js +0 -0
- /package/{dist/types.d.ts → types.d.ts} +0 -0
- /package/{dist/types.js → types.js} +0 -0
- /package/{dist/utils → utils}/env.d.ts +0 -0
- /package/{dist/utils → utils}/env.js +0 -0
- /package/{dist/utils → utils}/string.d.ts +0 -0
- /package/{dist/utils → utils}/string.js +0 -0
package/src/types.ts
DELETED
|
@@ -1,1237 +0,0 @@
|
|
|
1
|
-
import * as PosConstants from 'vitality-meta/enums/pos'
|
|
2
|
-
import * as commodityConstants from 'vitality-meta/enums/commodity'
|
|
3
|
-
import * as CSDto from '@be-link/cs-cli-nodejs/types'
|
|
4
|
-
import * as ServiceVenueDto from '@be-link/cs-cli-nodejs/cs/modules/serviceVenue/types'
|
|
5
|
-
import { CommonSaleStatus } from 'vitality-meta/enums/commodity'
|
|
6
|
-
/**
|
|
7
|
-
* 订单正向结构
|
|
8
|
-
*/
|
|
9
|
-
export interface IPositiveOrder {
|
|
10
|
-
/** 快照:订单ID */
|
|
11
|
-
id: string
|
|
12
|
-
/** 快照:创建时间 */
|
|
13
|
-
createdAt: number
|
|
14
|
-
/** 更新时间 */
|
|
15
|
-
updatedAt: number
|
|
16
|
-
/** 订单状态 */
|
|
17
|
-
status: PosConstants.TradeOrderStatusEnum
|
|
18
|
-
/** 快照:支付时间 */
|
|
19
|
-
paidAt: number
|
|
20
|
-
/** 订单履约时间 */
|
|
21
|
-
fulfillAt: number
|
|
22
|
-
/** 履约结束时间: endOfDay(fulfillAt + T - 1) 回团日期当天的最后一秒 */
|
|
23
|
-
fulfillEndAt: number
|
|
24
|
-
/** 快照:订单完结时间 */
|
|
25
|
-
completedAt: number
|
|
26
|
-
/** 快照:订单应付金额(商品总价) */
|
|
27
|
-
originalFee: number
|
|
28
|
-
/** 快照:订单实付金额(优惠后金额) */
|
|
29
|
-
actuallyPaidFee: number
|
|
30
|
-
/** 订单剩余金额 *listOrderInvoiceCount */
|
|
31
|
-
remainFee: number
|
|
32
|
-
/** 快照:归属用户unionId */
|
|
33
|
-
unionId: string
|
|
34
|
-
/** 快照:归属用户openId */
|
|
35
|
-
openId: string
|
|
36
|
-
/** 快照:来源用户unionId */
|
|
37
|
-
fromUnionId: string
|
|
38
|
-
/** 快照:专属小管家unionId */
|
|
39
|
-
privateButlerUnionId: string
|
|
40
|
-
/** 快照:来源用户角色 */
|
|
41
|
-
fromUserRole: string
|
|
42
|
-
/** 快照:交易主商品一级类目 */
|
|
43
|
-
categoryOne: string
|
|
44
|
-
/** 快照:交易主商品二级类目 */
|
|
45
|
-
categoryTwo: string
|
|
46
|
-
/** 快照:商品归属门店ID */
|
|
47
|
-
storeId: string
|
|
48
|
-
/** 快照:商品归属供应商ID */
|
|
49
|
-
supplierId: string
|
|
50
|
-
/** 快照:交易主商品ID */
|
|
51
|
-
itemId: string
|
|
52
|
-
/** 交易主SKUID(改期场景会更新该字段) */
|
|
53
|
-
skuId: string
|
|
54
|
-
/** 快照:关联主单ID */
|
|
55
|
-
rootOrderId: string
|
|
56
|
-
/** 快照:下单场景信息 */
|
|
57
|
-
sceneInfo: {
|
|
58
|
-
/** 一级场景 */
|
|
59
|
-
scene1?: string
|
|
60
|
-
/** 二级场景 */
|
|
61
|
-
scene2?: string
|
|
62
|
-
/** 小程序场景值 */
|
|
63
|
-
appScene: number
|
|
64
|
-
}
|
|
65
|
-
/** 联系人信息 */
|
|
66
|
-
contactInfo: {
|
|
67
|
-
/** 姓名 */
|
|
68
|
-
name: string
|
|
69
|
-
/** 电话 */
|
|
70
|
-
mobile: string
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export interface IPositiveAttributes {
|
|
75
|
-
/** 订单ID */
|
|
76
|
-
id: string
|
|
77
|
-
/** 下单时是否是会员 */
|
|
78
|
-
isMemberOrder: boolean
|
|
79
|
-
/** 是否为首次交易 */
|
|
80
|
-
isFirstTrade: boolean
|
|
81
|
-
/** 是否合并过其它订单 */
|
|
82
|
-
hasMergedOrder: boolean
|
|
83
|
-
/** 是否合并到了其它订单 */
|
|
84
|
-
isMerged: boolean
|
|
85
|
-
/** 是否修改过餐食 */
|
|
86
|
-
isMealInfoModified: boolean
|
|
87
|
-
/** 是否确认餐食信息 */
|
|
88
|
-
isMealInfoConfirmed: boolean
|
|
89
|
-
/** 是否购买过保险 */
|
|
90
|
-
isPurchasedInsurance: boolean
|
|
91
|
-
/** 服务通知是否已读 */
|
|
92
|
-
buyerWxNotificationIsRead: boolean
|
|
93
|
-
/** 服务通知是否发送 */
|
|
94
|
-
hasSentWXNotification: boolean
|
|
95
|
-
/** 是否授权服务通知 */
|
|
96
|
-
isAuthSendItineraryInfoSubscribeMessage: boolean
|
|
97
|
-
/** 出行人是否填写完整 */
|
|
98
|
-
isTouristsCompletely: boolean
|
|
99
|
-
/** 是否是拼团主单 */
|
|
100
|
-
isGroupMainOrder: boolean
|
|
101
|
-
/** 是否是拼团子单 */
|
|
102
|
-
isGroupSubOrder: boolean
|
|
103
|
-
/** 拼团单类型, 默认为0, A为1, B为2, 依次累加 */
|
|
104
|
-
groupBookingType: number
|
|
105
|
-
/** 是否班车信息需要确认 */
|
|
106
|
-
isShuttleBusNeedCheck: boolean
|
|
107
|
-
/** 是否是迁移商品订单 */
|
|
108
|
-
isMigratedItemOrder: boolean
|
|
109
|
-
/** 快照创建时间 */
|
|
110
|
-
createdAt: number
|
|
111
|
-
/** 快照更新时间 */
|
|
112
|
-
updatedAt: number
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
export interface CostInclusionJson {
|
|
117
|
-
/** 标题 */
|
|
118
|
-
title: string
|
|
119
|
-
/** 值 */
|
|
120
|
-
value: string
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export interface CreditInfo {
|
|
124
|
-
/** 抵扣金币 */
|
|
125
|
-
deductRate: number
|
|
126
|
-
}
|
|
127
|
-
export interface ItinerarySchedule {
|
|
128
|
-
/** 描述 */
|
|
129
|
-
description: any[]
|
|
130
|
-
/** 图片列表 */
|
|
131
|
-
pics: string[]
|
|
132
|
-
/** 标题 */
|
|
133
|
-
title: string
|
|
134
|
-
}
|
|
135
|
-
export interface Content {
|
|
136
|
-
/** 类型 */
|
|
137
|
-
type: string
|
|
138
|
-
/** 值 */
|
|
139
|
-
value: string
|
|
140
|
-
}
|
|
141
|
-
export interface ProductDetail {
|
|
142
|
-
/** 内容 */
|
|
143
|
-
content: Content[]
|
|
144
|
-
/** 标题 */
|
|
145
|
-
title: string
|
|
146
|
-
}
|
|
147
|
-
export interface SubContent {
|
|
148
|
-
/** 类型 */
|
|
149
|
-
type: string
|
|
150
|
-
/** 值 */
|
|
151
|
-
value: string
|
|
152
|
-
}
|
|
153
|
-
export interface PurchasingInstruction {
|
|
154
|
-
/** 内容 */
|
|
155
|
-
content: SubContent[]
|
|
156
|
-
/** 标题 */
|
|
157
|
-
title: string
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* 订单商品快照
|
|
162
|
-
*/
|
|
163
|
-
export interface IPositiveItemInfo {
|
|
164
|
-
/** 商品ID */
|
|
165
|
-
_id: string
|
|
166
|
-
/** 创建时间 */
|
|
167
|
-
_createTime: number
|
|
168
|
-
/** 更新时间 */
|
|
169
|
-
_updateTime: number
|
|
170
|
-
/** 取消政策 */
|
|
171
|
-
cancellationPolicy: string
|
|
172
|
-
/** 一级类目 */
|
|
173
|
-
categoryOne: string
|
|
174
|
-
/** 二级类目 */
|
|
175
|
-
categoryTwo: string
|
|
176
|
-
/** 费用不包含 */
|
|
177
|
-
costExclusion: string
|
|
178
|
-
/** 费用包含 */
|
|
179
|
-
costInclusion: any
|
|
180
|
-
/** 费用说明 */
|
|
181
|
-
costInclusionJson: CostInclusionJson[]
|
|
182
|
-
/** 金币信息 */
|
|
183
|
-
creditInfo: CreditInfo
|
|
184
|
-
/** 地接社 */
|
|
185
|
-
domesticTourOperator: string
|
|
186
|
-
/** 产品特色 */
|
|
187
|
-
featuredTags: string[]
|
|
188
|
-
/** 门店id */
|
|
189
|
-
storeId?: string
|
|
190
|
-
/** 供应商id */
|
|
191
|
-
supplierId?: string
|
|
192
|
-
/** 头图 */
|
|
193
|
-
headPics: string[]
|
|
194
|
-
/** 视频 */
|
|
195
|
-
headVideo: string
|
|
196
|
-
/** 是否仅员工可见 */
|
|
197
|
-
isOnlyStaffCanSee: number
|
|
198
|
-
/** 是否自组团 */
|
|
199
|
-
isSelfLead: number
|
|
200
|
-
/** 是否需要建群(旅游) */
|
|
201
|
-
needWxGroup: number
|
|
202
|
-
/** 合同类型(旅游) */
|
|
203
|
-
contractType: commodityConstants.TourContractTypeEnum
|
|
204
|
-
/** 行程安排 */
|
|
205
|
-
itinerarySchedule: ItinerarySchedule[]
|
|
206
|
-
/** 最低市场价 */
|
|
207
|
-
minMarketPrice: number
|
|
208
|
-
/** 最低会员价 */
|
|
209
|
-
minMemberPrice: number
|
|
210
|
-
/** 最低价 */
|
|
211
|
-
minPrice: number
|
|
212
|
-
/** 名称 */
|
|
213
|
-
name: string
|
|
214
|
-
/** 商品详情 */
|
|
215
|
-
productDetails: ProductDetail[]
|
|
216
|
-
/** 购买须知 */
|
|
217
|
-
purchasingInstruction: PurchasingInstruction[]
|
|
218
|
-
/** 销量 */
|
|
219
|
-
saleCount: number
|
|
220
|
-
/** 商品状态 */
|
|
221
|
-
status: string
|
|
222
|
-
/** 出发地 */
|
|
223
|
-
tourBeginPlace: string
|
|
224
|
-
/** 行程天数 */
|
|
225
|
-
tourDays: number
|
|
226
|
-
/** 目的地 */
|
|
227
|
-
tourEndPlace: string
|
|
228
|
-
/** 旅游供应商 */
|
|
229
|
-
tourWholesaler: any
|
|
230
|
-
/** 浏览次数 */
|
|
231
|
-
viewCount: number
|
|
232
|
-
/** 视频号feedId */
|
|
233
|
-
wxFeedId: string
|
|
234
|
-
/** 视频号FinderUserName */
|
|
235
|
-
wxFinderUserName: string
|
|
236
|
-
/** 合作方 */
|
|
237
|
-
cooperator: string
|
|
238
|
-
/** 酒店供应商 */
|
|
239
|
-
hotelSupplier?: string
|
|
240
|
-
/** 农家乐供应商 */
|
|
241
|
-
farmHouseSupplier?: string
|
|
242
|
-
/** 酒店班车供应商 */
|
|
243
|
-
shuttleBusSupplier: string
|
|
244
|
-
/** 酒店班车供应商ID */
|
|
245
|
-
shuttleBusSupplierIds: string[]
|
|
246
|
-
/** 酒店班车结算价 */
|
|
247
|
-
shuttleBusSettlementPrice: number
|
|
248
|
-
/** 旅游负责人 */
|
|
249
|
-
tourPrincipal: string | null
|
|
250
|
-
/** 设施 */
|
|
251
|
-
facilities: any[]
|
|
252
|
-
/** 预定须知描述 */
|
|
253
|
-
bookingTip?: string
|
|
254
|
-
/** 有效期开始时间 */
|
|
255
|
-
periodStartTime?: number
|
|
256
|
-
/** 有效期结束时间 */
|
|
257
|
-
periodEndTime?: number
|
|
258
|
-
/** 是否可以修改餐食 */
|
|
259
|
-
canUpdateMealInfo: number | boolean
|
|
260
|
-
/** 历史商品数据,从快照原样返回 */
|
|
261
|
-
voucherInfo?: {
|
|
262
|
-
[key: string]: any
|
|
263
|
-
}
|
|
264
|
-
/** 提前预定天数(0~255) */
|
|
265
|
-
bookingDays?: number
|
|
266
|
-
/** 班车差价信息 */
|
|
267
|
-
shuttleBusAdjustmentInfo?: {
|
|
268
|
-
master: {
|
|
269
|
-
_id: string
|
|
270
|
-
salePrice: number
|
|
271
|
-
settlementPrice: number
|
|
272
|
-
}
|
|
273
|
-
slave: {
|
|
274
|
-
_id: string
|
|
275
|
-
salePrice: number
|
|
276
|
-
settlementPrice: number
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
/** 共比邻负责人 */
|
|
280
|
-
belinkOwner?: string
|
|
281
|
-
/** 创建时间 */
|
|
282
|
-
createdAt: number
|
|
283
|
-
/** 更新时间 */
|
|
284
|
-
updatedAt: number
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
export type IPositiveItemInfoV2 = {
|
|
288
|
-
_id: string
|
|
289
|
-
name: string
|
|
290
|
-
categoryOne: string
|
|
291
|
-
categoryTwo: string
|
|
292
|
-
venueId: string
|
|
293
|
-
supplierId: string
|
|
294
|
-
|
|
295
|
-
basicInfo: CSDto.IItemBasicInfo
|
|
296
|
-
attributes: CSDto.IItemAttributes
|
|
297
|
-
hotelItemInfo?: CSDto.IHotelItemInfo
|
|
298
|
-
|
|
299
|
-
/** 金币信息 */
|
|
300
|
-
creditInfo: CreditInfo
|
|
301
|
-
|
|
302
|
-
createdAt: number
|
|
303
|
-
updatedAt: number
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
export interface IPositiveSkuInfo {
|
|
307
|
-
/** SKU ID */
|
|
308
|
-
_id: string
|
|
309
|
-
/** 快照Id */
|
|
310
|
-
skuSnapShotId: string
|
|
311
|
-
/** 创建时间 */
|
|
312
|
-
_createTime: number
|
|
313
|
-
/** 更新时间 */
|
|
314
|
-
_updateTime: number
|
|
315
|
-
/** SKU 适用人群类型 */
|
|
316
|
-
applicablePeople: PosConstants.ApplicablePeopleEnum
|
|
317
|
-
/** SKU 套餐 */
|
|
318
|
-
combo?: string
|
|
319
|
-
/** SKU 费用天数 */
|
|
320
|
-
costDays?: number
|
|
321
|
-
/** SKU 出发日期 */
|
|
322
|
-
departureDate: number
|
|
323
|
-
/** SKU 显示出发日期 */
|
|
324
|
-
displayDepartureDate?: string
|
|
325
|
-
/** SKU 团信息 */
|
|
326
|
-
groupInfo?: {
|
|
327
|
-
/** 团编号 */
|
|
328
|
-
groupIdx?: number
|
|
329
|
-
/** 车牌号 */
|
|
330
|
-
carNo?: string
|
|
331
|
-
/** 领队手机号 */
|
|
332
|
-
leaderMobile?: string
|
|
333
|
-
/** 领队姓名 */
|
|
334
|
-
leaderName?: string
|
|
335
|
-
/** 团二维码 */
|
|
336
|
-
wxQrCode?: string
|
|
337
|
-
/** 返程交通(废弃,兼容历史数据) */
|
|
338
|
-
outboundTraffic?: string
|
|
339
|
-
/** 去程交通(废弃,兼容历史数据) */
|
|
340
|
-
returnTraffic?: string
|
|
341
|
-
/** 志愿者姓名 */
|
|
342
|
-
volunteerName?: string
|
|
343
|
-
/** 志愿者手机号 */
|
|
344
|
-
volunteerMobile?: string
|
|
345
|
-
/** 提示 */
|
|
346
|
-
tips?: string
|
|
347
|
-
/** 行前备注 */
|
|
348
|
-
notice: string
|
|
349
|
-
/** 提前预约(ktv,已废弃,需要兼容) */
|
|
350
|
-
bookingDays?: number
|
|
351
|
-
}
|
|
352
|
-
/** SKU 所属商品 ID */
|
|
353
|
-
itemId: string
|
|
354
|
-
/** SKU 市场价 */
|
|
355
|
-
marketPrice: number
|
|
356
|
-
/** SKU 会员价 */
|
|
357
|
-
memberPrice?: number
|
|
358
|
-
/** SKU 会员价限制次数 */
|
|
359
|
-
memberPriceLimitTimes?: number
|
|
360
|
-
/** SKU 最小订单数量 */
|
|
361
|
-
minOrderQuantity: number
|
|
362
|
-
/** SKU 计划库存 */
|
|
363
|
-
planStock: number
|
|
364
|
-
/** SKU 数量 */
|
|
365
|
-
quantity: number
|
|
366
|
-
/** SKU 相关 SKU */
|
|
367
|
-
relatedSku: string
|
|
368
|
-
/** SKU 开售时间 */
|
|
369
|
-
saleBeginTime: number
|
|
370
|
-
/** SKU 结束时间 */
|
|
371
|
-
saleEndTime: number
|
|
372
|
-
/** SKU 售价 */
|
|
373
|
-
salePrice: number
|
|
374
|
-
/** SKU 状态 */
|
|
375
|
-
status: string
|
|
376
|
-
/** SKU 剩余库存 */
|
|
377
|
-
surplus: number
|
|
378
|
-
/** SKU 结算价 */
|
|
379
|
-
settlementPrice: number
|
|
380
|
-
/** 酒店 SKU 额外信息 */
|
|
381
|
-
hotelExtraInfo?: {
|
|
382
|
-
/** SKU ID */
|
|
383
|
-
_id: string
|
|
384
|
-
/** SKU 所属商品 ID */
|
|
385
|
-
itemId: string
|
|
386
|
-
/** SKU 餐饮信息 */
|
|
387
|
-
mealInfo: string
|
|
388
|
-
/** SKU 是否有下午茶 */
|
|
389
|
-
hasAfternoonTea: number
|
|
390
|
-
/** SKU 是否有班车 */
|
|
391
|
-
hasShuttleBus: number
|
|
392
|
-
/** 单房差价信息 */
|
|
393
|
-
singleRoomAdjustmentInfo: {
|
|
394
|
-
salePrice: number
|
|
395
|
-
settlementPrice: number
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
/** 农家乐 SKU 额外信息 */
|
|
399
|
-
farmHouseExtraInfo?: {
|
|
400
|
-
/** SKU ID */
|
|
401
|
-
_id: string
|
|
402
|
-
/** SKU 所属商品 ID */
|
|
403
|
-
itemId: string
|
|
404
|
-
/** SKU 餐饮信息 */
|
|
405
|
-
mealInfo: string
|
|
406
|
-
/** SKU 是否有下午茶 */
|
|
407
|
-
hasAfternoonTea: number
|
|
408
|
-
/** SKU 是否有班车 */
|
|
409
|
-
hasShuttleBus: number
|
|
410
|
-
/** 单房差价信息 */
|
|
411
|
-
singleRoomAdjustmentInfo: {
|
|
412
|
-
salePrice: number
|
|
413
|
-
settlementPrice: number
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
/** sku类型 */
|
|
417
|
-
type: PosConstants.SkuTypeEnum
|
|
418
|
-
/** 剩余数量 */
|
|
419
|
-
remainQuantity: number
|
|
420
|
-
/** 一级类目 */
|
|
421
|
-
categoryOne: string
|
|
422
|
-
/** 二级类目 */
|
|
423
|
-
categoryTwo: string
|
|
424
|
-
/** sku快照创建时间 */
|
|
425
|
-
createdAt: number
|
|
426
|
-
/** sku快照更新时间 */
|
|
427
|
-
updatedAt: number
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
export interface IPositiveSkuInfoV2 {
|
|
432
|
-
_id: string
|
|
433
|
-
skuCreatedAt: number
|
|
434
|
-
skuUpdatedAt: number
|
|
435
|
-
categoryOne: string
|
|
436
|
-
categoryTwo: string
|
|
437
|
-
itemId: string
|
|
438
|
-
comboId: string
|
|
439
|
-
status: string
|
|
440
|
-
stock: number
|
|
441
|
-
departureDate: number
|
|
442
|
-
quantity: number
|
|
443
|
-
salePrice: number
|
|
444
|
-
settlementPrice: number
|
|
445
|
-
memberPrice: number
|
|
446
|
-
memberPriceLimitCnt: number
|
|
447
|
-
singleRoomPrice: number
|
|
448
|
-
singleRoomSettlementPrice: number
|
|
449
|
-
saleBeginTime: number
|
|
450
|
-
saleEndTime: number
|
|
451
|
-
lastUpdateStockTime: number
|
|
452
|
-
|
|
453
|
-
type: PosConstants.SkuTypeEnum
|
|
454
|
-
skuSnapShotId: string
|
|
455
|
-
remainQuantity: number
|
|
456
|
-
createdAt: number
|
|
457
|
-
updatedAt: number
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
export interface IPositiveShuttleBusSkuInfo {
|
|
461
|
-
itemId: string
|
|
462
|
-
quantity: number
|
|
463
|
-
|
|
464
|
-
relationInfo: {
|
|
465
|
-
id: string
|
|
466
|
-
createdAt: number
|
|
467
|
-
updatedAt: number
|
|
468
|
-
deletedAt: number
|
|
469
|
-
itemId: string
|
|
470
|
-
supplierId: string
|
|
471
|
-
routeId: string
|
|
472
|
-
status: CommonSaleStatus
|
|
473
|
-
salePrice: number
|
|
474
|
-
settlementPrice: number
|
|
475
|
-
saleDesc: string
|
|
476
|
-
minOrderCount: number
|
|
477
|
-
isLimitStock: number
|
|
478
|
-
pickUpTime: string
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
type: PosConstants.SkuTypeEnum
|
|
482
|
-
skuSnapShotId: string
|
|
483
|
-
remainQuantity: number
|
|
484
|
-
createdAt: number
|
|
485
|
-
updatedAt: number
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
export type IPositiveOrderComboInfo = {
|
|
489
|
-
id: string
|
|
490
|
-
createdAt: number
|
|
491
|
-
updatedAt: number
|
|
492
|
-
orderId: string
|
|
493
|
-
comboInfo: CSDto.IItemCombo | CSDto.IItemComboShortcut
|
|
494
|
-
comboId: string
|
|
495
|
-
type: PosConstants.ComboTypeEnum
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
export interface IWxPaymentInfo {
|
|
499
|
-
appId: string
|
|
500
|
-
nonceStr: string
|
|
501
|
-
package: string
|
|
502
|
-
paySign: string
|
|
503
|
-
signType: string
|
|
504
|
-
timeStamp: string
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
export interface IPositivePaymentInfo {
|
|
508
|
-
/** 支付单Id */
|
|
509
|
-
_id: string
|
|
510
|
-
/** 支付关联的交易订单ID */
|
|
511
|
-
tradeOrderId: string
|
|
512
|
-
/** 支付类型 */
|
|
513
|
-
type: PosConstants.PaymentTypeEnum
|
|
514
|
-
/** 支付工具 */
|
|
515
|
-
payTool: PosConstants.PayToolEnum
|
|
516
|
-
/** 支付总金额 */
|
|
517
|
-
totalFee: number
|
|
518
|
-
/** 外部系统中的支付交易ID */
|
|
519
|
-
outBizId: string
|
|
520
|
-
/** 支付交易的预支付ID */
|
|
521
|
-
prepayId: string
|
|
522
|
-
/** 支付关联的子商户ID */
|
|
523
|
-
subMchId?: string
|
|
524
|
-
/** 支付交易状态 */
|
|
525
|
-
tradeState: string
|
|
526
|
-
/** 支付交易状态描述 */
|
|
527
|
-
tradeStateDesc: string
|
|
528
|
-
/** 支付交易的额外信息 */
|
|
529
|
-
extraInfo?: {
|
|
530
|
-
/** 微信支付交易信息 */
|
|
531
|
-
wxPaymentInfo?: IWxPaymentInfo
|
|
532
|
-
/** 合并子单信息 */
|
|
533
|
-
tradeOrderId?: string
|
|
534
|
-
/** 外部订单 */
|
|
535
|
-
outOrderId?: string
|
|
536
|
-
}
|
|
537
|
-
/** 支付交易创建时间 */
|
|
538
|
-
createdAt: number
|
|
539
|
-
/** 支付交易更新时间 */
|
|
540
|
-
updatedAt: number
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
export interface CouponSnapShotInfo {
|
|
544
|
-
/** 优惠券Id */
|
|
545
|
-
id: string
|
|
546
|
-
/** 优惠券的基本信息。 */
|
|
547
|
-
basicInfo: any
|
|
548
|
-
/** 优惠券的折扣规则。 */
|
|
549
|
-
discountRule: {level: string}
|
|
550
|
-
/** 与优惠券相关的任何额外信息。 */
|
|
551
|
-
extraInfo: any
|
|
552
|
-
/** 优惠券可以提供的授权类型。 */
|
|
553
|
-
grantType: string[]
|
|
554
|
-
/** 优惠券的使用范围。 */
|
|
555
|
-
scope: {type: string, value: string[]}[]
|
|
556
|
-
/** 优惠券的使用限制。 */
|
|
557
|
-
usageLimit: any
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
export interface IPositiveRoomInfo {
|
|
561
|
-
id: string
|
|
562
|
-
createdAt: number
|
|
563
|
-
updatedAt: number
|
|
564
|
-
deletedAt: number
|
|
565
|
-
orderId: string
|
|
566
|
-
roomInfo: ServiceVenueDto.ServiceVenue.Response.IGetRoomTypeInfoRes
|
|
567
|
-
roomId: string
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
export interface IPositiveVenueInfo {
|
|
571
|
-
id: string
|
|
572
|
-
createdAt: number
|
|
573
|
-
updatedAt: number
|
|
574
|
-
deletedAt: number
|
|
575
|
-
orderId: string
|
|
576
|
-
venueInfo: ServiceVenueDto.ServiceVenue.Response.IGetServiceVenueInfoRes
|
|
577
|
-
venueId: string
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
export interface IPositiveFeeDetailInfo {
|
|
581
|
-
id: string
|
|
582
|
-
createdAt: number
|
|
583
|
-
updatedAt: number
|
|
584
|
-
deletedAt: number
|
|
585
|
-
orderId: string
|
|
586
|
-
itemId: string
|
|
587
|
-
comboId: string
|
|
588
|
-
skuId: string
|
|
589
|
-
value: number
|
|
590
|
-
quantity: number
|
|
591
|
-
type: string
|
|
592
|
-
desc: string
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
export interface IPositivePromotionInfo {
|
|
596
|
-
/** 营销记录Id */
|
|
597
|
-
_id: string
|
|
598
|
-
/** 订单Id */
|
|
599
|
-
tradeOrderId: string
|
|
600
|
-
/** 与营销关联的业务的唯一标识符。 */
|
|
601
|
-
bizId: string
|
|
602
|
-
/** 营销类型。 */
|
|
603
|
-
type: PosConstants.PromotionTypeEnum
|
|
604
|
-
/** 与营销关联的 SKU 列表。 */
|
|
605
|
-
skuIdList: string[]
|
|
606
|
-
/** 营销价格。 */
|
|
607
|
-
price: number
|
|
608
|
-
/** 营销应用的减免金额。 */
|
|
609
|
-
reduce: number
|
|
610
|
-
/** 与营销关联的优惠券的快照信息。 */
|
|
611
|
-
snapShotInfo: CouponSnapShotInfo
|
|
612
|
-
/** 营销记录创建时间 */
|
|
613
|
-
createdAt: number
|
|
614
|
-
/** 营销记录更新时间 */
|
|
615
|
-
updatedAt: number
|
|
616
|
-
/** 优惠工具状态 */
|
|
617
|
-
status: PosConstants.PromotionStatusEnum
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
export interface IPositiveItineraryInfo {
|
|
621
|
-
_id: string
|
|
622
|
-
/** 人员姓名 */
|
|
623
|
-
name: string
|
|
624
|
-
/** 人员电话 */
|
|
625
|
-
phone: string
|
|
626
|
-
/** 人员身份证号 */
|
|
627
|
-
idCard: string
|
|
628
|
-
/** 行程类型 */
|
|
629
|
-
type: PosConstants.ItineraryTypeEnum
|
|
630
|
-
/** 交通工具类型 */
|
|
631
|
-
transportationType: PosConstants.TransportationTypeEnum
|
|
632
|
-
/** 出发站 */
|
|
633
|
-
departureStation: string
|
|
634
|
-
/** 集合时间 */
|
|
635
|
-
assemblyTime: number
|
|
636
|
-
/** 交通工具出发时间 */
|
|
637
|
-
transportationDepartureTime: number
|
|
638
|
-
/** 交通工具编号 */
|
|
639
|
-
serialNumber: string
|
|
640
|
-
/** 行程备注 */
|
|
641
|
-
remark: string
|
|
642
|
-
/** 座位号 */
|
|
643
|
-
seatNumber: string
|
|
644
|
-
/** 司机电话 */
|
|
645
|
-
driverPhone: string
|
|
646
|
-
/** 交易订单 ID */
|
|
647
|
-
tradeOrderId: string
|
|
648
|
-
/** 商品 ID */
|
|
649
|
-
itemId: string
|
|
650
|
-
/** SKU ID */
|
|
651
|
-
skuId: string
|
|
652
|
-
/** 出行人 ID */
|
|
653
|
-
touristId: string
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
export interface ContactInfo {
|
|
657
|
-
/** 联系人姓名 */
|
|
658
|
-
name: string
|
|
659
|
-
/** 联系人电话 */
|
|
660
|
-
mobile: string
|
|
661
|
-
/** 联系人身份证号 */
|
|
662
|
-
idCard?: string
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
export interface TouristInfo {
|
|
666
|
-
/** 出行人Id */
|
|
667
|
-
id: string
|
|
668
|
-
/** 填写人Id */
|
|
669
|
-
fillerUserId?: string
|
|
670
|
-
/** 性别 */
|
|
671
|
-
gender: number
|
|
672
|
-
/** 身份证 */
|
|
673
|
-
idCard: string
|
|
674
|
-
/** 是否自己 */
|
|
675
|
-
isSelf: number
|
|
676
|
-
/** 电话号码 */
|
|
677
|
-
mobile: string
|
|
678
|
-
/** 姓名 */
|
|
679
|
-
name: string
|
|
680
|
-
/** unionId */
|
|
681
|
-
unionId: string
|
|
682
|
-
/** 是否已通知 */
|
|
683
|
-
hasNotified?: boolean
|
|
684
|
-
/** skuId */
|
|
685
|
-
skuId?: string
|
|
686
|
-
/** 是否发送语音消息 */
|
|
687
|
-
isVoiceSucceed?: boolean
|
|
688
|
-
/** 是否发送短信 */
|
|
689
|
-
isSmsSucceed?: boolean
|
|
690
|
-
|
|
691
|
-
cardType?: string
|
|
692
|
-
|
|
693
|
-
passportInfo?: {
|
|
694
|
-
region: string
|
|
695
|
-
birthday: number
|
|
696
|
-
validityDate: number
|
|
697
|
-
imageUrl: string
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
/** 旅游出行信息,已不再适用,兼容旧数据 */
|
|
703
|
-
export interface ItineraryInfo {
|
|
704
|
-
/** 集合时间 */
|
|
705
|
-
assemblyTime: number
|
|
706
|
-
/** 出发时间 */
|
|
707
|
-
departureTime: number
|
|
708
|
-
/** 集合点 */
|
|
709
|
-
location: string
|
|
710
|
-
/** 座位号 */
|
|
711
|
-
seatNo?: string[]
|
|
712
|
-
/** 去程座位号 */
|
|
713
|
-
outboundSeatInfoDesc: string
|
|
714
|
-
/** 返程座位号 */
|
|
715
|
-
returnSeatInfoDesc: string
|
|
716
|
-
/** 行程备注 */
|
|
717
|
-
itineraryInfoNote: string
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
export interface IPositiveTouristInfo {
|
|
721
|
-
/** 订单 ID。 */
|
|
722
|
-
_id: string
|
|
723
|
-
/** 联系人(待废弃) */
|
|
724
|
-
contactInfo?: ContactInfo
|
|
725
|
-
/** 出行人列表 */
|
|
726
|
-
tourists: TouristInfo[]
|
|
727
|
-
/** 行程信息。 */
|
|
728
|
-
itineraryInfo: ItineraryInfo
|
|
729
|
-
/** 行程单已读列表 */
|
|
730
|
-
travelFormReadList: string[]
|
|
731
|
-
/** 出行人是否完整(待废弃) */
|
|
732
|
-
isTouristsCompletely: number
|
|
733
|
-
/** 服务通知已读(待废弃) */
|
|
734
|
-
buyerWxNotificationIsRead: number
|
|
735
|
-
/** 服务通知已发(待废弃) */
|
|
736
|
-
hasSentWXNotification: number
|
|
737
|
-
/** 是否授权服务通知(待废弃) */
|
|
738
|
-
isAuthSendItineraryInfoSubscribeMessage: number
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
export interface IPositiveFulfillmentInfo {
|
|
743
|
-
/** 履约信息Id */
|
|
744
|
-
id: string
|
|
745
|
-
/** 创建时间 */
|
|
746
|
-
createdAt: number
|
|
747
|
-
/** 更新时间 */
|
|
748
|
-
updatedAt: number
|
|
749
|
-
/** 订单 ID */
|
|
750
|
-
positiveOrderId: string
|
|
751
|
-
/** 房间信息。 */
|
|
752
|
-
roomInfo: {
|
|
753
|
-
/** 房间单人床数量。 */
|
|
754
|
-
DOUBLE_BED: {
|
|
755
|
-
count: number
|
|
756
|
-
remain: number
|
|
757
|
-
}
|
|
758
|
-
/** 房间双人床数量。 */
|
|
759
|
-
SINGLE_BED: {
|
|
760
|
-
count: number
|
|
761
|
-
remain: number
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
/** 定制餐食信息。 */
|
|
765
|
-
customMealInfo: string
|
|
766
|
-
/** 权益信息 */
|
|
767
|
-
rightsInfo:string[]
|
|
768
|
-
/** 境外合同文件 */
|
|
769
|
-
contractFile?: {
|
|
770
|
-
name: string
|
|
771
|
-
url: string
|
|
772
|
-
}[]
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
export interface TradeOrderMergeRecordResource {
|
|
776
|
-
/** 资源类型 */
|
|
777
|
-
type: string
|
|
778
|
-
/** 合并前 */
|
|
779
|
-
before: Record<string, any>
|
|
780
|
-
/** 合并后 */
|
|
781
|
-
after: Record<string, any>
|
|
782
|
-
}
|
|
783
|
-
export interface IPositiveMergeRecord {
|
|
784
|
-
/** 合并记录Id */
|
|
785
|
-
_id: string
|
|
786
|
-
/** 订单Id */
|
|
787
|
-
targetId: string
|
|
788
|
-
/** 资源 */
|
|
789
|
-
resources: TradeOrderMergeRecordResource[]
|
|
790
|
-
/** 创建时间 */
|
|
791
|
-
_createTime: number
|
|
792
|
-
/** 更新时间 */
|
|
793
|
-
_updateTime: number
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
export interface IShuttleInfo {
|
|
797
|
-
/** 班车记录Id */
|
|
798
|
-
id: string
|
|
799
|
-
/** 班车类型 */
|
|
800
|
-
type: PosConstants.ShuttleTypeEnum
|
|
801
|
-
/** 车牌号 */
|
|
802
|
-
carNo: string
|
|
803
|
-
/** 出发站 */
|
|
804
|
-
station: string
|
|
805
|
-
/** 上车时间 */
|
|
806
|
-
pickupTime: string
|
|
807
|
-
/** 司机电话 */
|
|
808
|
-
driverPhone: string
|
|
809
|
-
/** 座位号列表 */
|
|
810
|
-
seatNumbers: number[]
|
|
811
|
-
/** 订单Id */
|
|
812
|
-
tradeOrderId: string
|
|
813
|
-
/** 是否发送短信 */
|
|
814
|
-
isSendSms: number
|
|
815
|
-
/** 是否发送语音消息 */
|
|
816
|
-
isSendVoice: number
|
|
817
|
-
/** 班车供应商id */
|
|
818
|
-
shuttleBusId: string
|
|
819
|
-
/** 结算快照 */
|
|
820
|
-
settlementSnapShot: {
|
|
821
|
-
/** 班车供应商Id */
|
|
822
|
-
_id: string
|
|
823
|
-
/** 售价 */
|
|
824
|
-
salePrice: number
|
|
825
|
-
/** 结算价 */
|
|
826
|
-
settlementPrice: number
|
|
827
|
-
}
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
export interface IPositiveNoteInfo {
|
|
831
|
-
/** 备注Id */
|
|
832
|
-
_id: string
|
|
833
|
-
/** 订单Id */
|
|
834
|
-
tradeOrderId: string
|
|
835
|
-
/** 操作人角色 */
|
|
836
|
-
operatorRole: PosConstants.OperatorRoleEnum
|
|
837
|
-
/** 操作人 */
|
|
838
|
-
operatorUser: string
|
|
839
|
-
/** 内容 */
|
|
840
|
-
content: string
|
|
841
|
-
/** 备注状态 */
|
|
842
|
-
status: PosConstants.NoteStatusEnum
|
|
843
|
-
/** 修改人角色 */
|
|
844
|
-
modifyOperatorRole?: PosConstants.ModifyOperatorRoleEnum
|
|
845
|
-
/** 修改人 */
|
|
846
|
-
modifyOperatorUser?: string
|
|
847
|
-
/** 备注类型 */
|
|
848
|
-
type: PosConstants.NoteTypeEnum
|
|
849
|
-
/** 创建时间 */
|
|
850
|
-
_createTime: number
|
|
851
|
-
/** 更新时间 */
|
|
852
|
-
_updateTime: number
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
export interface IPositiveChangeSkuRecord {
|
|
856
|
-
/** 变更记录Id */
|
|
857
|
-
id: string
|
|
858
|
-
/** 记录创建时间 */
|
|
859
|
-
_createTime: number
|
|
860
|
-
/** 订单id */
|
|
861
|
-
orderId: string
|
|
862
|
-
/** 操作人 */
|
|
863
|
-
operator: string
|
|
864
|
-
/** 变更原因类型 */
|
|
865
|
-
reasonType: string
|
|
866
|
-
/** 变更原因描述内容(手写) */
|
|
867
|
-
reasonDesc: string
|
|
868
|
-
/** 原skuId */
|
|
869
|
-
originalSkuId: string
|
|
870
|
-
/** 原sku出行日期 */
|
|
871
|
-
originalDepartureDate: number
|
|
872
|
-
/** 目标skuID */
|
|
873
|
-
targetSkuId: string
|
|
874
|
-
/** 目标sku出行日期 */
|
|
875
|
-
targetDepartureDate: number
|
|
876
|
-
/** 附件文件的URL列表 */
|
|
877
|
-
attachment: string[]
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
export interface IDescriptionItem {
|
|
882
|
-
type: 'text' | 'image'
|
|
883
|
-
value: string
|
|
884
|
-
}
|
|
885
|
-
export interface IStore {
|
|
886
|
-
_id: string
|
|
887
|
-
diamond: number
|
|
888
|
-
star: number
|
|
889
|
-
openTime: string
|
|
890
|
-
closeTime: string
|
|
891
|
-
_createTime: number
|
|
892
|
-
_updateTime: number
|
|
893
|
-
name: string
|
|
894
|
-
phone: string
|
|
895
|
-
isInsideScenicSpot?: boolean
|
|
896
|
-
isFriendlyForPet?: boolean
|
|
897
|
-
description?: IDescriptionItem[]
|
|
898
|
-
chatId: string
|
|
899
|
-
mealInfo?: {
|
|
900
|
-
breakfast: {
|
|
901
|
-
begin: string
|
|
902
|
-
end: string
|
|
903
|
-
type: 'BUFFET' | 'ORDER' | 'COMBO' | 'LIGHTMEAL'
|
|
904
|
-
pricePerPerson: number
|
|
905
|
-
}
|
|
906
|
-
lunch: {
|
|
907
|
-
begin: string
|
|
908
|
-
end: string
|
|
909
|
-
type: 'BUFFET' | 'ORDER' | 'COMBO' | 'LIGHTMEAL'
|
|
910
|
-
pricePerPerson: number
|
|
911
|
-
}
|
|
912
|
-
dinner: {
|
|
913
|
-
begin: string
|
|
914
|
-
end: string
|
|
915
|
-
type: 'BUFFET' | 'ORDER' | 'COMBO' | 'LIGHTMEAL'
|
|
916
|
-
pricePerPerson: number
|
|
917
|
-
}
|
|
918
|
-
description: IDescriptionItem[]
|
|
919
|
-
}
|
|
920
|
-
trafficInfo?: {
|
|
921
|
-
parking: {
|
|
922
|
-
pricePerHour: number
|
|
923
|
-
}
|
|
924
|
-
pickUp: string
|
|
925
|
-
desc: {
|
|
926
|
-
metro: string
|
|
927
|
-
bus: string
|
|
928
|
-
}
|
|
929
|
-
shuttleBus: {
|
|
930
|
-
pricePerPerson: number
|
|
931
|
-
boardingPoint: string
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
facilities?: string[]
|
|
935
|
-
customerRoomInfo?: {
|
|
936
|
-
delayCheckOutPricePerHour: number
|
|
937
|
-
isOfferToiletries: boolean
|
|
938
|
-
checkInTime: string
|
|
939
|
-
checkOutTime: string
|
|
940
|
-
room: {
|
|
941
|
-
singleBed?: {
|
|
942
|
-
area: number
|
|
943
|
-
}
|
|
944
|
-
doubleBed?: {
|
|
945
|
-
area: number
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
description: IDescriptionItem[]
|
|
949
|
-
}
|
|
950
|
-
attractionInfo?: IDescriptionItem[]
|
|
951
|
-
attractionInfoV2?: {
|
|
952
|
-
// 景点名称
|
|
953
|
-
name: string
|
|
954
|
-
// 预览图
|
|
955
|
-
images: string[]
|
|
956
|
-
// 距景点距离描述
|
|
957
|
-
distanceDesc: string
|
|
958
|
-
// 景点票务信息
|
|
959
|
-
ticket: {
|
|
960
|
-
// 是否需要收取门票
|
|
961
|
-
isNeedTicket: boolean
|
|
962
|
-
// 购票描述
|
|
963
|
-
purchaseDesc: string
|
|
964
|
-
// 优惠策略
|
|
965
|
-
discount: {
|
|
966
|
-
// 人群
|
|
967
|
-
crowd: string
|
|
968
|
-
// 条件
|
|
969
|
-
application: string
|
|
970
|
-
// 策略
|
|
971
|
-
policy: string
|
|
972
|
-
}[]
|
|
973
|
-
}
|
|
974
|
-
// 景点开放时间
|
|
975
|
-
openTime: string
|
|
976
|
-
// 文字描述
|
|
977
|
-
desc: string
|
|
978
|
-
}[]
|
|
979
|
-
poi: {
|
|
980
|
-
province: string
|
|
981
|
-
city: string
|
|
982
|
-
region: string
|
|
983
|
-
address: string
|
|
984
|
-
longitude: number
|
|
985
|
-
latitude: number
|
|
986
|
-
}
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
export interface IRawOrderStructure {
|
|
990
|
-
basicInfo: IPositiveOrder
|
|
991
|
-
attributes?: { [K in keyof Omit<IPositiveAttributes, 'id' | 'createdAt' | 'updatedAt'>]: number }
|
|
992
|
-
commodityInfo?: (IPositiveItemInfo & { skus: IPositiveSkuInfo[], storeInfo?: IStore })[]
|
|
993
|
-
|
|
994
|
-
// V2 结构
|
|
995
|
-
itemInfo?: IPositiveItemInfoV2
|
|
996
|
-
skuInfoList?: (IPositiveSkuInfoV2 | IPositiveShuttleBusSkuInfo)[]
|
|
997
|
-
comboInfoList?: IPositiveOrderComboInfo[]
|
|
998
|
-
roomInfoList?: IPositiveRoomInfo[]
|
|
999
|
-
venueInfo?: IPositiveVenueInfo
|
|
1000
|
-
feeDetailInfoList?: IPositiveFeeDetailInfo[]
|
|
1001
|
-
|
|
1002
|
-
paymentInfo?: IPositivePaymentInfo[]
|
|
1003
|
-
promotionInfo?: IPositivePromotionInfo[]
|
|
1004
|
-
}
|
|
1005
|
-
export interface IRawFulFillStructure {
|
|
1006
|
-
tourismInfo: IPositiveTouristInfo
|
|
1007
|
-
fulfillmentInfo: IPositiveFulfillmentInfo
|
|
1008
|
-
}
|
|
1009
|
-
export interface IWxPrepayResult {
|
|
1010
|
-
// 小程序端调用 wx.requestPayment 所需信息
|
|
1011
|
-
payment: {
|
|
1012
|
-
appId: string
|
|
1013
|
-
timeStamp: string
|
|
1014
|
-
nonceStr: string
|
|
1015
|
-
package: string
|
|
1016
|
-
signType: string
|
|
1017
|
-
paySign: string
|
|
1018
|
-
}
|
|
1019
|
-
// 服务商商户的APPID
|
|
1020
|
-
appid: string
|
|
1021
|
-
// 调用接口提交的商户号
|
|
1022
|
-
mch_id: string
|
|
1023
|
-
// 微信分配的小程序ID
|
|
1024
|
-
sub_appid: string
|
|
1025
|
-
// 微信支付分配的子商户号
|
|
1026
|
-
sub_mch_id: string
|
|
1027
|
-
// 调用接口提交的终端设备号,
|
|
1028
|
-
device_info: string
|
|
1029
|
-
// 微信返回的随机字符串
|
|
1030
|
-
nonce_str: string
|
|
1031
|
-
// 微信返回的签名,详见签名算法
|
|
1032
|
-
sign: string
|
|
1033
|
-
// SUCCESS/FAIL
|
|
1034
|
-
result_code: string
|
|
1035
|
-
// 详细参见第6节错误列表
|
|
1036
|
-
err_code: string
|
|
1037
|
-
// 错误返回的信息描述
|
|
1038
|
-
err_code_des: string
|
|
1039
|
-
|
|
1040
|
-
// 以下字段在returnCode 和result_code都为 SUCCESS 的时候有返回
|
|
1041
|
-
|
|
1042
|
-
// 调用接口提交的交易类型,取值如下:JSAPI
|
|
1043
|
-
trade_type?: string
|
|
1044
|
-
// 微信生成的预支付回话标识,用于后续接口调用中使用,该值有效期为2小时
|
|
1045
|
-
prepay_id?: string
|
|
1046
|
-
}
|
|
1047
|
-
export interface IMessagePayload {
|
|
1048
|
-
orderId: string
|
|
1049
|
-
eventTime: number
|
|
1050
|
-
operator: string
|
|
1051
|
-
operatorRole: string
|
|
1052
|
-
fromStatus: string
|
|
1053
|
-
toStatus: string
|
|
1054
|
-
unionId: string
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
export interface IFulfillingMessagePayload {
|
|
1058
|
-
orderId: string
|
|
1059
|
-
eventTime: number
|
|
1060
|
-
unionId: string
|
|
1061
|
-
}
|
|
1062
|
-
export interface IMessageHeader {
|
|
1063
|
-
categoryOne: string
|
|
1064
|
-
categoryTwo: string
|
|
1065
|
-
}
|
|
1066
|
-
export interface IOrderOperatorRecord {
|
|
1067
|
-
/** 订单Id */
|
|
1068
|
-
tradeOrderId: string
|
|
1069
|
-
/** 操作人角色 */
|
|
1070
|
-
operatorRole: PosConstants.TradeOperatorRoleEnum
|
|
1071
|
-
/** 操作人 */
|
|
1072
|
-
operator: string
|
|
1073
|
-
/** 来源状态 */
|
|
1074
|
-
fromStatus: PosConstants.TradeOrderStatusEnum | null
|
|
1075
|
-
/** 目的状态 */
|
|
1076
|
-
toStatus: PosConstants.TradeOrderStatusEnum
|
|
1077
|
-
/** 原因 */
|
|
1078
|
-
reason: string
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
export interface ITradeTourismInfo {
|
|
1082
|
-
/** 订单id */
|
|
1083
|
-
_id: string
|
|
1084
|
-
/** 订单联系人(待废弃) */
|
|
1085
|
-
contactInfo: {
|
|
1086
|
-
/** 姓名 */
|
|
1087
|
-
name: string
|
|
1088
|
-
/** 手机号 */
|
|
1089
|
-
mobile: string
|
|
1090
|
-
}
|
|
1091
|
-
/** 出行人列表 */
|
|
1092
|
-
tourists: {
|
|
1093
|
-
/** 出行人Id */
|
|
1094
|
-
id: string
|
|
1095
|
-
/** 创建时间 */
|
|
1096
|
-
_createTime: number
|
|
1097
|
-
/** 更新时间 */
|
|
1098
|
-
_updateTime: number
|
|
1099
|
-
/** 填写人Id */
|
|
1100
|
-
fillerUserId: string
|
|
1101
|
-
/** 性别 */
|
|
1102
|
-
gender: number
|
|
1103
|
-
/** 身份证号 */
|
|
1104
|
-
idCard: string
|
|
1105
|
-
/** 是否本人 */
|
|
1106
|
-
isSelf: number
|
|
1107
|
-
/** 手机号 */
|
|
1108
|
-
mobile: string
|
|
1109
|
-
/** 姓名 */
|
|
1110
|
-
name: string
|
|
1111
|
-
/** unionId */
|
|
1112
|
-
unionId: string
|
|
1113
|
-
/** 是否已通知 */
|
|
1114
|
-
hasNotified: boolean
|
|
1115
|
-
/** skuId */
|
|
1116
|
-
skuId: string
|
|
1117
|
-
/** 是否语音通知成功 */
|
|
1118
|
-
isVoiceSucceed: boolean
|
|
1119
|
-
/** 是否短信通知成功 */
|
|
1120
|
-
isSmsSucceed: boolean
|
|
1121
|
-
/** 证件类型 */
|
|
1122
|
-
cardType: string
|
|
1123
|
-
/** 护照信息 */
|
|
1124
|
-
passportInfo: {
|
|
1125
|
-
region: string
|
|
1126
|
-
birthday: number
|
|
1127
|
-
validityDate: number
|
|
1128
|
-
imageUrl: string
|
|
1129
|
-
}
|
|
1130
|
-
}[]
|
|
1131
|
-
/** 集合信息(废弃,兼容旧数据) */
|
|
1132
|
-
itineraryInfo: {
|
|
1133
|
-
/** 集合时间 */
|
|
1134
|
-
assemblyTime: number
|
|
1135
|
-
/** 出发时间 */
|
|
1136
|
-
departureTime: number
|
|
1137
|
-
/** 集合地点 */
|
|
1138
|
-
location: string
|
|
1139
|
-
/** 座位号 */
|
|
1140
|
-
seatNo: string[]
|
|
1141
|
-
/** 去程座位信息 */
|
|
1142
|
-
outboundSeatInfoDesc: string
|
|
1143
|
-
/** 回程座位信息 */
|
|
1144
|
-
returnSeatInfoDesc: string
|
|
1145
|
-
/** 行程单备注 */
|
|
1146
|
-
itineraryInfoNote: string
|
|
1147
|
-
}
|
|
1148
|
-
/** 行程单已读 */
|
|
1149
|
-
travelFormReadList: string[]
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
/** 订单查询结果和查询块的映射 */
|
|
1153
|
-
export interface QueryDataBlockTypeMap {
|
|
1154
|
-
/** 订单Id */
|
|
1155
|
-
_id: string
|
|
1156
|
-
/** 主要信息 */
|
|
1157
|
-
basicInfo: IPositiveOrder
|
|
1158
|
-
/** 标记信息 */
|
|
1159
|
-
attributes: IPositiveAttributes
|
|
1160
|
-
/** 商品快照信息 */
|
|
1161
|
-
itemInfo: (IPositiveItemInfo & { storeInfo: IStore })[]
|
|
1162
|
-
|
|
1163
|
-
/** sku快照信息 */
|
|
1164
|
-
skuInfo: (IPositiveSkuInfo | IPositiveShuttleBusSkuInfo | IPositiveSkuInfoV2)[]
|
|
1165
|
-
/** 套餐快照信息 */
|
|
1166
|
-
comboInfo: IPositiveOrderComboInfo[]
|
|
1167
|
-
/** 房型快照信息 */
|
|
1168
|
-
roomInfo: IPositiveRoomInfo[]
|
|
1169
|
-
/** 场所快照信息 */
|
|
1170
|
-
venueInfo: IPositiveVenueInfo
|
|
1171
|
-
/** 费用明细信息 */
|
|
1172
|
-
feeDetailInfoList: IPositiveFeeDetailInfo[]
|
|
1173
|
-
|
|
1174
|
-
/** 支付信息 */
|
|
1175
|
-
paymentInfo: IPositivePaymentInfo[]
|
|
1176
|
-
/** 营销信息 */
|
|
1177
|
-
promotionInfo: IPositivePromotionInfo[]
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
|
-
export interface IPositiveOrderInvoice {
|
|
1181
|
-
/** ID */
|
|
1182
|
-
id?: string
|
|
1183
|
-
/** itemId */
|
|
1184
|
-
itemId?: string
|
|
1185
|
-
/** status */
|
|
1186
|
-
status?: string
|
|
1187
|
-
/** 创建时间 */
|
|
1188
|
-
createdAt?: number
|
|
1189
|
-
/** 更新时间 */
|
|
1190
|
-
updatedAt?: number
|
|
1191
|
-
/** 是否删除 0否1是 */
|
|
1192
|
-
isDeleted?: number
|
|
1193
|
-
/** 快照:订单ID */
|
|
1194
|
-
tradeOrderId?: string
|
|
1195
|
-
/** 开票类型 */
|
|
1196
|
-
invoiceType?: string
|
|
1197
|
-
/** 发票抬头 */
|
|
1198
|
-
invoiceHeader?: string
|
|
1199
|
-
/** 发票抬头类型 */
|
|
1200
|
-
invoiceHeaderType?: string
|
|
1201
|
-
/** 税号 */
|
|
1202
|
-
taxNumber?: string
|
|
1203
|
-
/** address */
|
|
1204
|
-
address?: string
|
|
1205
|
-
/** 注册电话 */
|
|
1206
|
-
mobile?: string
|
|
1207
|
-
/** 开户银行 */
|
|
1208
|
-
bankBase?: string
|
|
1209
|
-
/** 银行账号 */
|
|
1210
|
-
bankAccount?: string
|
|
1211
|
-
/** url */
|
|
1212
|
-
url?:string
|
|
1213
|
-
/** 开票方 */
|
|
1214
|
-
invoiceBase?:string
|
|
1215
|
-
/** 开票金额 */
|
|
1216
|
-
invoiceMoney?: number
|
|
1217
|
-
/** 收货地址 */
|
|
1218
|
-
receivingExtraInfo?: {
|
|
1219
|
-
/** 收货地址 */
|
|
1220
|
-
receivingAddress?: string
|
|
1221
|
-
/** 收件人 */
|
|
1222
|
-
receivingName?: string
|
|
1223
|
-
/** 收件电话 */
|
|
1224
|
-
receivingMobile?: string
|
|
1225
|
-
}
|
|
1226
|
-
/** 商品名称 */
|
|
1227
|
-
itemName?: string
|
|
1228
|
-
/** 二级类目*/
|
|
1229
|
-
categoryTwo?: string
|
|
1230
|
-
/** 备注 */
|
|
1231
|
-
remark?: string
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
/** 订单查询结果 */
|
|
1235
|
-
export type QueryDataRes<K extends (keyof QueryDataBlockTypeMap)[]> = {
|
|
1236
|
-
[key in K[number]]: QueryDataBlockTypeMap[key]
|
|
1237
|
-
}
|