cecon-interfaces 1.1.50 → 1.1.56
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/global-settings/entities/global-setting-master.entity.mjs +7 -5
- package/dist/esm2022/global-settings/interfaces/i-global-setting-master.mjs +1 -1
- package/dist/esm2022/subscription/entities/subscription-item.entity.mjs +5 -4
- package/dist/esm2022/subscription/entities/subscription.entity.mjs +2 -2
- package/dist/esm2022/subscription/interfaces/i-subscription-item.mjs +1 -1
- package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +11 -8
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/global-settings/entities/global-setting-master.entity.d.ts +4 -2
- package/dist/global-settings/entities/global-setting-master.entity.js +5 -4
- package/dist/global-settings/interfaces/i-global-setting-master.d.ts +3 -2
- package/dist/package.json +1 -1
- package/dist/subscription/entities/subscription-item.entity.d.ts +2 -1
- package/dist/subscription/entities/subscription-item.entity.js +4 -3
- package/dist/subscription/entities/subscription.entity.d.ts +1 -1
- package/dist/subscription/entities/subscription.entity.js +1 -1
- package/dist/subscription/interfaces/i-subscription-item.d.ts +1 -0
- package/dist/subscription/interfaces/i-subscription.d.ts +1 -1
- package/package.json +1 -1
@@ -3,17 +3,19 @@ export declare class GlobalSettingMasterEntity implements IGlobalSettingMaster {
|
|
3
3
|
/**
|
4
4
|
* Prazo de dias para o vencimento da fatura.
|
5
5
|
*/
|
6
|
-
billingDays: number;
|
7
6
|
deleteInvoicesPlacedDays: number;
|
8
7
|
deleteSubscriptionsPlacedDays: number;
|
9
8
|
/**
|
10
9
|
* Dias em que a fatura expira após o vencimento
|
11
10
|
*
|
12
11
|
* */
|
13
|
-
|
12
|
+
subscriptionsCancelDays: number;
|
13
|
+
subscriptionsExpireDays: number;
|
14
|
+
subscriptionsSuspendDays: number;
|
14
15
|
/**
|
15
16
|
* Dias em que a fatura é suspensa após o vencimento
|
16
17
|
*/
|
17
18
|
suspendDays: number;
|
18
19
|
constructor(data?: Partial<GlobalSettingMasterEntity>);
|
20
|
+
billingDays: number;
|
19
21
|
}
|
@@ -2,21 +2,22 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.GlobalSettingMasterEntity = void 0;
|
4
4
|
var GlobalSettingMasterEntity = /** @class */ (function () {
|
5
|
-
// #endregion Properties (
|
5
|
+
// #endregion Properties (6)
|
6
6
|
// #region Constructors (1)
|
7
7
|
function GlobalSettingMasterEntity(data) {
|
8
|
-
// #region Properties (
|
8
|
+
// #region Properties (6)
|
9
9
|
/**
|
10
10
|
* Prazo de dias para o vencimento da fatura.
|
11
11
|
*/
|
12
|
-
this.billingDays = 10;
|
13
12
|
this.deleteInvoicesPlacedDays = 10;
|
14
13
|
this.deleteSubscriptionsPlacedDays = 10;
|
15
14
|
/**
|
16
15
|
* Dias em que a fatura expira após o vencimento
|
17
16
|
*
|
18
17
|
* */
|
19
|
-
this.
|
18
|
+
this.subscriptionsCancelDays = 3;
|
19
|
+
this.subscriptionsExpireDays = 1;
|
20
|
+
this.subscriptionsSuspendDays = 1;
|
20
21
|
/**
|
21
22
|
* Dias em que a fatura é suspensa após o vencimento
|
22
23
|
*/
|
@@ -1,7 +1,8 @@
|
|
1
1
|
export interface IGlobalSettingMaster {
|
2
|
-
expireDays: number;
|
3
|
-
suspendDays: number;
|
4
2
|
billingDays: number;
|
5
3
|
deleteInvoicesPlacedDays: number;
|
6
4
|
deleteSubscriptionsPlacedDays: number;
|
5
|
+
subscriptionsCancelDays: number;
|
6
|
+
subscriptionsSuspendDays: number;
|
7
|
+
subscriptionsExpireDays: number;
|
7
8
|
}
|
package/dist/package.json
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
-
import { ISubscriptionItem } from
|
1
|
+
import { ISubscriptionItem } from '../interfaces';
|
2
2
|
export declare class SubscriptionItemEntity implements ISubscriptionItem {
|
3
3
|
description: string;
|
4
4
|
quantity: number;
|
5
5
|
recurrent: boolean;
|
6
6
|
totalPrice: number;
|
7
7
|
unitPrice: number;
|
8
|
+
voucherId: string | null;
|
8
9
|
constructor(data?: Partial<SubscriptionItemEntity>);
|
9
10
|
}
|
@@ -2,15 +2,16 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.SubscriptionItemEntity = void 0;
|
4
4
|
var SubscriptionItemEntity = /** @class */ (function () {
|
5
|
-
// #endregion Properties (
|
5
|
+
// #endregion Properties (6)
|
6
6
|
// #region Constructors (1)
|
7
7
|
function SubscriptionItemEntity(data) {
|
8
|
-
// #region Properties (
|
9
|
-
this.description =
|
8
|
+
// #region Properties (6)
|
9
|
+
this.description = '';
|
10
10
|
this.quantity = 1;
|
11
11
|
this.recurrent = true;
|
12
12
|
this.totalPrice = 0;
|
13
13
|
this.unitPrice = 0;
|
14
|
+
this.voucherId = null;
|
14
15
|
if (data) {
|
15
16
|
for (var key in data) {
|
16
17
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -30,7 +30,7 @@ export declare class SubscriptionEntity implements ISubscription {
|
|
30
30
|
phoneNumberNotification: string;
|
31
31
|
planId: string;
|
32
32
|
planName: string;
|
33
|
-
|
33
|
+
recentInvoices: InvoiceEntity[];
|
34
34
|
renewPaymentDate: Date;
|
35
35
|
renovatedAt: Date;
|
36
36
|
startsAt: Date;
|
@@ -32,7 +32,7 @@ var SubscriptionEntity = /** @class */ (function () {
|
|
32
32
|
this.phoneNumberNotification = '';
|
33
33
|
this.planId = '';
|
34
34
|
this.planName = '';
|
35
|
-
this.
|
35
|
+
this.recentInvoices = [];
|
36
36
|
this.renewPaymentDate = new Date();
|
37
37
|
this.renovatedAt = new Date();
|
38
38
|
this.startsAt = new Date();
|