cecon-interfaces 1.2.5 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/subscription-customer/entities/subscription.entity.mjs +7 -3
- package/dist/esm2022/subscription-customer/interfaces/i-subscription.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +5 -2
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/subscription-customer/entities/subscription.entity.d.ts +4 -0
- package/dist/subscription-customer/entities/subscription.entity.js +6 -2
- package/dist/subscription-customer/interfaces/i-subscription.d.ts +4 -0
- package/package.json +1 -1
package/dist/package.json
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { ECustomerInterval } from '../../customer';
|
1
2
|
import { IInvoice } from '../../invoice';
|
2
3
|
import { SubscriptionBaseEntity } from '../../subscription-base';
|
3
4
|
import { ISubscriptionCustomer } from '../interfaces/i-subscription';
|
@@ -6,7 +7,10 @@ export declare class SubscriptionCustomerEntity extends SubscriptionBaseEntity i
|
|
6
7
|
amountUsed: number;
|
7
8
|
creditLimit: number;
|
8
9
|
currentBalance: number;
|
10
|
+
customerId: string | null;
|
11
|
+
customerInterval: ECustomerInterval;
|
9
12
|
openedInvoices: IInvoice[];
|
13
|
+
preferedDueDate: number;
|
10
14
|
profile: SubscriptionCustomerProfileEntity;
|
11
15
|
constructor(data?: Partial<SubscriptionCustomerEntity>);
|
12
16
|
}
|
@@ -16,19 +16,23 @@ var __extends = (this && this.__extends) || (function () {
|
|
16
16
|
})();
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
18
18
|
exports.SubscriptionCustomerEntity = void 0;
|
19
|
+
var customer_1 = require("../../customer");
|
19
20
|
var subscription_base_1 = require("../../subscription-base");
|
20
21
|
var subscription_customer_entity_1 = require("./subscription-customer.entity");
|
21
22
|
var SubscriptionCustomerEntity = /** @class */ (function (_super) {
|
22
23
|
__extends(SubscriptionCustomerEntity, _super);
|
23
|
-
// #endregion Properties (
|
24
|
+
// #endregion Properties (8)
|
24
25
|
// #region Constructors (1)
|
25
26
|
function SubscriptionCustomerEntity(data) {
|
26
27
|
var _this = _super.call(this, data) || this;
|
27
|
-
// #region Properties (
|
28
|
+
// #region Properties (8)
|
28
29
|
_this.amountUsed = 0;
|
29
30
|
_this.creditLimit = 0;
|
30
31
|
_this.currentBalance = 0;
|
32
|
+
_this.customerId = null;
|
33
|
+
_this.customerInterval = customer_1.ECustomerInterval.MONTHLY;
|
31
34
|
_this.openedInvoices = [];
|
35
|
+
_this.preferedDueDate = 7;
|
32
36
|
_this.profile = new subscription_customer_entity_1.SubscriptionCustomerProfileEntity();
|
33
37
|
if (data) {
|
34
38
|
for (var key in data) {
|
@@ -1,10 +1,14 @@
|
|
1
|
+
import { ECustomerInterval } from '../../customer';
|
1
2
|
import { IInvoice } from '../../invoice';
|
2
3
|
import { ISubscriptionBase } from '../../subscription-base';
|
3
4
|
import { ISubscriptionCustomerProfile } from './i-subscription-customer';
|
4
5
|
export interface ISubscriptionCustomer extends ISubscriptionBase {
|
5
6
|
profile: ISubscriptionCustomerProfile;
|
6
7
|
creditLimit: number;
|
8
|
+
preferedDueDate: number;
|
9
|
+
customerInterval: ECustomerInterval;
|
7
10
|
amountUsed: number;
|
8
11
|
currentBalance: number;
|
12
|
+
customerId: string | null;
|
9
13
|
openedInvoices: IInvoice[];
|
10
14
|
}
|