@be-link/ecommerce-trade-service-node-sdk 0.0.24 → 0.0.26
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/consts.d.ts +16 -16
- package/consts.js +62 -62
- package/enums.d.ts +194 -192
- package/enums.js +215 -212
- package/index.d.ts +1 -1
- package/index.js +3 -2
- package/modules/pos/orderCore/types.d.ts +4 -4
- package/modules/pos/orderCore/userService.js +2 -2
- package/modules/pos/orderQuery/types.d.ts +32 -26
- package/package.json +1 -1
- package/types.d.ts +18 -18
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as DTO from '../../../types';
|
|
2
|
-
import {
|
|
2
|
+
import { ENUM } from '../../..';
|
|
3
3
|
import { PRODUCT_SERVICE_ENUM } from '@be-link/ecommerce-product-service-node-sdk';
|
|
4
4
|
export declare namespace PosOrderQueryService {
|
|
5
5
|
namespace Dto {
|
|
@@ -92,27 +92,31 @@ export declare namespace PosOrderQueryService {
|
|
|
92
92
|
/** 订单ID */
|
|
93
93
|
orderId: string;
|
|
94
94
|
}
|
|
95
|
+
interface IGetProductDeliveryRange {
|
|
96
|
+
/** 商品ID */
|
|
97
|
+
productId: string;
|
|
98
|
+
}
|
|
95
99
|
}
|
|
96
100
|
namespace Response {
|
|
97
101
|
interface IListItem {
|
|
98
102
|
orderId: string;
|
|
99
103
|
createdAt: number;
|
|
100
|
-
source:
|
|
101
|
-
platform:
|
|
104
|
+
source: ENUM.OrderSource;
|
|
105
|
+
platform: ENUM.OrderPlatform;
|
|
102
106
|
productImage: string;
|
|
103
107
|
productName: string;
|
|
104
108
|
productSpec: string;
|
|
105
109
|
unitPrice: number;
|
|
106
110
|
quantity: number;
|
|
107
111
|
actualAmount: number;
|
|
108
|
-
orderStatus:
|
|
109
|
-
refundStatus:
|
|
112
|
+
orderStatus: ENUM.OrderStatus;
|
|
113
|
+
refundStatus: ENUM.OrderRefundStatus;
|
|
110
114
|
receiverName: string;
|
|
111
115
|
receiverPhone: string;
|
|
112
116
|
productPick: string;
|
|
113
117
|
productDispatch: string;
|
|
114
118
|
productType: string;
|
|
115
|
-
orderType:
|
|
119
|
+
orderType: ENUM.OrderType;
|
|
116
120
|
liveRoomGroupName?: string;
|
|
117
121
|
storeName?: string;
|
|
118
122
|
userNickname?: string;
|
|
@@ -144,15 +148,17 @@ export declare namespace PosOrderQueryService {
|
|
|
144
148
|
districtName: string;
|
|
145
149
|
/** 详细地址 */
|
|
146
150
|
detailAddress: string;
|
|
151
|
+
/** 商品送货范围(门店可见范围) */
|
|
152
|
+
visibleStores: string[] | null;
|
|
147
153
|
}
|
|
148
154
|
interface IOrderDetail {
|
|
149
155
|
order: {
|
|
150
156
|
orderId: string;
|
|
151
157
|
createdAt: number;
|
|
152
158
|
payTime: number;
|
|
153
|
-
source:
|
|
154
|
-
platform:
|
|
155
|
-
status:
|
|
159
|
+
source: ENUM.OrderSource;
|
|
160
|
+
platform: ENUM.OrderPlatform;
|
|
161
|
+
status: ENUM.OrderStatus;
|
|
156
162
|
dispatchWay: string;
|
|
157
163
|
productPick: string;
|
|
158
164
|
store: {
|
|
@@ -167,9 +173,9 @@ export declare namespace PosOrderQueryService {
|
|
|
167
173
|
receiverPhone: string;
|
|
168
174
|
};
|
|
169
175
|
payment: {
|
|
170
|
-
payChannel:
|
|
171
|
-
payPlatform:
|
|
172
|
-
payWay:
|
|
176
|
+
payChannel: ENUM.PayChannel;
|
|
177
|
+
payPlatform: ENUM.PayPlatform;
|
|
178
|
+
payWay: ENUM.PayWay;
|
|
173
179
|
payAmount: number;
|
|
174
180
|
};
|
|
175
181
|
liveRoomId: string;
|
|
@@ -210,7 +216,7 @@ export declare namespace PosOrderQueryService {
|
|
|
210
216
|
verificationTime?: number;
|
|
211
217
|
orderStoreName?: string;
|
|
212
218
|
operatorName?: string;
|
|
213
|
-
status:
|
|
219
|
+
status: ENUM.OrderVerificationStatus;
|
|
214
220
|
isRefunded?: boolean;
|
|
215
221
|
verificationStoreName?: string;
|
|
216
222
|
verificationWay?: string;
|
|
@@ -218,8 +224,8 @@ export declare namespace PosOrderQueryService {
|
|
|
218
224
|
refunds: {
|
|
219
225
|
refundTime: number;
|
|
220
226
|
refundAmount: number;
|
|
221
|
-
verificationStatus:
|
|
222
|
-
arrivalStatus:
|
|
227
|
+
verificationStatus: ENUM.OrderVerificationStatus;
|
|
228
|
+
arrivalStatus: ENUM.ReverseArrivalStatus;
|
|
223
229
|
operator: string;
|
|
224
230
|
reverseOrderId: string;
|
|
225
231
|
}[];
|
|
@@ -254,7 +260,7 @@ export declare namespace PosOrderQueryService {
|
|
|
254
260
|
/** 用户ID */
|
|
255
261
|
userId: string;
|
|
256
262
|
/** 订单状态 */
|
|
257
|
-
status?:
|
|
263
|
+
status?: ENUM.OrderStatus;
|
|
258
264
|
/** 页码(从0开始) */
|
|
259
265
|
pageIndex: number;
|
|
260
266
|
/** 每页数量 */
|
|
@@ -264,7 +270,7 @@ export declare namespace PosOrderQueryService {
|
|
|
264
270
|
/** 用户ID */
|
|
265
271
|
userId: string;
|
|
266
272
|
/** 订单状态(可选,不传则统计所有状态) */
|
|
267
|
-
status?:
|
|
273
|
+
status?: ENUM.OrderStatus;
|
|
268
274
|
}
|
|
269
275
|
interface IGetOrderApplyRefund {
|
|
270
276
|
userId: string;
|
|
@@ -278,7 +284,7 @@ export declare namespace PosOrderQueryService {
|
|
|
278
284
|
namespace Response {
|
|
279
285
|
interface IGetOrderPayStatus {
|
|
280
286
|
/** 订单支付状态 */
|
|
281
|
-
payStatus:
|
|
287
|
+
payStatus: ENUM.OrderPayStatus;
|
|
282
288
|
/** 消息 */
|
|
283
289
|
msg: string;
|
|
284
290
|
}
|
|
@@ -294,7 +300,7 @@ export declare namespace PosOrderQueryService {
|
|
|
294
300
|
/** 订单总金额(分) */
|
|
295
301
|
totalAmount: number;
|
|
296
302
|
/** 订单状态 */
|
|
297
|
-
orderStatus:
|
|
303
|
+
orderStatus: ENUM.OrderStatus;
|
|
298
304
|
/** 商品主图URL */
|
|
299
305
|
productImage: string;
|
|
300
306
|
/** 商品提货方式 */
|
|
@@ -304,11 +310,11 @@ export declare namespace PosOrderQueryService {
|
|
|
304
310
|
/** 自动取消时间(时间戳) */
|
|
305
311
|
autoCancelTime: number;
|
|
306
312
|
/** 申请退款状态 */
|
|
307
|
-
applyRefund:
|
|
313
|
+
applyRefund: ENUM.ApplyRefundStatus;
|
|
308
314
|
/** 订单来源 */
|
|
309
|
-
source:
|
|
315
|
+
source: ENUM.OrderSource;
|
|
310
316
|
/** 订单类型 */
|
|
311
|
-
orderType:
|
|
317
|
+
orderType: ENUM.OrderType;
|
|
312
318
|
}
|
|
313
319
|
interface IOrderList {
|
|
314
320
|
/** 订单列表 */
|
|
@@ -318,20 +324,20 @@ export declare namespace PosOrderQueryService {
|
|
|
318
324
|
}
|
|
319
325
|
interface ICountOrderByStatusItem {
|
|
320
326
|
/** 订单状态 */
|
|
321
|
-
status:
|
|
327
|
+
status: ENUM.OrderStatus;
|
|
322
328
|
/** 订单总数 */
|
|
323
329
|
total: number;
|
|
324
330
|
}
|
|
325
331
|
type ICountOrderByStatus = ICountOrderByStatusItem[];
|
|
326
332
|
interface IGetOrderApplyRefund {
|
|
327
|
-
applyRefund:
|
|
333
|
+
applyRefund: ENUM.ApplyRefundStatus;
|
|
328
334
|
}
|
|
329
335
|
interface IOrderDetail {
|
|
330
336
|
orderId: string;
|
|
331
337
|
createdAt: number;
|
|
332
338
|
payTime: number;
|
|
333
339
|
productPick: string;
|
|
334
|
-
orderStatus:
|
|
340
|
+
orderStatus: ENUM.OrderStatus;
|
|
335
341
|
actualAmount: number;
|
|
336
342
|
totalAmount: number;
|
|
337
343
|
/** 门店信息 */
|
|
@@ -379,7 +385,7 @@ export declare namespace PosOrderQueryService {
|
|
|
379
385
|
receiverAddress: string;
|
|
380
386
|
};
|
|
381
387
|
refunds: {
|
|
382
|
-
status:
|
|
388
|
+
status: ENUM.ReverseOrderStatus;
|
|
383
389
|
amount: number;
|
|
384
390
|
reason: string;
|
|
385
391
|
applyTime: number;
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/** 正向订单 */
|
|
2
2
|
/** 基础信息 */
|
|
3
|
-
import
|
|
3
|
+
import { ENUM } from './enums';
|
|
4
4
|
export interface ITradeOrder {
|
|
5
5
|
id: string;
|
|
6
6
|
userId: string;
|
|
7
7
|
openId: string;
|
|
8
8
|
unionId: string;
|
|
9
|
-
source:
|
|
10
|
-
platform:
|
|
11
|
-
osType:
|
|
12
|
-
status:
|
|
13
|
-
payStatus:
|
|
14
|
-
refundStatus:
|
|
15
|
-
verificationStatus:
|
|
9
|
+
source: ENUM.OrderSource;
|
|
10
|
+
platform: ENUM.OrderPlatform;
|
|
11
|
+
osType: ENUM.OrderOsType;
|
|
12
|
+
status: ENUM.OrderStatus;
|
|
13
|
+
payStatus: ENUM.OrderPayStatus;
|
|
14
|
+
refundStatus: ENUM.OrderRefundStatus;
|
|
15
|
+
verificationStatus: ENUM.OrderVerificationStatus;
|
|
16
16
|
storeId: string;
|
|
17
17
|
liveRoomId: string;
|
|
18
18
|
liveRoomGroupId: string;
|
|
@@ -80,10 +80,10 @@ export interface ITradeOrderItem {
|
|
|
80
80
|
export interface ITradeOrderPayment {
|
|
81
81
|
id: string;
|
|
82
82
|
orderId: string;
|
|
83
|
-
payChannel:
|
|
84
|
-
payPlatform:
|
|
83
|
+
payChannel: ENUM.PayChannel;
|
|
84
|
+
payPlatform: ENUM.PayPlatform;
|
|
85
85
|
payAmount: number;
|
|
86
|
-
payWay:
|
|
86
|
+
payWay: ENUM.PayWay;
|
|
87
87
|
bizId: string;
|
|
88
88
|
extraInfo: any;
|
|
89
89
|
createdAt: number;
|
|
@@ -132,10 +132,10 @@ export interface ITradeReverseOrder {
|
|
|
132
132
|
amount: number;
|
|
133
133
|
points: number;
|
|
134
134
|
quantity: number;
|
|
135
|
-
status:
|
|
136
|
-
arrivalStatus:
|
|
137
|
-
refundType:
|
|
138
|
-
refundWay:
|
|
135
|
+
status: ENUM.ReverseOrderStatus;
|
|
136
|
+
arrivalStatus: ENUM.ReverseArrivalStatus;
|
|
137
|
+
refundType: ENUM.ReverseRefundType;
|
|
138
|
+
refundWay: ENUM.ReverseRefundWay;
|
|
139
139
|
reason: string;
|
|
140
140
|
comment: string;
|
|
141
141
|
refundAt: number;
|
|
@@ -150,7 +150,7 @@ export interface ITradeReverseOrderResource {
|
|
|
150
150
|
id: string;
|
|
151
151
|
orderId: string;
|
|
152
152
|
reverseOrderId: string;
|
|
153
|
-
resourceType:
|
|
153
|
+
resourceType: ENUM.ReverseResourceType;
|
|
154
154
|
bizId: string;
|
|
155
155
|
bizExtraInfo: any;
|
|
156
156
|
bizValue: number;
|
|
@@ -164,8 +164,8 @@ export interface ITradeReverseOrderOperateRecord {
|
|
|
164
164
|
orderId: string;
|
|
165
165
|
reverseOrderId: string;
|
|
166
166
|
operator: string;
|
|
167
|
-
fromStatus:
|
|
168
|
-
toStatus:
|
|
167
|
+
fromStatus: ENUM.ReverseOrderStatus;
|
|
168
|
+
toStatus: ENUM.ReverseOrderStatus;
|
|
169
169
|
reason: string;
|
|
170
170
|
createdAt: number;
|
|
171
171
|
updatedAt: number;
|