cecon-interfaces 1.3.10 → 1.3.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. package/dist/esm2022/general/entities/desenfila-info.entity.mjs +16 -0
  2. package/dist/esm2022/general/entities/index.mjs +4 -1
  3. package/dist/esm2022/general/entities/mobyo-info.entity.mjs +16 -0
  4. package/dist/esm2022/general/entities/nati-info.entity.mjs +16 -0
  5. package/dist/esm2022/global-settings/entities/global-setting-iugu.entity.mjs +2 -1
  6. package/dist/esm2022/global-settings/entities/global-setting-master.entity.mjs +2 -1
  7. package/dist/esm2022/global-settings/entities/global-setting-nati.entity.mjs +24 -0
  8. package/dist/esm2022/global-settings/entities/global-setting-taxes.entity.mjs +17 -0
  9. package/dist/esm2022/global-settings/entities/global-setting.entity.mjs +2 -1
  10. package/dist/esm2022/global-settings/entities/index.mjs +3 -1
  11. package/dist/esm2022/global-settings/interfaces/i-global-setting-iugu.mjs +1 -1
  12. package/dist/esm2022/global-settings/interfaces/i-global-setting-master.mjs +1 -1
  13. package/dist/esm2022/global-settings/interfaces/i-global-setting.mjs +1 -1
  14. package/dist/esm2022/sponsor/entities/sponsor.entity.mjs +5 -2
  15. package/dist/esm2022/sponsor/interfaces/i-sponsor.mjs +1 -1
  16. package/dist/esm2022/transaction/entities/transaction.entity.mjs +5 -5
  17. package/dist/esm2022/transaction/interfaces/i-transaction.mjs +1 -1
  18. package/dist/fesm2022/cecon-interfaces.mjs +98 -4
  19. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  20. package/dist/general/entities/desenfila-info.entity.d.ts +6 -0
  21. package/dist/general/entities/desenfila-info.entity.js +20 -0
  22. package/dist/general/entities/index.d.ts +3 -0
  23. package/dist/general/entities/index.js +7 -1
  24. package/dist/general/entities/mobyo-info.entity.d.ts +6 -0
  25. package/dist/general/entities/mobyo-info.entity.js +20 -0
  26. package/dist/general/entities/nati-info.entity.d.ts +6 -0
  27. package/dist/general/entities/nati-info.entity.js +20 -0
  28. package/dist/global-settings/entities/global-setting-iugu.entity.d.ts +1 -0
  29. package/dist/global-settings/entities/global-setting-iugu.entity.js +1 -0
  30. package/dist/global-settings/entities/global-setting-master.entity.d.ts +1 -0
  31. package/dist/global-settings/entities/global-setting-master.entity.js +1 -0
  32. package/dist/global-settings/entities/global-setting-nati.entity.d.ts +13 -0
  33. package/dist/global-settings/entities/global-setting-nati.entity.js +28 -0
  34. package/dist/global-settings/entities/global-setting-taxes.entity.d.ts +7 -0
  35. package/dist/global-settings/entities/global-setting-taxes.entity.js +21 -0
  36. package/dist/global-settings/entities/global-setting.entity.d.ts +1 -0
  37. package/dist/global-settings/entities/global-setting.entity.js +1 -0
  38. package/dist/global-settings/entities/index.d.ts +2 -0
  39. package/dist/global-settings/entities/index.js +5 -1
  40. package/dist/global-settings/interfaces/i-global-setting-iugu.d.ts +1 -0
  41. package/dist/global-settings/interfaces/i-global-setting-master.d.ts +1 -0
  42. package/dist/global-settings/interfaces/i-global-setting.d.ts +1 -0
  43. package/dist/package.json +1 -1
  44. package/dist/sponsor/entities/sponsor.entity.d.ts +4 -1
  45. package/dist/sponsor/entities/sponsor.entity.js +3 -0
  46. package/dist/sponsor/interfaces/i-sponsor.d.ts +4 -1
  47. package/dist/transaction/entities/transaction.entity.d.ts +3 -3
  48. package/dist/transaction/entities/transaction.entity.js +3 -3
  49. package/dist/transaction/interfaces/i-transaction.d.ts +3 -3
  50. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ import { IDesenfilaInfo } from "../interfaces";
