cecon-interfaces 1.4.23 → 1.4.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ import { IUsedVoucher } from "../../mobyo-customer-mobyo";
1
2
  export interface IOrdersCustomerPhone {
2
3
  description: String;
3
4
  localizer: String;
@@ -12,4 +13,6 @@ export interface IOrderCustomerV3 {
12
13
  ordersCountOnMerchant: number;
13
14
  phone: IOrdersCustomerPhone;
14
15
  picture: string;
16
+ usedVouchers: IUsedVoucher[];
17
+ birthday: Date | null;
15
18
  }
@@ -1,5 +1,6 @@
1
1
  import { CustomerEntity } from '../../../customer';
2
2
  import { IAddress } from '../../../general';
3
+ import { IUsedVoucher } from '../interfaces';
3
4
  import { ICustomerMobyo } from '../interfaces/i-customer-mobyo';
4
5
  export declare class CustomerMobyoEntity extends CustomerEntity implements ICustomerMobyo {
5
6
  active: boolean;
@@ -11,5 +12,7 @@ export declare class CustomerMobyoEntity extends CustomerEntity implements ICust
11
12
  ordersCountOnRestaurant: number;
12
13
  uid: string;
13
14
  version: string;
15
+ usedVouchers: IUsedVoucher[];
16
+ birthday: Date | null;
14
17
  constructor(data?: Partial<CustomerMobyoEntity>);
15
18
  }
@@ -33,6 +33,8 @@ var CustomerMobyoEntity = /** @class */ (function (_super) {
33
33
  _this.ordersCountOnRestaurant = 0;
34
34
  _this.uid = '';
35
35
  _this.version = '1.0.2';
36
+ _this.usedVouchers = [];
37
+ _this.birthday = null;
36
38
  if (data) {
37
39
  for (var key in data) {
38
40
  if (data.hasOwnProperty(key) && key in _this) {
@@ -1,5 +1,6 @@
1
1
  import { ICustomer } from '../../../customer';
2
2
  import { IAddress } from '../../../general';
3
+ import { IUsedVoucher } from './i-used-voucher';
3
4
  export interface ICustomerMobyo extends ICustomer {
4
5
  active: boolean;
5
6
  addresses: IAddress[];
@@ -10,4 +11,6 @@ export interface ICustomerMobyo extends ICustomer {
10
11
  ordersCountOnRestaurant: number;
11
12
  uid: string;
12
13
  version: string;
14
+ usedVouchers: IUsedVoucher[];
15
+ birthday: Date | null;
13
16
  }
@@ -0,0 +1,6 @@
1
+ export interface IUsedVoucher {
2
+ key: string;
3
+ id: string;
4
+ uses: number;
5
+ updatedAt: Date;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
1
  export { ICustomerMobyo } from './i-customer-mobyo';
2
+ export { IUsedVoucher } from './i-used-voucher';
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.4.23",
3
+ "version": "1.4.25",
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.4.23",
3
+ "version": "1.4.25",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",