cecon-interfaces 1.1.38 → 1.1.40
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/subscription/entities/subscription.entity.mjs +6 -4
- package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +32 -30
- 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/subscription/entities/subscription.entity.d.ts +3 -1
- package/dist/subscription/entities/subscription.entity.js +4 -2
- package/dist/subscription/interfaces/i-subscription.d.ts +4 -2
- 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,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;
|
@@ -33,6 +34,7 @@ export declare class SubscriptionEntity implements ISubscription {
|
|
33
34
|
renovatedAt: Date;
|
34
35
|
startsAt: Date;
|
35
36
|
status: ESubscriptionStatus;
|
37
|
+
suspendedTimes: number;
|
36
38
|
tags: string[];
|
37
39
|
updatedAt: Date;
|
38
40
|
constructor(data?: Partial<SubscriptionEntity>);
|
@@ -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 (30)
|
9
9
|
// #region Constructors (1)
|
10
10
|
function SubscriptionEntity(data) {
|
11
|
-
// #region Properties (
|
11
|
+
// #region Properties (30)
|
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 = '';
|
@@ -35,6 +36,7 @@ var SubscriptionEntity = /** @class */ (function () {
|
|
35
36
|
this.renovatedAt = new Date();
|
36
37
|
this.startsAt = new Date();
|
37
38
|
this.status = enums_1.ESubscriptionStatus.PENDING;
|
39
|
+
this.suspendedTimes = 0;
|
38
40
|
this.tags = [];
|
39
41
|
this.updatedAt = new Date();
|
40
42
|
if (data) {
|
@@ -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,13 +26,15 @@ export interface ISubscription {
|
|
26
26
|
notes: string;
|
27
27
|
partnerId: string | null;
|
28
28
|
payment: IPayment;
|
29
|
+
paymentType: EPaymentType;
|
30
|
+
phoneNumberNotification: string;
|
29
31
|
planId: string;
|
30
32
|
planName: string;
|
31
|
-
phoneNumberNotification: string;
|
32
33
|
renewPaymentDate: Date;
|
33
34
|
renovatedAt: Date;
|
34
35
|
startsAt: Date;
|
35
36
|
status: ESubscriptionStatus;
|
37
|
+
suspendedTimes: number;
|
36
38
|
tags: string[];
|
37
39
|
updatedAt: Date;
|
38
40
|
}
|