cecon-interfaces 1.9.50 → 1.9.55
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/natipay/cards/entities/card-account-provider.entity.mjs +15 -0
- package/dist/esm2022/natipay/cards/entities/card-auth.entity.mjs +15 -0
- package/dist/esm2022/natipay/cards/entities/card-company.entity.mjs +17 -0
- package/dist/esm2022/natipay/cards/entities/card-config.entity.mjs +28 -0
- package/dist/esm2022/natipay/cards/entities/card-data.entity.mjs +18 -0
- package/dist/esm2022/natipay/cards/entities/card-item.entity.mjs +14 -0
- package/dist/esm2022/natipay/cards/entities/card.entity.mjs +39 -0
- package/dist/esm2022/natipay/cards/entities/index.mjs +8 -0
- package/dist/esm2022/natipay/cards/enums/account-provider.enum.mjs +9 -0
- package/dist/esm2022/natipay/cards/enums/index.mjs +6 -0
- package/dist/esm2022/natipay/cards/enums/mode.enum.mjs +8 -0
- package/dist/esm2022/natipay/cards/enums/status-production.enum.mjs +9 -0
- package/dist/esm2022/natipay/cards/enums/status.enum.mjs +11 -0
- package/dist/esm2022/natipay/cards/enums/type.enum.mjs +6 -0
- package/dist/esm2022/natipay/cards/index.mjs +4 -0
- package/dist/esm2022/natipay/cards/interfaces/i-card-account-provider.mjs +2 -0
- package/dist/esm2022/natipay/cards/interfaces/i-card-auth.mjs +2 -0
- package/dist/esm2022/natipay/cards/interfaces/i-card-company.mjs +2 -0
- package/dist/esm2022/natipay/cards/interfaces/i-card-config.mjs +2 -0
- package/dist/esm2022/natipay/cards/interfaces/i-card-data.mjs +2 -0
- package/dist/esm2022/natipay/cards/interfaces/i-card-item.mjs +2 -0
- package/dist/esm2022/natipay/cards/interfaces/i-card.mjs +2 -0
- package/dist/esm2022/natipay/cards/interfaces/index.mjs +2 -0
- package/dist/esm2022/natipay/index.mjs +2 -1
- package/dist/esm2022/order/interfaces/i-benefits.mjs +1 -1
- package/dist/esm2022/payio/cards/entities/card-config.entity.mjs +2 -8
- package/dist/esm2022/payio/cards/entities/card.entity.mjs +3 -14
- package/dist/esm2022/payio/cards/entities/index.mjs +1 -3
- package/dist/esm2022/payio/cards/enums/mode.enum.mjs +1 -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/interfaces/index.mjs +1 -1
- package/dist/esm2022/payio/user/entities/index.mjs +2 -1
- package/dist/esm2022/payio/user/entities/user-report.entity.mjs +1 -1
- package/dist/esm2022/payio/user/entities/user-sessions.entity.mjs +15 -0
- package/dist/esm2022/payio/user/entities/user.entity.mjs +2 -3
- package/dist/esm2022/payio/user/interfaces/i-user-report.mjs +1 -1
- package/dist/esm2022/payio/user/interfaces/i-user-sessions.mjs +2 -0
- package/dist/esm2022/payio/user/interfaces/i-user.mjs +1 -1
- package/dist/esm2022/payio/user/interfaces/index.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +199 -51
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/natipay/cards/entities/card-account-provider.entity.d.ts +7 -0
- package/dist/natipay/cards/entities/card-account-provider.entity.js +19 -0
- package/dist/natipay/cards/entities/card-auth.entity.d.ts +7 -0
- package/dist/natipay/cards/entities/card-auth.entity.js +19 -0
- package/dist/natipay/cards/entities/card-company.entity.d.ts +9 -0
- package/dist/natipay/cards/entities/card-company.entity.js +21 -0
- package/dist/natipay/cards/entities/card-config.entity.d.ts +22 -0
- package/dist/natipay/cards/entities/card-config.entity.js +31 -0
- package/dist/natipay/cards/entities/card-data.entity.d.ts +10 -0
- package/dist/{payio → natipay}/cards/entities/card-data.entity.js +5 -5
- package/dist/natipay/cards/entities/card-item.entity.d.ts +6 -0
- package/dist/natipay/cards/entities/card-item.entity.js +18 -0
- package/dist/natipay/cards/entities/card.entity.d.ts +30 -0
- package/dist/natipay/cards/entities/card.entity.js +43 -0
- package/dist/natipay/cards/entities/index.d.ts +7 -0
- package/dist/natipay/cards/entities/index.js +17 -0
- package/dist/natipay/cards/enums/account-provider.enum.d.ts +7 -0
- package/dist/natipay/cards/enums/account-provider.enum.js +11 -0
- package/dist/natipay/cards/enums/index.d.ts +5 -0
- package/dist/natipay/cards/enums/index.js +13 -0
- package/dist/natipay/cards/enums/mode.enum.d.ts +6 -0
- package/dist/natipay/cards/enums/mode.enum.js +10 -0
- package/dist/natipay/cards/enums/status-production.enum.d.ts +7 -0
- package/dist/natipay/cards/enums/status-production.enum.js +11 -0
- package/dist/natipay/cards/enums/status.enum.d.ts +9 -0
- package/dist/natipay/cards/enums/status.enum.js +13 -0
- package/dist/natipay/cards/enums/type.enum.d.ts +4 -0
- package/dist/natipay/cards/enums/type.enum.js +8 -0
- package/dist/natipay/cards/index.d.ts +3 -0
- package/dist/natipay/cards/index.js +19 -0
- package/dist/natipay/cards/interfaces/i-card-account-provider.d.ts +5 -0
- package/dist/natipay/cards/interfaces/i-card-auth.d.ts +5 -0
- package/dist/natipay/cards/interfaces/i-card-company.d.ts +7 -0
- package/dist/natipay/cards/interfaces/i-card-company.js +2 -0
- package/dist/natipay/cards/interfaces/i-card-config.d.ts +21 -0
- package/dist/natipay/cards/interfaces/i-card-config.js +2 -0
- package/dist/{payio → natipay}/cards/interfaces/i-card-data.d.ts +1 -1
- package/dist/natipay/cards/interfaces/i-card-data.js +2 -0
- package/dist/natipay/cards/interfaces/i-card-item.d.ts +4 -0
- package/dist/natipay/cards/interfaces/i-card-item.js +2 -0
- package/dist/natipay/cards/interfaces/i-card.d.ts +29 -0
- package/dist/natipay/cards/interfaces/i-card.js +2 -0
- package/dist/natipay/cards/interfaces/index.d.ts +7 -0
- package/dist/natipay/cards/interfaces/index.js +2 -0
- package/dist/natipay/index.d.ts +1 -0
- package/dist/natipay/index.js +1 -0
- package/dist/payio/cards/entities/card-config.entity.d.ts +1 -7
- package/dist/payio/cards/entities/card-config.entity.js +0 -6
- package/dist/payio/cards/entities/card.entity.d.ts +2 -13
- package/dist/payio/cards/entities/card.entity.js +2 -13
- package/dist/payio/cards/entities/index.d.ts +0 -2
- package/dist/payio/cards/entities/index.js +1 -5
- package/dist/payio/cards/enums/mode.enum.d.ts +0 -1
- package/dist/payio/cards/enums/mode.enum.js +0 -1
- package/dist/payio/cards/interfaces/i-card-config.d.ts +1 -7
- package/dist/payio/cards/interfaces/i-card.d.ts +2 -13
- package/dist/payio/cards/interfaces/index.d.ts +0 -2
- package/dist/payio/user/entities/index.d.ts +1 -0
- package/dist/payio/user/entities/index.js +3 -1
- package/dist/payio/user/entities/user-report.entity.d.ts +2 -2
- package/dist/payio/user/entities/user-sessions.entity.d.ts +7 -0
- package/dist/payio/user/entities/user-sessions.entity.js +19 -0
- package/dist/payio/user/entities/user.entity.d.ts +2 -2
- package/dist/payio/user/entities/user.entity.js +1 -2
- package/dist/payio/user/interfaces/i-user-report.d.ts +2 -2
- package/dist/payio/user/interfaces/i-user-sessions.d.ts +5 -0
- package/dist/payio/user/interfaces/i-user-sessions.js +2 -0
- package/dist/payio/user/interfaces/i-user.d.ts +2 -2
- package/dist/payio/user/interfaces/index.d.ts +2 -1
- package/package.json +1 -1
- package/dist/esm2022/payio/cards/entities/card-account-provider.entity.mjs +0 -15
- package/dist/esm2022/payio/cards/entities/card-data.entity.mjs +0 -18
- package/dist/esm2022/payio/cards/interfaces/i-card-account-provider.mjs +0 -2
- package/dist/esm2022/payio/cards/interfaces/i-card-data.mjs +0 -2
- package/dist/payio/cards/entities/card-account-provider.entity.d.ts +0 -7
- package/dist/payio/cards/entities/card-account-provider.entity.js +0 -19
- package/dist/payio/cards/entities/card-data.entity.d.ts +0 -10
- package/dist/payio/cards/interfaces/i-card-account-provider.d.ts +0 -5
- /package/dist/{payio → natipay}/cards/interfaces/i-card-account-provider.js +0 -0
- /package/dist/{payio/cards/interfaces/i-card-data.js → natipay/cards/interfaces/i-card-auth.js} +0 -0
@@ -0,0 +1,7 @@
|
|
1
|
+
import { ENatipayCardAccountProvider } from '../enums';
|
2
|
+
import { INatipayCardAccountProvider } from '../interfaces';
|
3
|
+
export declare class NatipayCardAccountProviderEntity implements INatipayCardAccountProvider {
|
4
|
+
reference: string;
|
5
|
+
type: ENatipayCardAccountProvider;
|
6
|
+
constructor(data?: Partial<NatipayCardAccountProviderEntity>);
|
7
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.NatipayCardAccountProviderEntity = void 0;
|
4
|
+
var enums_1 = require("../enums");
|
5
|
+
var NatipayCardAccountProviderEntity = /** @class */ (function () {
|
6
|
+
function NatipayCardAccountProviderEntity(data) {
|
7
|
+
this.reference = '';
|
8
|
+
this.type = enums_1.ENatipayCardAccountProvider.NATIPAY;
|
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 NatipayCardAccountProviderEntity;
|
18
|
+
}());
|
19
|
+
exports.NatipayCardAccountProviderEntity = NatipayCardAccountProviderEntity;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.NatipayCardAuthEntity = void 0;
|
4
|
+
var NatipayCardAuthEntity = /** @class */ (function () {
|
5
|
+
function NatipayCardAuthEntity(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 NatipayCardAuthEntity;
|
18
|
+
}());
|
19
|
+
exports.NatipayCardAuthEntity = NatipayCardAuthEntity;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { EDocType } from '../../../general';
|
2
|
+
import { INatipayCardCompany } from '../interfaces';
|
3
|
+
export declare class NatipayCardCompanyEntity implements INatipayCardCompany {
|
4
|
+
doc: string;
|
5
|
+
docType: EDocType;
|
6
|
+
id: string;
|
7
|
+
name: string;
|
8
|
+
constructor(data?: Partial<NatipayCardCompanyEntity>);
|
9
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.NatipayCardCompanyEntity = void 0;
|
4
|
+
var general_1 = require("../../../general");
|
5
|
+
var NatipayCardCompanyEntity = /** @class */ (function () {
|
6
|
+
function NatipayCardCompanyEntity(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 NatipayCardCompanyEntity;
|
20
|
+
}());
|
21
|
+
exports.NatipayCardCompanyEntity = NatipayCardCompanyEntity;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { EAmountMode, ECycle } from '../../../general';
|
2
|
+
import { INatipayCardAuth, INatipayCardConfig } from '../interfaces';
|
3
|
+
import { NatipayCardCompanyEntity } from './card-company.entity';
|
4
|
+
import { NatipayCardItemEntity } from './card-item.entity';
|
5
|
+
export declare class NatipayCardConfigEntity implements INatipayCardConfig {
|
6
|
+
appIds: string[];
|
7
|
+
auth?: INatipayCardAuth | null | undefined;
|
8
|
+
balance: number;
|
9
|
+
billingCycle: ECycle;
|
10
|
+
companies: NatipayCardCompanyEntity[];
|
11
|
+
creditLimit: number;
|
12
|
+
description: string | null;
|
13
|
+
discountAmount: number;
|
14
|
+
discountAmountType: EAmountMode;
|
15
|
+
dueDate: Date;
|
16
|
+
invoiceLogs: string[];
|
17
|
+
items: NatipayCardItemEntity[];
|
18
|
+
key: string | null;
|
19
|
+
password: string | null;
|
20
|
+
webhookUrls: string[];
|
21
|
+
constructor(data?: Partial<NatipayCardConfigEntity>);
|
22
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.NatipayCardConfigEntity = void 0;
|
4
|
+
var general_1 = require("../../../general");
|
5
|
+
var NatipayCardConfigEntity = /** @class */ (function () {
|
6
|
+
function NatipayCardConfigEntity(data) {
|
7
|
+
this.appIds = [];
|
8
|
+
this.balance = 0;
|
9
|
+
this.billingCycle = general_1.ECycle.NONE;
|
10
|
+
this.companies = [];
|
11
|
+
this.creditLimit = 0;
|
12
|
+
this.description = null;
|
13
|
+
this.discountAmount = 0;
|
14
|
+
this.discountAmountType = general_1.EAmountMode.PERCENTAGE;
|
15
|
+
this.dueDate = new Date();
|
16
|
+
this.invoiceLogs = [];
|
17
|
+
this.items = [];
|
18
|
+
this.key = null;
|
19
|
+
this.password = null;
|
20
|
+
this.webhookUrls = [];
|
21
|
+
if (data) {
|
22
|
+
for (var key in data) {
|
23
|
+
if (data.hasOwnProperty(key) && key in this) {
|
24
|
+
this[key] = data[key];
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
return NatipayCardConfigEntity;
|
30
|
+
}());
|
31
|
+
exports.NatipayCardConfigEntity = NatipayCardConfigEntity;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { INatipayCardData } from '../interfaces';
|
2
|
+
export declare class NatipayCardDataEntity implements INatipayCardData {
|
3
|
+
cvv: string;
|
4
|
+
formattedNumber: string;
|
5
|
+
isValid: boolean;
|
6
|
+
maskedNumber: string;
|
7
|
+
number: string;
|
8
|
+
validThru: string;
|
9
|
+
constructor(data?: Partial<NatipayCardDataEntity>);
|
10
|
+
}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
var
|
5
|
-
function
|
3
|
+
exports.NatipayCardDataEntity = void 0;
|
4
|
+
var NatipayCardDataEntity = /** @class */ (function () {
|
5
|
+
function NatipayCardDataEntity(data) {
|
6
6
|
this.cvv = '';
|
7
7
|
this.formattedNumber = '';
|
8
8
|
this.isValid = false;
|
@@ -17,6 +17,6 @@ var PayioCardDataEntity = /** @class */ (function () {
|
|
17
17
|
}
|
18
18
|
}
|
19
19
|
}
|
20
|
-
return
|
20
|
+
return NatipayCardDataEntity;
|
21
21
|
}());
|
22
|
-
exports.
|
22
|
+
exports.NatipayCardDataEntity = NatipayCardDataEntity;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.NatipayCardItemEntity = void 0;
|
4
|
+
var NatipayCardItemEntity = /** @class */ (function () {
|
5
|
+
function NatipayCardItemEntity(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 NatipayCardItemEntity;
|
17
|
+
}());
|
18
|
+
exports.NatipayCardItemEntity = NatipayCardItemEntity;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { ENatipayCardMode, ENatipayCardStatus } from '../enums';
|
2
|
+
import { ENatipayCardStatusProduction } from '../enums/status-production.enum';
|
3
|
+
import { ENatipayCardType } from '../enums/type.enum';
|
4
|
+
import { INatipayCard, INatipayCardConfig } from '../interfaces';
|
5
|
+
import { NatipayCardAccountProviderEntity } from './card-account-provider.entity';
|
6
|
+
import { NatipayCardDataEntity } from './card-data.entity';
|
7
|
+
export declare class NatipayCardEntity implements INatipayCard {
|
8
|
+
accountProvider: NatipayCardAccountProviderEntity;
|
9
|
+
active: boolean;
|
10
|
+
companyId: string;
|
11
|
+
config: INatipayCardConfig;
|
12
|
+
consumerExternalReference: string | null;
|
13
|
+
consumerId: string | null;
|
14
|
+
consumerMetadata: string | null;
|
15
|
+
containerId: string | null;
|
16
|
+
createdAt: Date;
|
17
|
+
data: NatipayCardDataEntity;
|
18
|
+
id: string;
|
19
|
+
label: string;
|
20
|
+
logs: string[];
|
21
|
+
mode: ENatipayCardMode;
|
22
|
+
status: ENatipayCardStatus;
|
23
|
+
statusProduction: ENatipayCardStatusProduction;
|
24
|
+
tags: string[];
|
25
|
+
type: ENatipayCardType;
|
26
|
+
unlockCode: string | null;
|
27
|
+
unlockedAt: Date | null;
|
28
|
+
updatedAt: Date;
|
29
|
+
constructor(data?: Partial<NatipayCardEntity>);
|
30
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.NatipayCardEntity = void 0;
|
4
|
+
var enums_1 = require("../enums");
|
5
|
+
var status_production_enum_1 = require("../enums/status-production.enum");
|
6
|
+
var type_enum_1 = require("../enums/type.enum");
|
7
|
+
var card_account_provider_entity_1 = require("./card-account-provider.entity");
|
8
|
+
var card_config_entity_1 = require("./card-config.entity");
|
9
|
+
var card_data_entity_1 = require("./card-data.entity");
|
10
|
+
var NatipayCardEntity = /** @class */ (function () {
|
11
|
+
function NatipayCardEntity(data) {
|
12
|
+
this.accountProvider = new card_account_provider_entity_1.NatipayCardAccountProviderEntity();
|
13
|
+
this.active = false;
|
14
|
+
this.companyId = '';
|
15
|
+
this.config = new card_config_entity_1.NatipayCardConfigEntity();
|
16
|
+
this.consumerExternalReference = null;
|
17
|
+
this.consumerId = null;
|
18
|
+
this.consumerMetadata = null;
|
19
|
+
this.containerId = null;
|
20
|
+
this.createdAt = new Date();
|
21
|
+
this.data = new card_data_entity_1.NatipayCardDataEntity();
|
22
|
+
this.id = '';
|
23
|
+
this.label = '';
|
24
|
+
this.logs = [];
|
25
|
+
this.mode = enums_1.ENatipayCardMode.HYBRID;
|
26
|
+
this.status = enums_1.ENatipayCardStatus.BLOCKED;
|
27
|
+
this.statusProduction = status_production_enum_1.ENatipayCardStatusProduction.PENDING;
|
28
|
+
this.tags = [];
|
29
|
+
this.type = type_enum_1.ENatipayCardType.VIRTUAL;
|
30
|
+
this.unlockCode = null;
|
31
|
+
this.unlockedAt = null;
|
32
|
+
this.updatedAt = new Date();
|
33
|
+
if (data) {
|
34
|
+
for (var key in data) {
|
35
|
+
if (data.hasOwnProperty(key) && key in this) {
|
36
|
+
this[key] = data[key];
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
return NatipayCardEntity;
|
42
|
+
}());
|
43
|
+
exports.NatipayCardEntity = NatipayCardEntity;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export { NatipayCardCompanyEntity } from './card-company.entity';
|
2
|
+
export { NatipayCardItemEntity } from './card-item.entity';
|
3
|
+
export { NatipayCardAuthEntity } from './card-auth.entity';
|
4
|
+
export { NatipayCardConfigEntity } from './card-config.entity';
|
5
|
+
export { NatipayCardDataEntity } from './card-data.entity';
|
6
|
+
export { NatipayCardAccountProviderEntity } from './card-account-provider.entity';
|
7
|
+
export { NatipayCardEntity } from './card.entity';
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.NatipayCardEntity = exports.NatipayCardAccountProviderEntity = exports.NatipayCardDataEntity = exports.NatipayCardConfigEntity = exports.NatipayCardAuthEntity = exports.NatipayCardItemEntity = exports.NatipayCardCompanyEntity = void 0;
|
4
|
+
var card_company_entity_1 = require("./card-company.entity");
|
5
|
+
Object.defineProperty(exports, "NatipayCardCompanyEntity", { enumerable: true, get: function () { return card_company_entity_1.NatipayCardCompanyEntity; } });
|
6
|
+
var card_item_entity_1 = require("./card-item.entity");
|
7
|
+
Object.defineProperty(exports, "NatipayCardItemEntity", { enumerable: true, get: function () { return card_item_entity_1.NatipayCardItemEntity; } });
|
8
|
+
var card_auth_entity_1 = require("./card-auth.entity");
|
9
|
+
Object.defineProperty(exports, "NatipayCardAuthEntity", { enumerable: true, get: function () { return card_auth_entity_1.NatipayCardAuthEntity; } });
|
10
|
+
var card_config_entity_1 = require("./card-config.entity");
|
11
|
+
Object.defineProperty(exports, "NatipayCardConfigEntity", { enumerable: true, get: function () { return card_config_entity_1.NatipayCardConfigEntity; } });
|
12
|
+
var card_data_entity_1 = require("./card-data.entity");
|
13
|
+
Object.defineProperty(exports, "NatipayCardDataEntity", { enumerable: true, get: function () { return card_data_entity_1.NatipayCardDataEntity; } });
|
14
|
+
var card_account_provider_entity_1 = require("./card-account-provider.entity");
|
15
|
+
Object.defineProperty(exports, "NatipayCardAccountProviderEntity", { enumerable: true, get: function () { return card_account_provider_entity_1.NatipayCardAccountProviderEntity; } });
|
16
|
+
var card_entity_1 = require("./card.entity");
|
17
|
+
Object.defineProperty(exports, "NatipayCardEntity", { enumerable: true, get: function () { return card_entity_1.NatipayCardEntity; } });
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ENatipayCardAccountProvider = void 0;
|
4
|
+
var ENatipayCardAccountProvider;
|
5
|
+
(function (ENatipayCardAccountProvider) {
|
6
|
+
ENatipayCardAccountProvider["NATIPAY"] = "NATIPAY";
|
7
|
+
ENatipayCardAccountProvider["IUGU"] = "IUGU";
|
8
|
+
ENatipayCardAccountProvider["ASAAS"] = "ASAAS";
|
9
|
+
ENatipayCardAccountProvider["MERCADOPAGO"] = "MERCADOPAGO";
|
10
|
+
ENatipayCardAccountProvider["PAGARME"] = "PAGARME";
|
11
|
+
})(ENatipayCardAccountProvider || (exports.ENatipayCardAccountProvider = ENatipayCardAccountProvider = {}));
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export { ENatipayCardAccountProvider } from './account-provider.enum';
|
2
|
+
export { ENatipayCardMode } from './mode.enum';
|
3
|
+
export { ENatipayCardStatus } from './status.enum';
|
4
|
+
export { ENatipayCardStatusProduction } from './status-production.enum';
|
5
|
+
export { ENatipayCardType } from './type.enum';
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ENatipayCardType = exports.ENatipayCardStatusProduction = exports.ENatipayCardStatus = exports.ENatipayCardMode = exports.ENatipayCardAccountProvider = void 0;
|
4
|
+
var account_provider_enum_1 = require("./account-provider.enum");
|
5
|
+
Object.defineProperty(exports, "ENatipayCardAccountProvider", { enumerable: true, get: function () { return account_provider_enum_1.ENatipayCardAccountProvider; } });
|
6
|
+
var mode_enum_1 = require("./mode.enum");
|
7
|
+
Object.defineProperty(exports, "ENatipayCardMode", { enumerable: true, get: function () { return mode_enum_1.ENatipayCardMode; } });
|
8
|
+
var status_enum_1 = require("./status.enum");
|
9
|
+
Object.defineProperty(exports, "ENatipayCardStatus", { enumerable: true, get: function () { return status_enum_1.ENatipayCardStatus; } });
|
10
|
+
var status_production_enum_1 = require("./status-production.enum");
|
11
|
+
Object.defineProperty(exports, "ENatipayCardStatusProduction", { enumerable: true, get: function () { return status_production_enum_1.ENatipayCardStatusProduction; } });
|
12
|
+
var type_enum_1 = require("./type.enum");
|
13
|
+
Object.defineProperty(exports, "ENatipayCardType", { enumerable: true, get: function () { return type_enum_1.ENatipayCardType; } });
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ENatipayCardMode = void 0;
|
4
|
+
var ENatipayCardMode;
|
5
|
+
(function (ENatipayCardMode) {
|
6
|
+
ENatipayCardMode["DISCOUNT"] = "DISCOUNT";
|
7
|
+
ENatipayCardMode["ACCOUNT"] = "ACCOUNT";
|
8
|
+
ENatipayCardMode["HYBRID"] = "HYBRID";
|
9
|
+
ENatipayCardMode["MANAGER"] = "MANAGER";
|
10
|
+
})(ENatipayCardMode || (exports.ENatipayCardMode = ENatipayCardMode = {}));
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ENatipayCardStatusProduction = void 0;
|
4
|
+
var ENatipayCardStatusProduction;
|
5
|
+
(function (ENatipayCardStatusProduction) {
|
6
|
+
ENatipayCardStatusProduction["READY"] = "READY";
|
7
|
+
ENatipayCardStatusProduction["DISPATCHED"] = "DISPATCHED";
|
8
|
+
ENatipayCardStatusProduction["DELIVERED"] = "DELIVERED";
|
9
|
+
ENatipayCardStatusProduction["PENDING"] = "PENDING";
|
10
|
+
ENatipayCardStatusProduction["IN_PRODUCTION"] = "IN_PRODUCTION";
|
11
|
+
})(ENatipayCardStatusProduction || (exports.ENatipayCardStatusProduction = ENatipayCardStatusProduction = {}));
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ENatipayCardStatus = void 0;
|
4
|
+
var ENatipayCardStatus;
|
5
|
+
(function (ENatipayCardStatus) {
|
6
|
+
ENatipayCardStatus["ACTIVE"] = "ACTIVE";
|
7
|
+
ENatipayCardStatus["REVOKED"] = "REVOKED";
|
8
|
+
ENatipayCardStatus["INACTIVE"] = "INACTIVE";
|
9
|
+
ENatipayCardStatus["CANCELLED"] = "CANCELLED";
|
10
|
+
ENatipayCardStatus["BLOCKED"] = "BLOCKED";
|
11
|
+
ENatipayCardStatus["SUSPENDED"] = "SUSPENDED";
|
12
|
+
ENatipayCardStatus["LOCKED"] = "LOCKED";
|
13
|
+
})(ENatipayCardStatus || (exports.ENatipayCardStatus = ENatipayCardStatus = {}));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ENatipayCardType = void 0;
|
4
|
+
var ENatipayCardType;
|
5
|
+
(function (ENatipayCardType) {
|
6
|
+
ENatipayCardType["VIRTUAL"] = "VIRTUAL";
|
7
|
+
ENatipayCardType["PHYSICAL"] = "PHYSICAL";
|
8
|
+
})(ENatipayCardType || (exports.ENatipayCardType = ENatipayCardType = {}));
|
@@ -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,21 @@
|
|
1
|
+
import { EAmountMode, ECycle } from '../../../general';
|
2
|
+
import { INatipayCardAuth } from './i-card-auth';
|
3
|
+
import { INatipayCardCompany } from './i-card-company';
|
4
|
+
import { INatipayCardItem } from './i-card-item';
|
5
|
+
export interface INatipayCardConfig {
|
6
|
+
appIds: string[];
|
7
|
+
auth?: INatipayCardAuth | null;
|
8
|
+
balance?: number;
|
9
|
+
billingCycle: ECycle;
|
10
|
+
companies: INatipayCardCompany[];
|
11
|
+
creditLimit?: number;
|
12
|
+
description?: string | null;
|
13
|
+
discountAmount: number;
|
14
|
+
discountAmountType: EAmountMode;
|
15
|
+
dueDate: Date;
|
16
|
+
invoiceLogs: string[];
|
17
|
+
items: INatipayCardItem[];
|
18
|
+
key: string | null;
|
19
|
+
password: string | null;
|
20
|
+
webhookUrls: string[];
|
21
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { ENatipayCardMode, ENatipayCardStatus } from '../enums';
|
2
|
+
import { ENatipayCardStatusProduction } from '../enums/status-production.enum';
|
3
|
+
import { ENatipayCardType } from '../enums/type.enum';
|
4
|
+
import { INatipayCardAccountProvider } from './i-card-account-provider';
|
5
|
+
import { INatipayCardConfig } from './i-card-config';
|
6
|
+
import { INatipayCardData } from './i-card-data';
|
7
|
+
export interface INatipayCard {
|
8
|
+
accountProvider: INatipayCardAccountProvider;
|
9
|
+
active: boolean;
|
10
|
+
companyId: string;
|
11
|
+
config: INatipayCardConfig;
|
12
|
+
consumerExternalReference: string | null;
|
13
|
+
consumerId: string | null;
|
14
|
+
consumerMetadata: string | null;
|
15
|
+
containerId: string | null;
|
16
|
+
createdAt: Date;
|
17
|
+
data: INatipayCardData;
|
18
|
+
id: string;
|
19
|
+
label: string;
|
20
|
+
logs: string[];
|
21
|
+
mode: ENatipayCardMode;
|
22
|
+
status: ENatipayCardStatus;
|
23
|
+
statusProduction: ENatipayCardStatusProduction;
|
24
|
+
tags: string[];
|
25
|
+
type: ENatipayCardType;
|
26
|
+
unlockCode: string | null;
|
27
|
+
unlockedAt: Date | null;
|
28
|
+
updatedAt: Date;
|
29
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export { INatipayCard } from './i-card';
|
2
|
+
export { INatipayCardAccountProvider } from './i-card-account-provider';
|
3
|
+
export { INatipayCardAuth } from './i-card-auth';
|
4
|
+
export { INatipayCardCompany } from './i-card-company';
|
5
|
+
export { INatipayCardConfig } from './i-card-config';
|
6
|
+
export { INatipayCardData } from './i-card-data';
|
7
|
+
export { INatipayCardItem } from './i-card-item';
|
package/dist/natipay/index.d.ts
CHANGED
package/dist/natipay/index.js
CHANGED
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./cards"), exports);
|
17
18
|
__exportStar(require("./company"), exports);
|
18
19
|
__exportStar(require("./members"), exports);
|
19
20
|
__exportStar(require("./orders"), exports);
|
@@ -1,22 +1,16 @@
|
|
1
1
|
import { PayioCardItemEntity } from '../..';
|
2
|
-
import { EAmountMode
|
2
|
+
import { EAmountMode } from '../../../general';
|
3
3
|
import { IPayioCardAuth, IPayioCardConfig } from '../interfaces';
|
4
4
|
import { PayioCardCompanyEntity } from './card-company.entity';
|
5
5
|
export declare class PayioCardConfigEntity implements IPayioCardConfig {
|
6
6
|
appIds: string[];
|
7
7
|
auth?: IPayioCardAuth | null | undefined;
|
8
|
-
balance: number;
|
9
|
-
billingCycle: ECycle;
|
10
8
|
companies: PayioCardCompanyEntity[];
|
11
|
-
creditLimit: number;
|
12
9
|
description: string | null;
|
13
10
|
discountAmount: number;
|
14
11
|
discountAmountType: EAmountMode;
|
15
|
-
dueDate: Date;
|
16
|
-
invoiceLogs: string[];
|
17
12
|
items: PayioCardItemEntity[];
|
18
13
|
key: string | null;
|
19
14
|
password: string | null;
|
20
|
-
webhookUrls: string[];
|
21
15
|
constructor(data?: Partial<PayioCardConfigEntity>);
|
22
16
|
}
|