cecon-interfaces 1.7.83 → 1.7.84
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/company/entities/company.entity.mjs +2 -1
- package/dist/esm2022/natipay/company/entities/fee-from.entity.mjs +17 -0
- package/dist/esm2022/natipay/company/entities/fee-sale-channel.entity.mjs +17 -0
- package/dist/esm2022/natipay/company/entities/index.mjs +3 -1
- package/dist/esm2022/natipay/company/entities/natipay-fee.entity.mjs +3 -7
- package/dist/esm2022/natipay/company/entities/natipay.entity.mjs +5 -1
- package/dist/esm2022/natipay/company/interfaces/i-company.mjs +1 -1
- package/dist/esm2022/natipay/company/interfaces/i-fee-channel.mjs +2 -0
- package/dist/esm2022/natipay/company/interfaces/i-fee-from.mjs +2 -0
- package/dist/esm2022/natipay/company/interfaces/i-fee.mjs +2 -0
- package/dist/esm2022/natipay/company/interfaces/i-natipay.mjs +1 -1
- package/dist/esm2022/natipay/company/interfaces/index.mjs +1 -1
- package/dist/esm2022/natipay/index.mjs +2 -1
- package/dist/esm2022/natipay/orders/entities/mercado-pago.entity.mjs +2 -1
- package/dist/esm2022/natipay/orders/enums/sale-channel.enum.mjs +7 -1
- package/dist/esm2022/natipay/orders/interfaces/i-mercado-pago.mjs +1 -1
- package/dist/esm2022/natipay/sponsor/entities/index.mjs +2 -0
- package/dist/esm2022/natipay/sponsor/entities/sponsor.entity.mjs +23 -0
- package/dist/esm2022/natipay/sponsor/index.mjs +3 -0
- package/dist/esm2022/natipay/sponsor/interfaces/i-sponsor.mjs +2 -0
- package/dist/esm2022/natipay/sponsor/interfaces/index.mjs +2 -0
- package/dist/esm2022/transaction/entities/fee.entity.mjs +15 -0
- package/dist/esm2022/transaction/entities/index.mjs +2 -1
- package/dist/esm2022/transaction/entities/transaction-total.entity.mjs +1 -1
- package/dist/esm2022/transaction/enums/amount-mode.enum.mjs +6 -0
- package/dist/esm2022/transaction/enums/index.mjs +6 -6
- package/dist/esm2022/transaction/interfaces/i-fee.mjs +1 -1
- package/dist/esm2022/transaction/interfaces/index.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +1537 -1456
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/natipay/company/entities/company.entity.d.ts +2 -0
- package/dist/natipay/company/entities/company.entity.js +1 -0
- package/dist/natipay/company/entities/fee-from.entity.d.ts +9 -0
- package/dist/natipay/company/entities/fee-from.entity.js +21 -0
- package/dist/natipay/company/entities/fee-sale-channel.entity.d.ts +9 -0
- package/dist/natipay/company/entities/fee-sale-channel.entity.js +21 -0
- package/dist/natipay/company/entities/index.d.ts +2 -0
- package/dist/natipay/company/entities/index.js +5 -1
- package/dist/natipay/company/entities/natipay-fee.entity.d.ts +3 -4
- package/dist/natipay/company/entities/natipay-fee.entity.js +2 -6
- package/dist/natipay/company/entities/natipay.entity.d.ts +6 -2
- package/dist/natipay/company/entities/natipay.entity.js +4 -0
- package/dist/natipay/company/interfaces/i-company.d.ts +6 -0
- package/dist/natipay/company/interfaces/i-fee-channel.d.ts +7 -0
- package/dist/natipay/company/interfaces/i-fee-from.d.ts +7 -0
- package/dist/natipay/company/interfaces/i-fee-from.js +2 -0
- package/dist/natipay/company/interfaces/i-fee.d.ts +6 -0
- package/dist/natipay/company/interfaces/i-fee.js +2 -0
- package/dist/natipay/company/interfaces/i-natipay.d.ts +6 -2
- package/dist/natipay/company/interfaces/index.d.ts +3 -1
- package/dist/natipay/index.d.ts +1 -0
- package/dist/natipay/index.js +1 -0
- package/dist/natipay/orders/entities/mercado-pago.entity.d.ts +2 -0
- package/dist/natipay/orders/entities/mercado-pago.entity.js +1 -0
- package/dist/natipay/orders/enums/sale-channel.enum.d.ts +7 -1
- package/dist/natipay/orders/enums/sale-channel.enum.js +6 -0
- package/dist/natipay/orders/interfaces/i-mercado-pago.d.ts +2 -0
- package/dist/natipay/sponsor/entities/index.d.ts +1 -0
- package/dist/natipay/sponsor/entities/index.js +5 -0
- package/dist/natipay/sponsor/entities/sponsor.entity.d.ts +16 -0
- package/dist/natipay/sponsor/entities/sponsor.entity.js +27 -0
- package/dist/natipay/sponsor/index.d.ts +2 -0
- package/dist/natipay/sponsor/index.js +18 -0
- package/dist/natipay/sponsor/interfaces/i-sponsor.d.ts +14 -0
- package/dist/natipay/sponsor/interfaces/i-sponsor.js +2 -0
- package/dist/natipay/sponsor/interfaces/index.d.ts +1 -0
- package/dist/natipay/sponsor/interfaces/index.js +2 -0
- package/dist/package.json +1 -1
- package/dist/transaction/entities/fee.entity.d.ts +8 -0
- package/dist/transaction/entities/fee.entity.js +19 -0
- package/dist/transaction/entities/index.d.ts +1 -0
- package/dist/transaction/entities/index.js +3 -1
- package/dist/transaction/enums/amount-mode.enum.d.ts +4 -0
- package/dist/transaction/enums/amount-mode.enum.js +8 -0
- package/dist/transaction/enums/index.d.ts +5 -5
- package/dist/transaction/enums/index.js +10 -9
- package/dist/transaction/interfaces/i-fee.d.ts +2 -1
- package/dist/transaction/interfaces/index.d.ts +1 -1
- package/package.json +1 -1
- package/readme.md +1 -0
- package/dist/esm2022/natipay/company/interfaces/i-natipay-fee.mjs +0 -2
- package/dist/natipay/company/interfaces/i-natipay-fee.d.ts +0 -5
- /package/dist/natipay/company/interfaces/{i-natipay-fee.js → i-fee-channel.js} +0 -0
@@ -1,6 +1,7 @@
|
|
1
1
|
import { EDocType, IPaymentProvider, PixKeyEntity } from '../../../general';
|
2
2
|
import { INatipayCompany } from '../interfaces/i-company';
|
3
3
|
import { NatiapyAddressEntity } from './address.entity';
|
4
|
+
import { NatipayFeeEntity } from './natipay-fee.entity';
|
4
5
|
import { NatipayEntity } from './natipay.entity';
|
5
6
|
export declare class NatipayCompanyEntity implements INatipayCompany {
|
6
7
|
active: boolean;
|
@@ -13,6 +14,7 @@ export declare class NatipayCompanyEntity implements INatipayCompany {
|
|
13
14
|
doc: string;
|
14
15
|
docType: EDocType;
|
15
16
|
email: string;
|
17
|
+
fees: NatipayFeeEntity[];
|
16
18
|
id: string;
|
17
19
|
imageUrl: string | null;
|
18
20
|
internationalCode: string;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { EFrom } from '../../../general';
|
2
|
+
import { EAmountMode } from '../../../transaction';
|
3
|
+
import { IFeeFrom } from '../interfaces';
|
4
|
+
export declare class FeeFromEntity implements IFeeFrom {
|
5
|
+
amount: number;
|
6
|
+
amountMode: EAmountMode;
|
7
|
+
from: EFrom;
|
8
|
+
constructor(data?: Partial<FeeFromEntity>);
|
9
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.FeeFromEntity = void 0;
|
4
|
+
var general_1 = require("../../../general");
|
5
|
+
var transaction_1 = require("../../../transaction");
|
6
|
+
var FeeFromEntity = /** @class */ (function () {
|
7
|
+
function FeeFromEntity(data) {
|
8
|
+
this.amount = 0;
|
9
|
+
this.amountMode = transaction_1.EAmountMode.PERCENTAGE;
|
10
|
+
this.from = general_1.EFrom.DEFAULT;
|
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 FeeFromEntity;
|
20
|
+
}());
|
21
|
+
exports.FeeFromEntity = FeeFromEntity;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { ENatipaySaleChannel } from '../..';
|
2
|
+
import { EAmountMode } from '../../../transaction';
|
3
|
+
import { IFeeSaleChannel } from '../interfaces';
|
4
|
+
export declare class FeeSaleChannelEntity implements IFeeSaleChannel {
|
5
|
+
amount: number;
|
6
|
+
amountMode: EAmountMode;
|
7
|
+
saleChannel: ENatipaySaleChannel;
|
8
|
+
constructor(data?: Partial<FeeSaleChannelEntity>);
|
9
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.FeeSaleChannelEntity = void 0;
|
4
|
+
var __1 = require("../..");
|
5
|
+
var transaction_1 = require("../../../transaction");
|
6
|
+
var FeeSaleChannelEntity = /** @class */ (function () {
|
7
|
+
function FeeSaleChannelEntity(data) {
|
8
|
+
this.amount = 0;
|
9
|
+
this.amountMode = transaction_1.EAmountMode.PERCENTAGE;
|
10
|
+
this.saleChannel = __1.ENatipaySaleChannel.DEFAULT;
|
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 FeeSaleChannelEntity;
|
20
|
+
}());
|
21
|
+
exports.FeeSaleChannelEntity = FeeSaleChannelEntity;
|
@@ -1,4 +1,6 @@
|
|
1
1
|
export { NatiapyAddressEntity } from './address.entity';
|
2
2
|
export { NatipayCompanyEntity } from './company.entity';
|
3
|
+
export { FeeFromEntity } from './fee-from.entity';
|
4
|
+
export { FeeSaleChannelEntity } from './fee-sale-channel.entity';
|
3
5
|
export { NatipayFeeEntity } from './natipay-fee.entity';
|
4
6
|
export { NatipayEntity } from './natipay.entity';
|
@@ -1,10 +1,14 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.NatipayEntity = exports.NatipayFeeEntity = exports.NatipayCompanyEntity = exports.NatiapyAddressEntity = void 0;
|
3
|
+
exports.NatipayEntity = exports.NatipayFeeEntity = exports.FeeSaleChannelEntity = exports.FeeFromEntity = exports.NatipayCompanyEntity = exports.NatiapyAddressEntity = void 0;
|
4
4
|
var address_entity_1 = require("./address.entity");
|
5
5
|
Object.defineProperty(exports, "NatiapyAddressEntity", { enumerable: true, get: function () { return address_entity_1.NatiapyAddressEntity; } });
|
6
6
|
var company_entity_1 = require("./company.entity");
|
7
7
|
Object.defineProperty(exports, "NatipayCompanyEntity", { enumerable: true, get: function () { return company_entity_1.NatipayCompanyEntity; } });
|
8
|
+
var fee_from_entity_1 = require("./fee-from.entity");
|
9
|
+
Object.defineProperty(exports, "FeeFromEntity", { enumerable: true, get: function () { return fee_from_entity_1.FeeFromEntity; } });
|
10
|
+
var fee_sale_channel_entity_1 = require("./fee-sale-channel.entity");
|
11
|
+
Object.defineProperty(exports, "FeeSaleChannelEntity", { enumerable: true, get: function () { return fee_sale_channel_entity_1.FeeSaleChannelEntity; } });
|
8
12
|
var natipay_fee_entity_1 = require("./natipay-fee.entity");
|
9
13
|
Object.defineProperty(exports, "NatipayFeeEntity", { enumerable: true, get: function () { return natipay_fee_entity_1.NatipayFeeEntity; } });
|
10
14
|
var natipay_entity_1 = require("./natipay.entity");
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import { INatipayFee } from '../interfaces/i-natipay-fee';
|
1
|
+
import { IFeeFrom, IFeeSaleChannel, INatipayFee } from '../interfaces';
|
3
2
|
export declare class NatipayFeeEntity implements INatipayFee {
|
4
|
-
|
5
|
-
|
3
|
+
from: IFeeFrom[];
|
4
|
+
saleChannel: IFeeSaleChannel[];
|
6
5
|
constructor(data?: Partial<NatipayFeeEntity>);
|
7
6
|
}
|
@@ -1,14 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.NatipayFeeEntity = void 0;
|
4
|
-
var general_1 = require("../../../general");
|
5
4
|
var NatipayFeeEntity = /** @class */ (function () {
|
6
|
-
// #endregion Properties (2)
|
7
|
-
// #region Constructors (1)
|
8
5
|
function NatipayFeeEntity(data) {
|
9
|
-
|
10
|
-
this.
|
11
|
-
this.value = 0.0099;
|
6
|
+
this.from = [];
|
7
|
+
this.saleChannel = [];
|
12
8
|
if (data) {
|
13
9
|
for (var key in data) {
|
14
10
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -1,12 +1,16 @@
|
|
1
1
|
import { DesenfilaConfigEntity, DesenfilaTokenEntity } from '../../../app';
|
2
|
+
import { IFee } from '../../../transaction';
|
2
3
|
import { INatipay } from '../interfaces/i-natipay';
|
3
|
-
|
4
|
+
/**
|
5
|
+
* @deprecated
|
6
|
+
* Esta classe está obsoleta. Use a propriedade fees para saber a conta do marketplace.
|
7
|
+
*/
|
4
8
|
export declare class NatipayEntity implements INatipay {
|
5
9
|
balance: number;
|
6
10
|
blockedBalance: number;
|
7
11
|
config: DesenfilaConfigEntity | null;
|
8
12
|
containerId: string;
|
9
|
-
fees:
|
13
|
+
fees: IFee[];
|
10
14
|
goLive: boolean;
|
11
15
|
merchantId: string;
|
12
16
|
token: DesenfilaTokenEntity | null;
|
@@ -1,6 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.NatipayEntity = void 0;
|
4
|
+
/**
|
5
|
+
* @deprecated
|
6
|
+
* Esta classe está obsoleta. Use a propriedade fees para saber a conta do marketplace.
|
7
|
+
*/
|
4
8
|
var NatipayEntity = /** @class */ (function () {
|
5
9
|
function NatipayEntity(data) {
|
6
10
|
this.balance = 0;
|
@@ -2,6 +2,7 @@ import { EDocType } from '../../../general';
|
|
2
2
|
import { IPaymentProvider } from '../../../general/interfaces/i-payment-provider';
|
3
3
|
import { IPixKey } from '../../../general/interfaces/i-pix-key';
|
4
4
|
import { INatipayAddress } from './i-address';
|
5
|
+
import { INatipayFee } from './i-fee';
|
5
6
|
import { INatipay } from './i-natipay';
|
6
7
|
export interface INatipayCompany {
|
7
8
|
active: boolean;
|
@@ -19,6 +20,11 @@ export interface INatipayCompany {
|
|
19
20
|
internationalCode: string;
|
20
21
|
logoUrl: string | null;
|
21
22
|
name: string;
|
23
|
+
fees: INatipayFee[];
|
24
|
+
/**
|
25
|
+
* @deprecated
|
26
|
+
* Usar a propriedade fees para saber a conta do marketplace
|
27
|
+
*/
|
22
28
|
natipay: INatipay | null;
|
23
29
|
paymentProvider: IPaymentProvider | null;
|
24
30
|
phoneNumber: string;
|
@@ -1,6 +1,10 @@
|
|
1
1
|
import { IDesenfilaToken } from '../../../app';
|
2
2
|
import { IDesenfilaConfig } from '../../../app/interfaces/i-desenfila-config';
|
3
|
-
import {
|
3
|
+
import { IFee } from '../../../transaction';
|
4
|
+
/**
|
5
|
+
* @deprecated
|
6
|
+
* Esta interface está obsoleta. Use a propriedade fees para saber a conta do marketplace.
|
7
|
+
*/
|
4
8
|
export interface INatipay {
|
5
9
|
containerId: string;
|
6
10
|
merchantId: string;
|
@@ -8,6 +12,6 @@ export interface INatipay {
|
|
8
12
|
balance: number;
|
9
13
|
blockedBalance: number;
|
10
14
|
goLive: boolean;
|
11
|
-
fees:
|
15
|
+
fees: IFee[];
|
12
16
|
config: IDesenfilaConfig | null;
|
13
17
|
}
|
@@ -1,4 +1,6 @@
|
|
1
1
|
export { INatipayAddress } from './i-address';
|
2
2
|
export { INatipayCompany } from './i-company';
|
3
|
+
export { INatipayFee } from './i-fee';
|
4
|
+
export { IFeeSaleChannel } from './i-fee-channel';
|
5
|
+
export { IFeeFrom } from './i-fee-from';
|
3
6
|
export { INatipay } from './i-natipay';
|
4
|
-
export { INatipayFee } from './i-natipay-fee';
|
package/dist/natipay/index.d.ts
CHANGED
package/dist/natipay/index.js
CHANGED
@@ -18,5 +18,6 @@ __exportStar(require("./company"), exports);
|
|
18
18
|
__exportStar(require("./members"), exports);
|
19
19
|
__exportStar(require("./orders"), exports);
|
20
20
|
__exportStar(require("./payload"), exports);
|
21
|
+
__exportStar(require("./sponsor"), exports);
|
21
22
|
__exportStar(require("./tokens"), exports);
|
22
23
|
__exportStar(require("./user"), exports);
|
@@ -1,8 +1,10 @@
|
|
1
|
+
import { IFeeDetail } from '../../../transaction';
|
1
2
|
import { INatipayMercadoPago } from '../interfaces/i-mercado-pago';
|
2
3
|
export declare class NatipayMercadoPagoEntity implements INatipayMercadoPago {
|
3
4
|
amountPaid: number;
|
4
5
|
paymentId: string;
|
5
6
|
paymentStatus: string;
|
6
7
|
preferenceId: string;
|
8
|
+
feeDetails: IFeeDetail[];
|
7
9
|
constructor(data?: Partial<NatipayMercadoPagoEntity>);
|
8
10
|
}
|
@@ -1,9 +1,15 @@
|
|
1
1
|
export declare enum ENatipaySaleChannel {
|
2
2
|
PAYIO_CASH = "PAYIOCASH",
|
3
3
|
PAYIO_CHEF = "PAYIOCHEF",
|
4
|
+
GESTOR_FINANCE = "GESTOR-FINANCE",
|
4
5
|
NATIPAY_TAB = "NATIPAY-TAB",
|
5
6
|
NATI_PDV = "NATI-PDV",
|
6
7
|
NATI_SMART_POS = "NATI-SMART-POS",
|
7
8
|
NATI_TOTEM = "NATI-TOTEM",
|
8
|
-
MOBYO_DELIVERY = "MOBYO-DELIVERY"
|
9
|
+
MOBYO_DELIVERY = "MOBYO-DELIVERY",
|
10
|
+
MOBYO_TAB = "MOBYO-TAB",
|
11
|
+
MOBYO_PDV = "MOBYO-PDV",
|
12
|
+
MOBYO_SMART_POS = "MOBYO-SMART-POS",
|
13
|
+
MOBYO_TOTEM = "MOBYO-TOTEM",
|
14
|
+
DEFAULT = "DEFAULT"
|
9
15
|
}
|
@@ -6,9 +6,15 @@ var ENatipaySaleChannel;
|
|
6
6
|
(function (ENatipaySaleChannel) {
|
7
7
|
ENatipaySaleChannel["PAYIO_CASH"] = "PAYIOCASH";
|
8
8
|
ENatipaySaleChannel["PAYIO_CHEF"] = "PAYIOCHEF";
|
9
|
+
ENatipaySaleChannel["GESTOR_FINANCE"] = "GESTOR-FINANCE";
|
9
10
|
ENatipaySaleChannel["NATIPAY_TAB"] = "NATIPAY-TAB";
|
10
11
|
ENatipaySaleChannel["NATI_PDV"] = "NATI-PDV";
|
11
12
|
ENatipaySaleChannel["NATI_SMART_POS"] = "NATI-SMART-POS";
|
12
13
|
ENatipaySaleChannel["NATI_TOTEM"] = "NATI-TOTEM";
|
13
14
|
ENatipaySaleChannel["MOBYO_DELIVERY"] = "MOBYO-DELIVERY";
|
15
|
+
ENatipaySaleChannel["MOBYO_TAB"] = "MOBYO-TAB";
|
16
|
+
ENatipaySaleChannel["MOBYO_PDV"] = "MOBYO-PDV";
|
17
|
+
ENatipaySaleChannel["MOBYO_SMART_POS"] = "MOBYO-SMART-POS";
|
18
|
+
ENatipaySaleChannel["MOBYO_TOTEM"] = "MOBYO-TOTEM";
|
19
|
+
ENatipaySaleChannel["DEFAULT"] = "DEFAULT";
|
14
20
|
})(ENatipaySaleChannel || (exports.ENatipaySaleChannel = ENatipaySaleChannel = {}));
|
@@ -0,0 +1 @@
|
|
1
|
+
export { NatipaySponsorEntity } from './sponsor.entity';
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.NatipaySponsorEntity = void 0;
|
4
|
+
var sponsor_entity_1 = require("./sponsor.entity");
|
5
|
+
Object.defineProperty(exports, "NatipaySponsorEntity", { enumerable: true, get: function () { return sponsor_entity_1.NatipaySponsorEntity; } });
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { EDocType, InfoEntity } from '../../../general';
|
2
|
+
import { IFee } from '../../../transaction';
|
3
|
+
import { INatipaySponsor } from '../interfaces/i-sponsor';
|
4
|
+
export declare class NatipaySponsorEntity implements INatipaySponsor {
|
5
|
+
createdAt: Date;
|
6
|
+
doc: string;
|
7
|
+
docType: EDocType;
|
8
|
+
email: string | null;
|
9
|
+
fees: IFee[];
|
10
|
+
id: string;
|
11
|
+
info: InfoEntity;
|
12
|
+
internationalCode: string;
|
13
|
+
name: string;
|
14
|
+
phoneNumber: string;
|
15
|
+
constructor(data?: Partial<NatipaySponsorEntity>);
|
16
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.NatipaySponsorEntity = void 0;
|
4
|
+
var general_1 = require("../../../general");
|
5
|
+
var NatipaySponsorEntity = /** @class */ (function () {
|
6
|
+
function NatipaySponsorEntity(data) {
|
7
|
+
this.createdAt = new Date();
|
8
|
+
this.doc = '';
|
9
|
+
this.docType = general_1.EDocType.CNPJ;
|
10
|
+
this.email = null;
|
11
|
+
this.fees = [];
|
12
|
+
this.id = '';
|
13
|
+
this.info = new general_1.InfoEntity();
|
14
|
+
this.internationalCode = '55';
|
15
|
+
this.name = '';
|
16
|
+
this.phoneNumber = '';
|
17
|
+
if (data) {
|
18
|
+
for (var key in data) {
|
19
|
+
if (data.hasOwnProperty(key) && key in this) {
|
20
|
+
this[key] = data[key];
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
return NatipaySponsorEntity;
|
26
|
+
}());
|
27
|
+
exports.NatipaySponsorEntity = NatipaySponsorEntity;
|
@@ -0,0 +1,18 @@
|
|
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("./interfaces"), exports);
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { EDocType, IInfo } from '../../../general';
|
2
|
+
import { IFee } from '../../../transaction';
|
3
|
+
export interface INatipaySponsor {
|
4
|
+
id: string;
|
5
|
+
fees: IFee[];
|
6
|
+
createdAt: Date;
|
7
|
+
name: string;
|
8
|
+
doc: string;
|
9
|
+
docType: EDocType;
|
10
|
+
internationalCode: string;
|
11
|
+
phoneNumber: string;
|
12
|
+
email: string | null;
|
13
|
+
info: IInfo;
|
14
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { INatipaySponsor } from './i-sponsor';
|
package/dist/package.json
CHANGED
@@ -0,0 +1,8 @@
|
|
1
|
+
import { EFrom } from '../../general';
|
2
|
+
import { ENatipaySaleChannel } from '../../natipay';
|
3
|
+
import { IFee } from '../interfaces';
|
4
|
+
export declare class FeeEntity implements IFee {
|
5
|
+
type: EFrom | ENatipaySaleChannel;
|
6
|
+
value: number;
|
7
|
+
constructor(data?: Partial<FeeEntity>);
|
8
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.FeeEntity = void 0;
|
4
|
+
var general_1 = require("../../general");
|
5
|
+
var FeeEntity = /** @class */ (function () {
|
6
|
+
function FeeEntity(data) {
|
7
|
+
this.type = general_1.EFrom.PAYIO;
|
8
|
+
this.value = 0;
|
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 FeeEntity;
|
18
|
+
}());
|
19
|
+
exports.FeeEntity = FeeEntity;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
export { FeeDetailEntity } from './fee-detail.entity';
|
2
|
+
export { FeeEntity } from './fee.entity';
|
2
3
|
export { TransactionBalanceEntity } from './transaction-balance.entity';
|
3
4
|
export { TransactionInfoResumeEntity } from './transaction-info-resume.entity';
|
4
5
|
export { TransactionPaymentMethodEntity } from './transaction-payment-method.entity';
|
@@ -1,8 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.TransactionEntity = exports.TransactionTotalEntity = exports.TransactionResumeEntity = exports.TransactionPaymentMethodEntity = exports.TransactionInfoResumeEntity = exports.TransactionBalanceEntity = exports.FeeDetailEntity = void 0;
|
3
|
+
exports.TransactionEntity = exports.TransactionTotalEntity = exports.TransactionResumeEntity = exports.TransactionPaymentMethodEntity = exports.TransactionInfoResumeEntity = exports.TransactionBalanceEntity = exports.FeeEntity = exports.FeeDetailEntity = void 0;
|
4
4
|
var fee_detail_entity_1 = require("./fee-detail.entity");
|
5
5
|
Object.defineProperty(exports, "FeeDetailEntity", { enumerable: true, get: function () { return fee_detail_entity_1.FeeDetailEntity; } });
|
6
|
+
var fee_entity_1 = require("./fee.entity");
|
7
|
+
Object.defineProperty(exports, "FeeEntity", { enumerable: true, get: function () { return fee_entity_1.FeeEntity; } });
|
6
8
|
var transaction_balance_entity_1 = require("./transaction-balance.entity");
|
7
9
|
Object.defineProperty(exports, "TransactionBalanceEntity", { enumerable: true, get: function () { return transaction_balance_entity_1.TransactionBalanceEntity; } });
|
8
10
|
var transaction_info_resume_entity_1 = require("./transaction-info-resume.entity");
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EAmountMode = void 0;
|
4
|
+
var EAmountMode;
|
5
|
+
(function (EAmountMode) {
|
6
|
+
EAmountMode["PERCENTAGE"] = "percentage";
|
7
|
+
EAmountMode["FIXED"] = "fixed";
|
8
|
+
})(EAmountMode || (exports.EAmountMode = EAmountMode = {}));
|
@@ -1,9 +1,9 @@
|
|
1
|
-
export { EReleaseStatus } from './release-status.enum';
|
2
|
-
export { ETransactionStatus } from './transaction-status.enum';
|
3
|
-
export { EMpStatus } from './mp-status.enum';
|
4
1
|
export { EMpStatusDetail } from './mp-status-detail.enum';
|
5
|
-
export {
|
6
|
-
export { ESponsorIdentifier } from './operation-type.enum';
|
2
|
+
export { EMpStatus } from './mp-status.enum';
|
3
|
+
export { EOperationType, ESponsorIdentifier } from './operation-type.enum';
|
7
4
|
export { EPaymentMethodId } from './payment-method-id.enum';
|
8
5
|
export { EPaymentTypeId } from './payment-type-id.enum';
|
6
|
+
export { EReleaseStatus } from './release-status.enum';
|
9
7
|
export { ETransactionResumesTargetType } from './transaction-resumes-target-type.enum';
|
8
|
+
export { ETransactionStatus } from './transaction-status.enum';
|
9
|
+
export { EAmountMode } from './amount-mode.enum';
|
@@ -1,21 +1,22 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
var release_status_enum_1 = require("./release-status.enum");
|
5
|
-
Object.defineProperty(exports, "EReleaseStatus", { enumerable: true, get: function () { return release_status_enum_1.EReleaseStatus; } });
|
6
|
-
var transaction_status_enum_1 = require("./transaction-status.enum");
|
7
|
-
Object.defineProperty(exports, "ETransactionStatus", { enumerable: true, get: function () { return transaction_status_enum_1.ETransactionStatus; } });
|
8
|
-
var mp_status_enum_1 = require("./mp-status.enum");
|
9
|
-
Object.defineProperty(exports, "EMpStatus", { enumerable: true, get: function () { return mp_status_enum_1.EMpStatus; } });
|
3
|
+
exports.EAmountMode = exports.ETransactionStatus = exports.ETransactionResumesTargetType = exports.EReleaseStatus = exports.EPaymentTypeId = exports.EPaymentMethodId = exports.ESponsorIdentifier = exports.EOperationType = exports.EMpStatus = exports.EMpStatusDetail = void 0;
|
10
4
|
var mp_status_detail_enum_1 = require("./mp-status-detail.enum");
|
11
5
|
Object.defineProperty(exports, "EMpStatusDetail", { enumerable: true, get: function () { return mp_status_detail_enum_1.EMpStatusDetail; } });
|
6
|
+
var mp_status_enum_1 = require("./mp-status.enum");
|
7
|
+
Object.defineProperty(exports, "EMpStatus", { enumerable: true, get: function () { return mp_status_enum_1.EMpStatus; } });
|
12
8
|
var operation_type_enum_1 = require("./operation-type.enum");
|
13
9
|
Object.defineProperty(exports, "EOperationType", { enumerable: true, get: function () { return operation_type_enum_1.EOperationType; } });
|
14
|
-
|
15
|
-
Object.defineProperty(exports, "ESponsorIdentifier", { enumerable: true, get: function () { return operation_type_enum_2.ESponsorIdentifier; } });
|
10
|
+
Object.defineProperty(exports, "ESponsorIdentifier", { enumerable: true, get: function () { return operation_type_enum_1.ESponsorIdentifier; } });
|
16
11
|
var payment_method_id_enum_1 = require("./payment-method-id.enum");
|
17
12
|
Object.defineProperty(exports, "EPaymentMethodId", { enumerable: true, get: function () { return payment_method_id_enum_1.EPaymentMethodId; } });
|
18
13
|
var payment_type_id_enum_1 = require("./payment-type-id.enum");
|
19
14
|
Object.defineProperty(exports, "EPaymentTypeId", { enumerable: true, get: function () { return payment_type_id_enum_1.EPaymentTypeId; } });
|
15
|
+
var release_status_enum_1 = require("./release-status.enum");
|
16
|
+
Object.defineProperty(exports, "EReleaseStatus", { enumerable: true, get: function () { return release_status_enum_1.EReleaseStatus; } });
|
20
17
|
var transaction_resumes_target_type_enum_1 = require("./transaction-resumes-target-type.enum");
|
21
18
|
Object.defineProperty(exports, "ETransactionResumesTargetType", { enumerable: true, get: function () { return transaction_resumes_target_type_enum_1.ETransactionResumesTargetType; } });
|
19
|
+
var transaction_status_enum_1 = require("./transaction-status.enum");
|
20
|
+
Object.defineProperty(exports, "ETransactionStatus", { enumerable: true, get: function () { return transaction_status_enum_1.ETransactionStatus; } });
|
21
|
+
var amount_mode_enum_1 = require("./amount-mode.enum");
|
22
|
+
Object.defineProperty(exports, "EAmountMode", { enumerable: true, get: function () { return amount_mode_enum_1.EAmountMode; } });
|
@@ -2,8 +2,8 @@ export { ITransactionBalance } from './i-balance';
|
|
2
2
|
export { IFee } from './i-fee';
|
3
3
|
export { IFeeDetail } from './i-fee-detail';
|
4
4
|
export { ITransactionPaymentMethod } from './i-payment-method';
|
5
|
+
export { ITransactionResumeItemDetail } from './i-resume-item-detail';
|
5
6
|
export { ITransactionTotal } from './i-total';
|
6
7
|
export { ITransaction } from './i-transaction';
|
7
8
|
export { ITransactionInfoResume } from './i-transaction-info-resume';
|
8
9
|
export { ITransactionResume } from './i-transaction-resume';
|
9
|
-
export { ITransactionResumeItemDetail } from './i-resume-item-detail';
|
package/package.json
CHANGED
package/readme.md
CHANGED
@@ -1,2 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1uYXRpcGF5LWZlZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9uYXRpcGF5L2NvbXBhbnkvaW50ZXJmYWNlcy9pLW5hdGlwYXktZmVlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBFRnJvbSB9IGZyb20gJy4uLy4uLy4uL2dlbmVyYWwnO1xyXG5cclxuZXhwb3J0IGludGVyZmFjZSBJTmF0aXBheUZlZSB7XHJcbiAgLy8gI3JlZ2lvbiBQcm9wZXJ0aWVzICgyKVxyXG5cclxuICB0eXBlOiBFRnJvbTtcclxuICB2YWx1ZTogbnVtYmVyO1xyXG5cclxuICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDIpXHJcbn1cclxuIl19
|