cecon-interfaces 1.2.85 → 1.2.87

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,5 +2,8 @@ export declare enum EDesenfilaFrom {
2
2
  NATI = "NATI",
3
3
  AUTOMATION = "AUTOMATION",
4
4
  NATIPAY = "NATIPAY",
5
- MOBYO = "MOBYO"
5
+ DESENFILA = "DESENFILA",
6
+ NATIST = "NATIST",
7
+ MOBYO = "MOBYO",
8
+ DEFAULT = "DEFAULT"
6
9
  }
@@ -6,5 +6,8 @@ var EDesenfilaFrom;
6
6
  EDesenfilaFrom["NATI"] = "NATI";
7
7
  EDesenfilaFrom["AUTOMATION"] = "AUTOMATION";
8
8
  EDesenfilaFrom["NATIPAY"] = "NATIPAY";
9
+ EDesenfilaFrom["DESENFILA"] = "DESENFILA";
10
+ EDesenfilaFrom["NATIST"] = "NATIST";
9
11
  EDesenfilaFrom["MOBYO"] = "MOBYO";
12
+ EDesenfilaFrom["DEFAULT"] = "DEFAULT"; // outras fontes não mapeadas
10
13
  })(EDesenfilaFrom || (exports.EDesenfilaFrom = EDesenfilaFrom = {}));
@@ -8,7 +8,7 @@ export declare class MottuOrderEntity implements IMottuOrder {
8
8
  expectedDelivery: Date;
9
9
  expectedPickup: Date;
10
10
  fullCode: string;
11
- id: number | string;
11
+ id: any;
12
12
  origin: string;
13
13
  pickupCode: string;
14
14
  preparationTime: number;
@@ -15,7 +15,7 @@ var MottuOrderEntity = /** @class */ (function () {
15
15
  this.expectedDelivery = new Date();
16
16
  this.expectedPickup = new Date();
17
17
  this.fullCode = '';
18
- this.id = '';
18
+ this.id = 0;
19
19
  this.origin = '';
20
20
  this.pickupCode = '';
21
21
  this.preparationTime = 0;
@@ -9,7 +9,7 @@ export interface IMottuOrder {
9
9
  expectedDelivery: Date;
10
10
  expectedPickup: Date;
11
11
  fullCode: string;
12
- id: number | string;
12
+ id: any;
13
13
  origin: string;
14
14
  pickupCode: string;
15
15
  preparationTime: number;
@@ -1,3 +1,4 @@
1
+ import { EDesenfilaFrom } from '../../general';
1
2
  import { EOrderTiming, OrderStatusEnum } from '../enums';
2
3
  import { EOrderType } from '../enums/order-type.enum';
3
4
  import { IOrder } from '../interfaces';
@@ -32,5 +33,6 @@ export declare class OrderEntity implements IOrder {
32
33
  total: OrderTotalEntity;
33
34
  updatedAt: Date;
34
35
  version: string;
36
+ from: EDesenfilaFrom;
35
37
  constructor(data?: Partial<OrderEntity>);
36
38
  }
@@ -1,14 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OrderEntity = void 0;
4
+ var general_1 = require("../../general");
4
5
  var enums_1 = require("../enums");
5
6
  var cancellation_entity_1 = require("./cancellation.entity");
6
7
  var customer_entity_1 = require("./customer.entity");
7
8
  var payment_entity_1 = require("./payment.entity");
8
9
  var total_entity_1 = require("./total.entity");
9
10
  var OrderEntity = /** @class */ (function () {
10
- // #endregion Properties (22)
11
- // #region Constructors (1)
12
11
  function OrderEntity(data) {
13
12
  // #region Properties (22)
14
13
  this.additionalFees = [];
@@ -33,6 +32,7 @@ var OrderEntity = /** @class */ (function () {
33
32
  this.total = new total_entity_1.OrderTotalEntity();
34
33
  this.updatedAt = new Date();
35
34
  this.version = '';
35
+ this.from = general_1.EDesenfilaFrom.DEFAULT;
36
36
  if (data) {
37
37
  for (var key in data) {
38
38
  if (data.hasOwnProperty(key) && key in this) {
@@ -1,4 +1,5 @@
1
+ import { EDesenfilaFrom } from "../../general";
1
2
  export interface IOrderAdditionalFee {
2
- type: string;
3
+ type: string | EDesenfilaFrom;
3
4
  value: number;
4
5
  }
@@ -1,3 +1,4 @@
1
+ import { EDesenfilaFrom } from '../../general';
1
2
  import { EOrderTiming, OrderStatusEnum } from '../enums';
2
3
  import { EOrderType } from '../enums/order-type.enum';
3
4
  import { IOrderAdditionalFee } from './i-additional-fee';
@@ -31,4 +32,5 @@ export interface IOrder {
31
32
  total: IOrderTotal;
32
33
  updatedAt: Date;
33
34
  version: string;
35
+ from: EDesenfilaFrom;
34
36
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.2.85",
3
+ "version": "1.2.87",
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.2.85",
3
+ "version": "1.2.87",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",