@be-link/ecommerce-trade-service-node-sdk 0.0.25 → 0.0.27

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.
@@ -1,5 +1,5 @@
1
1
  import * as DTO from '../../../types';
2
- import { ENUMS } from '../../..';
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 {
@@ -101,22 +101,22 @@ export declare namespace PosOrderQueryService {
101
101
  interface IListItem {
102
102
  orderId: string;
103
103
  createdAt: number;
104
- source: ENUMS.OrderSource;
105
- platform: ENUMS.OrderPlatform;
104
+ source: ENUM.OrderSource;
105
+ platform: ENUM.OrderPlatform;
106
106
  productImage: string;
107
107
  productName: string;
108
108
  productSpec: string;
109
109
  unitPrice: number;
110
110
  quantity: number;
111
111
  actualAmount: number;
112
- orderStatus: ENUMS.OrderStatus;
113
- refundStatus: ENUMS.OrderRefundStatus;
112
+ orderStatus: ENUM.OrderStatus;
113
+ refundStatus: ENUM.OrderRefundStatus;
114
114
  receiverName: string;
115
115
  receiverPhone: string;
116
116
  productPick: string;
117
117
  productDispatch: string;
118
118
  productType: string;
119
- orderType: ENUMS.OrderType;
119
+ orderType: ENUM.OrderType;
120
120
  liveRoomGroupName?: string;
121
121
  storeName?: string;
122
122
  userNickname?: string;
@@ -156,9 +156,9 @@ export declare namespace PosOrderQueryService {
156
156
  orderId: string;
157
157
  createdAt: number;
158
158
  payTime: number;
159
- source: ENUMS.OrderSource;
160
- platform: ENUMS.OrderPlatform;
161
- status: ENUMS.OrderStatus;
159
+ source: ENUM.OrderSource;
160
+ platform: ENUM.OrderPlatform;
161
+ status: ENUM.OrderStatus;
162
162
  dispatchWay: string;
163
163
  productPick: string;
164
164
  store: {
@@ -173,9 +173,9 @@ export declare namespace PosOrderQueryService {
173
173
  receiverPhone: string;
174
174
  };
175
175
  payment: {
176
- payChannel: ENUMS.PayChannel;
177
- payPlatform: ENUMS.PayPlatform;
178
- payWay: ENUMS.PayWay;
176
+ payChannel: ENUM.PayChannel;
177
+ payPlatform: ENUM.PayPlatform;
178
+ payWay: ENUM.PayWay;
179
179
  payAmount: number;
180
180
  };
181
181
  liveRoomId: string;
@@ -216,7 +216,7 @@ export declare namespace PosOrderQueryService {
216
216
  verificationTime?: number;
217
217
  orderStoreName?: string;
218
218
  operatorName?: string;
219
- status: ENUMS.OrderVerificationStatus;
219
+ status: ENUM.OrderVerificationStatus;
220
220
  isRefunded?: boolean;
221
221
  verificationStoreName?: string;
222
222
  verificationWay?: string;
@@ -224,8 +224,8 @@ export declare namespace PosOrderQueryService {
224
224
  refunds: {
225
225
  refundTime: number;
226
226
  refundAmount: number;
227
- verificationStatus: ENUMS.OrderVerificationStatus;
228
- arrivalStatus: ENUMS.ReverseArrivalStatus;
227
+ verificationStatus: ENUM.OrderVerificationStatus;
228
+ arrivalStatus: ENUM.ReverseArrivalStatus;
229
229
  operator: string;
230
230
  reverseOrderId: string;
231
231
  }[];
@@ -260,7 +260,7 @@ export declare namespace PosOrderQueryService {
260
260
  /** 用户ID */
261
261
  userId: string;
262
262
  /** 订单状态 */
263
- status?: ENUMS.OrderStatus;
263
+ status?: ENUM.OrderStatus;
264
264
  /** 页码(从0开始) */
265
265
  pageIndex: number;
266
266
  /** 每页数量 */
@@ -270,7 +270,7 @@ export declare namespace PosOrderQueryService {
270
270
  /** 用户ID */
271
271
  userId: string;
272
272
  /** 订单状态(可选,不传则统计所有状态) */
273
- status?: ENUMS.OrderStatus;
273
+ status?: ENUM.OrderStatus;
274
274
  }
275
275
  interface IGetOrderApplyRefund {
276
276
  userId: string;
@@ -284,7 +284,7 @@ export declare namespace PosOrderQueryService {
284
284
  namespace Response {
285
285
  interface IGetOrderPayStatus {
286
286
  /** 订单支付状态 */
287
- payStatus: ENUMS.OrderPayStatus;
287
+ payStatus: ENUM.OrderPayStatus;
288
288
  /** 消息 */
289
289
  msg: string;
290
290
  }
@@ -300,7 +300,7 @@ export declare namespace PosOrderQueryService {
300
300
  /** 订单总金额(分) */
301
301
  totalAmount: number;
302
302
  /** 订单状态 */
303
- orderStatus: ENUMS.OrderStatus;
303
+ orderStatus: ENUM.OrderStatus;
304
304
  /** 商品主图URL */
305
305
  productImage: string;
306
306
  /** 商品提货方式 */
@@ -310,11 +310,11 @@ export declare namespace PosOrderQueryService {
310
310
  /** 自动取消时间(时间戳) */
311
311
  autoCancelTime: number;
312
312
  /** 申请退款状态 */
313
- applyRefund: ENUMS.ApplyRefundStatus;
313
+ applyRefund: ENUM.ApplyRefundStatus;
314
314
  /** 订单来源 */
315
- source: ENUMS.OrderSource;
315
+ source: ENUM.OrderSource;
316
316
  /** 订单类型 */
317
- orderType: ENUMS.OrderType;
317
+ orderType: ENUM.OrderType;
318
318
  }
319
319
  interface IOrderList {
320
320
  /** 订单列表 */
@@ -324,20 +324,20 @@ export declare namespace PosOrderQueryService {
324
324
  }
325
325
  interface ICountOrderByStatusItem {
326
326
  /** 订单状态 */
327
- status: ENUMS.OrderStatus;
327
+ status: ENUM.OrderStatus;
328
328
  /** 订单总数 */
329
329
  total: number;
330
330
  }
331
331
  type ICountOrderByStatus = ICountOrderByStatusItem[];
332
332
  interface IGetOrderApplyRefund {
333
- applyRefund: ENUMS.ApplyRefundStatus;
333
+ applyRefund: ENUM.ApplyRefundStatus;
334
334
  }
335
335
  interface IOrderDetail {
336
336
  orderId: string;
337
337
  createdAt: number;
338
338
  payTime: number;
339
339
  productPick: string;
340
- orderStatus: ENUMS.OrderStatus;
340
+ orderStatus: ENUM.OrderStatus;
341
341
  actualAmount: number;
342
342
  totalAmount: number;
343
343
  /** 门店信息 */
@@ -385,7 +385,7 @@ export declare namespace PosOrderQueryService {
385
385
  receiverAddress: string;
386
386
  };
387
387
  refunds: {
388
- status: ENUMS.ReverseOrderStatus;
388
+ status: ENUM.ReverseOrderStatus;
389
389
  amount: number;
390
390
  reason: string;
391
391
  applyTime: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-trade-service-node-sdk",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
4
4
  "description": "EcommerceTradeService Node.js SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/types.d.ts CHANGED
@@ -1,18 +1,18 @@
1
1
  /** 正向订单 */
2
2
  /** 基础信息 */
3
- import * as ENUMS from './enums';
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: ENUMS.OrderSource;
10
- platform: ENUMS.OrderPlatform;
11
- osType: ENUMS.OrderOsType;
12
- status: ENUMS.OrderStatus;
13
- payStatus: ENUMS.OrderPayStatus;
14
- refundStatus: ENUMS.OrderRefundStatus;
15
- verificationStatus: ENUMS.OrderVerificationStatus;
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: ENUMS.PayChannel;
84
- payPlatform: ENUMS.PayPlatform;
83
+ payChannel: ENUM.PayChannel;
84
+ payPlatform: ENUM.PayPlatform;
85
85
  payAmount: number;
86
- payWay: ENUMS.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: ENUMS.ReverseOrderStatus;
136
- arrivalStatus: ENUMS.ReverseArrivalStatus;
137
- refundType: ENUMS.ReverseRefundType;
138
- refundWay: ENUMS.ReverseRefundWay;
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: ENUMS.ReverseResourceType;
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: ENUMS.ReverseOrderStatus;
168
- toStatus: ENUMS.ReverseOrderStatus;
167
+ fromStatus: ENUM.ReverseOrderStatus;
168
+ toStatus: ENUM.ReverseOrderStatus;
169
169
  reason: string;
170
170
  createdAt: number;
171
171
  updatedAt: number;