cecon-interfaces 1.9.29 → 1.9.30

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 (97) hide show
  1. package/dist/esm2022/general/enums/gender.enum.mjs +9 -0
  2. package/dist/esm2022/general/enums/index.mjs +2 -1
  3. package/dist/esm2022/payio/cards/entities/card-auth.entity.mjs +15 -0
  4. package/dist/esm2022/payio/cards/entities/card-config.entity.mjs +13 -6
  5. package/dist/esm2022/payio/cards/entities/card-info.entity.mjs +14 -0
  6. package/dist/esm2022/payio/cards/entities/card.entity.mjs +9 -5
  7. package/dist/esm2022/payio/cards/entities/index.mjs +5 -5
  8. package/dist/esm2022/payio/cards/enums/index.mjs +2 -2
  9. package/dist/esm2022/payio/cards/enums/mode.enum.mjs +1 -2
  10. package/dist/esm2022/payio/cards/enums/status.enum.mjs +15 -8
  11. package/dist/esm2022/payio/cards/interfaces/i-card-auth.mjs +2 -0
  12. package/dist/esm2022/payio/cards/interfaces/i-card-config.mjs +1 -1
  13. package/dist/esm2022/payio/cards/interfaces/i-card-info.mjs +2 -0
  14. package/dist/esm2022/payio/cards/interfaces/i-card.mjs +1 -1
  15. package/dist/esm2022/payio/cards/interfaces/index.mjs +1 -1
  16. package/dist/esm2022/payio/cards-transactions/entities/card-transaction-payment.entity.mjs +22 -0
  17. package/dist/esm2022/payio/cards-transactions/entities/card-transaction.entity.mjs +31 -0
  18. package/dist/esm2022/payio/cards-transactions/entities/index.mjs +3 -0
  19. package/dist/esm2022/payio/cards-transactions/enums/index.mjs +2 -0
  20. package/dist/esm2022/payio/cards-transactions/enums/transaction-type.enum.mjs +9 -0
  21. package/dist/esm2022/payio/cards-transactions/index.mjs +4 -0
  22. package/dist/esm2022/payio/cards-transactions/interfaces/i-card-payment.mjs +2 -0
  23. package/dist/esm2022/payio/cards-transactions/interfaces/i-card-transaction.mjs +2 -0
  24. package/dist/esm2022/payio/cards-transactions/interfaces/index.mjs +2 -0
  25. package/dist/esm2022/payio/consumers/entities/consumer.entity.mjs +29 -0
  26. package/dist/esm2022/payio/consumers/entities/index.mjs +2 -0
  27. package/dist/esm2022/payio/consumers/index.mjs +3 -0
  28. package/dist/esm2022/payio/consumers/interfaces/i-consumer.mjs +2 -0
  29. package/dist/esm2022/payio/consumers/interfaces/index.mjs +2 -0
  30. package/dist/esm2022/payio/index.mjs +3 -1
  31. package/dist/fesm2022/cecon-interfaces.mjs +145 -42
  32. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  33. package/dist/general/enums/gender.enum.d.ts +7 -0
  34. package/dist/general/enums/gender.enum.js +11 -0
  35. package/dist/general/enums/index.d.ts +1 -0
  36. package/dist/general/enums/index.js +3 -1
  37. package/dist/payio/cards/entities/card-auth.entity.d.ts +7 -0
  38. package/dist/payio/cards/entities/{card-password.entity.js → card-auth.entity.js} +5 -5
  39. package/dist/payio/cards/entities/card-config.entity.d.ts +13 -6
  40. package/dist/payio/cards/entities/card-config.entity.js +11 -5
  41. package/dist/payio/cards/entities/card-info.entity.d.ts +6 -0
  42. package/dist/payio/cards/entities/card-info.entity.js +18 -0
  43. package/dist/payio/cards/entities/card.entity.d.ts +8 -4
  44. package/dist/payio/cards/entities/card.entity.js +7 -3
  45. package/dist/payio/cards/entities/index.d.ts +4 -4
  46. package/dist/payio/cards/entities/index.js +9 -9
  47. package/dist/payio/cards/enums/index.d.ts +1 -1
  48. package/dist/payio/cards/enums/index.js +2 -2
  49. package/dist/payio/cards/enums/mode.enum.d.ts +0 -1
  50. package/dist/payio/cards/enums/mode.enum.js +0 -1
  51. package/dist/payio/cards/enums/status.enum.d.ts +12 -5
  52. package/dist/payio/cards/enums/status.enum.js +15 -8
  53. package/dist/payio/cards/interfaces/{i-card-password.d.ts → i-card-auth.d.ts} +1 -1
  54. package/dist/payio/cards/interfaces/i-card-auth.js +2 -0
  55. package/dist/payio/cards/interfaces/i-card-config.d.ts +14 -7
  56. package/dist/payio/cards/interfaces/i-card-info.d.ts +4 -0
  57. package/dist/payio/cards/interfaces/i-card-info.js +2 -0
  58. package/dist/payio/cards/interfaces/i-card.d.ts +5 -4
  59. package/dist/payio/cards/interfaces/index.d.ts +2 -2
  60. package/dist/payio/cards-transactions/entities/card-transaction-payment.entity.d.ts +14 -0
  61. package/dist/payio/cards-transactions/entities/card-transaction-payment.entity.js +26 -0
  62. package/dist/payio/cards-transactions/entities/card-transaction.entity.d.ts +23 -0
  63. package/dist/payio/{cards → cards-transactions}/entities/card-transaction.entity.js +14 -8
  64. package/dist/payio/cards-transactions/entities/index.d.ts +2 -0
  65. package/dist/payio/cards-transactions/entities/index.js +7 -0
  66. package/dist/payio/cards-transactions/enums/index.d.ts +1 -0
  67. package/dist/payio/cards-transactions/enums/index.js +5 -0
  68. package/dist/payio/cards-transactions/enums/transaction-type.enum.d.ts +7 -0
  69. package/dist/payio/cards-transactions/enums/transaction-type.enum.js +11 -0
  70. package/dist/payio/cards-transactions/index.d.ts +3 -0
  71. package/dist/payio/cards-transactions/index.js +19 -0
  72. package/dist/payio/cards-transactions/interfaces/i-card-payment.d.ts +12 -0
  73. package/dist/payio/cards-transactions/interfaces/i-card-transaction.d.ts +22 -0
  74. package/dist/payio/cards-transactions/interfaces/index.d.ts +2 -0
  75. package/dist/payio/cards-transactions/interfaces/index.js +2 -0
  76. package/dist/payio/consumers/entities/consumer.entity.d.ts +21 -0
  77. package/dist/payio/consumers/entities/consumer.entity.js +33 -0
  78. package/dist/payio/consumers/entities/index.d.ts +1 -0
  79. package/dist/payio/consumers/entities/index.js +5 -0
  80. package/dist/payio/consumers/index.d.ts +2 -0
  81. package/dist/payio/consumers/index.js +18 -0
  82. package/dist/payio/consumers/interfaces/i-consumer.d.ts +17 -0
  83. package/dist/payio/consumers/interfaces/i-consumer.js +2 -0
  84. package/dist/payio/consumers/interfaces/index.d.ts +1 -0
  85. package/dist/payio/consumers/interfaces/index.js +2 -0
  86. package/dist/payio/index.d.ts +2 -0
  87. package/dist/payio/index.js +2 -0
  88. package/package.json +1 -1
  89. package/dist/esm2022/payio/cards/entities/card-password.entity.mjs +0 -15
  90. package/dist/esm2022/payio/cards/entities/card-transaction.entity.mjs +0 -24
  91. package/dist/esm2022/payio/cards/interfaces/i-card-password.mjs +0 -2
  92. package/dist/esm2022/payio/cards/interfaces/i-card-transaction.mjs +0 -2
  93. package/dist/payio/cards/entities/card-password.entity.d.ts +0 -7
  94. package/dist/payio/cards/entities/card-transaction.entity.d.ts +0 -16
  95. package/dist/payio/cards/interfaces/i-card-transaction.d.ts +0 -14
  96. /package/dist/payio/{cards/interfaces/i-card-password.js → cards-transactions/interfaces/i-card-payment.js} +0 -0
  97. /package/dist/payio/{cards → cards-transactions}/interfaces/i-card-transaction.js +0 -0
