@be-link/ecommerce-trade-service-node-sdk 0.0.44 → 0.0.46

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.
@@ -11,6 +11,8 @@ export declare namespace PosCoreService {
11
11
  namespace ByWeb {
12
12
  namespace Request {
13
13
  interface IShipOrder {
14
+ /** 操作人 */
15
+ operator: string;
14
16
  /** 订单ID */
15
17
  orderId: string;
16
18
  /** 发货方式:WITH_LOGISTICS-需物流发货,WITHOUT_LOGISTICS-无物流发货 */
@@ -21,6 +23,8 @@ export declare namespace PosCoreService {
21
23
  logisticsNo?: string;
22
24
  }
23
25
  interface IBatchShipOrder {
26
+ /** 操作人 */
27
+ operator: string;
24
28
  /** 发货方式:WITH_LOGISTICS-需物流发货,WITHOUT_LOGISTICS-无物流发货 */
25
29
  shipType: 'WITH_LOGISTICS' | 'WITHOUT_LOGISTICS';
26
30
  /** Excel文件URL */
@@ -210,11 +210,22 @@ export declare namespace PosOrderQueryService {
210
210
  discountAmount: number;
211
211
  actualAmount: number;
212
212
  };
213
- coupons: {
213
+ promotions: {
214
214
  id: string;
215
- code: string;
216
- name: string;
215
+ orderId: string;
216
+ type: string;
217
+ quantity: number;
217
218
  discount: number;
219
+ snapshot: {
220
+ coupon?: {
221
+ id: string;
222
+ code: string;
223
+ name: string;
224
+ discount?: number;
225
+ }[];
226
+ };
227
+ createdAt: number;
228
+ updatedAt: number;
218
229
  }[];
219
230
  verificationRecords: {
220
231
  productId: string;
@@ -346,69 +357,67 @@ export declare namespace PosOrderQueryService {
346
357
  applyRefund: ENUM.ApplyRefundStatus;
347
358
  }
348
359
  interface IOrderDetail {
349
- orderId: string;
350
- createdAt: number;
351
- payTime: number;
352
- productPick: string;
353
- orderStatus: ENUM.OrderStatus;
354
- actualAmount: number;
355
- totalAmount: number;
360
+ /** 订单基础信息 */
361
+ basic: {
362
+ /** 订单ID */
363
+ orderId: string;
364
+ /** 订单实付金额 */
365
+ actualAmount: number;
366
+ /** 订单状态 */
367
+ orderStatus: ENUM.OrderStatus;
368
+ /** 订单总金额 */
369
+ totalAmount: number;
370
+ /** 订单创建时间 */
371
+ createdAt: number;
372
+ /** 订单付款时间 */
373
+ payTime: number;
374
+ /** 收货人 */
375
+ receiverName: string;
376
+ /** 收货人手机号 */
377
+ receiverPhone: string;
378
+ };
379
+ /** 商品信息 */
380
+ product: {
381
+ /** 商品ID */
382
+ productId: string;
383
+ /** 商品名称 */
384
+ productName: string;
385
+ /** 商品规格 */
386
+ productSpec: string;
387
+ /** 商品份数 */
388
+ quantity: number;
389
+ /** 商品单价 */
390
+ unitPrice: number;
391
+ /** 商品提货方式 */
392
+ productPick: string;
393
+ };
356
394
  /** 门店信息 */
357
395
  store: {
358
- /** 门店名称 */
396
+ /** 下单门店名称 */
359
397
  storeName: string;
360
398
  /** 门店地址 */
361
399
  storeAddr: string;
362
400
  /** 门店联系电话 */
363
401
  storePhone: string;
364
402
  };
365
- /** 核销信息 */
403
+ /** 退款订单记录 */
404
+ refund: {
405
+ /** 退款订单状态 */
406
+ status: ENUM.ReverseOrderStatus;
407
+ /** 退款金额 */
408
+ amount: number;
409
+ }[];
410
+ /** 商品核销信息 */
366
411
  verification: {
367
- /** 核销有效期 */
412
+ /** 核销开始时间 */
368
413
  validTimeStart: number;
414
+ /** 核销结束时间 */
369
415
  validTimeEnd: number;
370
- /** 已核销 */
416
+ /** 已核销数 */
371
417
  verifiedNum: number;
372
- /** 未核销 */
418
+ /** 未核销数 */
373
419
  unVerifiedNum: number;
374
420
  };
375
- product: {
376
- productId: string;
377
- productName: string;
378
- productSpec: string;
379
- totalQuantity: number;
380
- unitPrice: number;
381
- productImg: string;
382
- };
383
- discounts: {
384
- coupon: {
385
- couponCode: string;
386
- couponId: string;
387
- couponName: string;
388
- couponAmount: number;
389
- } | null;
390
- points: {
391
- pointsNum: number;
392
- amount: number;
393
- };
394
- };
395
- receiver: {
396
- receiverName: string;
397
- receiverPhone: string;
398
- receiverAddress: string;
399
- };
400
- refunds: {
401
- status: ENUM.ReverseOrderStatus;
402
- amount: number;
403
- reason: string;
404
- applyTime: number;
405
- }[];
406
- gifts: {
407
- validStartTime: number;
408
- validEndTime: number;
409
- templateName: string;
410
- quantity: number;
411
- }[];
412
421
  }
413
422
  interface IGetLastOrderAddrByProductPick {
414
423
  /** 收货人 */
@@ -7,6 +7,7 @@ declare class OrderQueryByUserService extends BaseService {
7
7
  orderList(request: PosOrderQueryService.ByUser.Request.IOrderList): Promise<PosOrderQueryService.ByUser.Response.IOrderList>;
8
8
  countOrderByStatus(request: PosOrderQueryService.ByUser.Request.ICountOrderByStatus): Promise<PosOrderQueryService.ByUser.Response.ICountOrderByStatus>;
9
9
  getOrderApplyRefund(request: PosOrderQueryService.ByUser.Request.IGetOrderApplyRefund): Promise<PosOrderQueryService.ByUser.Response.IGetOrderApplyRefund>;
10
+ orderDetail(request: PosOrderQueryService.ByUser.Request.IOrderDetail): Promise<PosOrderQueryService.ByUser.Response.IOrderDetail>;
10
11
  }
11
12
  export declare const queryByUserService: OrderQueryByUserService;
12
13
  export default queryByUserService;
@@ -36,6 +36,9 @@ let OrderQueryByUserService = class OrderQueryByUserService extends BaseService_
36
36
  getOrderApplyRefund(request) {
37
37
  return (0, http_1.callApi)(this.getApiUrl(this.getOrderApplyRefund), request);
38
38
  }
39
+ orderDetail(request) {
40
+ return (0, http_1.callApi)(this.getApiUrl(this.orderDetail), request);
41
+ }
39
42
  };
40
43
  __decorate([
41
44
  (0, tsoa_1.OperationId)('根据商品提货方式查询用户最近订单'),
@@ -62,6 +65,11 @@ __decorate([
62
65
  (0, tsoa_1.Post)('get-order-apply-refund'),
63
66
  __param(0, (0, tsoa_1.Body)())
64
67
  ], OrderQueryByUserService.prototype, "getOrderApplyRefund", null);
68
+ __decorate([
69
+ (0, tsoa_1.OperationId)('查询订单详情(ByUser)'),
70
+ (0, tsoa_1.Post)('order-detail'),
71
+ __param(0, (0, tsoa_1.Body)())
72
+ ], OrderQueryByUserService.prototype, "orderDetail", null);
65
73
  OrderQueryByUserService = __decorate([
66
74
  (0, tsoa_1.Route)('pos/query/user'),
67
75
  (0, tsoa_1.Tags)('PosOrderQuery')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-trade-service-node-sdk",
3
- "version": "0.0.44",
3
+ "version": "0.0.46",
4
4
  "description": "EcommerceTradeService Node.js SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",