cecon-interfaces 1.9.39 → 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/interfaces/i-activation-key.mjs +1 -1
- package/dist/esm2022/payio/cards/entities/card-config.entity.mjs +1 -7
- package/dist/esm2022/payio/cards/entities/card.entity.mjs +7 -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 +41 -41
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- 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 +6 -1
- package/dist/payio/cards/entities/card.entity.js +5 -0
- package/dist/payio/cards/interfaces/i-card-config.d.ts +4 -10
- package/dist/payio/cards/interfaces/i-card.d.ts +6 -1
- 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
@@ -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,4 +1,4 @@
|
|
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
4
|
import { PayioCardAccountProviderEntity } from './card-account-provider.entity';
|
@@ -10,11 +10,16 @@ export declare class PayioCardEntity implements IPayioCard {
|
|
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;
|
@@ -13,11 +13,16 @@ var PayioCardEntity = /** @class */ (function () {
|
|
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();
|
@@ -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,4 +1,4 @@
|
|
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';
|
@@ -8,12 +8,17 @@ export interface IPayioCard {
|
|
8
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();
|