cecon-interfaces 1.1.94 → 1.1.96
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 +5 -3
- package/dist/esm2022/order/interfaces/i-order.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +4 -2
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/order/entities/order.entity.d.ts +3 -0
- package/dist/order/entities/order.entity.js +4 -2
- package/dist/order/interfaces/i-order.d.ts +3 -0
- 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,8 +17,10 @@ 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;
|
23
|
+
invoiceId: string | null;
|
21
24
|
items: OrderItemEntity[];
|
22
25
|
orderTiming: EOrderTiming;
|
23
26
|
orderType: EOrderType | null;
|
@@ -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 (22)
|
11
11
|
// #region Constructors (1)
|
12
12
|
function OrderEntity(data) {
|
13
|
-
// #region Properties (
|
13
|
+
// #region Properties (22)
|
14
14
|
this.additionalFees = [];
|
15
15
|
this.benefits = [];
|
16
16
|
this.cancellation = new cancellation_entity_1.OrderCancellationEntity();
|
@@ -18,8 +18,10 @@ 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 = '';
|
24
|
+
this.invoiceId = null;
|
23
25
|
this.items = [];
|
24
26
|
this.orderTiming = enums_1.EOrderTiming.IMMEDIATE;
|
25
27
|
this.orderType = null;
|
@@ -4,6 +4,7 @@ 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,6 +17,8 @@ export interface IOrder {
|
|
16
17
|
createdAt: Date;
|
17
18
|
customer: IOrderCustomer | null;
|
18
19
|
displayId: string;
|
20
|
+
invoiceId: string | null;
|
21
|
+
delivery: IOrderDelivery | null;
|
19
22
|
id: string;
|
20
23
|
items: IOrderItem[];
|
21
24
|
orderTiming: EOrderTiming;
|
package/dist/package.json
CHANGED