cecon-interfaces 1.3.8 → 1.3.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/company/entities/company.entity.d.ts +4 -0
- package/dist/company/entities/company.entity.js +1 -0
- package/dist/company/interfaces/i-company.d.ts +2 -0
- package/dist/desenfila-merchant/entities/index.d.ts +3 -0
- package/dist/desenfila-merchant/entities/index.js +9 -0
- package/dist/desenfila-merchant/entities/merchant-address.entity.d.ts +11 -0
- package/dist/desenfila-merchant/entities/merchant-address.entity.js +23 -0
- package/dist/desenfila-merchant/entities/merchant-payment-provider.entity.d.ts +15 -0
- package/dist/desenfila-merchant/entities/merchant-payment-provider.entity.js +27 -0
- package/dist/desenfila-merchant/entities/merchant.entity.d.ts +29 -0
- package/dist/desenfila-merchant/entities/merchant.entity.js +40 -0
- package/dist/desenfila-merchant/index.d.ts +2 -0
- package/dist/desenfila-merchant/index.js +18 -0
- package/dist/desenfila-merchant/interfaces/i-merchant-address.d.ts +9 -0
- package/dist/desenfila-merchant/interfaces/i-merchant-address.js +2 -0
- package/dist/desenfila-merchant/interfaces/i-merchant-mercado-pago.d.ts +3 -0
- package/dist/desenfila-merchant/interfaces/i-merchant-mercado-pago.js +2 -0
- package/dist/desenfila-merchant/interfaces/i-merchant-payers-store.d.ts +4 -0
- package/dist/desenfila-merchant/interfaces/i-merchant-payers-store.js +2 -0
- package/dist/desenfila-merchant/interfaces/i-merchant-payment-provider-agent.d.ts +3 -0
- package/dist/desenfila-merchant/interfaces/i-merchant-payment-provider-agent.js +2 -0
- package/dist/desenfila-merchant/interfaces/i-merchant-payment-provider.d.ts +14 -0
- package/dist/desenfila-merchant/interfaces/i-merchant-payment-provider.js +2 -0
- package/dist/desenfila-merchant/interfaces/i-merchant.d.ts +27 -0
- package/dist/desenfila-merchant/interfaces/i-merchant.js +2 -0
- package/dist/desenfila-merchant/interfaces/index.d.ts +6 -0
- package/dist/desenfila-merchant/interfaces/index.js +2 -0
- package/dist/desenfila-order/entities/i-container-order-item.entity.d.ts +14 -0
- package/dist/desenfila-order/entities/i-container-order-item.entity.js +26 -0
- package/dist/desenfila-order/entities/i-container-order-payment.d.ts +18 -0
- package/dist/desenfila-order/entities/i-container-order-payment.js +30 -0
- package/dist/desenfila-order/entities/i-container-order-pix.entity.d.ts +7 -0
- package/dist/desenfila-order/entities/i-container-order-pix.entity.js +19 -0
- package/dist/desenfila-order/entities/i-container-order.entity.d.ts +45 -0
- package/dist/desenfila-order/entities/i-container-order.entity.js +55 -0
- package/dist/desenfila-order/entities/index.d.ts +4 -0
- package/dist/desenfila-order/entities/index.js +11 -0
- package/dist/desenfila-order/index.d.ts +2 -0
- package/dist/desenfila-order/index.js +18 -0
- package/dist/desenfila-order/interfaces/i-container-order-item.d.ts +12 -0
- package/dist/desenfila-order/interfaces/i-container-order-item.js +2 -0
- package/dist/desenfila-order/interfaces/i-container-order-payment.d.ts +19 -0
- package/dist/desenfila-order/interfaces/i-container-order-payment.js +2 -0
- package/dist/desenfila-order/interfaces/i-container-order-pix.d.ts +5 -0
- package/dist/desenfila-order/interfaces/i-container-order-pix.js +2 -0
- package/dist/desenfila-order/interfaces/i-container-order.d.ts +47 -0
- package/dist/desenfila-order/interfaces/i-container-order.js +2 -0
- package/dist/desenfila-order/interfaces/index.d.ts +4 -0
- package/dist/desenfila-order/interfaces/index.js +2 -0
- package/dist/esm2022/company/entities/company.entity.mjs +3 -1
- package/dist/esm2022/company/interfaces/i-company.mjs +1 -1
- package/dist/esm2022/desenfila-merchant/entities/index.mjs +4 -0
- package/dist/esm2022/desenfila-merchant/entities/merchant-address.entity.mjs +19 -0
- package/dist/esm2022/desenfila-merchant/entities/merchant-payment-provider.entity.mjs +23 -0
- package/dist/esm2022/desenfila-merchant/entities/merchant.entity.mjs +36 -0
- package/dist/esm2022/desenfila-merchant/index.mjs +3 -0
- package/dist/esm2022/desenfila-merchant/interfaces/i-merchant-address.mjs +2 -0
- package/dist/esm2022/desenfila-merchant/interfaces/i-merchant-mercado-pago.mjs +2 -0
- package/dist/esm2022/desenfila-merchant/interfaces/i-merchant-payers-store.mjs +2 -0
- package/dist/esm2022/desenfila-merchant/interfaces/i-merchant-payment-provider-agent.mjs +2 -0
- package/dist/esm2022/desenfila-merchant/interfaces/i-merchant-payment-provider.mjs +2 -0
- package/dist/esm2022/desenfila-merchant/interfaces/i-merchant.mjs +2 -0
- package/dist/esm2022/desenfila-merchant/interfaces/index.mjs +2 -0
- package/dist/esm2022/desenfila-order/entities/i-container-order-item.entity.mjs +22 -0
- package/dist/esm2022/desenfila-order/entities/i-container-order-payment.mjs +26 -0
- package/dist/esm2022/desenfila-order/entities/i-container-order-pix.entity.mjs +15 -0
- package/dist/esm2022/desenfila-order/entities/i-container-order.entity.mjs +51 -0
- package/dist/esm2022/desenfila-order/entities/index.mjs +5 -0
- package/dist/esm2022/desenfila-order/index.mjs +3 -0
- package/dist/esm2022/desenfila-order/interfaces/i-container-order-item.mjs +2 -0
- package/dist/esm2022/desenfila-order/interfaces/i-container-order-payment.mjs +2 -0
- package/dist/esm2022/desenfila-order/interfaces/i-container-order-pix.mjs +2 -0
- package/dist/esm2022/desenfila-order/interfaces/i-container-order.mjs +2 -0
- package/dist/esm2022/desenfila-order/interfaces/index.mjs +2 -0
- package/dist/esm2022/general/entities/index.mjs +2 -1
- package/dist/esm2022/general/entities/query.entity.mjs +27 -0
- package/dist/esm2022/general/interfaces/i-desenfila-info.mjs +2 -0
- package/dist/esm2022/general/interfaces/i-mobyo-info.mjs +2 -0
- package/dist/esm2022/general/interfaces/i-nati-info.mjs +2 -0
- package/dist/esm2022/general/interfaces/i-query.mjs +2 -0
- package/dist/esm2022/general/interfaces/index.mjs +1 -1
- package/dist/esm2022/global-settings/interfaces/i-global-setting-nati-pay.mjs +2 -0
- package/dist/esm2022/global-settings/interfaces/i-global-setting-taxes.mjs +2 -0
- package/dist/esm2022/global-settings/interfaces/index.mjs +1 -1
- package/dist/esm2022/index.mjs +3 -1
- package/dist/esm2022/transaction/entities/transaction.entity.mjs +4 -3
- package/dist/esm2022/transaction/interfaces/i-fee.mjs +2 -0
- package/dist/esm2022/transaction/interfaces/i-transaction.mjs +1 -1
- package/dist/esm2022/transaction/interfaces/index.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +221 -3
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/general/entities/index.d.ts +1 -0
- package/dist/general/entities/index.js +3 -1
- package/dist/general/entities/query.entity.d.ts +16 -0
- package/dist/general/entities/query.entity.js +31 -0
- package/dist/general/interfaces/i-desenfila-info.d.ts +4 -0
- package/dist/general/interfaces/i-desenfila-info.js +2 -0
- package/dist/general/interfaces/i-mobyo-info.d.ts +4 -0
- package/dist/general/interfaces/i-mobyo-info.js +2 -0
- package/dist/general/interfaces/i-nati-info.d.ts +4 -0
- package/dist/general/interfaces/i-nati-info.js +2 -0
- package/dist/general/interfaces/i-query.d.ts +14 -0
- package/dist/general/interfaces/i-query.js +2 -0
- package/dist/general/interfaces/index.d.ts +4 -0
- package/dist/global-settings/interfaces/i-global-setting-nati-pay.d.ts +11 -0
- package/dist/global-settings/interfaces/i-global-setting-nati-pay.js +2 -0
- package/dist/global-settings/interfaces/i-global-setting-taxes.d.ts +5 -0
- package/dist/global-settings/interfaces/i-global-setting-taxes.js +2 -0
- package/dist/global-settings/interfaces/index.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/package.json +1 -1
- package/dist/transaction/entities/transaction.entity.d.ts +4 -3
- package/dist/transaction/entities/transaction.entity.js +3 -2
- package/dist/transaction/interfaces/i-fee.d.ts +5 -0
- package/dist/transaction/interfaces/i-fee.js +2 -0
- package/dist/transaction/interfaces/i-transaction.d.ts +4 -3
- package/dist/transaction/interfaces/index.d.ts +1 -0
- package/package.json +1 -1
@@ -6,6 +6,8 @@ import { MessagerChannelEntity } from '../../general/entities/messager-channel.e
|
|
6
6
|
import { MobyoApiConfigEntity } from '../../general/entities/mobyo-apiconfig.entity';
|
7
7
|
import { OriginEntity } from '../../general/entities/origin.entity';
|
8
8
|
import { PaymentProviderEntity } from '../../general/entities/payment-provider.entity';
|
9
|
+
import { IInstallation } from '../../installation';
|
10
|
+
import { IFee } from '../../transaction';
|
9
11
|
import { ICompany, ICompanyContact, ICompanyTrialPlansUsed } from '../interfaces';
|
10
12
|
export declare class CompanyEntity implements ICompany {
|
11
13
|
active: boolean;
|
@@ -38,5 +40,7 @@ export declare class CompanyEntity implements ICompany {
|
|
38
40
|
pixKey: string;
|
39
41
|
contacts: ICompanyContact[];
|
40
42
|
goTransactionsLive: boolean;
|
43
|
+
fees: IFee[];
|
41
44
|
constructor(data?: Partial<CompanyEntity>);
|
45
|
+
installationDesenfila?: IInstallation | undefined;
|
42
46
|
}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { EDocType, IAddress, IDeliveryArea, IDeliveryAreaFixed, IMessagerChannel, IMobyoApiConfig, IOrigin, IPaymentProvider } from '../../general';
|
2
2
|
import { IInstallation } from '../../installation';
|
3
|
+
import { IFee } from '../../transaction';
|
3
4
|
import { ICompanyContact } from './i-company-contact';
|
4
5
|
import { ICompanyTrialPlansUsed } from './i-company-trial-useds';
|
5
6
|
export interface ICompany {
|
@@ -37,4 +38,5 @@ export interface ICompany {
|
|
37
38
|
installationDesenfila?: IInstallation;
|
38
39
|
pixKey: string;
|
39
40
|
contacts: ICompanyContact[];
|
41
|
+
fees: IFee[];
|
40
42
|
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DesenfilaMerchantV2PaymentProviderEntity = exports.DesenfilaMerchantAddressEntity = exports.DesenfilaMerchantEntity = void 0;
|
4
|
+
var merchant_entity_1 = require("./merchant.entity");
|
5
|
+
Object.defineProperty(exports, "DesenfilaMerchantEntity", { enumerable: true, get: function () { return merchant_entity_1.DesenfilaMerchantEntity; } });
|
6
|
+
var merchant_address_entity_1 = require("./merchant-address.entity");
|
7
|
+
Object.defineProperty(exports, "DesenfilaMerchantAddressEntity", { enumerable: true, get: function () { return merchant_address_entity_1.DesenfilaMerchantAddressEntity; } });
|
8
|
+
var merchant_payment_provider_entity_1 = require("./merchant-payment-provider.entity");
|
9
|
+
Object.defineProperty(exports, "DesenfilaMerchantV2PaymentProviderEntity", { enumerable: true, get: function () { return merchant_payment_provider_entity_1.DesenfilaMerchantV2PaymentProviderEntity; } });
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { IDesenfilaMerchantAddress } from "../interfaces";
|
2
|
+
export declare class DesenfilaMerchantAddressEntity implements IDesenfilaMerchantAddress {
|
3
|
+
city: string;
|
4
|
+
complement?: string | undefined;
|
5
|
+
district: string;
|
6
|
+
state: string;
|
7
|
+
streetName: string;
|
8
|
+
streetNumber: string;
|
9
|
+
zipCode: string;
|
10
|
+
constructor(data?: Partial<DesenfilaMerchantAddressEntity>);
|
11
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DesenfilaMerchantAddressEntity = void 0;
|
4
|
+
var DesenfilaMerchantAddressEntity = /** @class */ (function () {
|
5
|
+
function DesenfilaMerchantAddressEntity(data) {
|
6
|
+
this.city = '';
|
7
|
+
this.complement = '';
|
8
|
+
this.district = '';
|
9
|
+
this.state = '';
|
10
|
+
this.streetName = '';
|
11
|
+
this.streetNumber = '';
|
12
|
+
this.zipCode = '';
|
13
|
+
if (data) {
|
14
|
+
for (var key in data) {
|
15
|
+
if (data.hasOwnProperty(key) && key in this) {
|
16
|
+
this[key] = data[key];
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
return DesenfilaMerchantAddressEntity;
|
22
|
+
}());
|
23
|
+
exports.DesenfilaMerchantAddressEntity = DesenfilaMerchantAddressEntity;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { IDesenfilaMerchantV2PaymentProvider, IDesenfilaMerchantV2PaymentProviderAgent } from "../interfaces";
|
2
|
+
export declare class DesenfilaMerchantV2PaymentProviderEntity implements IDesenfilaMerchantV2PaymentProvider {
|
3
|
+
accountId: string;
|
4
|
+
active: boolean;
|
5
|
+
agent: IDesenfilaMerchantV2PaymentProviderAgent;
|
6
|
+
customerId: string;
|
7
|
+
liveApiToken: string;
|
8
|
+
name: string;
|
9
|
+
subscriptionId: string;
|
10
|
+
testApiToken: string;
|
11
|
+
userToken: string;
|
12
|
+
verified: boolean;
|
13
|
+
verifiedAt: Date;
|
14
|
+
constructor(data?: Partial<DesenfilaMerchantV2PaymentProviderEntity>);
|
15
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DesenfilaMerchantV2PaymentProviderEntity = void 0;
|
4
|
+
var DesenfilaMerchantV2PaymentProviderEntity = /** @class */ (function () {
|
5
|
+
function DesenfilaMerchantV2PaymentProviderEntity(data) {
|
6
|
+
this.accountId = '';
|
7
|
+
this.active = true;
|
8
|
+
this.agent = { accountId: '' };
|
9
|
+
this.customerId = '';
|
10
|
+
this.liveApiToken = '';
|
11
|
+
this.name = '';
|
12
|
+
this.subscriptionId = '';
|
13
|
+
this.testApiToken = '';
|
14
|
+
this.userToken = '';
|
15
|
+
this.verified = false;
|
16
|
+
this.verifiedAt = new Date();
|
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 DesenfilaMerchantV2PaymentProviderEntity;
|
26
|
+
}());
|
27
|
+
exports.DesenfilaMerchantV2PaymentProviderEntity = DesenfilaMerchantV2PaymentProviderEntity;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { EDocType } from '../../general';
|
2
|
+
import { IFee } from '../../transaction';
|
3
|
+
import { IDesenfilaMerchant, IDesenfilaMerchantMercadoPago } from '../interfaces';
|
4
|
+
import { DesenfilaMerchantAddressEntity } from './merchant-address.entity';
|
5
|
+
import { DesenfilaMerchantV2PaymentProviderEntity } from './merchant-payment-provider.entity';
|
6
|
+
export declare class DesenfilaMerchantEntity implements IDesenfilaMerchant {
|
7
|
+
active: boolean;
|
8
|
+
address: DesenfilaMerchantAddressEntity;
|
9
|
+
containerId: string;
|
10
|
+
containerName?: string | undefined;
|
11
|
+
countryCode: string;
|
12
|
+
createdAt: number | Date;
|
13
|
+
development: boolean;
|
14
|
+
doc: string;
|
15
|
+
docType: EDocType;
|
16
|
+
email: string;
|
17
|
+
id: string;
|
18
|
+
imageURL: string;
|
19
|
+
isTest: boolean;
|
20
|
+
mercadoPago?: IDesenfilaMerchantMercadoPago | undefined;
|
21
|
+
name: string;
|
22
|
+
paymentProvider: DesenfilaMerchantV2PaymentProviderEntity;
|
23
|
+
phoneNumber: string;
|
24
|
+
updatedAt: number | Date;
|
25
|
+
version: string;
|
26
|
+
natiRefId?: string | undefined;
|
27
|
+
fees: IFee[];
|
28
|
+
constructor(data?: Partial<DesenfilaMerchantEntity>);
|
29
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DesenfilaMerchantEntity = void 0;
|
4
|
+
var general_1 = require("../../general");
|
5
|
+
var merchant_address_entity_1 = require("./merchant-address.entity");
|
6
|
+
var merchant_payment_provider_entity_1 = require("./merchant-payment-provider.entity");
|
7
|
+
var DesenfilaMerchantEntity = /** @class */ (function () {
|
8
|
+
function DesenfilaMerchantEntity(data) {
|
9
|
+
this.active = false;
|
10
|
+
this.address = new merchant_address_entity_1.DesenfilaMerchantAddressEntity();
|
11
|
+
this.containerId = '';
|
12
|
+
this.containerName = undefined;
|
13
|
+
this.countryCode = '';
|
14
|
+
this.createdAt = new Date();
|
15
|
+
this.development = false;
|
16
|
+
this.doc = '';
|
17
|
+
this.docType = general_1.EDocType.CNPJ;
|
18
|
+
this.email = '';
|
19
|
+
this.id = '';
|
20
|
+
this.imageURL = '';
|
21
|
+
this.isTest = false;
|
22
|
+
this.mercadoPago = undefined;
|
23
|
+
this.name = '';
|
24
|
+
this.paymentProvider = new merchant_payment_provider_entity_1.DesenfilaMerchantV2PaymentProviderEntity();
|
25
|
+
this.phoneNumber = '';
|
26
|
+
this.updatedAt = new Date();
|
27
|
+
this.version = '';
|
28
|
+
this.natiRefId = undefined;
|
29
|
+
this.fees = [];
|
30
|
+
if (data) {
|
31
|
+
for (var key in data) {
|
32
|
+
if (data.hasOwnProperty(key) && key in this) {
|
33
|
+
this[key] = data[key];
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
return DesenfilaMerchantEntity;
|
39
|
+
}());
|
40
|
+
exports.DesenfilaMerchantEntity = DesenfilaMerchantEntity;
|
@@ -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 { IDesenfilaMerchantV2PaymentProviderAgent } from './i-merchant-payment-provider-agent';
|
2
|
+
export interface IDesenfilaMerchantV2PaymentProvider {
|
3
|
+
accountId: string;
|
4
|
+
active: boolean;
|
5
|
+
agent: IDesenfilaMerchantV2PaymentProviderAgent;
|
6
|
+
customerId: string;
|
7
|
+
liveApiToken: string;
|
8
|
+
name: string;
|
9
|
+
subscriptionId: string;
|
10
|
+
testApiToken: string;
|
11
|
+
userToken: string;
|
12
|
+
verified: boolean;
|
13
|
+
verifiedAt: Date;
|
14
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { IFee } from '../../transaction';
|
2
|
+
import { IDesenfilaMerchantAddress } from './i-merchant-address';
|
3
|
+
import { IDesenfilaMerchantMercadoPago } from './i-merchant-mercado-pago';
|
4
|
+
import { IDesenfilaMerchantV2PaymentProvider } from './i-merchant-payment-provider';
|
5
|
+
export interface IDesenfilaMerchant {
|
6
|
+
active: boolean;
|
7
|
+
address: IDesenfilaMerchantAddress;
|
8
|
+
containerId: string;
|
9
|
+
containerName?: string;
|
10
|
+
countryCode: string;
|
11
|
+
createdAt: Date | number;
|
12
|
+
development: boolean;
|
13
|
+
doc: string;
|
14
|
+
docType: 'CNPJ' | 'CPF';
|
15
|
+
email: string;
|
16
|
+
id: string;
|
17
|
+
imageURL: string;
|
18
|
+
isTest: boolean;
|
19
|
+
mercadoPago?: IDesenfilaMerchantMercadoPago;
|
20
|
+
name: string;
|
21
|
+
paymentProvider: IDesenfilaMerchantV2PaymentProvider;
|
22
|
+
phoneNumber: string;
|
23
|
+
updatedAt: Date | number;
|
24
|
+
version: string;
|
25
|
+
natiRefId?: string;
|
26
|
+
fees: IFee[];
|
27
|
+
}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export { IDesenfilaMerchant } from './i-merchant';
|
2
|
+
export { IDesenfilaMerchantAddress } from './i-merchant-address';
|
3
|
+
export { IDesenfilaMerchantMercadoPago } from './i-merchant-mercado-pago';
|
4
|
+
export { IDesenfilaMerchantV2PayersStore } from './i-merchant-payers-store';
|
5
|
+
export { IDesenfilaMerchantV2PaymentProvider } from './i-merchant-payment-provider';
|
6
|
+
export { IDesenfilaMerchantV2PaymentProviderAgent } from './i-merchant-payment-provider-agent';
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { IDesenfilaContainerOrderItem } from "../interfaces/i-container-order-item";
|
2
|
+
export declare class DesenfilaContainerOrderItemEntity implements IDesenfilaContainerOrderItem {
|
3
|
+
addition: number;
|
4
|
+
amount: number;
|
5
|
+
code: string;
|
6
|
+
discount: number;
|
7
|
+
id: string;
|
8
|
+
name: string;
|
9
|
+
netAmount: number;
|
10
|
+
quantity: number;
|
11
|
+
unit: string;
|
12
|
+
unitPrice: number;
|
13
|
+
constructor(data?: Partial<DesenfilaContainerOrderItemEntity>);
|
14
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DesenfilaContainerOrderItemEntity = void 0;
|
4
|
+
var DesenfilaContainerOrderItemEntity = /** @class */ (function () {
|
5
|
+
function DesenfilaContainerOrderItemEntity(data) {
|
6
|
+
this.addition = 0;
|
7
|
+
this.amount = 0;
|
8
|
+
this.code = "";
|
9
|
+
this.discount = 0;
|
10
|
+
this.id = "";
|
11
|
+
this.name = "";
|
12
|
+
this.netAmount = 0;
|
13
|
+
this.quantity = 0;
|
14
|
+
this.unit = "";
|
15
|
+
this.unitPrice = 0;
|
16
|
+
if (data) {
|
17
|
+
for (var key in data) {
|
18
|
+
if (data.hasOwnProperty(key) && key in this) {
|
19
|
+
this[key] = data[key];
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
return DesenfilaContainerOrderItemEntity;
|
25
|
+
}());
|
26
|
+
exports.DesenfilaContainerOrderItemEntity = DesenfilaContainerOrderItemEntity;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { IDesenfilaContainerOrderPayment } from '../interfaces';
|
2
|
+
export declare class DesenfilaContainerOrderPaymentEntity implements IDesenfilaContainerOrderPayment {
|
3
|
+
amount: number;
|
4
|
+
code: string;
|
5
|
+
couponAmount: number;
|
6
|
+
createdAt: Date;
|
7
|
+
customerId: string;
|
8
|
+
dateAproved: Date;
|
9
|
+
description: string;
|
10
|
+
id: string;
|
11
|
+
marketPlaceAmount: number;
|
12
|
+
merchant: string;
|
13
|
+
merchantName: string;
|
14
|
+
name: string;
|
15
|
+
transaction: string;
|
16
|
+
transactions: string[];
|
17
|
+
constructor(data?: Partial<DesenfilaContainerOrderPaymentEntity>);
|
18
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DesenfilaContainerOrderPaymentEntity = void 0;
|
4
|
+
var DesenfilaContainerOrderPaymentEntity = /** @class */ (function () {
|
5
|
+
function DesenfilaContainerOrderPaymentEntity(data) {
|
6
|
+
this.amount = 0;
|
7
|
+
this.code = '';
|
8
|
+
this.couponAmount = 0;
|
9
|
+
this.createdAt = new Date();
|
10
|
+
this.customerId = '';
|
11
|
+
this.dateAproved = new Date();
|
12
|
+
this.description = '';
|
13
|
+
this.id = '';
|
14
|
+
this.marketPlaceAmount = 0;
|
15
|
+
this.merchant = '';
|
16
|
+
this.merchantName = '';
|
17
|
+
this.name = '';
|
18
|
+
this.transaction = '';
|
19
|
+
this.transactions = [];
|
20
|
+
if (data) {
|
21
|
+
for (var key in data) {
|
22
|
+
if (data.hasOwnProperty(key) && key in this) {
|
23
|
+
this[key] = data[key];
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
return DesenfilaContainerOrderPaymentEntity;
|
29
|
+
}());
|
30
|
+
exports.DesenfilaContainerOrderPaymentEntity = DesenfilaContainerOrderPaymentEntity;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { IDesenfilaContainerOrderPix } from '../interfaces';
|
2
|
+
export declare class DesenfilaContainerOrderPixEntity implements IDesenfilaContainerOrderPix {
|
3
|
+
qrCode: string;
|
4
|
+
image: string;
|
5
|
+
templateImage: string;
|
6
|
+
constructor(data?: Partial<DesenfilaContainerOrderPixEntity>);
|
7
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DesenfilaContainerOrderPixEntity = void 0;
|
4
|
+
var DesenfilaContainerOrderPixEntity = /** @class */ (function () {
|
5
|
+
function DesenfilaContainerOrderPixEntity(data) {
|
6
|
+
this.qrCode = '';
|
7
|
+
this.image = '';
|
8
|
+
this.templateImage = '';
|
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 DesenfilaContainerOrderPixEntity;
|
18
|
+
}());
|
19
|
+
exports.DesenfilaContainerOrderPixEntity = DesenfilaContainerOrderPixEntity;
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import { IDesenfilaContainerOrder } from "../interfaces";
|
2
|
+
import { DesenfilaContainerOrderItemEntity } from "./i-container-order-item.entity";
|
3
|
+
import { DesenfilaContainerOrderPixEntity } from "./i-container-order-pix.entity";
|
4
|
+
import { DesenfilaContainerOrderPaymentEntity } from "./i-container-order-payment";
|
5
|
+
export declare class DesenfilaContainerOrderEntity implements IDesenfilaContainerOrder {
|
6
|
+
active: boolean;
|
7
|
+
addition: number;
|
8
|
+
amount: number;
|
9
|
+
callback: string;
|
10
|
+
consumation: number;
|
11
|
+
containerId: string;
|
12
|
+
createdAt: Date;
|
13
|
+
createdBy: string;
|
14
|
+
debug: boolean;
|
15
|
+
dest: {
|
16
|
+
customerId: string;
|
17
|
+
doc: string;
|
18
|
+
email: string;
|
19
|
+
name: string;
|
20
|
+
phone: string;
|
21
|
+
};
|
22
|
+
pix?: DesenfilaContainerOrderPixEntity | undefined;
|
23
|
+
diffConsumation: number;
|
24
|
+
discount: number;
|
25
|
+
from: string;
|
26
|
+
hasReceipt: boolean;
|
27
|
+
id: string;
|
28
|
+
invite: number;
|
29
|
+
items: DesenfilaContainerOrderItemEntity[];
|
30
|
+
merchantId: string;
|
31
|
+
netAmount: number;
|
32
|
+
paid: boolean;
|
33
|
+
paidBy: string;
|
34
|
+
paidValue: number;
|
35
|
+
payment: DesenfilaContainerOrderPaymentEntity;
|
36
|
+
payments: DesenfilaContainerOrderPaymentEntity;
|
37
|
+
pendingPayment: number;
|
38
|
+
pos: string;
|
39
|
+
refId: string;
|
40
|
+
status: string;
|
41
|
+
updatedAt: Date;
|
42
|
+
updatedBy: string;
|
43
|
+
version: string;
|
44
|
+
constructor(data?: Partial<DesenfilaContainerOrderEntity>);
|
45
|
+
}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DesenfilaContainerOrderEntity = void 0;
|
4
|
+
var i_container_order_payment_1 = require("./i-container-order-payment");
|
5
|
+
var DesenfilaContainerOrderEntity = /** @class */ (function () {
|
6
|
+
function DesenfilaContainerOrderEntity(data) {
|
7
|
+
this.active = true;
|
8
|
+
this.addition = 0;
|
9
|
+
this.amount = 0;
|
10
|
+
this.callback = '';
|
11
|
+
this.consumation = 0;
|
12
|
+
this.containerId = '';
|
13
|
+
this.createdAt = new Date();
|
14
|
+
this.createdBy = '';
|
15
|
+
this.debug = false;
|
16
|
+
this.dest = {
|
17
|
+
customerId: '',
|
18
|
+
doc: '',
|
19
|
+
email: '',
|
20
|
+
name: '',
|
21
|
+
phone: '',
|
22
|
+
};
|
23
|
+
this.pix = undefined;
|
24
|
+
this.diffConsumation = 0;
|
25
|
+
this.discount = 0;
|
26
|
+
this.from = '';
|
27
|
+
this.hasReceipt = false;
|
28
|
+
this.id = '';
|
29
|
+
this.invite = 0;
|
30
|
+
this.items = [];
|
31
|
+
this.merchantId = '';
|
32
|
+
this.netAmount = 0;
|
33
|
+
this.paid = false;
|
34
|
+
this.paidBy = '';
|
35
|
+
this.paidValue = 0;
|
36
|
+
this.payment = new i_container_order_payment_1.DesenfilaContainerOrderPaymentEntity();
|
37
|
+
this.payments = new i_container_order_payment_1.DesenfilaContainerOrderPaymentEntity();
|
38
|
+
this.pendingPayment = 0;
|
39
|
+
this.pos = '';
|
40
|
+
this.refId = '';
|
41
|
+
this.status = '';
|
42
|
+
this.updatedAt = new Date();
|
43
|
+
this.updatedBy = '';
|
44
|
+
this.version = '';
|
45
|
+
if (data) {
|
46
|
+
for (var key in data) {
|
47
|
+
if (data.hasOwnProperty(key) && key in this) {
|
48
|
+
this[key] = data[key];
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
return DesenfilaContainerOrderEntity;
|
54
|
+
}());
|
55
|
+
exports.DesenfilaContainerOrderEntity = DesenfilaContainerOrderEntity;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
export { DesenfilaContainerOrderEntity } from './i-container-order.entity';
|
2
|
+
export { DesenfilaContainerOrderItemEntity } from './i-container-order-item.entity';
|
3
|
+
export { DesenfilaContainerOrderPixEntity } from './i-container-order-pix.entity';
|
4
|
+
export { DesenfilaContainerOrderPaymentEntity } from './i-container-order-payment';
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DesenfilaContainerOrderPaymentEntity = exports.DesenfilaContainerOrderPixEntity = exports.DesenfilaContainerOrderItemEntity = exports.DesenfilaContainerOrderEntity = void 0;
|
4
|
+
var i_container_order_entity_1 = require("./i-container-order.entity");
|
5
|
+
Object.defineProperty(exports, "DesenfilaContainerOrderEntity", { enumerable: true, get: function () { return i_container_order_entity_1.DesenfilaContainerOrderEntity; } });
|
6
|
+
var i_container_order_item_entity_1 = require("./i-container-order-item.entity");
|
7
|
+
Object.defineProperty(exports, "DesenfilaContainerOrderItemEntity", { enumerable: true, get: function () { return i_container_order_item_entity_1.DesenfilaContainerOrderItemEntity; } });
|
8
|
+
var i_container_order_pix_entity_1 = require("./i-container-order-pix.entity");
|
9
|
+
Object.defineProperty(exports, "DesenfilaContainerOrderPixEntity", { enumerable: true, get: function () { return i_container_order_pix_entity_1.DesenfilaContainerOrderPixEntity; } });
|
10
|
+
var i_container_order_payment_1 = require("./i-container-order-payment");
|
11
|
+
Object.defineProperty(exports, "DesenfilaContainerOrderPaymentEntity", { enumerable: true, get: function () { return i_container_order_payment_1.DesenfilaContainerOrderPaymentEntity; } });
|
@@ -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,19 @@
|
|
1
|
+
export interface IDesenfilaContainerOrderPayment {
|
2
|
+
amount: number;
|
3
|
+
code: string;
|
4
|
+
couponAmount: number;
|
5
|
+
createdAt: Date;
|
6
|
+
customerId: string;
|
7
|
+
dateAproved: Date;
|
8
|
+
description: string;
|
9
|
+
id: string;
|
10
|
+
marketPlaceAmount: number;
|
11
|
+
/**
|
12
|
+
* @deprecated Use merchantName ao invés de merchant
|
13
|
+
*/
|
14
|
+
merchant: string;
|
15
|
+
merchantName: string;
|
16
|
+
name: string;
|
17
|
+
transaction: string;
|
18
|
+
transactions: string[];
|
19
|
+
}
|