cecon-interfaces 1.1.93 → 1.1.95
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/dist/esm2022/order/entities/order.entity.mjs +4 -3
- package/dist/esm2022/order/interfaces/i-order.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +3 -2
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/order/entities/order.entity.d.ts +2 -0
- package/dist/order/entities/order.entity.js +3 -2
- package/dist/order/interfaces/i-order.d.ts +5 -3
- package/dist/package.json +1 -1
- package/package.json +1 -1
@@ -5,6 +5,7 @@ import { OrderAdditionalFeeEntity } from './additional-fees.entity';
|
|
5
5
|
import { OrderBenefitsEntity } from './benefits.entity';
|
6
6
|
import { OrderCancellationEntity } from './cancellation.entity';
|
7
7
|
import { OrderCustomerEntity } from './customer.entity';
|
8
|
+
import { OrderDeliveryEntity } from './delivery.entity';
|
8
9
|
import { OrderItemEntity } from './item.entity';
|
9
10
|
import { OrderPaymentEntity } from './payment.entity';
|
10
11
|
import { OrderTotalEntity } from './total.entity';
|
@@ -16,6 +17,7 @@ export declare class OrderEntity implements IOrder {
|
|
16
17
|
containerId: string;
|
17
18
|
createdAt: Date;
|
18
19
|
customer: OrderCustomerEntity | null;
|
20
|
+
delivery: OrderDeliveryEntity | null;
|
19
21
|
displayId: string;
|
20
22
|
id: string;
|
21
23
|
items: OrderItemEntity[];
|
@@ -7,10 +7,10 @@ var customer_entity_1 = require("./customer.entity");
|
|
7
7
|
var payment_entity_1 = require("./payment.entity");
|
8
8
|
var total_entity_1 = require("./total.entity");
|
9
9
|
var OrderEntity = /** @class */ (function () {
|
10
|
-
// #endregion Properties (
|
10
|
+
// #endregion Properties (21)
|
11
11
|
// #region Constructors (1)
|
12
12
|
function OrderEntity(data) {
|
13
|
-
// #region Properties (
|
13
|
+
// #region Properties (21)
|
14
14
|
this.additionalFees = [];
|
15
15
|
this.benefits = [];
|
16
16
|
this.cancellation = new cancellation_entity_1.OrderCancellationEntity();
|
@@ -18,6 +18,7 @@ var OrderEntity = /** @class */ (function () {
|
|
18
18
|
this.containerId = '';
|
19
19
|
this.createdAt = new Date();
|
20
20
|
this.customer = new customer_entity_1.OrderCustomerEntity();
|
21
|
+
this.delivery = null;
|
21
22
|
this.displayId = Math.round(Math.random() * 100000).toString();
|
22
23
|
this.id = '';
|
23
24
|
this.items = [];
|
@@ -1,9 +1,10 @@
|
|
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';
|
5
5
|
import { IOrderCancellation } from './i-cancellation';
|
6
6
|
import { IOrderCustomer } from './i-customer';
|
7
|
+
import { IOrderDelivery } from './i-delivery';
|
7
8
|
import { IOrderItem } from './i-item';
|
8
9
|
import { IOrderPayment } from './i-payment';
|
9
10
|
import { IOrderTotal } from './i-total';
|
@@ -16,13 +17,14 @@ export interface IOrder {
|
|
16
17
|
createdAt: Date;
|
17
18
|
customer: IOrderCustomer | null;
|
18
19
|
displayId: string;
|
19
|
-
|
20
|
+
delivery: IOrderDelivery | null;
|
20
21
|
id: string;
|
21
22
|
items: IOrderItem[];
|
23
|
+
orderTiming: EOrderTiming;
|
22
24
|
orderType: EOrderType | null;
|
23
25
|
payments: IOrderPayment | null;
|
24
|
-
salesChannel: string;
|
25
26
|
reference: string | null;
|
27
|
+
salesChannel: string;
|
26
28
|
sandbox: boolean;
|
27
29
|
status: OrderStatusEnum;
|
28
30
|
total: IOrderTotal;
|
package/dist/package.json
CHANGED