cecon-interfaces 1.1.92 → 1.1.93

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 = order_type_enum_1.EOrderType.DELIVERY;
25
+ this.orderType = null;
27
26
  this.payments = new payment_entity_1.OrderPaymentEntity();
28
27
  this.reference = null;
29
28
  this.salesChannel = '';
@@ -10,16 +10,16 @@ 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
19
  orderTiming: string;
20
20
  id: string;
21
21
  items: IOrderItem[];
22
- orderType: EOrderType;
22
+ orderType: EOrderType | null;
23
23
  payments: IOrderPayment | null;
24
24
  salesChannel: string;
25
25
  reference: string | null;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.92",
3
+ "version": "1.1.93",
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.92",
3
+ "version": "1.1.93",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",