2
+ export declare class DesenfilaInfoEntity implements IDesenfilaInfo {
3
+ merchantId: string;
4
+ containerId: string;
5
+ constructor(data?: Partial<DesenfilaInfoEntity>);
6
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // src/models/base.entity.ts
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.DesenfilaInfoEntity = void 0;
5
+ var DesenfilaInfoEntity = /** @class */ (function () {
6
+ function DesenfilaInfoEntity(data) {
7
+ // #region Properties (6)
8
+ this.merchantId = '';
9
+ this.containerId = '';
10
+ if (data) {
11
+ for (var key in data) {
12
+ if (data.hasOwnProperty(key) && key in this) {
13
+ this[key] = data[key];
14
+ }
15
+ }
16
+ }
17
+ }
18
+ return DesenfilaInfoEntity;
19
+ }());
20
+ exports.DesenfilaInfoEntity = DesenfilaInfoEntity;
@@ -22,3 +22,6 @@ export { PaymentEntity } from './payment.entity';
22
22
  export { QueryEntity } from './query.entity';
23
23
  export { RatingEntity } from './rating.entity';
24
24
  export { SponsorshipValueEntity } from './sponsorship-value.entity';
25
+ export { MobyoInfoEntity } from './mobyo-info.entity';
26
+ export { DesenfilaInfoEntity } from './desenfila-info.entity';
27
+ export { NatiInfoEntity } from './nati-info.entity';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SponsorshipValueEntity = exports.RatingEntity = exports.QueryEntity = exports.PaymentEntity = exports.PaymentWalletEntity = exports.PaymentTokenEntity = exports.PaymentTokenDataEntity = exports.PaymentProviderEntity = exports.PaymentProviderAgentEntity = exports.PaymentPixEntity = exports.PaymentMethodEntity = exports.PaymentMethodOptionEntity = exports.PaymentCashEntity = exports.PaymentCardEntity = exports.OriginEntity = exports.MobyoApiConfigEntity = exports.MessagerChannelEntity = exports.DeliveryAreaFixedEntity = exports.DeliveryAreaEntity = exports.CustomVariableEntity = exports.CoordsEntity = exports.CarouselImageEntity = exports.BaseEntity = exports.AddressEntity = void 0;
3
+ exports.NatiInfoEntity = exports.DesenfilaInfoEntity = exports.MobyoInfoEntity = exports.SponsorshipValueEntity = exports.RatingEntity = exports.QueryEntity = exports.PaymentEntity = exports.PaymentWalletEntity = exports.PaymentTokenEntity = exports.PaymentTokenDataEntity = exports.PaymentProviderEntity = exports.PaymentProviderAgentEntity = exports.PaymentPixEntity = exports.PaymentMethodEntity = exports.PaymentMethodOptionEntity = exports.PaymentCashEntity = exports.PaymentCardEntity = exports.OriginEntity = exports.MobyoApiConfigEntity = exports.MessagerChannelEntity = exports.DeliveryAreaFixedEntity = exports.DeliveryAreaEntity = exports.CustomVariableEntity = exports.CoordsEntity = exports.CarouselImageEntity = exports.BaseEntity = exports.AddressEntity = void 0;
4
4
  var address_entity_1 = require("./address.entity");
5
5
  Object.defineProperty(exports, "AddressEntity", { enumerable: true, get: function () { return address_entity_1.AddressEntity; } });
6
6
  var base_entity_1 = require("./base.entity");
@@ -49,3 +49,9 @@ var rating_entity_1 = require("./rating.entity");
49
49
  Object.defineProperty(exports, "RatingEntity", { enumerable: true, get: function () { return rating_entity_1.RatingEntity; } });
50
50
  var sponsorship_value_entity_1 = require("./sponsorship-value.entity");
51
51
  Object.defineProperty(exports, "SponsorshipValueEntity", { enumerable: true, get: function () { return sponsorship_value_entity_1.SponsorshipValueEntity; } });
52
+ var mobyo_info_entity_1 = require("./mobyo-info.entity");
53
+ Object.defineProperty(exports, "MobyoInfoEntity", { enumerable: true, get: function () { return mobyo_info_entity_1.MobyoInfoEntity; } });
54
+ var desenfila_info_entity_1 = require("./desenfila-info.entity");
55
+ Object.defineProperty(exports, "DesenfilaInfoEntity", { enumerable: true, get: function () { return desenfila_info_entity_1.DesenfilaInfoEntity; } });
56
+ var nati_info_entity_1 = require("./nati-info.entity");
57
+ Object.defineProperty(exports, "NatiInfoEntity", { enumerable: true, get: function () { return nati_info_entity_1.NatiInfoEntity; } });
@@ -0,0 +1,6 @@
1
+ import { IMobyoInfo } from '../interfaces';
2
+ export declare class MobyoInfoEntity implements IMobyoInfo {
3
+ companyId: string;
4
+ containerId: string;
5
+ constructor(data?: Partial<MobyoInfoEntity>);
6
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // src/models/base.entity.ts
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.MobyoInfoEntity = void 0;
5
+ var MobyoInfoEntity = /** @class */ (function () {
6
+ function MobyoInfoEntity(data) {
7
+ // #region Properties (6)
8
+ this.companyId = '';
9
+ this.containerId = '';
10
+ if (data) {
11
+ for (var key in data) {
12
+ if (data.hasOwnProperty(key) && key in this) {
13
+ this[key] = data[key];
14
+ }
15
+ }
16
+ }
17
+ }
18
+ return MobyoInfoEntity;
19
+ }());
20
+ exports.MobyoInfoEntity = MobyoInfoEntity;
@@ -0,0 +1,6 @@
1
+ import { INatiInfo } from "../interfaces";
2
+ export declare class NatiInfoEntity implements INatiInfo {
3
+ companyId: string;
4
+ containerId: string;
5
+ constructor(data?: Partial<NatiInfoEntity>);
6
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // src/models/base.entity.ts
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.NatiInfoEntity = void 0;
5
+ var NatiInfoEntity = /** @class */ (function () {
6
+ function NatiInfoEntity(data) {
7
+ // #region Properties (6)
8
+ this.companyId = '';
9
+ this.containerId = '';
10
+ if (data) {
11
+ for (var key in data) {
12
+ if (data.hasOwnProperty(key) && key in this) {
13
+ this[key] = data[key];
14
+ }
15
+ }
16
+ }
17
+ }
18
+ return NatiInfoEntity;
19
+ }());
20
+ exports.NatiInfoEntity = NatiInfoEntity;
@@ -55,5 +55,6 @@ export declare class GlobalSettingIuguEntity implements IGlobalSettingIugu {
55
55
  perDayInterestValue: number;
56
56
  testApiToken: string;
57
57
  userApiToken: string;
58
+ id: string;
58
59
  constructor(data?: Partial<GlobalSettingIuguEntity>);
59
60
  }
@@ -61,6 +61,7 @@ var GlobalSettingIuguEntity = /** @class */ (function () {
61
61
  this.perDayInterestValue = 1;
62
62
  this.testApiToken = '';
63
63
  this.userApiToken = '';
64
+ this.id = '';
64
65
  if (data) {
65
66
  for (var key in data) {
66
67
  if (data.hasOwnProperty(key) && key in this) {
@@ -15,5 +15,6 @@ export declare class GlobalSettingMasterEntity implements IGlobalSettingMaster {
15
15
  waServerGlobalKey: string;
16
16
  waServerInstanceName: string;
17
17
  waServerNumber: string;
18
+ id: string;
18
19
  constructor(data?: Partial<GlobalSettingMasterEntity>);
19
20
  }
@@ -21,6 +21,7 @@ var GlobalSettingMasterEntity = /** @class */ (function () {
21
21
  this.waServerGlobalKey = '';
22
22
  this.waServerInstanceName = '';
23
23
  this.waServerNumber = '';
24
+ this.id = '';
24
25
  if (data) {
25
26
  for (var key in data) {
26
27
  if (data.hasOwnProperty(key) && key in this) {
@@ -0,0 +1,13 @@
1
+ import { INatiInfo, IDesenfilaInfo, IMobyoInfo, EDesenfilaFrom } from '../../general';
2
+ import { IGlobalSettingNatiPay } from '../interfaces';
3
+ export declare class GlobalSettingNatiPayEntity implements IGlobalSettingNatiPay {
4
+ id: string;
5
+ info: {
6
+ natiInfo: INatiInfo;
7
+ desenfilaInfo: IDesenfilaInfo;
8
+ mobyoInfo: IMobyoInfo;
9
+ userName: EDesenfilaFrom.NATIPAY;
10
+ email: string;
11
+ };
12
+ constructor(data?: Partial<GlobalSettingNatiPayEntity>);
13
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GlobalSettingNatiPayEntity = void 0;
4
+ var general_1 = require("../../general");
5
+ var GlobalSettingNatiPayEntity = /** @class */ (function () {
6
+ // #endregion Properties (1)
7
+ // #region Constructors (1)
8
+ function GlobalSettingNatiPayEntity(data) {
9
+ // #region Properties (1)
10
+ this.id = '';
11
+ this.info = {
12
+ natiInfo: new general_1.NatiInfoEntity(),
13
+ desenfilaInfo: new general_1.DesenfilaInfoEntity(),
14
+ mobyoInfo: new general_1.MobyoInfoEntity(),
15
+ userName: general_1.EDesenfilaFrom.NATIPAY,
16
+ email: '',
17
+ };
18
+ if (data) {
19
+ for (var key in data) {
20
+ if (data.hasOwnProperty(key) && key in this) {
21
+ this[key] = data[key];
22
+ }
23
+ }
24
+ }
25
+ }
26
+ return GlobalSettingNatiPayEntity;
27
+ }());
28
+ exports.GlobalSettingNatiPayEntity = GlobalSettingNatiPayEntity;
@@ -0,0 +1,7 @@
1
+ import { IFee } from '../../transaction';
2
+ import { IGlobalSettingTaxes } from '../interfaces';
3
+ export declare class GlobalSettingTaxesEntity implements IGlobalSettingTaxes {
4
+ id: string;
5
+ fees: IFee[];
6
+ constructor(data?: Partial<GlobalSettingTaxesEntity>);
7
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GlobalSettingTaxesEntity = void 0;
4
+ var GlobalSettingTaxesEntity = /** @class */ (function () {
5
+ // #endregion Properties (1)
6
+ // #region Constructors (1)
7
+ function GlobalSettingTaxesEntity(data) {
8
+ // #region Properties (1)
9
+ this.id = '';
10
+ this.fees = [];
11
+ if (data) {
12
+ for (var key in data) {
13
+ if (data.hasOwnProperty(key) && key in this) {
14
+ this[key] = data[key];
15
+ }
16
+ }
17
+ }
18
+ }
19
+ return GlobalSettingTaxesEntity;
20
+ }());
21
+ exports.GlobalSettingTaxesEntity = GlobalSettingTaxesEntity;
@@ -3,5 +3,6 @@ import { GlobalSettingIuguEntity } from './global-setting-iugu.entity';
3
3
  export declare class GlobalSettingEntity implements IGlobalSetting {
4
4
  iugu: GlobalSettingIuguEntity;
5
5
  billingDays: number;
6
+ id: string;
6
7
  constructor(data?: Partial<GlobalSettingEntity>);
7
8
  }
@@ -9,6 +9,7 @@ var GlobalSettingEntity = /** @class */ (function () {
9
9
  // #region Properties (1)
10
10
  this.iugu = new global_setting_iugu_entity_1.GlobalSettingIuguEntity();
11
11
  this.billingDays = 3;
12
+ this.id = '';
12
13
  if (data) {
13
14
  for (var key in data) {
14
15
  if (data.hasOwnProperty(key) && key in this) {
@@ -1,3 +1,5 @@
1
1
  export { GlobalSettingIuguEntity } from './global-setting-iugu.entity';
2
2
  export { GlobalSettingMasterEntity } from './global-setting-master.entity';
3
3
  export { GlobalSettingEntity } from './global-setting.entity';
4
+ export { GlobalSettingNatiPayEntity } from './global-setting-nati.entity';
5
+ export { GlobalSettingTaxesEntity } from './global-setting-taxes.entity';
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GlobalSettingEntity = exports.GlobalSettingMasterEntity = exports.GlobalSettingIuguEntity = void 0;
3
+ exports.GlobalSettingTaxesEntity = exports.GlobalSettingNatiPayEntity = exports.GlobalSettingEntity = exports.GlobalSettingMasterEntity = exports.GlobalSettingIuguEntity = void 0;
4
4
  var global_setting_iugu_entity_1 = require("./global-setting-iugu.entity");
5
5
  Object.defineProperty(exports, "GlobalSettingIuguEntity", { enumerable: true, get: function () { return global_setting_iugu_entity_1.GlobalSettingIuguEntity; } });
6
6
  var global_setting_master_entity_1 = require("./global-setting-master.entity");
7
7
  Object.defineProperty(exports, "GlobalSettingMasterEntity", { enumerable: true, get: function () { return global_setting_master_entity_1.GlobalSettingMasterEntity; } });
8
8
  var global_setting_entity_1 = require("./global-setting.entity");
9
9
  Object.defineProperty(exports, "GlobalSettingEntity", { enumerable: true, get: function () { return global_setting_entity_1.GlobalSettingEntity; } });
10
+ var global_setting_nati_entity_1 = require("./global-setting-nati.entity");
11
+ Object.defineProperty(exports, "GlobalSettingNatiPayEntity", { enumerable: true, get: function () { return global_setting_nati_entity_1.GlobalSettingNatiPayEntity; } });
12
+ var global_setting_taxes_entity_1 = require("./global-setting-taxes.entity");
13
+ Object.defineProperty(exports, "GlobalSettingTaxesEntity", { enumerable: true, get: function () { return global_setting_taxes_entity_1.GlobalSettingTaxesEntity; } });
@@ -12,4 +12,5 @@ export interface IGlobalSettingIugu {
12
12
  perDayInterestCents: number;
13
13
  perDayInterestValue: number;
14
14
  billingDays: number;
15
+ id: string;
15
16
  }
@@ -13,5 +13,6 @@ export interface IGlobalSettingMaster {
13
13
  waServerBaseUrl: string;
14
14
  waServerGlobalKey: string;
15
15
  waServerInstanceName: string;
16
+ id: string;
16
17
  waServerNumber: string;
17
18
  }
@@ -2,4 +2,5 @@ import { IGlobalSettingIugu } from './i-global-setting-iugu';
2
2
  export interface IGlobalSetting {
3
3
  billingDays: number;
4
4
  iugu: IGlobalSettingIugu;
5
+ id: string;
5
6
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.3.10",
3
+ "version": "1.3.12",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,4 +1,4 @@
1
- import { EDesenfilaFrom, EDocType } from '../../general';
1
+ import { EDesenfilaFrom, EDocType, IDesenfilaInfo, IMobyoInfo, INatiInfo } from '../../general';
2
2
  import { ISponsor } from '../interfaces/i-sponsor';
3
3
  import { ISponsorFee } from '../interfaces/i-sponsor-fee';
4
4
  export declare class SponsorEntity implements ISponsor {
@@ -16,5 +16,8 @@ export declare class SponsorEntity implements ISponsor {
16
16
  internationalCode: string;
17
17
  phoneNumer: string;
18
18
  email: string;
19
+ natiInfo: INatiInfo;
20
+ mobyoInfo: IMobyoInfo;
21
+ desenfilaInfo: IDesenfilaInfo;
19
22
  constructor(data?: Partial<SponsorEntity>);
20
23
  }
@@ -18,6 +18,9 @@ var SponsorEntity = /** @class */ (function () {
18
18
  this.internationalCode = '';
19
19
  this.phoneNumer = '';
20
20
  this.email = '';
21
+ this.natiInfo = new general_1.NatiInfoEntity();
22
+ this.mobyoInfo = new general_1.MobyoInfoEntity();
23
+ this.desenfilaInfo = new general_1.DesenfilaInfoEntity();
21
24
  if (data) {
22
25
  for (var key in data) {
23
26
  if (data.hasOwnProperty(key) && key in this) {
@@ -1,4 +1,4 @@
1
- import { EDesenfilaFrom, EDocType } from '../../general';
1
+ import { EDesenfilaFrom, EDocType, IDesenfilaInfo, IMobyoInfo, INatiInfo } from '../../general';
2
2
  import { ISponsorFee } from './i-sponsor-fee';
3
3
  export interface ISponsor {
4
4
  id: string;
@@ -15,4 +15,7 @@ export interface ISponsor {
15
15
  email: string;
16
16
  natiRefId: string | null;
17
17
  mobyoRefId: string | null;
18
+ natiInfo: INatiInfo;
19
+ mobyoInfo: IMobyoInfo;
20
+ desenfilaInfo: IDesenfilaInfo;
18
21
  }
@@ -34,8 +34,8 @@ export declare class TransactionEntity implements ITransaction {
34
34
  transactionAmountRefunded: number;
35
35
  transactionStatus: ETransactionStatus;
36
36
  updatedAt: Date;
37
- desenfilaInfo: IDesenfilaInfo;
38
- natiInfo: INatiInfo;
39
- mobyoInfo: IMobyoInfo;
37
+ desenfilaInfo: IDesenfilaInfo | null;
38
+ natiInfo: INatiInfo | null;
39
+ mobyoInfo: IMobyoInfo | null;
40
40
  constructor(data?: Partial<TransactionEntity>);
41
41
  }
@@ -36,9 +36,9 @@ var TransactionEntity = /** @class */ (function () {
36
36
  this.transactionAmountRefunded = 0;
37
37
  this.transactionStatus = enums_1.ETransactionStatus.PROCESSING;
38
38
  this.updatedAt = new Date();
39
- this.desenfilaInfo = { merchantId: '', containerId: '' };
40
- this.natiInfo = { companyId: '', containerId: '' };
41
- this.mobyoInfo = { companyId: '', containerId: '' };
39
+ this.desenfilaInfo = new general_1.DesenfilaInfoEntity();
40
+ this.natiInfo = new general_1.NatiInfoEntity();
41
+ this.mobyoInfo = new general_1.MobyoInfoEntity();
42
42
  if (data) {
43
43
  for (var key in data) {
44
44
  if (data.hasOwnProperty(key) && key in this) {
@@ -19,9 +19,9 @@ export interface ITransaction {
19
19
  id: string;
20
20
  installments: number;
21
21
  liveMode: boolean;
22
- desenfilaInfo: IDesenfilaInfo;
23
- natiInfo: INatiInfo;
24
- mobyoInfo: IMobyoInfo;
22
+ desenfilaInfo: IDesenfilaInfo | null;
23
+ natiInfo: INatiInfo | null;
24
+ mobyoInfo: IMobyoInfo | null;
25
25
  moneyReleaseDate: Date | null;
26
26
  moneyReleaseStatus: EReleaseStatus;
27
27
  operationType: EOperationType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.3.10",
3
+ "version": "1.3.12",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",