cecon-interfaces 1.9.38 → 1.9.40
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/esm2022/payio/activation-key/entities/activation-key.entity.mjs +3 -1
- package/dist/esm2022/payio/activation-key/enums/license-type.enum.mjs +2 -1
- package/dist/esm2022/payio/activation-key/interfaces/i-activation-key.mjs +1 -1
- package/dist/esm2022/payio/cards/entities/{card-payment-provider.entity.mjs → card-account-provider.entity.mjs} +2 -2
- package/dist/esm2022/payio/cards/entities/card-config.entity.mjs +1 -7
- package/dist/esm2022/payio/cards/entities/card.entity.mjs +11 -6
- package/dist/esm2022/payio/cards/entities/index.mjs +2 -2
- package/dist/esm2022/payio/cards/interfaces/i-card-config.mjs +1 -1
- package/dist/esm2022/payio/cards/interfaces/i-card.mjs +1 -1
- package/dist/esm2022/payio/cards-transactions/entities/card-transaction.entity.mjs +2 -2
- package/dist/esm2022/payio/consumers/entities/consumer.entity.mjs +3 -3
- package/dist/esm2022/payio/consumers/interfaces/i-consumer.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +49 -46
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/payio/activation-key/entities/activation-key.entity.d.ts +1 -0
- package/dist/payio/activation-key/entities/activation-key.entity.js +2 -0
- package/dist/payio/activation-key/enums/license-type.enum.d.ts +2 -1
- package/dist/payio/activation-key/enums/license-type.enum.js +1 -0
- package/dist/payio/activation-key/interfaces/i-activation-key.d.ts +4 -3
- package/dist/payio/cards/entities/{card-payment-provider.entity.d.ts → card-account-provider.entity.d.ts} +2 -2
- package/dist/payio/cards/entities/{card-payment-provider.entity.js → card-account-provider.entity.js} +5 -5
- package/dist/payio/cards/entities/card-config.entity.d.ts +0 -6
- package/dist/payio/cards/entities/card-config.entity.js +0 -6
- package/dist/payio/cards/entities/card.entity.d.ts +10 -5
- package/dist/payio/cards/entities/card.entity.js +9 -4
- package/dist/payio/cards/entities/index.d.ts +1 -1
- package/dist/payio/cards/entities/index.js +3 -3
- package/dist/payio/cards/interfaces/i-card-config.d.ts +4 -10
- package/dist/payio/cards/interfaces/i-card.d.ts +8 -3
- package/dist/payio/cards-transactions/entities/card-transaction.entity.js +1 -1
- package/dist/payio/consumers/entities/consumer.entity.d.ts +2 -2
- package/dist/payio/consumers/entities/consumer.entity.js +2 -2
- package/dist/payio/consumers/interfaces/i-consumer.d.ts +2 -0
- package/package.json +1 -1
@@ -16,6 +16,8 @@ var PayioActivationKeyEntity = /** @class */ (function () {
|
|
16
16
|
// === REFERÊNCIA AO LOTE (fonte das configurações) ===
|
17
17
|
// ID do lote que gerou esta licença
|
18
18
|
this.batchId = '';
|
19
|
+
// ID do cartão (preenchido na ativação)
|
20
|
+
this.cardId = null;
|
19
21
|
// ID da empresa (preenchido na ativação)
|
20
22
|
this.companyId = null;
|
21
23
|
this.companyName = null;
|
@@ -7,4 +7,5 @@ var EPayioLicenseType;
|
|
7
7
|
EPayioLicenseType["SUBSCRIPTION"] = "SUBSCRIPTION";
|
8
8
|
EPayioLicenseType["PERPETUAL"] = "PERPETUAL";
|
9
9
|
EPayioLicenseType["SANDBOX"] = "SANDBOX";
|
10
|
+
EPayioLicenseType["CARD"] = "CARD";
|
10
11
|
})(EPayioLicenseType || (exports.EPayioLicenseType = EPayioLicenseType = {}));
|
@@ -1,12 +1,14 @@
|
|
1
|
-
import { EPayioActivationKeyStatus } from
|
2
|
-
import { EPayioLicenseType } from
|
1
|
+
import { EPayioActivationKeyStatus } from "../enums/activation-key-status.enum";
|
2
|
+
import { EPayioLicenseType } from "../enums/license-type.enum";
|
3
3
|
export interface IPayioActivationKey {
|
4
4
|
activationAt: Date | null;
|
5
5
|
appId: string | null;
|
6
6
|
appSlug: string | null;
|
7
7
|
batchId: string;
|
8
|
+
cardId: string | null;
|
8
9
|
companyId: string | null;
|
9
10
|
companyName: string | null;
|
11
|
+
confirmationKey: boolean;
|
10
12
|
createdAt: Date;
|
11
13
|
deviceId: string | null;
|
12
14
|
distributorId: string;
|
@@ -17,7 +19,6 @@ export interface IPayioActivationKey {
|
|
17
19
|
id: string;
|
18
20
|
installationAt: Date | null;
|
19
21
|
key: string | null;
|
20
|
-
confirmationKey: boolean;
|
21
22
|
licenseType: EPayioLicenseType;
|
22
23
|
logs: string[];
|
23
24
|
notes: string | null;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { EPayioCardAccountProvider } from '../enums';
|
2
2
|
import { IPayioCardAccountProvider } from '../interfaces/i-card-account-provider';
|
3
|
-
export declare class
|
3
|
+
export declare class PayioCardAccountProviderEntity implements IPayioCardAccountProvider {
|
4
4
|
reference: string;
|
5
5
|
type: EPayioCardAccountProvider;
|
6
|
-
constructor(data?: Partial<
|
6
|
+
constructor(data?: Partial<PayioCardAccountProviderEntity>);
|
7
7
|
}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.PayioCardAccountProviderEntity = void 0;
|
4
4
|
var enums_1 = require("../enums");
|
5
|
-
var
|
6
|
-
function
|
5
|
+
var PayioCardAccountProviderEntity = /** @class */ (function () {
|
6
|
+
function PayioCardAccountProviderEntity(data) {
|
7
7
|
this.reference = '';
|
8
8
|
this.type = enums_1.EPayioCardAccountProvider.NATIPAY;
|
9
9
|
if (data) {
|
@@ -14,6 +14,6 @@ var PayioCardPaymentProviderEntity = /** @class */ (function () {
|
|
14
14
|
}
|
15
15
|
}
|
16
16
|
}
|
17
|
-
return
|
17
|
+
return PayioCardAccountProviderEntity;
|
18
18
|
}());
|
19
|
-
exports.
|
19
|
+
exports.PayioCardAccountProviderEntity = PayioCardAccountProviderEntity;
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { EAmountMode, ECycle } from '../../../general';
|
2
|
-
import { ECardMode } from '../enums';
|
3
2
|
import { IPayioCardApplicableItem, IPayioCardAuth, IPayioCardConfig } from '../interfaces';
|
4
3
|
export declare class PayioCardConfigEntity implements IPayioCardConfig {
|
5
4
|
appIds: string[];
|
@@ -8,17 +7,12 @@ export declare class PayioCardConfigEntity implements IPayioCardConfig {
|
|
8
7
|
balance: number;
|
9
8
|
billingCycle: ECycle;
|
10
9
|
companiesIds: string[];
|
11
|
-
consumerId: string | null;
|
12
|
-
consumerMetadata: string | null;
|
13
10
|
creditLimit: number;
|
14
11
|
description: string | null;
|
15
12
|
discountAmount: number;
|
16
13
|
discountAmountType: EAmountMode;
|
17
14
|
dueDate: Date;
|
18
|
-
externalReference: string | null;
|
19
15
|
invoiceLogs: string[];
|
20
|
-
label: string;
|
21
|
-
mode: ECardMode;
|
22
16
|
password: string | null;
|
23
17
|
webhookUrls: string[];
|
24
18
|
constructor(data?: Partial<PayioCardConfigEntity>);
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.PayioCardConfigEntity = void 0;
|
4
4
|
var general_1 = require("../../../general");
|
5
|
-
var enums_1 = require("../enums");
|
6
5
|
var PayioCardConfigEntity = /** @class */ (function () {
|
7
6
|
function PayioCardConfigEntity(data) {
|
8
7
|
this.appIds = [];
|
@@ -10,17 +9,12 @@ var PayioCardConfigEntity = /** @class */ (function () {
|
|
10
9
|
this.balance = 0;
|
11
10
|
this.billingCycle = general_1.ECycle.NONE;
|
12
11
|
this.companiesIds = [];
|
13
|
-
this.consumerId = null;
|
14
|
-
this.consumerMetadata = null;
|
15
12
|
this.creditLimit = 0;
|
16
13
|
this.description = null;
|
17
14
|
this.discountAmount = 0;
|
18
15
|
this.discountAmountType = general_1.EAmountMode.PERCENTAGE;
|
19
16
|
this.dueDate = new Date();
|
20
|
-
this.externalReference = null;
|
21
17
|
this.invoiceLogs = [];
|
22
|
-
this.label = '';
|
23
|
-
this.mode = enums_1.ECardMode.DISCOUNT;
|
24
18
|
this.password = null;
|
25
19
|
this.webhookUrls = [];
|
26
20
|
if (data) {
|
@@ -1,20 +1,25 @@
|
|
1
|
-
import { EPayioCardStatus } from '../enums';
|
1
|
+
import { ECardMode, EPayioCardStatus } from '../enums';
|
2
2
|
import { IPayioCardConfig } from '../interfaces';
|
3
3
|
import { IPayioCard } from '../interfaces/i-card';
|
4
|
+
import { PayioCardAccountProviderEntity } from './card-account-provider.entity';
|
4
5
|
import { PayioCardDataEntity } from './card-data.entity';
|
5
|
-
import { PayioCardPaymentProviderEntity } from './card-payment-provider.entity';
|
6
6
|
export declare class PayioCardEntity implements IPayioCard {
|
7
|
-
accountProvider:
|
8
|
-
activationId: string;
|
9
|
-
activationKey: string;
|
7
|
+
accountProvider: PayioCardAccountProviderEntity;
|
8
|
+
activationId: string | null;
|
9
|
+
activationKey: string | null;
|
10
10
|
active: boolean;
|
11
11
|
companyId: string;
|
12
12
|
config: IPayioCardConfig;
|
13
|
+
consumerExternalReference: string | null;
|
14
|
+
consumerId: string | null;
|
15
|
+
consumerMetadata: string | null;
|
13
16
|
containerId: string | null;
|
14
17
|
createdAt: Date;
|
15
18
|
data: PayioCardDataEntity;
|
16
19
|
id: string;
|
20
|
+
label: string;
|
17
21
|
logs: string[];
|
22
|
+
mode: ECardMode;
|
18
23
|
status: EPayioCardStatus;
|
19
24
|
tags: string[];
|
20
25
|
updatedAt: Date;
|
@@ -2,22 +2,27 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.PayioCardEntity = void 0;
|
4
4
|
var enums_1 = require("../enums");
|
5
|
+
var card_account_provider_entity_1 = require("./card-account-provider.entity");
|
5
6
|
var card_config_entity_1 = require("./card-config.entity");
|
6
7
|
var card_data_entity_1 = require("./card-data.entity");
|
7
|
-
var card_payment_provider_entity_1 = require("./card-payment-provider.entity");
|
8
8
|
var PayioCardEntity = /** @class */ (function () {
|
9
9
|
function PayioCardEntity(data) {
|
10
|
-
this.accountProvider = new
|
11
|
-
this.activationId =
|
12
|
-
this.activationKey =
|
10
|
+
this.accountProvider = new card_account_provider_entity_1.PayioCardAccountProviderEntity();
|
11
|
+
this.activationId = null;
|
12
|
+
this.activationKey = null;
|
13
13
|
this.active = false;
|
14
14
|
this.companyId = '';
|
15
15
|
this.config = new card_config_entity_1.PayioCardConfigEntity();
|
16
|
+
this.consumerExternalReference = null;
|
17
|
+
this.consumerId = null;
|
18
|
+
this.consumerMetadata = null;
|
16
19
|
this.containerId = null;
|
17
20
|
this.createdAt = new Date();
|
18
21
|
this.data = new card_data_entity_1.PayioCardDataEntity();
|
19
22
|
this.id = '';
|
23
|
+
this.label = '';
|
20
24
|
this.logs = [];
|
25
|
+
this.mode = enums_1.ECardMode.HYBRID;
|
21
26
|
this.status = enums_1.EPayioCardStatus.PENDING;
|
22
27
|
this.tags = [];
|
23
28
|
this.updatedAt = new Date();
|
@@ -2,5 +2,5 @@ export { PayioCardApplicableItemEntity } from './card-aplicable-item.entity';
|
|
2
2
|
export { PayioCardAuthEntity } from './card-auth.entity';
|
3
3
|
export { PayioCardConfigEntity } from './card-config.entity';
|
4
4
|
export { PayioCardDataEntity } from './card-data.entity';
|
5
|
-
export {
|
5
|
+
export { PayioCardAccountProviderEntity } from './card-account-provider.entity';
|
6
6
|
export { PayioCardEntity } from './card.entity';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.PayioCardEntity = exports.
|
3
|
+
exports.PayioCardEntity = exports.PayioCardAccountProviderEntity = exports.PayioCardDataEntity = exports.PayioCardConfigEntity = exports.PayioCardAuthEntity = exports.PayioCardApplicableItemEntity = void 0;
|
4
4
|
var card_aplicable_item_entity_1 = require("./card-aplicable-item.entity");
|
5
5
|
Object.defineProperty(exports, "PayioCardApplicableItemEntity", { enumerable: true, get: function () { return card_aplicable_item_entity_1.PayioCardApplicableItemEntity; } });
|
6
6
|
var card_auth_entity_1 = require("./card-auth.entity");
|
@@ -9,7 +9,7 @@ var card_config_entity_1 = require("./card-config.entity");
|
|
9
9
|
Object.defineProperty(exports, "PayioCardConfigEntity", { enumerable: true, get: function () { return card_config_entity_1.PayioCardConfigEntity; } });
|
10
10
|
var card_data_entity_1 = require("./card-data.entity");
|
11
11
|
Object.defineProperty(exports, "PayioCardDataEntity", { enumerable: true, get: function () { return card_data_entity_1.PayioCardDataEntity; } });
|
12
|
-
var
|
13
|
-
Object.defineProperty(exports, "
|
12
|
+
var card_account_provider_entity_1 = require("./card-account-provider.entity");
|
13
|
+
Object.defineProperty(exports, "PayioCardAccountProviderEntity", { enumerable: true, get: function () { return card_account_provider_entity_1.PayioCardAccountProviderEntity; } });
|
14
14
|
var card_entity_1 = require("./card.entity");
|
15
15
|
Object.defineProperty(exports, "PayioCardEntity", { enumerable: true, get: function () { return card_entity_1.PayioCardEntity; } });
|
@@ -1,25 +1,19 @@
|
|
1
1
|
import { EAmountMode, ECycle } from '../../../general';
|
2
|
-
import { ECardMode } from '../enums';
|
3
2
|
import { IPayioCardApplicableItem } from './i-card-aplicable-item';
|
4
3
|
import { IPayioCardAuth } from './i-card-auth';
|
5
4
|
export interface IPayioCardConfig {
|
6
|
-
discountAmount: number;
|
7
|
-
discountAmountType: EAmountMode;
|
8
5
|
appIds: string[];
|
9
6
|
applicableItems?: IPayioCardApplicableItem[];
|
10
7
|
auth?: IPayioCardAuth | null;
|
11
8
|
balance?: number;
|
12
9
|
billingCycle: ECycle;
|
13
|
-
dueDate: Date;
|
14
10
|
companiesIds: string[];
|
15
|
-
consumerId: string | null;
|
16
|
-
consumerMetadata: string | null;
|
17
11
|
creditLimit?: number;
|
18
12
|
description?: string | null;
|
19
|
-
|
20
|
-
|
21
|
-
|
13
|
+
discountAmount: number;
|
14
|
+
discountAmountType: EAmountMode;
|
15
|
+
dueDate: Date;
|
22
16
|
invoiceLogs: string[];
|
23
|
-
|
17
|
+
password: string | null;
|
24
18
|
webhookUrls: string[];
|
25
19
|
}
|
@@ -1,19 +1,24 @@
|
|
1
|
-
import { EPayioCardStatus } from '../enums';
|
1
|
+
import { ECardMode, EPayioCardStatus } from '../enums';
|
2
2
|
import { IPayioCardAccountProvider } from './i-card-account-provider';
|
3
3
|
import { IPayioCardConfig } from './i-card-config';
|
4
4
|
import { IPayioCardData } from './i-card-data';
|
5
5
|
export interface IPayioCard {
|
6
6
|
accountProvider: IPayioCardAccountProvider;
|
7
|
-
activationId: string;
|
8
|
-
activationKey: string;
|
7
|
+
activationId: string | null;
|
8
|
+
activationKey: string | null;
|
9
9
|
active: boolean;
|
10
10
|
companyId: string;
|
11
|
+
consumerId: string | null;
|
12
|
+
consumerMetadata: string | null;
|
13
|
+
consumerExternalReference: string | null;
|
11
14
|
containerId: string | null;
|
12
15
|
config: IPayioCardConfig;
|
13
16
|
createdAt: Date;
|
14
17
|
data: IPayioCardData;
|
15
18
|
id: string;
|
19
|
+
label: string;
|
16
20
|
logs: string[];
|
21
|
+
mode: ECardMode;
|
17
22
|
status: EPayioCardStatus;
|
18
23
|
tags: string[];
|
19
24
|
updatedAt: Date;
|
@@ -19,7 +19,7 @@ var PayioCardTransactionEntity = /** @class */ (function () {
|
|
19
19
|
this.paymentTransaction = {};
|
20
20
|
this.sandbox = false;
|
21
21
|
this.tags = [];
|
22
|
-
this.type = enums_1.EPayioTransactionType.
|
22
|
+
this.type = enums_1.EPayioTransactionType.DISCOUNT;
|
23
23
|
this.updatedAt = new Date();
|
24
24
|
if (data) {
|
25
25
|
for (var key in data) {
|
@@ -1,8 +1,6 @@
|
|
1
1
|
import { EDocType, EGender, IAddress } from '../../../general';
|
2
2
|
import { IPayioConsumer } from '../interfaces/i-consumer';
|
3
3
|
export declare class PayioConsumerEntity implements IPayioConsumer {
|
4
|
-
activationId: string | null;
|
5
|
-
activationKey: string | null;
|
6
4
|
active: boolean;
|
7
5
|
address: IAddress | null;
|
8
6
|
birthDate: Date | null;
|
@@ -12,8 +10,10 @@ export declare class PayioConsumerEntity implements IPayioConsumer {
|
|
12
10
|
email: string;
|
13
11
|
gender: EGender;
|
14
12
|
id: string;
|
13
|
+
imageUrl: string | null;
|
15
14
|
internationalCode: string;
|
16
15
|
name: string;
|
16
|
+
phoneNumber: string;
|
17
17
|
sandbox: boolean;
|
18
18
|
tags: string[];
|
19
19
|
updatedAt: Date;
|
@@ -4,8 +4,6 @@ exports.PayioConsumerEntity = void 0;
|
|
4
4
|
var general_1 = require("../../../general");
|
5
5
|
var PayioConsumerEntity = /** @class */ (function () {
|
6
6
|
function PayioConsumerEntity(data) {
|
7
|
-
this.activationId = null;
|
8
|
-
this.activationKey = null;
|
9
7
|
this.active = false;
|
10
8
|
this.address = null;
|
11
9
|
this.birthDate = null;
|
@@ -15,8 +13,10 @@ var PayioConsumerEntity = /** @class */ (function () {
|
|
15
13
|
this.email = '';
|
16
14
|
this.gender = general_1.EGender.NOT_INFORMED;
|
17
15
|
this.id = '';
|
16
|
+
this.imageUrl = null;
|
18
17
|
this.internationalCode = '';
|
19
18
|
this.name = '';
|
19
|
+
this.phoneNumber = '';
|
20
20
|
this.sandbox = false;
|
21
21
|
this.tags = [];
|
22
22
|
this.updatedAt = new Date();
|