cecon-interfaces 1.1.92 → 1.1.94
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/order/entities/order.entity.mjs +3 -4
- package/dist/esm2022/order/interfaces/i-order.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +2 -2
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/order/entities/order.entity.d.ts +3 -3
- package/dist/order/entities/order.entity.js +2 -3
- package/dist/order/interfaces/i-order.d.ts +6 -6
- package/dist/package.json +1 -1
- package/package.json +1 -1
@@ -1,5 +1,4 @@
|
|
1
1
|
import { EOrderTiming, OrderStatusEnum } from '../enums';
|
2
|
-
import { EOrderType } from '../enums/order-type.enum';
|
3
2
|
import { OrderCancellationEntity } from './cancellation.entity';
|
4
3
|
import { OrderCustomerEntity } from './customer.entity';
|
5
4
|
import { OrderPaymentEntity } from './payment.entity';
|
@@ -13,11 +12,11 @@ export class OrderEntity {
|
|
13
12
|
containerId = '';
|
14
13
|
createdAt = new Date();
|
15
14
|
customer = new OrderCustomerEntity();
|
16
|
-
displayId =
|
15
|
+
displayId = Math.round(Math.random() * 100000).toString();
|
17
16
|
id = '';
|
18
17
|
items = [];
|
19
18
|
orderTiming = EOrderTiming.IMMEDIATE;
|
20
|
-
orderType =
|
19
|
+
orderType = null;
|
21
20
|
payments = new OrderPaymentEntity();
|
22
21
|
reference = null;
|
23
22
|
salesChannel = '';
|
@@ -38,4 +37,4 @@ export class OrderEntity {
|
|
38
37
|
}
|
39
38
|
}
|
40
39
|
}
|
41
|
-
//# sourceMappingURL=data:application/json;base64,
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXIuZW50aXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL29yZGVyL2VudGl0aWVzL29yZGVyLmVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEV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
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1vcmRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9vcmRlci9pbnRlcmZhY2VzL2ktb3JkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEVPcmRlclRpbWluZywgT3JkZXJTdGF0dXNFbnVtIH0gZnJvbSAnLi4vZW51bXMnO1xyXG5pbXBvcnQgeyBFT3JkZXJUeXBlIH0gZnJvbSAnLi4vZW51bXMvb3JkZXItdHlwZS5lbnVtJztcclxuaW1wb3J0IHsgSU9yZGVyQWRkaXRpb25hbEZlZSB9IGZyb20gJy4vaS1hZGRpdGlvbmFsLWZlZSc7XHJcbmltcG9ydCB7IElPcmRlckJlbmVmaXRzIH0gZnJvbSAnLi9pLWJlbmVmaXRzJztcclxuaW1wb3J0IHsgSU9yZGVyQ2FuY2VsbGF0aW9uIH0gZnJvbSAnLi9pLWNhbmNlbGxhdGlvbic7XHJcbmltcG9ydCB7IElPcmRlckN1c3RvbWVyIH0gZnJvbSAnLi9pLWN1c3RvbWVyJztcclxuaW1wb3J0IHsgSU9yZGVySXRlbSB9IGZyb20gJy4vaS1pdGVtJztcclxuaW1wb3J0IHsgSU9yZGVyUGF5bWVudCB9IGZyb20gJy4vaS1wYXltZW50JztcclxuaW1wb3J0IHsgSU9yZGVyVG90YWwgfSBmcm9tICcuL2ktdG90YWwnO1xyXG5cclxuZXhwb3J0IGludGVyZmFjZSBJT3JkZXIge1xyXG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoMjApXHJcblxyXG4gIGFkZGl0aW9uYWxGZWVzOiBJT3JkZXJBZGRpdGlvbmFsRmVlW107XHJcbiAgYmVuZWZpdHM6IElPcmRlckJlbmVmaXRzW107XHJcbiAgY2FuY2VsbGF0aW9uOiBJT3JkZXJDYW5jZWxsYXRpb24gfCBudWxsO1xyXG4gIGNvbXBhbnlJZDogc3RyaW5nO1xyXG4gIGNvbnRhaW5lcklkOiBzdHJpbmc7XHJcbiAgY3JlYXRlZEF0OiBEYXRlO1xyXG4gIGN1c3RvbWVyOiBJT3JkZXJDdXN0b21lciB8IG51bGw7XHJcbiAgZGlzcGxheUlkOiBzdHJpbmc7XHJcbiAgaWQ6IHN0cmluZztcclxuICBpdGVtczogSU9yZGVySXRlbVtdO1xyXG4gIG9yZGVyVGltaW5nOiBFT3JkZXJUaW1pbmc7XHJcbiAgb3JkZXJUeXBlOiBFT3JkZXJUeXBlIHwgbnVsbDtcclxuICBwYXltZW50czogSU9yZGVyUGF5bWVudCB8IG51bGw7XHJcbiAgcmVmZXJlbmNlOiBzdHJpbmcgfCBudWxsO1xyXG4gIHNhbGVzQ2hhbm5lbDogc3RyaW5nO1xyXG4gIHNhbmRib3g6IGJvb2xlYW47XHJcbiAgc3RhdHVzOiBPcmRlclN0YXR1c0VudW07XHJcbiAgdG90YWw6IElPcmRlclRvdGFsO1xyXG4gIHVwZGF0ZWRBdDogRGF0ZTtcclxuICB2ZXJzaW9uOiBzdHJpbmc7XHJcblxyXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoMjApXHJcbn1cclxuIl19
|
@@ -1242,11 +1242,11 @@ class OrderEntity {
|
|
1242
1242
|
containerId = '';
|
1243
1243
|
createdAt = new Date();
|
1244
1244
|
customer = new OrderCustomerEntity();
|
1245
|
-
displayId =
|
1245
|
+
displayId = Math.round(Math.random() * 100000).toString();
|
1246
1246
|
id = '';
|
1247
1247
|
items = [];
|
1248
1248
|
orderTiming = EOrderTiming.IMMEDIATE;
|
1249
|
-
orderType =
|
1249
|
+
orderType = null;
|
1250
1250
|
payments = new OrderPaymentEntity();
|
1251
1251
|
reference = null;
|
1252
1252
|
salesChannel = '';
|