@be-link/ecommerce-trade-service-node-sdk 0.1.28 → 0.1.29
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.
|
@@ -2,6 +2,7 @@ import BaseService from '../../BaseService';
|
|
|
2
2
|
declare class OrderCoreByJobService extends BaseService {
|
|
3
3
|
protected prefixUrl: string;
|
|
4
4
|
autoConfirmReceive(): Promise<void>;
|
|
5
|
+
autoCancelTimeoutOrders(): Promise<void>;
|
|
5
6
|
}
|
|
6
7
|
export declare const orderCoreByJobService: OrderCoreByJobService;
|
|
7
8
|
export default orderCoreByJobService;
|
|
@@ -21,11 +21,18 @@ let OrderCoreByJobService = class OrderCoreByJobService extends BaseService_1.de
|
|
|
21
21
|
autoConfirmReceive() {
|
|
22
22
|
return (0, http_1.callApi)(this.getApiUrl(this.autoConfirmReceive), {});
|
|
23
23
|
}
|
|
24
|
+
autoCancelTimeoutOrders() {
|
|
25
|
+
return (0, http_1.callApi)(this.getApiUrl(this.autoCancelTimeoutOrders), {});
|
|
26
|
+
}
|
|
24
27
|
};
|
|
25
28
|
__decorate([
|
|
26
29
|
(0, tsoa_1.OperationId)('订单自动确认收货'),
|
|
27
30
|
(0, tsoa_1.Post)('auto-confirm-receive')
|
|
28
31
|
], OrderCoreByJobService.prototype, "autoConfirmReceive", null);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, tsoa_1.OperationId)('定时取消超时未支付订单'),
|
|
34
|
+
(0, tsoa_1.Post)('auto-cancel-timeout-orders')
|
|
35
|
+
], OrderCoreByJobService.prototype, "autoCancelTimeoutOrders", null);
|
|
29
36
|
OrderCoreByJobService = __decorate([
|
|
30
37
|
(0, tsoa_1.Route)('pos/core/job'),
|
|
31
38
|
(0, tsoa_1.Tags)('PosOrderJob')
|
|
@@ -174,6 +174,8 @@ export declare namespace PosCoreService {
|
|
|
174
174
|
interface JobController {
|
|
175
175
|
/** 订单自动确认收货 */
|
|
176
176
|
autoConfirmReceive(request: any, req: any): Promise<void>;
|
|
177
|
+
/** 定时取消超时未支付订单 */
|
|
178
|
+
autoCancelTimeoutOrders(request: any, req: any): Promise<void>;
|
|
177
179
|
}
|
|
178
180
|
interface CoreByInternalController {
|
|
179
181
|
/** 核销券创建订单 */
|
|
@@ -181,6 +181,8 @@ export declare namespace PosOrderQueryService {
|
|
|
181
181
|
unitPrice: number;
|
|
182
182
|
quantity: number;
|
|
183
183
|
actualAmount: number;
|
|
184
|
+
/** 使用积分数 */
|
|
185
|
+
pointsNum: number;
|
|
184
186
|
orderStatus: ENUM.OrderStatus;
|
|
185
187
|
refundStatus: ENUM.OrderRefundStatus;
|
|
186
188
|
verificationStatus: ENUM.OrderVerificationStatus;
|
|
@@ -195,6 +197,24 @@ export declare namespace PosOrderQueryService {
|
|
|
195
197
|
/** 门店名称 */
|
|
196
198
|
storeName?: string;
|
|
197
199
|
userNickname?: string;
|
|
200
|
+
/** 营销信息 */
|
|
201
|
+
promotions: {
|
|
202
|
+
id: string;
|
|
203
|
+
orderId: string;
|
|
204
|
+
type: ENUM.OrderPromotionType;
|
|
205
|
+
quantity: number;
|
|
206
|
+
discount: number;
|
|
207
|
+
snapshot: {
|
|
208
|
+
coupon?: {
|
|
209
|
+
id: string;
|
|
210
|
+
code: string;
|
|
211
|
+
name: string;
|
|
212
|
+
discount?: number;
|
|
213
|
+
}[];
|
|
214
|
+
};
|
|
215
|
+
createdAt: number;
|
|
216
|
+
updatedAt: number;
|
|
217
|
+
}[];
|
|
198
218
|
}
|
|
199
219
|
interface IList {
|
|
200
220
|
list: IListItem[];
|
|
@@ -336,12 +356,36 @@ export declare namespace PosOrderQueryService {
|
|
|
336
356
|
verificationWay?: string;
|
|
337
357
|
}[];
|
|
338
358
|
refunds: {
|
|
339
|
-
|
|
359
|
+
/** 退款订单ID */
|
|
360
|
+
reverseOrderId: string;
|
|
361
|
+
/** 退款金额 */
|
|
340
362
|
refundAmount: number;
|
|
341
|
-
|
|
363
|
+
/** 退款积分 */
|
|
364
|
+
pointNum: number;
|
|
365
|
+
/** 退款商品份数 */
|
|
366
|
+
quantity: number;
|
|
367
|
+
/** 退款订单状态 */
|
|
368
|
+
status: ENUM.ReverseOrderStatus;
|
|
369
|
+
/** 退款到账状态 */
|
|
342
370
|
arrivalStatus: ENUM.ReverseArrivalStatus;
|
|
371
|
+
/** 退款类型 */
|
|
372
|
+
refundType: ENUM.ReverseRefundType;
|
|
373
|
+
/** 退款方式 */
|
|
374
|
+
refundWay: ENUM.ReverseRefundWay;
|
|
375
|
+
/** 退款原因 */
|
|
376
|
+
reason: string;
|
|
377
|
+
/** 退款申请时间 */
|
|
378
|
+
createdAt: number;
|
|
379
|
+
/** 资源退还时间 */
|
|
380
|
+
refundAt: number;
|
|
381
|
+
/** 操作人 */
|
|
343
382
|
operator: string;
|
|
344
|
-
|
|
383
|
+
/** 操作时间 */
|
|
384
|
+
operateTime: number;
|
|
385
|
+
/** 上传附件 */
|
|
386
|
+
attachments: string[];
|
|
387
|
+
/** 是否全单退 */
|
|
388
|
+
isFullRefund: boolean;
|
|
345
389
|
}[];
|
|
346
390
|
}
|
|
347
391
|
}
|