cecon-interfaces 1.5.16 → 1.5.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,8 @@
1
1
  export declare enum EOrderPaymentMethod {
2
2
  cash = "CASH",
3
3
  creditCard = "CREDIT",
4
+ creditCardOnline = "CREDIT_ONLINE",
5
+ voucher = "VOUCHER",
4
6
  debitCard = "DEBIT",
5
7
  wallet = "WALLET",
6
8
  posPaid = "POS-PAID",
@@ -6,6 +6,8 @@ var EOrderPaymentMethod;
6
6
  (function (EOrderPaymentMethod) {
7
7
  EOrderPaymentMethod["cash"] = "CASH";
8
8
  EOrderPaymentMethod["creditCard"] = "CREDIT";
9
+ EOrderPaymentMethod["creditCardOnline"] = "CREDIT_ONLINE";
10
+ EOrderPaymentMethod["voucher"] = "VOUCHER";
9
11
  EOrderPaymentMethod["debitCard"] = "DEBIT";
10
12
  EOrderPaymentMethod["wallet"] = "WALLET";
11
13
  EOrderPaymentMethod["posPaid"] = "POS-PAID";
@@ -1,4 +1,4 @@
1
- import { IOrderBenefits } from '../../../order';
1
+ import { EOrderExtraInfo, IOrderBenefits } from '../../../order';
2
2
  import { EOrderStatus } from '../../../order/enums/order-status.enum';
3
3
  import { EEngineType } from '../enum/engine-type.enum';
4
4
  import { EOrderV3SalesChannel } from '../enum/order-v3-sales-channel.enum';
@@ -32,7 +32,7 @@ export interface IOrderV3 {
32
32
  engineId: string;
33
33
  engineName: string;
34
34
  engineType: EEngineType;
35
- extraInfo: string;
35
+ extraInfo: EOrderExtraInfo | string | null;
36
36
  id: string;
37
37
  indoor: IOrderIndoorV3;
38
38
  integrated: boolean;
@@ -34,5 +34,6 @@ export declare class OrderEntity implements IOrder {
34
34
  updatedAt: Date;
35
35
  version: string;
36
36
  from: EDesenfilaFrom;
37
+ extraInfo: string | null;
37
38
  constructor(data?: Partial<OrderEntity>);
38
39
  }
@@ -33,6 +33,7 @@ var OrderEntity = /** @class */ (function () {
33
33
  this.updatedAt = new Date();
34
34
  this.version = '';
35
35
  this.from = general_1.EDesenfilaFrom.DEFAULT;
36
+ this.extraInfo = null;
36
37
  if (data) {
37
38
  for (var key in data) {
38
39
  if (data.hasOwnProperty(key) && key in this) {
@@ -0,0 +1,6 @@
1
+ export declare enum EOrderExtraInfo {
2
+ FAIL_SEND = "FAIL_SEND",
3
+ FAIL_ADD = "FAIL_ADD",
4
+ SEND = "SEND",
5
+ ADD = "ADD"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EOrderExtraInfo = void 0;
4
+ var EOrderExtraInfo;
5
+ (function (EOrderExtraInfo) {
6
+ EOrderExtraInfo["FAIL_SEND"] = "FAIL_SEND";
7
+ EOrderExtraInfo["FAIL_ADD"] = "FAIL_ADD";
8
+ EOrderExtraInfo["SEND"] = "SEND";
9
+ EOrderExtraInfo["ADD"] = "ADD";
10
+ })(EOrderExtraInfo || (exports.EOrderExtraInfo = EOrderExtraInfo = {}));
@@ -2,3 +2,4 @@ export { EOrderDeliveryMode } from './delivery-mode.enum';
2
2
  export { EOrderStatus } from './order-status.enum';
3
3
  export { EOrderTiming } from './order-timing.enum';
4
4
  export { EOrderType } from './order-type.enum';
5
+ export { EOrderExtraInfo } from './extra-info.enum';
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // index.ts
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.EOrderType = exports.EOrderTiming = exports.EOrderStatus = exports.EOrderDeliveryMode = void 0;
4
+ exports.EOrderExtraInfo = exports.EOrderType = exports.EOrderTiming = exports.EOrderStatus = exports.EOrderDeliveryMode = void 0;
5
5
  var delivery_mode_enum_1 = require("./delivery-mode.enum");
6
6
  Object.defineProperty(exports, "EOrderDeliveryMode", { enumerable: true, get: function () { return delivery_mode_enum_1.EOrderDeliveryMode; } });
7
7
  var order_status_enum_1 = require("./order-status.enum");
@@ -10,3 +10,5 @@ var order_timing_enum_1 = require("./order-timing.enum");
10
10
  Object.defineProperty(exports, "EOrderTiming", { enumerable: true, get: function () { return order_timing_enum_1.EOrderTiming; } });
11
11
  var order_type_enum_1 = require("./order-type.enum");
12
12
  Object.defineProperty(exports, "EOrderType", { enumerable: true, get: function () { return order_type_enum_1.EOrderType; } });
13
+ var extra_info_enum_1 = require("./extra-info.enum");
14
+ Object.defineProperty(exports, "EOrderExtraInfo", { enumerable: true, get: function () { return extra_info_enum_1.EOrderExtraInfo; } });
@@ -1,5 +1,5 @@
1
1
  import { EDesenfilaFrom } from '../../general';
2
- import { EOrderTiming } from '../enums';
2
+ import { EOrderExtraInfo, EOrderTiming } from '../enums';
3
3
  import { EOrderStatus } from '../enums/order-status.enum';
4
4
  import { EOrderType } from '../enums/order-type.enum';
5
5
  import { IOrderAdditionalFee } from './i-additional-fee';
@@ -34,4 +34,5 @@ export interface IOrder {
34
34
  updatedAt: Date;
35
35
  version: string;
36
36
  from: EDesenfilaFrom;
37
+ extraInfo: EOrderExtraInfo | string | null;
37
38
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.5.16",
3
+ "version": "1.5.18",
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.5.16",
3
+ "version": "1.5.18",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",