cecon-interfaces 1.4.29 → 1.4.30

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,7 @@ import { SponsorshipValueEntity } from '../../general/entities/sponsorship-value
2
2
  export declare class OrderBenefitsEntity {
3
3
  description: string;
4
4
  id: string;
5
+ referenceId: string;
5
6
  sponsorshipValues: SponsorshipValueEntity[];
6
7
  target: string;
7
8
  targetId: string;
@@ -8,6 +8,7 @@ var OrderBenefitsEntity = /** @class */ (function () {
8
8
  // #region Properties (6)
9
9
  this.description = '';
10
10
  this.id = '';
11
+ this.referenceId = '';
11
12
  this.sponsorshipValues = [];
12
13
  this.target = '';
13
14
  this.targetId = '';
@@ -2,6 +2,7 @@ import { ISponsorshipValue } from '../../general/interfaces';
2
2
  export interface IOrderBenefits {
3
3
  description: string;
4
4
  id: string;
5
+ referenceId: string;
5
6
  sponsorshipValues: ISponsorshipValue[];
6
7
  target: string;
7
8
  targetId: string;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.4.29",
3
+ "version": "1.4.30",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,3 +1,4 @@
1
1
  export { CampaignRuleEntity } from './voucher-rule.entity';
2
2
  export { VoucherSponsorshipEntity } from './voucher-sponsorship.entity';
3
3
  export { VoucherEntity } from './voucher.entity';
4
+ export { VoucherCustomerEntity } from './voucher-customer.entity';
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VoucherEntity = exports.VoucherSponsorshipEntity = exports.CampaignRuleEntity = void 0;
3
+ exports.VoucherCustomerEntity = exports.VoucherEntity = exports.VoucherSponsorshipEntity = exports.CampaignRuleEntity = void 0;
4
4
  var voucher_rule_entity_1 = require("./voucher-rule.entity");
5
5
  Object.defineProperty(exports, "CampaignRuleEntity", { enumerable: true, get: function () { return voucher_rule_entity_1.CampaignRuleEntity; } });
6
6
  var voucher_sponsorship_entity_1 = require("./voucher-sponsorship.entity");
7
7
  Object.defineProperty(exports, "VoucherSponsorshipEntity", { enumerable: true, get: function () { return voucher_sponsorship_entity_1.VoucherSponsorshipEntity; } });
8
8
  var voucher_entity_1 = require("./voucher.entity");
9
9
  Object.defineProperty(exports, "VoucherEntity", { enumerable: true, get: function () { return voucher_entity_1.VoucherEntity; } });
10
+ var voucher_customer_entity_1 = require("./voucher-customer.entity");
11
+ Object.defineProperty(exports, "VoucherCustomerEntity", { enumerable: true, get: function () { return voucher_customer_entity_1.VoucherCustomerEntity; } });
@@ -0,0 +1,17 @@
1
+ import { AddressEntity, CoordsEntity } from '../../general';
2
+ import { OrderTotalEntity } from '../../order';
3
+ import { IVoucherCustomer } from '../interfaces';
4
+ export declare class VoucherCustomerEntity implements IVoucherCustomer {
5
+ customerId: string;
6
+ cords: CoordsEntity;
7
+ address: AddressEntity;
8
+ phoneNumber: string;
9
+ meta: string;
10
+ id: string;
11
+ itensCount: number;
12
+ total: OrderTotalEntity;
13
+ averageAmount: number;
14
+ createdAt: Date;
15
+ updatedAt: Date;
16
+ constructor(data?: Partial<VoucherCustomerEntity>);
17
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VoucherCustomerEntity = void 0;
4
+ var general_1 = require("../../general");
5
+ var order_1 = require("../../order");
6
+ var VoucherCustomerEntity = /** @class */ (function () {
7
+ function VoucherCustomerEntity(data) {
8
+ this.customerId = '';
9
+ this.cords = new general_1.CoordsEntity();
10
+ this.address = new general_1.AddressEntity();
11
+ this.phoneNumber = '';
12
+ this.meta = ''; // JSON meta
13
+ this.id = '';
14
+ this.itensCount = 0;
15
+ this.total = new order_1.OrderTotalEntity();
16
+ this.averageAmount = 0; // total.subTotal / itensCount
17
+ this.createdAt = new Date();
18
+ this.updatedAt = new Date();
19
+ if (data) {
20
+ for (var key in data) {
21
+ if (data.hasOwnProperty(key) && key in this) {
22
+ this[key] = data[key];
23
+ }
24
+ }
25
+ }
26
+ }
27
+ return VoucherCustomerEntity;
28
+ }());
29
+ exports.VoucherCustomerEntity = VoucherCustomerEntity;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.4.29",
3
+ "version": "1.4.30",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",