cecon-interfaces 1.1.37 → 1.1.39
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/general/entities/payment-method-option.entity.mjs +3 -3
- package/dist/esm2022/general/entities/payment-method.entity.mjs +3 -3
- package/dist/esm2022/general/enums/index.mjs +2 -2
- package/dist/esm2022/general/enums/payment-type.enum.mjs +24 -24
- package/dist/esm2022/general/interfaces/i-payment-method-option.mjs +1 -1
- package/dist/esm2022/general/interfaces/i-payment-method.mjs +1 -1
- package/dist/esm2022/invoice/entities/invoice.entity.mjs +3 -3
- package/dist/esm2022/invoice/interfaces/i-invoice.mjs +1 -1
- package/dist/esm2022/order/entities/payment-method.entity.mjs +3 -3
- package/dist/esm2022/order/interfaces/i-payment-method.mjs +1 -1
- package/dist/esm2022/resume/entities/resume-collection.entity.mjs +4 -6
- package/dist/esm2022/resume/interfaces/i-resume-collection-status.mjs +2 -0
- package/dist/esm2022/resume/interfaces/i-resume-collection.mjs +1 -1
- package/dist/esm2022/subscription/entities/subscription.entity.mjs +5 -4
- package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +34 -35
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/general/entities/payment-method-option.entity.d.ts +2 -2
- package/dist/general/entities/payment-method-option.entity.js +1 -1
- package/dist/general/entities/payment-method.entity.d.ts +2 -2
- package/dist/general/entities/payment-method.entity.js +1 -1
- package/dist/general/enums/index.d.ts +1 -1
- package/dist/general/enums/index.js +2 -2
- package/dist/general/enums/payment-type.enum.d.ts +1 -1
- package/dist/general/enums/payment-type.enum.js +24 -24
- package/dist/general/interfaces/i-payment-method-option.d.ts +2 -2
- package/dist/general/interfaces/i-payment-method.d.ts +2 -2
- package/dist/invoice/entities/invoice.entity.d.ts +2 -2
- package/dist/invoice/entities/invoice.entity.js +1 -1
- package/dist/invoice/interfaces/i-invoice.d.ts +2 -2
- package/dist/order/entities/payment-method.entity.d.ts +2 -2
- package/dist/order/entities/payment-method.entity.js +1 -1
- package/dist/order/interfaces/i-payment-method.d.ts +2 -2
- package/dist/package.json +1 -1
- package/dist/resume/entities/resume-collection.entity.d.ts +2 -3
- package/dist/resume/entities/resume-collection.entity.js +3 -5
- package/dist/resume/interfaces/i-resume-collection-status.d.ts +4 -0
- package/dist/resume/interfaces/i-resume-collection-status.js +2 -0
- package/dist/resume/interfaces/i-resume-collection.d.ts +2 -3
- package/dist/subscription/entities/subscription.entity.d.ts +2 -1
- package/dist/subscription/entities/subscription.entity.js +3 -2
- package/dist/subscription/interfaces/i-subscription.d.ts +2 -1
- package/package.json +1 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
import { PaymentChannelEnum } from '../enums/payment-channel.enum';
|
2
2
|
import { PaymentModeEnum } from '../enums/payment-mode.enum';
|
3
|
-
import {
|
3
|
+
import { EPaymentType } from '../enums/payment-type.enum';
|
4
4
|
import { IPaymentMethodOption } from '../interfaces';
|
5
5
|
export declare class PaymentMethodOptionEntity implements IPaymentMethodOption {
|
6
6
|
active: boolean;
|
@@ -14,7 +14,7 @@ export declare class PaymentMethodOptionEntity implements IPaymentMethodOption {
|
|
14
14
|
mode: PaymentModeEnum;
|
15
15
|
name: string;
|
16
16
|
token: string;
|
17
|
-
type:
|
17
|
+
type: EPaymentType;
|
18
18
|
updatedAt: Date;
|
19
19
|
constructor(data?: Partial<PaymentMethodOptionEntity>);
|
20
20
|
}
|
@@ -20,7 +20,7 @@ var PaymentMethodOptionEntity = /** @class */ (function () {
|
|
20
20
|
this.mode = payment_mode_enum_1.PaymentModeEnum.MANUAL;
|
21
21
|
this.name = '';
|
22
22
|
this.token = '';
|
23
|
-
this.type = payment_type_enum_1.
|
23
|
+
this.type = payment_type_enum_1.EPaymentType.CREDIT_CARD;
|
24
24
|
this.updatedAt = new Date();
|
25
25
|
if (data) {
|
26
26
|
for (var key in data) {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { EPaymentType } from '..';
|
2
2
|
import { IPaymentMethod } from '../interfaces';
|
3
3
|
import { PaymentCardEntity } from './payment-card.entity';
|
4
4
|
import { PaymentCashEntity } from './payment-cash.entity';
|
@@ -10,7 +10,7 @@ export declare class PaymentMethodEntity implements IPaymentMethod {
|
|
10
10
|
code: string;
|
11
11
|
currency: 'BRL';
|
12
12
|
id: string;
|
13
|
-
method:
|
13
|
+
method: EPaymentType;
|
14
14
|
pix?: PaymentPixEntity | null;
|
15
15
|
prepaid: boolean;
|
16
16
|
type: 'ONLINE' | 'OFFLINE';
|
@@ -12,7 +12,7 @@ var PaymentMethodEntity = /** @class */ (function () {
|
|
12
12
|
this.code = '';
|
13
13
|
this.currency = 'BRL';
|
14
14
|
this.id = '';
|
15
|
-
this.method = __1.
|
15
|
+
this.method = __1.EPaymentType.CASH;
|
16
16
|
this.pix = null;
|
17
17
|
this.prepaid = false;
|
18
18
|
this.type = 'OFFLINE';
|
@@ -9,7 +9,7 @@ export { OsEnum } from './os.enum';
|
|
9
9
|
export { PaymentChannelEnum } from './payment-channel.enum';
|
10
10
|
export { PaymentModeEnum } from './payment-mode.enum';
|
11
11
|
export { PaymentStatusEnum } from './payment-status.enum';
|
12
|
-
export {
|
12
|
+
export { EPaymentType } from './payment-type.enum';
|
13
13
|
export { LegalEntiyEnum } from './person-type.enum';
|
14
14
|
export { PlatfomrEnum } from './platform.enum';
|
15
15
|
export { PaymentProviderEnum } from './providers.enum';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ESponsorshipValues = exports.PaymentProviderEnum = exports.PlatfomrEnum = exports.LegalEntiyEnum = exports.
|
3
|
+
exports.ESponsorshipValues = exports.PaymentProviderEnum = exports.PlatfomrEnum = exports.LegalEntiyEnum = exports.EPaymentType = exports.PaymentStatusEnum = exports.PaymentModeEnum = exports.PaymentChannelEnum = exports.OsEnum = exports.LeadOriginEnum = exports.IntervalTypeEnum = exports.EFiscalDocModelCode = exports.EDiscountType = exports.DocTypeEnum = exports.BooleanStringEnum = exports.EBankSlipStatus = void 0;
|
4
4
|
var bank_slip_status_enum_1 = require("./bank-slip-status.enum");
|
5
5
|
Object.defineProperty(exports, "EBankSlipStatus", { enumerable: true, get: function () { return bank_slip_status_enum_1.EBankSlipStatus; } });
|
6
6
|
var boolean_string_enum_1 = require("./boolean-string.enum");
|
@@ -24,7 +24,7 @@ Object.defineProperty(exports, "PaymentModeEnum", { enumerable: true, get: funct
|
|
24
24
|
var payment_status_enum_1 = require("./payment-status.enum");
|
25
25
|
Object.defineProperty(exports, "PaymentStatusEnum", { enumerable: true, get: function () { return payment_status_enum_1.PaymentStatusEnum; } });
|
26
26
|
var payment_type_enum_1 = require("./payment-type.enum");
|
27
|
-
Object.defineProperty(exports, "
|
27
|
+
Object.defineProperty(exports, "EPaymentType", { enumerable: true, get: function () { return payment_type_enum_1.EPaymentType; } });
|
28
28
|
var person_type_enum_1 = require("./person-type.enum");
|
29
29
|
Object.defineProperty(exports, "LegalEntiyEnum", { enumerable: true, get: function () { return person_type_enum_1.LegalEntiyEnum; } });
|
30
30
|
var platform_enum_1 = require("./platform.enum");
|
@@ -1,26 +1,26 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
var
|
5
|
-
(function (
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
})(
|
3
|
+
exports.EPaymentType = void 0;
|
4
|
+
var EPaymentType;
|
5
|
+
(function (EPaymentType) {
|
6
|
+
EPaymentType["CREDIT_CARD"] = "CREDIT_CARD";
|
7
|
+
EPaymentType["DEBIT_CARD"] = "DEBIT_CARD";
|
8
|
+
EPaymentType["CASH"] = "CASH";
|
9
|
+
EPaymentType["PIX"] = "PIX";
|
10
|
+
EPaymentType["MOBILE_PAYMENT"] = "MOBILE_PAYMENT";
|
11
|
+
EPaymentType["CHECK"] = "CHECK";
|
12
|
+
EPaymentType["CRYPTOCURRENCY"] = "CRYPTOCURRENCY";
|
13
|
+
EPaymentType["ELECTRONIC_BANKING"] = "ELECTRONIC_BANKING";
|
14
|
+
EPaymentType["MONEY_ORDER"] = "MONEY_ORDER";
|
15
|
+
EPaymentType["PREPAID_CARD"] = "PREPAID_CARD";
|
16
|
+
EPaymentType["E_WALLET"] = "E_WALLET";
|
17
|
+
EPaymentType["DIRECT_DEBIT"] = "DIRECT_DEBIT";
|
18
|
+
EPaymentType["PAYPAL"] = "PAYPAL";
|
19
|
+
EPaymentType["CHECKOUT_PRO"] = "CHECKOUT_PRO";
|
20
|
+
EPaymentType["WIRE_TRANSFER"] = "WIRE_TRANSFER";
|
21
|
+
EPaymentType["GIFT_CARD"] = "GIFT_CARD";
|
22
|
+
EPaymentType["VOUCHER"] = "VOUCHER";
|
23
|
+
EPaymentType["BILLING"] = "BILLING";
|
24
|
+
EPaymentType["BANK_SLIP"] = "BANK_SLIP";
|
25
|
+
EPaymentType["NONE"] = "NONE";
|
26
|
+
})(EPaymentType || (exports.EPaymentType = EPaymentType = {}));
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { PaymentChannelEnum } from '../enums/payment-channel.enum';
|
2
2
|
import { PaymentModeEnum } from '../enums/payment-mode.enum';
|
3
|
-
import {
|
3
|
+
import { EPaymentType } from '../enums/payment-type.enum';
|
4
4
|
export interface IPaymentMethodOption {
|
5
5
|
active: boolean;
|
6
6
|
channel: PaymentChannelEnum;
|
@@ -13,6 +13,6 @@ export interface IPaymentMethodOption {
|
|
13
13
|
mode: PaymentModeEnum;
|
14
14
|
name: string;
|
15
15
|
token: string;
|
16
|
-
type:
|
16
|
+
type: EPaymentType;
|
17
17
|
updatedAt: Date;
|
18
18
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { EPaymentType } from '..';
|
2
2
|
import { IPaymentCard } from './i-payment-card';
|
3
3
|
import { IPaymentCash } from './i-payment-cash';
|
4
4
|
import { IPaymentPix } from './i-payment-pix';
|
@@ -9,7 +9,7 @@ export interface IPaymentMethod {
|
|
9
9
|
code: string;
|
10
10
|
currency: 'BRL';
|
11
11
|
id: string;
|
12
|
-
method:
|
12
|
+
method: EPaymentType;
|
13
13
|
pix?: IPaymentPix | null;
|
14
14
|
prepaid: boolean;
|
15
15
|
type: 'ONLINE' | 'OFFLINE';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { EPaymentType, PaymentProviderEntity } from '../../general';
|
2
2
|
import { EInvoiceStatus } from '../enums';
|
3
3
|
import { IInvoice } from '../interfaces';
|
4
4
|
import { InvoiceBankSlipEntity } from './invoice-bank-slip.entity';
|
@@ -35,7 +35,7 @@ export declare class InvoiceEntity implements IInvoice {
|
|
35
35
|
partnerId: string;
|
36
36
|
password: string | null;
|
37
37
|
payer: InvoicePayerEntity;
|
38
|
-
paymentMethod:
|
38
|
+
paymentMethod: EPaymentType;
|
39
39
|
paymentProvider: PaymentProviderEntity | null;
|
40
40
|
phoneNumberNotification: string | null;
|
41
41
|
pix: InvoicePixEntity | null;
|
@@ -36,7 +36,7 @@ var InvoiceEntity = /** @class */ (function () {
|
|
36
36
|
this.partnerId = '';
|
37
37
|
this.password = null;
|
38
38
|
this.payer = new invoice_payer_entity_1.InvoicePayerEntity();
|
39
|
-
this.paymentMethod = general_1.
|
39
|
+
this.paymentMethod = general_1.EPaymentType.NONE;
|
40
40
|
this.paymentProvider = null;
|
41
41
|
this.phoneNumberNotification = null;
|
42
42
|
this.pix = null;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { EPaymentType, IPaymentProvider } from '../../general';
|
2
2
|
import { EInvoiceStatus } from '../enums';
|
3
3
|
import { IInvoiceBankSlip } from './i-invoice-bank-slip';
|
4
4
|
import { IInvoiceCreditCard } from './i-invoice-credit-card';
|
@@ -34,7 +34,7 @@ export interface IInvoice {
|
|
34
34
|
partnerId: string | null;
|
35
35
|
password: string | null;
|
36
36
|
payer: IInvoicePayer;
|
37
|
-
paymentMethod:
|
37
|
+
paymentMethod: EPaymentType;
|
38
38
|
paymentProvider: IPaymentProvider | null;
|
39
39
|
phoneNumberNotification: string | null;
|
40
40
|
pix: IInvoicePix | null;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { EPaymentType } from '../../general';
|
2
2
|
import { IOrderPaymentMethod } from '../interfaces';
|
3
3
|
import { OrderPaymentCardEntity } from './payment-card.entity';
|
4
4
|
import { OrderPaymentCashEntity } from './payment-cash.entity';
|
@@ -10,7 +10,7 @@ export declare class OrderPaymentMethodEntity implements IOrderPaymentMethod {
|
|
10
10
|
code: string;
|
11
11
|
currency: 'BRL';
|
12
12
|
id: string;
|
13
|
-
method:
|
13
|
+
method: EPaymentType;
|
14
14
|
pix?: OrderPaymentPixEntity | null;
|
15
15
|
prepaid: boolean;
|
16
16
|
type: 'ONLINE' | 'OFFLINE';
|
@@ -12,7 +12,7 @@ var OrderPaymentMethodEntity = /** @class */ (function () {
|
|
12
12
|
this.code = '';
|
13
13
|
this.currency = 'BRL';
|
14
14
|
this.id = '';
|
15
|
-
this.method = general_1.
|
15
|
+
this.method = general_1.EPaymentType.CASH;
|
16
16
|
this.pix = null;
|
17
17
|
this.prepaid = false;
|
18
18
|
this.type = 'OFFLINE';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { EPaymentType } from '../../general';
|
2
2
|
import { IOrderPaymentCard } from './i-payment-card';
|
3
3
|
import { IOrderPaymentCash } from './i-payment-cash';
|
4
4
|
import { IOrderPaymentPix } from './i-payment-pix';
|
@@ -9,7 +9,7 @@ export interface IOrderPaymentMethod {
|
|
9
9
|
code: string;
|
10
10
|
currency: 'BRL';
|
11
11
|
id: string;
|
12
|
-
method:
|
12
|
+
method: EPaymentType;
|
13
13
|
pix?: IOrderPaymentPix | null;
|
14
14
|
prepaid: boolean;
|
15
15
|
type: 'ONLINE' | 'OFFLINE';
|
package/dist/package.json
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
import { IResumeCollection } from '../interfaces';
|
2
|
+
import { IResumeCollectionStatus } from '../interfaces/i-resume-collection-status';
|
2
3
|
export declare class ResumeCollectionEntity implements IResumeCollection {
|
3
|
-
actived: number;
|
4
|
-
deactived: number;
|
5
4
|
collectionName: string;
|
6
|
-
|
5
|
+
status: IResumeCollectionStatus[];
|
7
6
|
constructor(data?: Partial<ResumeCollectionEntity>);
|
8
7
|
}
|
@@ -2,14 +2,12 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ResumeCollectionEntity = void 0;
|
4
4
|
var ResumeCollectionEntity = /** @class */ (function () {
|
5
|
-
// #endregion Properties (
|
5
|
+
// #endregion Properties (2)
|
6
6
|
// #region Constructors (1)
|
7
7
|
function ResumeCollectionEntity(data) {
|
8
|
-
// #region Properties (
|
9
|
-
this.actived = 0;
|
10
|
-
this.deactived = 0;
|
8
|
+
// #region Properties (2)
|
11
9
|
this.collectionName = '';
|
12
|
-
this.
|
10
|
+
this.status = [];
|
13
11
|
if (data) {
|
14
12
|
for (var key in data) {
|
15
13
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { FeatureEntity } from '../../feature';
|
2
|
-
import { CustomVariableEntity, IntervalTypeEnum, PaymentEntity } from '../../general';
|
2
|
+
import { CustomVariableEntity, EPaymentType, IntervalTypeEnum, PaymentEntity } from '../../general';
|
3
3
|
import { InvoiceEntity } from '../../invoice';
|
4
4
|
import { ESubscriptionStatus } from '../enums';
|
5
5
|
import { ISubscription } from '../interfaces/i-subscription';
|
@@ -26,6 +26,7 @@ export declare class SubscriptionEntity implements ISubscription {
|
|
26
26
|
notes: string;
|
27
27
|
partnerId: string | null;
|
28
28
|
payment: PaymentEntity;
|
29
|
+
paymentType: EPaymentType;
|
29
30
|
phoneNumberNotification: string;
|
30
31
|
planId: string;
|
31
32
|
planName: string;
|
@@ -5,10 +5,10 @@ var general_1 = require("../../general");
|
|
5
5
|
var enums_1 = require("../enums");
|
6
6
|
var subscription_company_entity_1 = require("./subscription-company.entity");
|
7
7
|
var SubscriptionEntity = /** @class */ (function () {
|
8
|
-
// #endregion Properties (
|
8
|
+
// #endregion Properties (29)
|
9
9
|
// #region Constructors (1)
|
10
10
|
function SubscriptionEntity(data) {
|
11
|
-
// #region Properties (
|
11
|
+
// #region Properties (29)
|
12
12
|
this.amount = 0;
|
13
13
|
this.appId = '';
|
14
14
|
this.appName = '';
|
@@ -28,6 +28,7 @@ var SubscriptionEntity = /** @class */ (function () {
|
|
28
28
|
this.notes = '';
|
29
29
|
this.partnerId = '';
|
30
30
|
this.payment = new general_1.PaymentEntity();
|
31
|
+
this.paymentType = general_1.EPaymentType.NONE;
|
31
32
|
this.phoneNumberNotification = '';
|
32
33
|
this.planId = '';
|
33
34
|
this.planName = '';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IFeature } from '../../feature';
|
2
|
-
import { ICustomVariable, IntervalTypeEnum } from '../../general';
|
2
|
+
import { EPaymentType, ICustomVariable, IntervalTypeEnum } from '../../general';
|
3
3
|
import { IPayment } from '../../general/interfaces';
|
4
4
|
import { IInvoice } from '../../invoice';
|
5
5
|
import { ESubscriptionStatus } from '../enums';
|
@@ -26,6 +26,7 @@ export interface ISubscription {
|
|
26
26
|
notes: string;
|
27
27
|
partnerId: string | null;
|
28
28
|
payment: IPayment;
|
29
|
+
paymentType: EPaymentType;
|
29
30
|
planId: string;
|
30
31
|
planName: string;
|
31
32
|
phoneNumberNotification: string;
|