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
@@ -1,13 +1,17 @@
|
|
1
|
+
import { ECustomerInterval } from '../../customer';
|
1
2
|
import { SubscriptionBaseEntity } from '../../subscription-base';
|
2
3
|
import { SubscriptionCustomerProfileEntity } from './subscription-customer.entity';
|
3
4
|
export class SubscriptionCustomerEntity extends SubscriptionBaseEntity {
|
4
|
-
// #region Properties (
|
5
|
+
// #region Properties (8)
|
5
6
|
amountUsed = 0;
|
6
7
|
creditLimit = 0;
|
7
8
|
currentBalance = 0;
|
9
|
+
customerId = null;
|
10
|
+
customerInterval = ECustomerInterval.MONTHLY;
|
8
11
|
openedInvoices = [];
|
12
|
+
preferedDueDate = 7;
|
9
13
|
profile = new SubscriptionCustomerProfileEntity();
|
10
|
-
// #endregion Properties (
|
14
|
+
// #endregion Properties (8)
|
11
15
|
// #region Constructors (1)
|
12
16
|
constructor(data) {
|
13
17
|
super(data);
|
@@ -20,4 +24,4 @@ export class SubscriptionCustomerEntity extends SubscriptionBaseEntity {
|
|
20
24
|
}
|
21
25
|
}
|
22
26
|
}
|
23
|
-
//# sourceMappingURL=data:application/json;base64,
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vic2NyaXB0aW9uLmVudGl0eS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9zdWJzY3JpcHRpb24t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JQcm9maWxlRW50aXR5ID0gbmV3IFN1YnNjcmlwdGlvbkN1c3RvbWVyUHJvZmlsZUVudGl0eSgpO1xuXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoOClcblxuICAvLyAjcmVnaW9uIENvbnN0cnVjdG9ycyAoMSlcblxuICBjb25zdHJ1Y3RvcihkYXRhPzogUGFydGlhbDxTdWJzY3JpcHRpb25DdXN0b21lckVudGl0eT4pIHtcbiAgICBzdXBlcihkYXRhKTtcbiAgICBpZiAoZGF0YSkge1xuICAgICAgZm9yIChsZXQga2V5IGluIGRhdGEpIHtcbiAgICAgICAgaWYgKGRhdGEuaGFzT3duUHJvcGVydHkoa2V5KSAmJiBrZXkgaW4gdGhpcykge1xuICAgICAgICAgICh0aGlzIGFzIGFueSlba2V5XSA9IChkYXRhIGFzIGFueSlba2V5XTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gIC8vICNlbmRyZWdpb24gQ29uc3RydWN0b3JzICgxKVxufVxuIl19
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1zdWJzY3JpcHRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvc3Vic2NyaXB0aW9uLWN1c3RvbWVyL2ludGVyZmFjZXMvaS1zdWJzY3JpcHRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEVDdXN0b21lckludGVydmFsIH0gZnJvbSAnLi4vLi4vY3VzdG9tZXInO1xuaW1wb3J0IHsgSUludm9pY2UgfSBmcm9tICcuLi8uLi9pbnZvaWNlJztcbmltcG9ydCB7IElTdWJzY3JpcHRpb25CYXNlIH0gZnJvbSAnLi4vLi4vc3Vic2NyaXB0aW9uLWJhc2UnO1xuaW1wb3J0IHsgSVN1YnNjcmlwdGlvbkN1c3RvbWVyUHJvZmlsZSB9IGZyb20gJy4vaS1zdWJzY3JpcHRpb24tY3VzdG9tZXInO1xuXG5leHBvcnQgaW50ZXJmYWNlIElTdWJzY3JpcHRpb25DdXN0b21lciBleHRlbmRzIElTdWJzY3JpcHRpb25CYXNlIHtcbiAgLy8gI3JlZ2lvbiBQcm9wZXJ0aWVzICgxKVxuXG4gIHByb2ZpbGU6IElTdWJzY3JpcHRpb25DdXN0b21lclByb2ZpbGU7XG4gIGNyZWRpdExpbWl0OiBudW1iZXI7XG4gIHByZWZlcmVkRHVlRGF0ZTogbnVtYmVyO1xuICBjdXN0b21lckludGVydmFsOiBFQ3VzdG9tZXJJbnRlcnZhbDtcbiAgYW1vdW50VXNlZDogbnVtYmVyO1xuICBjdXJyZW50QmFsYW5jZTogbnVtYmVyO1xuICBjdXN0b21lcklkOiBzdHJpbmcgfCBudWxsO1xuICBvcGVuZWRJbnZvaWNlczogSUludm9pY2VbXTtcbiAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICgxKVxufVxuIl19
|
@@ -3564,13 +3564,16 @@ class SubscriptionCustomerProfileEntity {
|
|
3564
3564
|
}
|
3565
3565
|
|
3566
3566
|
class SubscriptionCustomerEntity extends SubscriptionBaseEntity {
|
3567
|
-
// #region Properties (
|
3567
|
+
// #region Properties (8)
|
3568
3568
|
amountUsed = 0;
|
3569
3569
|
creditLimit = 0;
|
3570
3570
|
currentBalance = 0;
|
3571
|
+
customerId = null;
|
3572
|
+
customerInterval = ECustomerInterval.MONTHLY;
|
3571
3573
|
openedInvoices = [];
|
3574
|
+
preferedDueDate = 7;
|
3572
3575
|
profile = new SubscriptionCustomerProfileEntity();
|
3573
|
-
// #endregion Properties (
|
3576
|
+
// #endregion Properties (8)
|
3574
3577
|
// #region Constructors (1)
|
3575
3578
|
constructor(data) {
|
3576
3579
|
super(data);
|