cecon-interfaces 1.6.0 → 1.6.2

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.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.6.0",
3
+ "version": "1.6.02",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,16 @@
1
+ import { CoordsEntity } from '../../../general/entities/coords.entity';
2
+ import { IPayioAddress } from '../interfaces/i-address';
3
+ export declare class PayioAddressEntity implements IPayioAddress {
4
+ city: string;
5
+ complement: string | null;
6
+ coords: CoordsEntity;
7
+ country: string | null | undefined;
8
+ formattedAddress: string | null | undefined;
9
+ name: string | null;
10
+ neighborhood: string;
11
+ postalCode: string;
12
+ state: string;
13
+ streetName: string;
14
+ streetNumber: string;
15
+ constructor(data?: Partial<PayioAddressEntity>);
16
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioAddressEntity = void 0;
4
+ var coords_entity_1 = require("../../../general/entities/coords.entity");
5
+ var PayioAddressEntity = /** @class */ (function () {
6
+ // #endregion Properties (11)
7
+ // #region Constructors (1)
8
+ function PayioAddressEntity(data) {
9
+ // #region Properties (11)
10
+ this.city = '';
11
+ this.complement = '';
12
+ this.coords = new coords_entity_1.CoordsEntity();
13
+ this.name = '';
14
+ this.neighborhood = '';
15
+ this.postalCode = '';
16
+ this.state = '';
17
+ this.streetName = '';
18
+ this.streetNumber = '';
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 PayioAddressEntity;
28
+ }());
29
+ exports.PayioAddressEntity = PayioAddressEntity;
@@ -1,8 +1,9 @@
1
- import { AddressEntity, EDocType, IPaymentProvider } from '../../../general';
1
+ import { EDocType, IPaymentProvider } from '../../../general';
2
2
  import { IPayioCompany } from '../interfaces/i-company';
3
+ import { PayioAddressEntity } from './address.entity';
3
4
  export declare class PayioCompanyEntity implements IPayioCompany {
4
5
  active: boolean;
5
- address: AddressEntity;
6
+ address: PayioAddressEntity;
6
7
  containerId: string;
7
8
  createdAt: Date;
8
9
  doc: string;
@@ -2,13 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioCompanyEntity = void 0;
4
4
  var general_1 = require("../../../general");
5
+ var address_entity_1 = require("./address.entity");
5
6
  var PayioCompanyEntity = /** @class */ (function () {
6
7
  // #endregion Properties (19)
7
8
  // #region Constructors (1)
8
9
  function PayioCompanyEntity(data) {
9
10
  // #region Properties (19)
10
11
  this.active = false;
11
- this.address = new general_1.AddressEntity();
12
+ this.address = new address_entity_1.PayioAddressEntity();
12
13
  this.containerId = '';
13
14
  this.createdAt = new Date();
14
15
  this.doc = '';
@@ -1 +1,2 @@
1
+ export { PayioAddressEntity } from './address.entity';
1
2
  export { PayioCompanyEntity } from './company.entity';
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PayioCompanyEntity = void 0;
3
+ exports.PayioCompanyEntity = exports.PayioAddressEntity = void 0;
4
+ var address_entity_1 = require("./address.entity");
5
+ Object.defineProperty(exports, "PayioAddressEntity", { enumerable: true, get: function () { return address_entity_1.PayioAddressEntity; } });
4
6
  var company_entity_1 = require("./company.entity");
5
7
  Object.defineProperty(exports, "PayioCompanyEntity", { enumerable: true, get: function () { return company_entity_1.PayioCompanyEntity; } });
@@ -0,0 +1,14 @@
1
+ import { ICoords } from '../../../general/interfaces/i-coords';
2
+ export interface IPayioAddress {
3
+ city: string;
4
+ complement: string | null;
5
+ coords: ICoords;
6
+ country: string | null | undefined;
7
+ formattedAddress: string | null | undefined;
8
+ name: string | null;
9
+ neighborhood: string;
10
+ postalCode: string;
11
+ state: string;
12
+ streetName: string;
13
+ streetNumber: string;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +1,9 @@
1
1
  import { EDocType } from '../../../general/enums/doc-type.enum';
2
- import { IAddress } from '../../../general/interfaces/i-address';
3
2
  import { IPaymentProvider } from '../../../general/interfaces/i-payment-provider';
3
+ import { IPayioAddress } from './i-address';
4
4
  export interface IPayioCompany {
5
5
  active: boolean;
6
- address: IAddress;
6
+ address: IPayioAddress;
7
7
  containerId: string;
8
8
  createdAt: Date;
9
9
  doc: string;
@@ -1 +1,2 @@
1
+ export { IPayioAddress } from './i-address';
1
2
  export { IPayioCompany } from './i-company';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.6.0",
3
+ "version": "1.6.02",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",