cecon-interfaces 1.1.86 → 1.1.88
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/invoice/entities/invoice.entity.mjs +4 -3
- package/dist/esm2022/invoice/interfaces/i-invoice.mjs +1 -1
- package/dist/esm2022/subscription-customer/entities/subscription.entity.mjs +6 -3
- package/dist/esm2022/subscription-customer/interfaces/i-subscription.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +8 -4
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/invoice/entities/invoice.entity.d.ts +1 -0
- package/dist/invoice/entities/invoice.entity.js +3 -2
- package/dist/invoice/interfaces/i-invoice.d.ts +1 -0
- package/dist/package.json +1 -1
- package/dist/subscription-customer/entities/subscription.entity.d.ts +3 -0
- package/dist/subscription-customer/entities/subscription.entity.js +5 -2
- package/dist/subscription-customer/interfaces/i-subscription.d.ts +3 -0
- package/package.json +1 -1
@@ -5,10 +5,10 @@ var general_1 = require("../../general");
|
|
5
5
|
var enums_1 = require("../enums");
|
6
6
|
var invoice_payer_entity_1 = require("./invoice-payer.entity");
|
7
7
|
var InvoiceEntity = /** @class */ (function () {
|
8
|
-
// #endregion Properties (
|
8
|
+
// #endregion Properties (41)
|
9
9
|
// #region Constructors (1)
|
10
10
|
function InvoiceEntity(data) {
|
11
|
-
// #region Properties (
|
11
|
+
// #region Properties (41)
|
12
12
|
this.addition = 0;
|
13
13
|
this.bankSlip = null;
|
14
14
|
this.bankSlipExtraDue = 3;
|
@@ -18,6 +18,7 @@ var InvoiceEntity = /** @class */ (function () {
|
|
18
18
|
this.createdAt = new Date();
|
19
19
|
this.creditCard = null;
|
20
20
|
this.currency = 'BRL';
|
21
|
+
this.customerId = null;
|
21
22
|
this.discount = 0;
|
22
23
|
this.dueDateAt = new Date(Date.now() + 3 * 24 * 60 * 60 * 1000);
|
23
24
|
this.email = '';
|
package/dist/package.json
CHANGED
@@ -2,6 +2,9 @@ import { SubscriptionBaseEntity } from '../../subscription-base';
|
|
2
2
|
import { ISubscriptionCustomer } from '../interfaces/i-subscription';
|
3
3
|
import { SubscriptionCustomerProfileEntity } from './subscription-customer.entity';
|
4
4
|
export declare class SubscriptionCustomerEntity extends SubscriptionBaseEntity implements ISubscriptionCustomer {
|
5
|
+
amountUsed: number;
|
6
|
+
creditLimit: number;
|
7
|
+
currentBalance: number;
|
5
8
|
profile: SubscriptionCustomerProfileEntity;
|
6
9
|
constructor(data?: Partial<SubscriptionCustomerEntity>);
|
7
10
|
}
|
@@ -20,11 +20,14 @@ var subscription_base_1 = require("../../subscription-base");
|
|
20
20
|
var subscription_customer_entity_1 = require("./subscription-customer.entity");
|
21
21
|
var SubscriptionCustomerEntity = /** @class */ (function (_super) {
|
22
22
|
__extends(SubscriptionCustomerEntity, _super);
|
23
|
-
// #endregion Properties (
|
23
|
+
// #endregion Properties (4)
|
24
24
|
// #region Constructors (1)
|
25
25
|
function SubscriptionCustomerEntity(data) {
|
26
26
|
var _this = _super.call(this, data) || this;
|
27
|
-
// #region Properties (
|
27
|
+
// #region Properties (4)
|
28
|
+
_this.amountUsed = 0;
|
29
|
+
_this.creditLimit = 0;
|
30
|
+
_this.currentBalance = 0;
|
28
31
|
_this.profile = new subscription_customer_entity_1.SubscriptionCustomerProfileEntity();
|
29
32
|
if (data) {
|
30
33
|
for (var key in data) {
|
@@ -2,4 +2,7 @@ import { ISubscriptionBase } from '../../subscription-base';
|
|
2
2
|
import { ISubscriptionCustomerProfile } from './i-subscription-customer';
|
3
3
|
export interface ISubscriptionCustomer extends ISubscriptionBase {
|
4
4
|
profile: ISubscriptionCustomerProfile;
|
5
|
+
creditLimit: number;
|
6
|
+
amountUsed: number;
|
7
|
+
currentBalance: number;
|
5
8
|
}
|