cecon-interfaces 1.1.93 → 1.1.95

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 (20)
10
+ // #endregion Properties (21)
11
11
  // #region Constructors (1)
12
12
  function OrderEntity(data) {
13
- // #region Properties (20)
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
- orderTiming: string;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.93",
3
+ "version": "1.1.95",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.93",
3
+ "version": "1.1.95",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",