cecon-interfaces 1.9.44 → 1.9.46
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/cards/entities/card-company.entity.mjs +17 -0
- package/dist/esm2022/payio/cards/entities/card-config.entity.mjs +3 -3
- package/dist/esm2022/payio/cards/entities/card-item.entity.mjs +14 -0
- package/dist/esm2022/payio/cards/entities/index.mjs +3 -2
- package/dist/esm2022/payio/cards/interfaces/i-card-company.mjs +2 -0
- package/dist/esm2022/payio/cards/interfaces/i-card-config.mjs +1 -1
- package/dist/esm2022/payio/cards/interfaces/i-card-item.mjs +2 -0
- package/dist/esm2022/payio/cards/interfaces/index.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +20 -4
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/payio/cards/entities/card-company.entity.d.ts +9 -0
- package/dist/payio/cards/entities/card-company.entity.js +21 -0
- package/dist/payio/cards/entities/card-config.entity.d.ts +3 -3
- package/dist/payio/cards/entities/card-config.entity.js +2 -2
- package/dist/payio/cards/entities/card-item.entity.d.ts +6 -0
- package/dist/payio/cards/entities/{card-aplicable-item.entity.js → card-item.entity.js} +5 -5
- package/dist/payio/cards/entities/index.d.ts +2 -1
- package/dist/payio/cards/entities/index.js +5 -3
- package/dist/payio/cards/interfaces/i-card-company.d.ts +7 -0
- package/dist/payio/cards/interfaces/i-card-config.d.ts +6 -5
- package/dist/payio/cards/interfaces/{i-card-aplicable-item.d.ts → i-card-item.d.ts} +1 -1
- package/dist/payio/cards/interfaces/i-card-item.js +2 -0
- package/dist/payio/cards/interfaces/index.d.ts +2 -1
- package/package.json +1 -1
- package/dist/esm2022/payio/cards/entities/card-aplicable-item.entity.mjs +0 -14
- package/dist/esm2022/payio/cards/interfaces/i-card-aplicable-item.mjs +0 -2
- package/dist/payio/cards/entities/card-aplicable-item.entity.d.ts +0 -6
- /package/dist/payio/cards/interfaces/{i-card-aplicable-item.js → i-card-company.js} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EDocType } from '../../../general';
|
|
2
|
+
import { IPayioCardCompany } from '../interfaces';
|
|
3
|
+
export declare class PayioCardCompanyEntity implements IPayioCardCompany {
|
|
4
|
+
doc: string;
|
|
5
|
+
docType: EDocType;
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
constructor(data?: Partial<PayioCardCompanyEntity>);
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayioCardCompanyEntity = void 0;
|
|
4
|
+
var general_1 = require("../../../general");
|
|
5
|
+
var PayioCardCompanyEntity = /** @class */ (function () {
|
|
6
|
+
function PayioCardCompanyEntity(data) {
|
|
7
|
+
this.doc = '';
|
|
8
|
+
this.docType = general_1.EDocType.CNPJ;
|
|
9
|
+
this.id = '';
|
|
10
|
+
this.name = '';
|
|
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 PayioCardCompanyEntity;
|
|
20
|
+
}());
|
|
21
|
+
exports.PayioCardCompanyEntity = PayioCardCompanyEntity;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { EAmountMode, ECycle } from '../../../general';
|
|
2
|
-
import {
|
|
2
|
+
import { IPayioCardAuth, IPayioCardCompany, IPayioCardConfig, IPayioCardItem } from '../interfaces';
|
|
3
3
|
export declare class PayioCardConfigEntity implements IPayioCardConfig {
|
|
4
4
|
appIds: string[];
|
|
5
|
-
applicableItems: IPayioCardApplicableItem[];
|
|
6
5
|
auth?: IPayioCardAuth | null | undefined;
|
|
7
6
|
balance: number;
|
|
8
7
|
billingCycle: ECycle;
|
|
9
|
-
|
|
8
|
+
companies: IPayioCardCompany[];
|
|
10
9
|
creditLimit: number;
|
|
11
10
|
description: string | null;
|
|
12
11
|
discountAmount: number;
|
|
13
12
|
discountAmountType: EAmountMode;
|
|
14
13
|
dueDate: Date;
|
|
15
14
|
invoiceLogs: string[];
|
|
15
|
+
items: IPayioCardItem[];
|
|
16
16
|
key: string | null;
|
|
17
17
|
password: string | null;
|
|
18
18
|
webhookUrls: string[];
|
|
@@ -5,16 +5,16 @@ var general_1 = require("../../../general");
|
|
|
5
5
|
var PayioCardConfigEntity = /** @class */ (function () {
|
|
6
6
|
function PayioCardConfigEntity(data) {
|
|
7
7
|
this.appIds = [];
|
|
8
|
-
this.applicableItems = [];
|
|
9
8
|
this.balance = 0;
|
|
10
9
|
this.billingCycle = general_1.ECycle.NONE;
|
|
11
|
-
this.
|
|
10
|
+
this.companies = [];
|
|
12
11
|
this.creditLimit = 0;
|
|
13
12
|
this.description = null;
|
|
14
13
|
this.discountAmount = 0;
|
|
15
14
|
this.discountAmountType = general_1.EAmountMode.PERCENTAGE;
|
|
16
15
|
this.dueDate = new Date();
|
|
17
16
|
this.invoiceLogs = [];
|
|
17
|
+
this.items = [];
|
|
18
18
|
this.key = null;
|
|
19
19
|
this.password = null;
|
|
20
20
|
this.webhookUrls = [];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
function
|
|
3
|
+
exports.PayioCardItemEntity = void 0;
|
|
4
|
+
var PayioCardItemEntity = /** @class */ (function () {
|
|
5
|
+
function PayioCardItemEntity(data) {
|
|
6
6
|
this.externalCode = '';
|
|
7
7
|
this.name = '';
|
|
8
8
|
if (data) {
|
|
@@ -13,6 +13,6 @@ var PayioCardApplicableItemEntity = /** @class */ (function () {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
return
|
|
16
|
+
return PayioCardItemEntity;
|
|
17
17
|
}());
|
|
18
|
-
exports.
|
|
18
|
+
exports.PayioCardItemEntity = PayioCardItemEntity;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { PayioCardCompanyEntity } from './card-company.entity';
|
|
2
|
+
export { PayioCardItemEntity } from './card-item.entity';
|
|
2
3
|
export { PayioCardAuthEntity } from './card-auth.entity';
|
|
3
4
|
export { PayioCardConfigEntity } from './card-config.entity';
|
|
4
5
|
export { PayioCardDataEntity } from './card-data.entity';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PayioCardEntity = exports.PayioCardAccountProviderEntity = exports.PayioCardDataEntity = exports.PayioCardConfigEntity = exports.PayioCardAuthEntity = exports.
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "
|
|
3
|
+
exports.PayioCardEntity = exports.PayioCardAccountProviderEntity = exports.PayioCardDataEntity = exports.PayioCardConfigEntity = exports.PayioCardAuthEntity = exports.PayioCardItemEntity = exports.PayioCardCompanyEntity = void 0;
|
|
4
|
+
var card_company_entity_1 = require("./card-company.entity");
|
|
5
|
+
Object.defineProperty(exports, "PayioCardCompanyEntity", { enumerable: true, get: function () { return card_company_entity_1.PayioCardCompanyEntity; } });
|
|
6
|
+
var card_item_entity_1 = require("./card-item.entity");
|
|
7
|
+
Object.defineProperty(exports, "PayioCardItemEntity", { enumerable: true, get: function () { return card_item_entity_1.PayioCardItemEntity; } });
|
|
6
8
|
var card_auth_entity_1 = require("./card-auth.entity");
|
|
7
9
|
Object.defineProperty(exports, "PayioCardAuthEntity", { enumerable: true, get: function () { return card_auth_entity_1.PayioCardAuthEntity; } });
|
|
8
10
|
var card_config_entity_1 = require("./card-config.entity");
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { EAmountMode, ECycle } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { EAmountMode, ECycle } from '../../../general';
|
|
2
|
+
import { IPayioCardAuth } from './i-card-auth';
|
|
3
|
+
import { IPayioCardCompany } from './i-card-company';
|
|
4
|
+
import { IPayioCardItem } from './i-card-item';
|
|
4
5
|
export interface IPayioCardConfig {
|
|
5
6
|
appIds: string[];
|
|
6
|
-
applicableItems?: IPayioCardApplicableItem[];
|
|
7
7
|
auth?: IPayioCardAuth | null;
|
|
8
8
|
balance?: number;
|
|
9
9
|
billingCycle: ECycle;
|
|
10
|
-
|
|
10
|
+
companies: IPayioCardCompany[];
|
|
11
11
|
creditLimit?: number;
|
|
12
12
|
description?: string | null;
|
|
13
13
|
discountAmount: number;
|
|
14
14
|
discountAmountType: EAmountMode;
|
|
15
15
|
dueDate: Date;
|
|
16
16
|
invoiceLogs: string[];
|
|
17
|
+
items: IPayioCardItem[];
|
|
17
18
|
key: string | null;
|
|
18
19
|
password: string | null;
|
|
19
20
|
webhookUrls: string[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { IPayioCard } from './i-card';
|
|
2
2
|
export { IPayioCardAccountProvider } from './i-card-account-provider';
|
|
3
|
-
export { IPayioCardApplicableItem } from './i-card-aplicable-item';
|
|
4
3
|
export { IPayioCardAuth } from './i-card-auth';
|
|
4
|
+
export { IPayioCardCompany } from './i-card-company';
|
|
5
5
|
export { IPayioCardConfig } from './i-card-config';
|
|
6
6
|
export { IPayioCardData } from './i-card-data';
|
|
7
|
+
export { IPayioCardItem } from './i-card-item';
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export class PayioCardApplicableItemEntity {
|
|
2
|
-
externalCode = '';
|
|
3
|
-
name = '';
|
|
4
|
-
constructor(data) {
|
|
5
|
-
if (data) {
|
|
6
|
-
for (let key in data) {
|
|
7
|
-
if (data.hasOwnProperty(key) && key in this) {
|
|
8
|
-
this[key] = data[key];
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
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bnRpdHk+KSB7XHJcbiAgICBpZiAoZGF0YSkge1xyXG4gICAgICBmb3IgKGxldCBrZXkgaW4gZGF0YSkge1xyXG4gICAgICAgIGlmIChkYXRhLmhhc093blByb3BlcnR5KGtleSkgJiYga2V5IGluIHRoaXMpIHtcclxuICAgICAgICAgICh0aGlzIGFzIGFueSlba2V5XSA9IChkYXRhIGFzIGFueSlba2V5XTtcclxuICAgICAgICB9XHJcbiAgICAgIH1cclxuICAgIH1cclxuICB9XHJcbn1cclxuIl19
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1jYXJkLWFwbGljYWJsZS1pdGVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL3BheWlvL2NhcmRzL2ludGVyZmFjZXMvaS1jYXJkLWFwbGljYWJsZS1pdGVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIElQYXlpb0NhcmRBcHBsaWNhYmxlSXRlbSB7XHJcbiAgZXh0ZXJuYWxDb2RlOiBzdHJpbmc7XHJcbiAgbmFtZTogc3RyaW5nO1xyXG59XHJcbiJdfQ==
|
|
File without changes
|