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
@@ -11,16 +11,16 @@ import { OrderTotalEntity } from './total.entity';
|
|
11
11
|
export declare class OrderEntity implements IOrder {
|
12
12
|
additionalFees: OrderAdditionalFeeEntity[];
|
13
13
|
benefits: OrderBenefitsEntity[];
|
14
|
-
cancellation: OrderCancellationEntity;
|
14
|
+
cancellation: OrderCancellationEntity | null;
|
15
15
|
companyId: string;
|
16
16
|
containerId: string;
|
17
17
|
createdAt: Date;
|
18
|
-
customer: OrderCustomerEntity;
|
18
|
+
customer: OrderCustomerEntity | null;
|
19
19
|
displayId: string;
|
20
20
|
id: string;
|
21
21
|
items: OrderItemEntity[];
|
22
22
|
orderTiming: EOrderTiming;
|
23
|
-
orderType: EOrderType;
|
23
|
+
orderType: EOrderType | null;
|
24
24
|
payments: OrderPaymentEntity;
|
25
25
|
reference: string | null;
|
26
26
|
salesChannel: string;
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.OrderEntity = void 0;
|
4
4
|
var enums_1 = require("../enums");
|
5
|
-
var order_type_enum_1 = require("../enums/order-type.enum");
|
6
5
|
var cancellation_entity_1 = require("./cancellation.entity");
|
7
6
|
var customer_entity_1 = require("./customer.entity");
|
8
7
|
var payment_entity_1 = require("./payment.entity");
|
@@ -19,11 +18,11 @@ var OrderEntity = /** @class */ (function () {
|
|
19
18
|
this.containerId = '';
|
20
19
|
this.createdAt = new Date();
|
21
20
|
this.customer = new customer_entity_1.OrderCustomerEntity();
|
22
|
-
this.displayId =
|
21
|
+
this.displayId = Math.round(Math.random() * 100000).toString();
|
23
22
|
this.id = '';
|
24
23
|
this.items = [];
|
25
24
|
this.orderTiming = enums_1.EOrderTiming.IMMEDIATE;
|
26
|
-
this.orderType =
|
25
|
+
this.orderType = null;
|
27
26
|
this.payments = new payment_entity_1.OrderPaymentEntity();
|
28
27
|
this.reference = null;
|
29
28
|
this.salesChannel = '';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { OrderStatusEnum } from '../enums';
|
1
|
+
import { EOrderTiming, OrderStatusEnum } from '../enums';
|
2
2
|
import { EOrderType } from '../enums/order-type.enum';
|
3
3
|
import { IOrderAdditionalFee } from './i-additional-fee';
|
4
4
|
import { IOrderBenefits } from './i-benefits';
|
@@ -10,19 +10,19 @@ import { IOrderTotal } from './i-total';
|
|
10
10
|
export interface IOrder {
|
11
11
|
additionalFees: IOrderAdditionalFee[];
|
12
12
|
benefits: IOrderBenefits[];
|
13
|
-
cancellation: IOrderCancellation;
|
13
|
+
cancellation: IOrderCancellation | null;
|
14
14
|
companyId: string;
|
15
15
|
containerId: string;
|
16
16
|
createdAt: Date;
|
17
|
-
customer: IOrderCustomer;
|
17
|
+
customer: IOrderCustomer | null;
|
18
18
|
displayId: string;
|
19
|
-
orderTiming: string;
|
20
19
|
id: string;
|
21
20
|
items: IOrderItem[];
|
22
|
-
|
21
|
+
orderTiming: EOrderTiming;
|
22
|
+
orderType: EOrderType | null;
|
23
23
|
payments: IOrderPayment | null;
|
24
|
-
salesChannel: string;
|
25
24
|
reference: string | null;
|
25
|
+
salesChannel: string;
|
26
26
|
sandbox: boolean;
|
27
27
|
status: OrderStatusEnum;
|
28
28
|
total: IOrderTotal;
|
package/dist/package.json
CHANGED