cecon-interfaces 1.9.26 → 1.9.29

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.
Files changed (65) hide show
  1. package/dist/esm2022/general/enums/cycle.enum.mjs +9 -0
  2. package/dist/esm2022/general/enums/index.mjs +2 -1
  3. package/dist/esm2022/payio/cards/entities/card-aplicable-item.entity.mjs +14 -0
  4. package/dist/esm2022/payio/cards/entities/card-config.entity.mjs +26 -0
  5. package/dist/esm2022/payio/cards/entities/card-password.entity.mjs +15 -0
  6. package/dist/esm2022/payio/cards/entities/card-transaction.entity.mjs +24 -0
  7. package/dist/esm2022/payio/cards/entities/card.entity.mjs +26 -0
  8. package/dist/esm2022/payio/cards/entities/index.mjs +6 -0
  9. package/dist/esm2022/payio/cards/enums/index.mjs +3 -0
  10. package/dist/esm2022/payio/cards/enums/mode.enum.mjs +10 -0
  11. package/dist/esm2022/payio/cards/enums/status.enum.mjs +8 -0
  12. package/dist/esm2022/payio/cards/index.mjs +4 -0
  13. package/dist/esm2022/payio/cards/interfaces/i-card-aplicable-item.mjs +2 -0
  14. package/dist/esm2022/payio/cards/interfaces/i-card-config.mjs +2 -0
  15. package/dist/esm2022/payio/cards/interfaces/i-card-password.mjs +2 -0
  16. package/dist/esm2022/payio/cards/interfaces/i-card-transaction.mjs +2 -0
  17. package/dist/esm2022/payio/cards/interfaces/i-card.mjs +2 -0
  18. package/dist/esm2022/payio/cards/interfaces/index.mjs +2 -0
  19. package/dist/esm2022/payio/index.mjs +2 -1
  20. package/dist/esm2022/payio/terminals/entities/terminal.entity.mjs +2 -4
  21. package/dist/esm2022/payio/terminals/interfaces/i-terminal.mjs +1 -1
  22. package/dist/fesm2022/cecon-interfaces.mjs +130 -3
  23. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  24. package/dist/general/enums/cycle.enum.d.ts +7 -0
  25. package/dist/general/enums/cycle.enum.js +11 -0
  26. package/dist/general/enums/index.d.ts +1 -0
  27. package/dist/general/enums/index.js +3 -1
  28. package/dist/payio/cards/entities/card-aplicable-item.entity.d.ts +6 -0
  29. package/dist/payio/cards/entities/card-aplicable-item.entity.js +18 -0
  30. package/dist/payio/cards/entities/card-config.entity.d.ts +18 -0
  31. package/dist/payio/cards/entities/card-config.entity.js +30 -0
  32. package/dist/payio/cards/entities/card-password.entity.d.ts +7 -0
  33. package/dist/payio/cards/entities/card-password.entity.js +19 -0
  34. package/dist/payio/cards/entities/card-transaction.entity.d.ts +16 -0
  35. package/dist/payio/cards/entities/card-transaction.entity.js +28 -0
  36. package/dist/payio/cards/entities/card.entity.d.ts +18 -0
  37. package/dist/payio/cards/entities/card.entity.js +30 -0
  38. package/dist/payio/cards/entities/index.d.ts +5 -0
  39. package/dist/payio/cards/entities/index.js +13 -0
  40. package/dist/payio/cards/enums/index.d.ts +2 -0
  41. package/dist/payio/cards/enums/index.js +7 -0
  42. package/dist/payio/cards/enums/mode.enum.d.ts +8 -0
  43. package/dist/payio/cards/enums/mode.enum.js +12 -0
  44. package/dist/payio/cards/enums/status.enum.d.ts +6 -0
  45. package/dist/payio/cards/enums/status.enum.js +10 -0
  46. package/dist/payio/cards/index.d.ts +3 -0
  47. package/dist/payio/cards/index.js +19 -0
  48. package/dist/payio/cards/interfaces/i-card-aplicable-item.d.ts +4 -0
  49. package/dist/payio/cards/interfaces/i-card-aplicable-item.js +2 -0
  50. package/dist/payio/cards/interfaces/i-card-config.d.ts +18 -0
  51. package/dist/payio/cards/interfaces/i-card-config.js +2 -0
  52. package/dist/payio/cards/interfaces/i-card-password.d.ts +5 -0
  53. package/dist/payio/cards/interfaces/i-card-password.js +2 -0
  54. package/dist/payio/cards/interfaces/i-card-transaction.d.ts +14 -0
  55. package/dist/payio/cards/interfaces/i-card-transaction.js +2 -0
  56. package/dist/payio/cards/interfaces/i-card.d.ts +16 -0
  57. package/dist/payio/cards/interfaces/i-card.js +2 -0
  58. package/dist/payio/cards/interfaces/index.d.ts +5 -0
  59. package/dist/payio/cards/interfaces/index.js +2 -0
  60. package/dist/payio/index.d.ts +1 -0
  61. package/dist/payio/index.js +1 -0
  62. package/dist/payio/terminals/entities/terminal.entity.d.ts +1 -3
  63. package/dist/payio/terminals/entities/terminal.entity.js +1 -3
  64. package/dist/payio/terminals/interfaces/i-terminal.d.ts +1 -3
  65. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ export declare enum ECycle {
2
+ DAY = "DAY",
3
+ WEEK = "WEEK",
4
+ MONTH = "MONTH",
5
+ BIWEEK = "BIWEEK",
6
+ NONE = "NONE"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ECycle = void 0;
4
+ var ECycle;
5
+ (function (ECycle) {
6
+ ECycle["DAY"] = "DAY";
7
+ ECycle["WEEK"] = "WEEK";
8
+ ECycle["MONTH"] = "MONTH";
9
+ ECycle["BIWEEK"] = "BIWEEK";
10
+ ECycle["NONE"] = "NONE";
11
+ })(ECycle || (exports.ECycle = ECycle = {}));
@@ -3,6 +3,7 @@ export { EAmountMode } from './amount-mode.enum';
3
3
  export { EBankSlipStatus } from './bank-slip-status.enum';
4
4
  export { EBooleanString } from './boolean-string.enum';
5
5
  export { ECollectionsTypes } from './collections-types.enum';
6
+ export { ECycle } from './cycle.enum';
6
7
  export { EDocType } from './doc-type.enum';
7
8
  export { EDiscountType } from './e-discount-type.enum';
8
9
  export { EFiscalDocModelCode } from './fiscal-doc-model-code.enum';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ESubsStatus = exports.ESponsorshipValues = exports.ERole = exports.EPubSub = exports.EPaymentProvider = exports.EPlatform = exports.EPixKeyType = exports.ELegalEntiy = exports.EPaymentType = exports.EPaymentStatus = exports.EPaymentMode = exports.EPaymentChannel = exports.EOs = exports.EOperator = exports.ELeadOrigin = exports.EJwtStatus = exports.EIntervalType = exports.EIntDocType = exports.EFrom = exports.EFiscalDocModelCode = exports.EDiscountType = exports.EDocType = exports.ECollectionsTypes = exports.EBooleanString = exports.EBankSlipStatus = exports.EAmountMode = exports.EFcmSkill = void 0;
3
+ exports.ESubsStatus = exports.ESponsorshipValues = exports.ERole = exports.EPubSub = exports.EPaymentProvider = exports.EPlatform = exports.EPixKeyType = exports.ELegalEntiy = exports.EPaymentType = exports.EPaymentStatus = exports.EPaymentMode = exports.EPaymentChannel = exports.EOs = exports.EOperator = exports.ELeadOrigin = exports.EJwtStatus = exports.EIntervalType = exports.EIntDocType = exports.EFrom = exports.EFiscalDocModelCode = exports.EDiscountType = exports.EDocType = exports.ECycle = exports.ECollectionsTypes = exports.EBooleanString = exports.EBankSlipStatus = exports.EAmountMode = exports.EFcmSkill = void 0;
4
4
  var skill_enum_1 = require("../../fcm-token-message/enums/skill.enum");
5
5
  Object.defineProperty(exports, "EFcmSkill", { enumerable: true, get: function () { return skill_enum_1.EFcmSkill; } });
6
6
  var amount_mode_enum_1 = require("./amount-mode.enum");
@@ -11,6 +11,8 @@ var boolean_string_enum_1 = require("./boolean-string.enum");
11
11
  Object.defineProperty(exports, "EBooleanString", { enumerable: true, get: function () { return boolean_string_enum_1.EBooleanString; } });
12
12
  var collections_types_enum_1 = require("./collections-types.enum");
13
13
  Object.defineProperty(exports, "ECollectionsTypes", { enumerable: true, get: function () { return collections_types_enum_1.ECollectionsTypes; } });
14
+ var cycle_enum_1 = require("./cycle.enum");
15
+ Object.defineProperty(exports, "ECycle", { enumerable: true, get: function () { return cycle_enum_1.ECycle; } });
14
16
  var doc_type_enum_1 = require("./doc-type.enum");
15
17
  Object.defineProperty(exports, "EDocType", { enumerable: true, get: function () { return doc_type_enum_1.EDocType; } });
16
18
  var e_discount_type_enum_1 = require("./e-discount-type.enum");
@@ -0,0 +1,6 @@
1
+ import { IPayioCardApplicableItem } from '../interfaces';
2
+ export declare class PayioCardApplicableItemEntity implements IPayioCardApplicableItem {
3
+ externalCode: string;
4
+ name: string;
5
+ constructor(data?: Partial<PayioCardApplicableItemEntity>);
6
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioCardApplicableItemEntity = void 0;
4
+ var PayioCardApplicableItemEntity = /** @class */ (function () {
5
+ function PayioCardApplicableItemEntity(data) {
6
+ this.externalCode = '';
7
+ this.name = '';
8
+ if (data) {
9
+ for (var key in data) {
10
+ if (data.hasOwnProperty(key) && key in this) {
11
+ this[key] = data[key];
12
+ }
13
+ }
14
+ }
15
+ }
16
+ return PayioCardApplicableItemEntity;
17
+ }());
18
+ exports.PayioCardApplicableItemEntity = PayioCardApplicableItemEntity;
@@ -0,0 +1,18 @@
1
+ import { EAmountMode, ECycle } from '../../../general';
2
+ import { ECardMode } from '../enums';
3
+ import { IPayioCardApplicableItem, IPayioCardConfig, IPayioCardPassword } from '../interfaces';
4
+ export declare class PayioCardConfigEntity implements IPayioCardConfig {
5
+ amount: number;
6
+ amountType: EAmountMode;
7
+ appIds: string[];
8
+ applicableItems: IPayioCardApplicableItem[];
9
+ balance: number;
10
+ billingCycle: ECycle;
11
+ creditLimit: number;
12
+ description: string | null;
13
+ mode: ECardMode;
14
+ name: string;
15
+ password: IPayioCardPassword | null;
16
+ reference: string | null;
17
+ constructor(data?: Partial<PayioCardConfigEntity>);
18
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioCardConfigEntity = void 0;
4
+ var general_1 = require("../../../general");
5
+ var enums_1 = require("../enums");
6
+ var PayioCardConfigEntity = /** @class */ (function () {
7
+ function PayioCardConfigEntity(data) {
8
+ this.amount = 0;
9
+ this.amountType = general_1.EAmountMode.PERCENTAGE;
10
+ this.appIds = [];
11
+ this.applicableItems = [];
12
+ this.balance = 0;
13
+ this.billingCycle = general_1.ECycle.NONE;
14
+ this.creditLimit = 0;
15
+ this.description = null;
16
+ this.mode = enums_1.ECardMode.DISCOUNT;
17
+ this.name = '';
18
+ this.password = null;
19
+ this.reference = null;
20
+ if (data) {
21
+ for (var key in data) {
22
+ if (data.hasOwnProperty(key) && key in this) {
23
+ this[key] = data[key];
24
+ }
25
+ }
26
+ }
27
+ }
28
+ return PayioCardConfigEntity;
29
+ }());
30
+ exports.PayioCardConfigEntity = PayioCardConfigEntity;
@@ -0,0 +1,7 @@
1
+ import { IPayioCardPassword } from "../interfaces";
2
+ export declare class PayioCardPasswordEntity implements IPayioCardPassword {
3
+ basic?: string | null;
4
+ password: string | null;
5
+ user: string | null;
6
+ constructor(data?: Partial<PayioCardPasswordEntity>);
7
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioCardPasswordEntity = void 0;
4
+ var PayioCardPasswordEntity = /** @class */ (function () {
5
+ function PayioCardPasswordEntity(data) {
6
+ this.basic = null;
7
+ this.password = null;
8
+ this.user = null;
9
+ if (data) {
10
+ for (var key in data) {
11
+ if (data.hasOwnProperty(key) && key in this) {
12
+ this[key] = data[key];
13
+ }
14
+ }
15
+ }
16
+ }
17
+ return PayioCardPasswordEntity;
18
+ }());
19
+ exports.PayioCardPasswordEntity = PayioCardPasswordEntity;
@@ -0,0 +1,16 @@
1
+ import { IPayioCardTransaction } from "../interfaces/i-card-transaction";
2
+ export declare class PayioCardTransactionEntity implements IPayioCardTransaction {
3
+ active: boolean;
4
+ amount: number;
5
+ cardId: string;
6
+ companyId: string;
7
+ containerId: string | null;
8
+ createdAt: Date;
9
+ metadata?: any;
10
+ method: string;
11
+ referenceId: string;
12
+ remainingBalance: number;
13
+ remainingCredit: number;
14
+ updatedAt: Date;
15
+ constructor(data?: Partial<PayioCardTransactionEntity>);
16
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioCardTransactionEntity = void 0;
4
+ var PayioCardTransactionEntity = /** @class */ (function () {
5
+ function PayioCardTransactionEntity(data) {
6
+ this.active = false;
7
+ this.amount = 0;
8
+ this.cardId = '';
9
+ this.companyId = '';
10
+ this.containerId = null;
11
+ this.createdAt = new Date();
12
+ this.metadata = null;
13
+ this.method = '';
14
+ this.referenceId = '';
15
+ this.remainingBalance = 0;
16
+ this.remainingCredit = 0;
17
+ this.updatedAt = new Date();
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 PayioCardTransactionEntity;
27
+ }());
28
+ exports.PayioCardTransactionEntity = PayioCardTransactionEntity;
@@ -0,0 +1,18 @@
1
+ import { EDiscountCardStatus } from '../enums';
2
+ import { IPayioCardConfig } from '../interfaces';
3
+ import { IPayioCard } from '../interfaces/i-card';
4
+ export declare class PayioCardEntity implements IPayioCard {
5
+ activationId: string;
6
+ activationKey: string;
7
+ active: boolean;
8
+ cardNumber: string;
9
+ companyId: string;
10
+ config: IPayioCardConfig;
11
+ createdAt: Date;
12
+ cvv: string;
13
+ id: string;
14
+ revokeAt: Date | null;
15
+ status: EDiscountCardStatus;
16
+ updatedAt: Date;
17
+ constructor(data?: Partial<PayioCardEntity>);
18
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioCardEntity = void 0;
4
+ var enums_1 = require("../enums");
5
+ var card_config_entity_1 = require("./card-config.entity");
6
+ var PayioCardEntity = /** @class */ (function () {
7
+ function PayioCardEntity(data) {
8
+ this.activationId = '';
9
+ this.activationKey = '';
10
+ this.active = false;
11
+ this.cardNumber = '';
12
+ this.companyId = '';
13
+ this.config = new card_config_entity_1.PayioCardConfigEntity();
14
+ this.createdAt = new Date();
15
+ this.cvv = '';
16
+ this.id = '';
17
+ this.revokeAt = null;
18
+ this.status = enums_1.EDiscountCardStatus.PENDING;
19
+ this.updatedAt = new Date();
20
+ if (data) {
21
+ for (var key in data) {
22
+ if (data.hasOwnProperty(key) && key in this) {
23
+ this[key] = data[key];
24
+ }
25
+ }
26
+ }
27
+ }
28
+ return PayioCardEntity;
29
+ }());
30
+ exports.PayioCardEntity = PayioCardEntity;
@@ -0,0 +1,5 @@
1
+ export { PayioCardEntity } from './card.entity';
2
+ export { PayioCardConfigEntity } from './card-config.entity';
3
+ export { PayioCardPasswordEntity } from './card-password.entity';
4
+ export { PayioCardTransactionEntity } from './card-transaction.entity';
5
+ export { PayioCardApplicableItemEntity } from './card-aplicable-item.entity';
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioCardApplicableItemEntity = exports.PayioCardTransactionEntity = exports.PayioCardPasswordEntity = exports.PayioCardConfigEntity = exports.PayioCardEntity = void 0;
4
+ var card_entity_1 = require("./card.entity");
5
+ Object.defineProperty(exports, "PayioCardEntity", { enumerable: true, get: function () { return card_entity_1.PayioCardEntity; } });
6
+ var card_config_entity_1 = require("./card-config.entity");
7
+ Object.defineProperty(exports, "PayioCardConfigEntity", { enumerable: true, get: function () { return card_config_entity_1.PayioCardConfigEntity; } });
8
+ var card_password_entity_1 = require("./card-password.entity");
9
+ Object.defineProperty(exports, "PayioCardPasswordEntity", { enumerable: true, get: function () { return card_password_entity_1.PayioCardPasswordEntity; } });
10
+ var card_transaction_entity_1 = require("./card-transaction.entity");
11
+ Object.defineProperty(exports, "PayioCardTransactionEntity", { enumerable: true, get: function () { return card_transaction_entity_1.PayioCardTransactionEntity; } });
12
+ var card_aplicable_item_entity_1 = require("./card-aplicable-item.entity");
13
+ Object.defineProperty(exports, "PayioCardApplicableItemEntity", { enumerable: true, get: function () { return card_aplicable_item_entity_1.PayioCardApplicableItemEntity; } });
@@ -0,0 +1,2 @@
1
+ export { ECardMode } from './mode.enum';
2
+ export { EDiscountCardStatus } from './status.enum';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EDiscountCardStatus = exports.ECardMode = void 0;
4
+ var mode_enum_1 = require("./mode.enum");
5
+ Object.defineProperty(exports, "ECardMode", { enumerable: true, get: function () { return mode_enum_1.ECardMode; } });
6
+ var status_enum_1 = require("./status.enum");
7
+ Object.defineProperty(exports, "EDiscountCardStatus", { enumerable: true, get: function () { return status_enum_1.EDiscountCardStatus; } });
@@ -0,0 +1,8 @@
1
+ export declare enum ECardMode {
2
+ DISCOUNT = "DISCOUNT",
3
+ PREPAID = "PREPAID",
4
+ POSTPAID = "POSTPAID",
5
+ HYBRID = "HYBRID",
6
+ RECURRENT = "RECURRENT",
7
+ MANAGER = "MANAGER"
8
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ECardMode = void 0;
4
+ var ECardMode;
5
+ (function (ECardMode) {
6
+ ECardMode["DISCOUNT"] = "DISCOUNT";
7
+ ECardMode["PREPAID"] = "PREPAID";
8
+ ECardMode["POSTPAID"] = "POSTPAID";
9
+ ECardMode["HYBRID"] = "HYBRID";
10
+ ECardMode["RECURRENT"] = "RECURRENT";
11
+ ECardMode["MANAGER"] = "MANAGER";
12
+ })(ECardMode || (exports.ECardMode = ECardMode = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum EDiscountCardStatus {
2
+ ACTIVE = "active",
3
+ PENDING = "pending",
4
+ REVOKED = "revoked",
5
+ INACTIVE = "inactive"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EDiscountCardStatus = void 0;
4
+ var EDiscountCardStatus;
5
+ (function (EDiscountCardStatus) {
6
+ EDiscountCardStatus["ACTIVE"] = "active";
7
+ EDiscountCardStatus["PENDING"] = "pending";
8
+ EDiscountCardStatus["REVOKED"] = "revoked";
9
+ EDiscountCardStatus["INACTIVE"] = "inactive";
10
+ })(EDiscountCardStatus || (exports.EDiscountCardStatus = EDiscountCardStatus = {}));
@@ -0,0 +1,3 @@
1
+ export * from './entities';
2
+ export * from './enums';
3
+ export * from './interfaces';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entities"), exports);
18
+ __exportStar(require("./enums"), exports);
19
+ __exportStar(require("./interfaces"), exports);
@@ -0,0 +1,4 @@
1
+ export interface IPayioCardApplicableItem {
2
+ externalCode: string;
3
+ name: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ import { EAmountMode, ECycle } from '../../../general';
2
+ import { ECardMode } from '../enums';
3
+ import { IPayioCardApplicableItem } from './i-card-aplicable-item';
4
+ import { IPayioCardPassword } from './i-card-password';
5
+ export interface IPayioCardConfig {
6
+ amount: number;
7
+ amountType: EAmountMode;
8
+ appIds: string[];
9
+ applicableItems?: IPayioCardApplicableItem[];
10
+ balance?: number;
11
+ creditLimit?: number;
12
+ description?: string | null;
13
+ mode: ECardMode;
14
+ name: string;
15
+ password?: IPayioCardPassword | null;
16
+ reference: string | null;
17
+ billingCycle: ECycle;
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface IPayioCardPassword {
2
+ basic?: string | null;
3
+ password: string | null;
4
+ user: string | null;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ export interface IPayioCardTransaction {
2
+ active: boolean;
3
+ amount: number;
4
+ cardId: string;
5
+ companyId: string;
6
+ containerId: string | null;
7
+ createdAt: Date;
8
+ metadata?: any;
9
+ method: string;
10
+ referenceId: string;
11
+ remainingBalance: number;
12
+ remainingCredit: number;
13
+ updatedAt: Date;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ import { EDiscountCardStatus } from '../enums';
2
+ import { IPayioCardConfig } from './i-card-config';
3
+ export interface IPayioCard {
4
+ activationId: string;
5
+ activationKey: string;
6
+ active: boolean;
7
+ cardNumber: string;
8
+ companyId: string;
9
+ config: IPayioCardConfig;
10
+ createdAt: Date;
11
+ cvv: string;
12
+ id: string;
13
+ revokeAt: Date | null;
14
+ status: EDiscountCardStatus;
15
+ updatedAt: Date;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export { IPayioCard } from './i-card';
2
+ export { IPayioCardApplicableItem } from './i-card-aplicable-item';
3
+ export { IPayioCardConfig } from './i-card-config';
4
+ export { IPayioCardPassword } from './i-card-password';
5
+ export { IPayioCardTransaction } from './i-card-transaction';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -25,3 +25,4 @@ export * from './terminals';
25
25
  export * from './big-chef-config';
26
26
  export * from './activation-batch';
27
27
  export * from './preparation-place';
28
+ export * from './cards';
@@ -41,3 +41,4 @@ __exportStar(require("./terminals"), exports);
41
41
  __exportStar(require("./big-chef-config"), exports);
42
42
  __exportStar(require("./activation-batch"), exports);
43
43
  __exportStar(require("./preparation-place"), exports);
44
+ __exportStar(require("./cards"), exports);
@@ -1,11 +1,9 @@
1
- import { EPayioActivationKeyStatus } from '../../activation-key';
2
1
  import { EPayioVisionTerminalModel } from '../enum';
3
2
  import { EPayioVisionTerminalOperation } from '../enum/operation.enum';
4
3
  import { IPayioTerminal } from '../interfaces/i-terminal';
5
4
  export declare class PayioTerminalEntity implements IPayioTerminal {
6
5
  activationKey: string | null;
7
- activationKeyId: string | null;
8
- activationKeyStatus: EPayioActivationKeyStatus;
6
+ activationId: string | null;
9
7
  active: boolean;
10
8
  appId: string;
11
9
  companyId: string;
@@ -1,14 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioTerminalEntity = void 0;
4
- var activation_key_1 = require("../../activation-key");
5
4
  var enum_1 = require("../enum");
6
5
  var operation_enum_1 = require("../enum/operation.enum");
7
6
  var PayioTerminalEntity = /** @class */ (function () {
8
7
  function PayioTerminalEntity(data) {
9
8
  this.activationKey = null;
10
- this.activationKeyId = null;
11
- this.activationKeyStatus = activation_key_1.EPayioActivationKeyStatus.NONE;
9
+ this.activationId = null;
12
10
  this.active = false;
13
11
  this.appId = '';
14
12
  this.companyId = '';
@@ -1,10 +1,8 @@
1
- import { EPayioActivationKeyStatus } from '../../activation-key';
2
1
  import { EPayioVisionTerminalModel } from '../enum';
3
2
  import { EPayioVisionTerminalOperation } from '../enum/operation.enum';
4
3
  export interface IPayioTerminal {
5
4
  active: boolean;
6
- activationKeyId: string | null;
7
- activationKeyStatus: EPayioActivationKeyStatus;
5
+ activationId: string | null;
8
6
  activationKey: string | null;
9
7
  appId: string;
10
8
  companyId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.9.26",
3
+ "version": "1.9.29",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",