@be-link/pos-cli-nodejs 1.0.37 → 1.0.38
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
CHANGED
|
@@ -22,6 +22,7 @@ declare class OrderCoreService extends BaseService implements Service.OrderCoreC
|
|
|
22
22
|
batchConfirmOrders(request: Service.Request.IBatchConfirmOrders): Promise<void>;
|
|
23
23
|
batchRejectOrders(request: Service.Request.IBatchRejectOrders): Promise<void>;
|
|
24
24
|
batchRollbackOrdersToPending(request: Service.Request.IBatchRollbackOrdersToPending): Promise<void>;
|
|
25
|
+
updateOrderAttribute(request: Service.Request.IUpdateOrderAttribute): Promise<void>;
|
|
25
26
|
}
|
|
26
27
|
declare const orderCoreService: OrderCoreService;
|
|
27
28
|
export default orderCoreService;
|
|
@@ -67,6 +67,9 @@ class OrderCoreService extends service_1.default {
|
|
|
67
67
|
batchRollbackOrdersToPending(request) {
|
|
68
68
|
return (0, http_1.callApi)(this.getApiUrl(this.batchRollbackOrdersToPending), request);
|
|
69
69
|
}
|
|
70
|
+
updateOrderAttribute(request) {
|
|
71
|
+
return (0, http_1.callApi)(this.getApiUrl(this.updateOrderAttribute), request);
|
|
72
|
+
}
|
|
70
73
|
}
|
|
71
74
|
const orderCoreService = new OrderCoreService();
|
|
72
75
|
exports.default = orderCoreService;
|
|
@@ -256,6 +256,11 @@ export declare namespace Service {
|
|
|
256
256
|
/** 回滚原因 */
|
|
257
257
|
reason: string;
|
|
258
258
|
}
|
|
259
|
+
interface IUpdateOrderAttribute {
|
|
260
|
+
/** 订单ID */
|
|
261
|
+
orderId: string;
|
|
262
|
+
attributes: Omit<DTO.IPositiveAttributes, 'id' | 'createdAt' | 'updatedAt'>;
|
|
263
|
+
}
|
|
259
264
|
}
|
|
260
265
|
namespace Response {
|
|
261
266
|
interface orderCreate {
|
|
@@ -370,5 +375,9 @@ export declare namespace Service {
|
|
|
370
375
|
* 批量回滚订单到待确认
|
|
371
376
|
*/
|
|
372
377
|
batchRollbackOrdersToPending(request: Request.IBatchRollbackOrdersToPending): Promise<void>;
|
|
378
|
+
/**
|
|
379
|
+
* 订单标记属性编辑接口
|
|
380
|
+
*/
|
|
381
|
+
updateOrderAttribute(request: Request.IUpdateOrderAttribute): Promise<void>;
|
|
373
382
|
}
|
|
374
383
|
}
|