@@ -0,0 +1,7 @@
1
+ export declare enum EGender {
2
+ MALE = "MALE",
3
+ FEMALE = "FEMALE",
4
+ OTHER = "OTHER",
5
+ NOT_INFORMED = "NOT_INFORMED",
6
+ NOT_APPLICABLE = "NOT_APPLICABLE"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EGender = void 0;
4
+ var EGender;
5
+ (function (EGender) {
6
+ EGender["MALE"] = "MALE";
7
+ EGender["FEMALE"] = "FEMALE";
8
+ EGender["OTHER"] = "OTHER";
9
+ EGender["NOT_INFORMED"] = "NOT_INFORMED";
10
+ EGender["NOT_APPLICABLE"] = "NOT_APPLICABLE";
11
+ })(EGender || (exports.EGender = EGender = {}));
@@ -8,6 +8,7 @@ export { EDocType } from './doc-type.enum';
8
8
  export { EDiscountType } from './e-discount-type.enum';
9
9
  export { EFiscalDocModelCode } from './fiscal-doc-model-code.enum';
10
10
  export { EFrom } from './from.enum';
11
+ export { EGender } from './gender.enum';
11
12
  export { EIntDocType } from './international-doc-type.enum';
12
13
  export { EIntervalType } from './interval-type.enum';
13
14
  export { EJwtStatus } from './jwt-status.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.ECycle = 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.EGender = 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");
@@ -21,6 +21,8 @@ var fiscal_doc_model_code_enum_1 = require("./fiscal-doc-model-code.enum");
21
21
  Object.defineProperty(exports, "EFiscalDocModelCode", { enumerable: true, get: function () { return fiscal_doc_model_code_enum_1.EFiscalDocModelCode; } });
22
22
  var from_enum_1 = require("./from.enum");
23
23
  Object.defineProperty(exports, "EFrom", { enumerable: true, get: function () { return from_enum_1.EFrom; } });
24
+ var gender_enum_1 = require("./gender.enum");
25
+ Object.defineProperty(exports, "EGender", { enumerable: true, get: function () { return gender_enum_1.EGender; } });
24
26
  var international_doc_type_enum_1 = require("./international-doc-type.enum");
25
27
  Object.defineProperty(exports, "EIntDocType", { enumerable: true, get: function () { return international_doc_type_enum_1.EIntDocType; } });
26
28
  var interval_type_enum_1 = require("./interval-type.enum");
@@ -0,0 +1,7 @@
1
+ import { IPayioCardAuth } from '../interfaces';
2
+ export declare class PayioCardAuthEntity implements IPayioCardAuth {
3
+ basic?: string | null;
4
+ password: string | null;
5
+ user: string | null;
6
+ constructor(data?: Partial<PayioCardAuthEntity>);
7
+ }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PayioCardPasswordEntity = void 0;
4
- var PayioCardPasswordEntity = /** @class */ (function () {
5
- function PayioCardPasswordEntity(data) {
3
+ exports.PayioCardAuthEntity = void 0;
4
+ var PayioCardAuthEntity = /** @class */ (function () {
5
+ function PayioCardAuthEntity(data) {
6
6
  this.basic = null;
7
7
  this.password = null;
8
8
  this.user = null;
@@ -14,6 +14,6 @@ var PayioCardPasswordEntity = /** @class */ (function () {
14
14
  }
15
15
  }
16
16
  }
17
- return PayioCardPasswordEntity;
17
+ return PayioCardAuthEntity;
18
18
  }());
19
- exports.PayioCardPasswordEntity = PayioCardPasswordEntity;
19
+ exports.PayioCardAuthEntity = PayioCardAuthEntity;
@@ -1,18 +1,25 @@
1
1
  import { EAmountMode, ECycle } from '../../../general';
2
2
  import { ECardMode } from '../enums';
3
- import { IPayioCardApplicableItem, IPayioCardConfig, IPayioCardPassword } from '../interfaces';
3
+ import { IPayioCardApplicableItem, IPayioCardAuth, IPayioCardConfig } from '../interfaces';
4
4
  export declare class PayioCardConfigEntity implements IPayioCardConfig {
5
- amount: number;
6
- amountType: EAmountMode;
7
5
  appIds: string[];
8
6
  applicableItems: IPayioCardApplicableItem[];
7
+ auth?: IPayioCardAuth | null | undefined;
9
8
  balance: number;
10
9
  billingCycle: ECycle;
10
+ companiesIds: string[];
11
+ consumerId: string | null;
12
+ consumerMetadata: string | null;
11
13
  creditLimit: number;
12
14
  description: string | null;
15
+ discountAmount: number;
16
+ discountAmountType: EAmountMode;
17
+ dueDate: Date;
18
+ externalReference: string | null;
19
+ invoiceLogs: string[];
20
+ label: string;
13
21
  mode: ECardMode;
14
- name: string;
15
- password: IPayioCardPassword | null;
16
- reference: string | null;
22
+ password: string;
23
+ webhookUrls: string[];
17
24
  constructor(data?: Partial<PayioCardConfigEntity>);
18
25
  }
@@ -5,18 +5,24 @@ var general_1 = require("../../../general");
5
5
  var enums_1 = require("../enums");
6
6
  var PayioCardConfigEntity = /** @class */ (function () {
7
7
  function PayioCardConfigEntity(data) {
8
- this.amount = 0;
9
- this.amountType = general_1.EAmountMode.PERCENTAGE;
10
8
  this.appIds = [];
11
9
  this.applicableItems = [];
12
10
  this.balance = 0;
13
11
  this.billingCycle = general_1.ECycle.NONE;
12
+ this.companiesIds = [];
13
+ this.consumerId = null;
14
+ this.consumerMetadata = null;
14
15
  this.creditLimit = 0;
15
16
  this.description = null;
17
+ this.discountAmount = 0;
18
+ this.discountAmountType = general_1.EAmountMode.PERCENTAGE;
19
+ this.dueDate = new Date();
20
+ this.externalReference = null;
21
+ this.invoiceLogs = [];
22
+ this.label = '';
16
23
  this.mode = enums_1.ECardMode.DISCOUNT;
17
- this.name = '';
18
- this.password = null;
19
- this.reference = null;
24
+ this.password = '';
25
+ this.webhookUrls = [];
20
26
  if (data) {
21
27
  for (var key in data) {
22
28
  if (data.hasOwnProperty(key) && key in this) {
@@ -0,0 +1,6 @@
1
+ import { IPayioCardInfo } from "../interfaces";
2
+ export declare class PayioCardInfoEntity implements IPayioCardInfo {
3
+ companyId: string;
4
+ containerId: string;
5
+ constructor(data?: Partial<PayioCardInfoEntity>);
6
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioCardInfoEntity = void 0;
4
+ var PayioCardInfoEntity = /** @class */ (function () {
5
+ function PayioCardInfoEntity(data) {
6
+ this.companyId = '';
7
+ this.containerId = '';
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 PayioCardInfoEntity;
17
+ }());
18
+ exports.PayioCardInfoEntity = PayioCardInfoEntity;
@@ -1,18 +1,22 @@
1
- import { EDiscountCardStatus } from '../enums';
1
+ import { EPayioCardStatus } from '../enums';
2
2
  import { IPayioCardConfig } from '../interfaces';
3
3
  import { IPayioCard } from '../interfaces/i-card';
4
+ import { PayioCardInfoEntity } from './card-info.entity';
4
5
  export declare class PayioCardEntity implements IPayioCard {
5
6
  activationId: string;
6
7
  activationKey: string;
7
8
  active: boolean;
8
9
  cardNumber: string;
9
- companyId: string;
10
+ companiesIds: string[];
10
11
  config: IPayioCardConfig;
12
+ consumerId: string | null;
13
+ consumerMetadata: string | null;
11
14
  createdAt: Date;
12
15
  cvv: string;
13
16
  id: string;
14
- revokeAt: Date | null;
15
- status: EDiscountCardStatus;
17
+ info: PayioCardInfoEntity;
18
+ logs: string[];
19
+ status: EPayioCardStatus;
16
20
  updatedAt: Date;
17
21
  constructor(data?: Partial<PayioCardEntity>);
18
22
  }
@@ -3,19 +3,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioCardEntity = void 0;
4
4
  var enums_1 = require("../enums");
5
5
  var card_config_entity_1 = require("./card-config.entity");
6
+ var card_info_entity_1 = require("./card-info.entity");
6
7
  var PayioCardEntity = /** @class */ (function () {
7
8
  function PayioCardEntity(data) {
8
9
  this.activationId = '';
9
10
  this.activationKey = '';
10
11
  this.active = false;
11
12
  this.cardNumber = '';
12
- this.companyId = '';
13
+ this.companiesIds = [];
13
14
  this.config = new card_config_entity_1.PayioCardConfigEntity();
15
+ this.consumerId = null;
16
+ this.consumerMetadata = null;
14
17
  this.createdAt = new Date();
15
18
  this.cvv = '';
16
19
  this.id = '';
17
- this.revokeAt = null;
18
- this.status = enums_1.EDiscountCardStatus.PENDING;
20
+ this.info = new card_info_entity_1.PayioCardInfoEntity();
21
+ this.logs = [];
22
+ this.status = enums_1.EPayioCardStatus.PENDING;
19
23
  this.updatedAt = new Date();
20
24
  if (data) {
21
25
  for (var key in data) {
@@ -1,5 +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
1
  export { PayioCardApplicableItemEntity } from './card-aplicable-item.entity';
2
+ export { PayioCardAuthEntity } from './card-auth.entity';
3
+ export { PayioCardConfigEntity } from './card-config.entity';
4
+ export { PayioCardInfoEntity } from './card-info.entity';
5
+ export { PayioCardEntity } from './card.entity';
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
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; } });
3
+ exports.PayioCardEntity = exports.PayioCardInfoEntity = exports.PayioCardConfigEntity = exports.PayioCardAuthEntity = exports.PayioCardApplicableItemEntity = void 0;
12
4
  var card_aplicable_item_entity_1 = require("./card-aplicable-item.entity");
13
5
  Object.defineProperty(exports, "PayioCardApplicableItemEntity", { enumerable: true, get: function () { return card_aplicable_item_entity_1.PayioCardApplicableItemEntity; } });
6
+ var card_auth_entity_1 = require("./card-auth.entity");
7
+ Object.defineProperty(exports, "PayioCardAuthEntity", { enumerable: true, get: function () { return card_auth_entity_1.PayioCardAuthEntity; } });
8
+ var card_config_entity_1 = require("./card-config.entity");
9
+ Object.defineProperty(exports, "PayioCardConfigEntity", { enumerable: true, get: function () { return card_config_entity_1.PayioCardConfigEntity; } });
10
+ var card_info_entity_1 = require("./card-info.entity");
11
+ Object.defineProperty(exports, "PayioCardInfoEntity", { enumerable: true, get: function () { return card_info_entity_1.PayioCardInfoEntity; } });
12
+ var card_entity_1 = require("./card.entity");
13
+ Object.defineProperty(exports, "PayioCardEntity", { enumerable: true, get: function () { return card_entity_1.PayioCardEntity; } });
@@ -1,2 +1,2 @@
1
1
  export { ECardMode } from './mode.enum';
2
- export { EDiscountCardStatus } from './status.enum';
2
+ export { EPayioCardStatus } from './status.enum';
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EDiscountCardStatus = exports.ECardMode = void 0;
3
+ exports.EPayioCardStatus = exports.ECardMode = void 0;
4
4
  var mode_enum_1 = require("./mode.enum");
5
5
  Object.defineProperty(exports, "ECardMode", { enumerable: true, get: function () { return mode_enum_1.ECardMode; } });
6
6
  var status_enum_1 = require("./status.enum");
7
- Object.defineProperty(exports, "EDiscountCardStatus", { enumerable: true, get: function () { return status_enum_1.EDiscountCardStatus; } });
7
+ Object.defineProperty(exports, "EPayioCardStatus", { enumerable: true, get: function () { return status_enum_1.EPayioCardStatus; } });
@@ -3,6 +3,5 @@ export declare enum ECardMode {
3
3
  PREPAID = "PREPAID",
4
4
  POSTPAID = "POSTPAID",
5
5
  HYBRID = "HYBRID",
6
- RECURRENT = "RECURRENT",
7
6
  MANAGER = "MANAGER"
8
7
  }
@@ -7,6 +7,5 @@ var ECardMode;
7
7
  ECardMode["PREPAID"] = "PREPAID";
8
8
  ECardMode["POSTPAID"] = "POSTPAID";
9
9
  ECardMode["HYBRID"] = "HYBRID";
10
- ECardMode["RECURRENT"] = "RECURRENT";
11
10
  ECardMode["MANAGER"] = "MANAGER";
12
11
  })(ECardMode || (exports.ECardMode = ECardMode = {}));
@@ -1,6 +1,13 @@
1
- export declare enum EDiscountCardStatus {
2
- ACTIVE = "active",
3
- PENDING = "pending",
4
- REVOKED = "revoked",
5
- INACTIVE = "inactive"
1
+ export declare enum EPayioCardStatus {
2
+ ACTIVE = "ACTIVE",
3
+ REVOKED = "REVOKED",
4
+ INACTIVE = "INACTIVE",
5
+ READY = "READY",
6
+ DISPATCHED = "DISPATCHED",
7
+ CANCELLED = "CANCELLED",
8
+ DELIVERED = "DELIVERED",
9
+ PENDING = "PENDING",
10
+ BLOCKED = "BLOCKED",
11
+ SUSPENDED = "SUSPENDED",
12
+ IN_PRODUCTION = "IN_PRODUCTION"
6
13
  }
@@ -1,10 +1,17 @@
1
1
  "use strict";
2
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 = {}));
3
+ exports.EPayioCardStatus = void 0;
4
+ var EPayioCardStatus;
5
+ (function (EPayioCardStatus) {
6
+ EPayioCardStatus["ACTIVE"] = "ACTIVE";
7
+ EPayioCardStatus["REVOKED"] = "REVOKED";
8
+ EPayioCardStatus["INACTIVE"] = "INACTIVE";
9
+ EPayioCardStatus["READY"] = "READY";
10
+ EPayioCardStatus["DISPATCHED"] = "DISPATCHED";
11
+ EPayioCardStatus["CANCELLED"] = "CANCELLED";
12
+ EPayioCardStatus["DELIVERED"] = "DELIVERED";
13
+ EPayioCardStatus["PENDING"] = "PENDING";
14
+ EPayioCardStatus["BLOCKED"] = "BLOCKED";
15
+ EPayioCardStatus["SUSPENDED"] = "SUSPENDED";
16
+ EPayioCardStatus["IN_PRODUCTION"] = "IN_PRODUCTION";
17
+ })(EPayioCardStatus || (exports.EPayioCardStatus = EPayioCardStatus = {}));
@@ -1,4 +1,4 @@
1
- export interface IPayioCardPassword {
1
+ export interface IPayioCardAuth {
2
2
  basic?: string | null;
3
3
  password: string | null;
4
4
  user: string | null;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,18 +1,25 @@
1
1
  import { EAmountMode, ECycle } from '../../../general';
2
2
  import { ECardMode } from '../enums';
3
3
  import { IPayioCardApplicableItem } from './i-card-aplicable-item';
4
- import { IPayioCardPassword } from './i-card-password';
4
+ import { IPayioCardAuth } from './i-card-auth';
5
5
  export interface IPayioCardConfig {
6
- amount: number;
7
- amountType: EAmountMode;
6
+ discountAmount: number;
7
+ discountAmountType: EAmountMode;
8
8
  appIds: string[];
9
9
  applicableItems?: IPayioCardApplicableItem[];
10
+ auth?: IPayioCardAuth | null;
10
11
  balance?: number;
12
+ billingCycle: ECycle;
13
+ dueDate: Date;
14
+ companiesIds: string[];
15
+ consumerId: string | null;
16
+ consumerMetadata: string | null;
11
17
  creditLimit?: number;
12
18
  description?: string | null;
13
19
  mode: ECardMode;
14
- name: string;
15
- password?: IPayioCardPassword | null;
16
- reference: string | null;
17
- billingCycle: ECycle;
20
+ label: string;
21
+ password: string;
22
+ invoiceLogs: string[];
23
+ externalReference: string | null;
24
+ webhookUrls: string[];
18
25
  }
@@ -0,0 +1,4 @@
1
+ export interface IPayioCardInfo {
2
+ companyId: string;
3
+ containerId: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +1,17 @@
1
- import { EDiscountCardStatus } from '../enums';
1
+ import { EPayioCardStatus } from '../enums';
2
2
  import { IPayioCardConfig } from './i-card-config';
3
+ import { IPayioCardInfo } from './i-card-info';
3
4
  export interface IPayioCard {
4
5
  activationId: string;
5
6
  activationKey: string;
6
7
  active: boolean;
7
8
  cardNumber: string;
8
- companyId: string;
9
9
  config: IPayioCardConfig;
10
10
  createdAt: Date;
11
11
  cvv: string;
12
12
  id: string;
13
- revokeAt: Date | null;
14
- status: EDiscountCardStatus;
13
+ info: IPayioCardInfo;
14
+ logs: string[];
15
+ status: EPayioCardStatus;
15
16
  updatedAt: Date;
16
17
  }
@@ -1,5 +1,5 @@
1
1
  export { IPayioCard } from './i-card';
2
2
  export { IPayioCardApplicableItem } from './i-card-aplicable-item';
3
+ export { IPayioCardAuth } from './i-card-auth';
3
4
  export { IPayioCardConfig } from './i-card-config';
4
- export { IPayioCardPassword } from './i-card-password';
5
- export { IPayioCardTransaction } from './i-card-transaction';
5
+ export { IPayioCardInfo } from './i-card-info';
@@ -0,0 +1,14 @@
1
+ import { IPayioCardTransactionPayment } from '../interfaces';
2
+ export declare class PayioCardTransactionPaymentEntity implements IPayioCardTransactionPayment {
3
+ amount: number;
4
+ createdAt: Date;
5
+ id: string;
6
+ metadata?: string | null | undefined;
7
+ pixKey: string;
8
+ pixProvider: string;
9
+ status: string;
10
+ transactionId: string;
11
+ type: string;
12
+ updatedAt: Date;
13
+ constructor(data?: Partial<PayioCardTransactionPaymentEntity>);
14
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioCardTransactionPaymentEntity = void 0;
4
+ var PayioCardTransactionPaymentEntity = /** @class */ (function () {
5
+ function PayioCardTransactionPaymentEntity(data) {
6
+ this.amount = 0;
7
+ this.createdAt = new Date();
8
+ this.id = '';
9
+ this.metadata = null;
10
+ this.pixKey = '';
11
+ this.pixProvider = '';
12
+ this.status = '';
13
+ this.transactionId = '';
14
+ this.type = '';
15
+ this.updatedAt = new Date();
16
+ if (data) {
17
+ for (var key in data) {
18
+ if (data.hasOwnProperty(key) && key in this) {
19
+ this[key] = data[key];
20
+ }
21
+ }
22
+ }
23
+ }
24
+ return PayioCardTransactionPaymentEntity;
25
+ }());
26
+ exports.PayioCardTransactionPaymentEntity = PayioCardTransactionPaymentEntity;
@@ -0,0 +1,23 @@
1
+ import { EAmountMode } from '../../../general';
2
+ import { EPayioTransactionType } from '../enums';
3
+ import { IPayioCardTransaction, IPayioCardTransactionPayment } from '../interfaces';
4
+ export declare class PayioCardTransactionEntity implements IPayioCardTransaction {
5
+ active: boolean;
6
+ afterBalance: number;
7
+ beforeBalance: number;
8
+ cardId: string;
9
+ createdAt: Date;
10
+ discountAmount: number;
11
+ discountAmountType: EAmountMode;
12
+ externalReference: string;
13
+ finalCompanyId: string;
14
+ finalContainerId: string | null;
15
+ id: string;
16
+ metadata?: string | null | undefined;
17
+ paymentTransaction: IPayioCardTransactionPayment;
18
+ sandbox: boolean;
19
+ tags: string[];
20
+ type: EPayioTransactionType;
21
+ updatedAt: Date;
22
+ constructor(data?: Partial<PayioCardTransactionEntity>);
23
+ }
@@ -1,19 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioCardTransactionEntity = void 0;
4
+ var general_1 = require("../../../general");
5
+ var enums_1 = require("../enums");
4
6
  var PayioCardTransactionEntity = /** @class */ (function () {
5
7
  function PayioCardTransactionEntity(data) {
6
8
  this.active = false;
7
- this.amount = 0;
9
+ this.afterBalance = 0;
10
+ this.beforeBalance = 0;
8
11
  this.cardId = '';
9
- this.companyId = '';
10
- this.containerId = null;
11
12
  this.createdAt = new Date();
12
- this.metadata = null;
13
- this.method = '';
14
- this.referenceId = '';
15
- this.remainingBalance = 0;
16
- this.remainingCredit = 0;
13
+ this.discountAmount = 0;
14
+ this.discountAmountType = general_1.EAmountMode.FIXED;
15
+ this.externalReference = '';
16
+ this.finalCompanyId = '';
17
+ this.finalContainerId = null;
18
+ this.id = '';
19
+ this.paymentTransaction = {};
20
+ this.sandbox = false;
21
+ this.tags = [];
22
+ this.type = enums_1.EPayioTransactionType.PAYMENT;
17
23
  this.updatedAt = new Date();
18
24
  if (data) {
19
25
  for (var key in data) {
@@ -0,0 +1,2 @@
1
+ export { PayioCardTransactionPaymentEntity } from './card-transaction-payment.entity';
2
+ export { PayioCardTransactionEntity } from './card-transaction.entity';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioCardTransactionEntity = exports.PayioCardTransactionPaymentEntity = void 0;
4
+ var card_transaction_payment_entity_1 = require("./card-transaction-payment.entity");
5
+ Object.defineProperty(exports, "PayioCardTransactionPaymentEntity", { enumerable: true, get: function () { return card_transaction_payment_entity_1.PayioCardTransactionPaymentEntity; } });
6
+ var card_transaction_entity_1 = require("./card-transaction.entity");
7
+ Object.defineProperty(exports, "PayioCardTransactionEntity", { enumerable: true, get: function () { return card_transaction_entity_1.PayioCardTransactionEntity; } });
@@ -0,0 +1 @@
1
+ export { EPayioTransactionType } from './transaction-type.enum';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EPayioTransactionType = void 0;
4
+ var transaction_type_enum_1 = require("./transaction-type.enum");
5
+ Object.defineProperty(exports, "EPayioTransactionType", { enumerable: true, get: function () { return transaction_type_enum_1.EPayioTransactionType; } });
@@ -0,0 +1,7 @@
1
+ export declare enum EPayioTransactionType {
2
+ DISCOUNT = "DISCOUNT",
3
+ MANAGER_ACTION = "MANAGER_ACTION",
4
+ DEPOSIT = "DEPOSIT",
5
+ WITHDRAW = "WITHDRAW",
6
+ PAYMENT = "PAYMENT"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EPayioTransactionType = void 0;
4
+ var EPayioTransactionType;
5
+ (function (EPayioTransactionType) {
6
+ EPayioTransactionType["DISCOUNT"] = "DISCOUNT";
7
+ EPayioTransactionType["MANAGER_ACTION"] = "MANAGER_ACTION";
8
+ EPayioTransactionType["DEPOSIT"] = "DEPOSIT";
9
+ EPayioTransactionType["WITHDRAW"] = "WITHDRAW";
10
+ EPayioTransactionType["PAYMENT"] = "PAYMENT";
11
+ })(EPayioTransactionType || (exports.EPayioTransactionType = EPayioTransactionType = {}));
@@ -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,12 @@
1
+ export interface IPayioCardTransactionPayment {
2
+ createdAt: Date;
3
+ id: string;
4
+ metadata?: string | null;
5
+ updatedAt: Date;
6
+ amount: number;
7
+ type: string;
8
+ pixKey: string;
9
+ pixProvider: string;
10
+ status: string;
11
+ transactionId: string;
12
+ }