cecon-interfaces 1.2.6 → 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 +6 -3
- package/dist/esm2022/subscription-customer/interfaces/i-subscription.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +4 -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 +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
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';
|
@@ -7,7 +8,9 @@ export declare class SubscriptionCustomerEntity extends SubscriptionBaseEntity i
|
|
7
8
|
creditLimit: number;
|
8
9
|
currentBalance: number;
|
9
10
|
customerId: string | null;
|
11
|
+
customerInterval: ECustomerInterval;
|
10
12
|
openedInvoices: IInvoice[];
|
13
|
+
preferedDueDate: number;
|
11
14
|
profile: SubscriptionCustomerProfileEntity;
|
12
15
|
constructor(data?: Partial<SubscriptionCustomerEntity>);
|
13
16
|
}
|
@@ -16,20 +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;
|
31
32
|
_this.customerId = null;
|
33
|
+
_this.customerInterval = customer_1.ECustomerInterval.MONTHLY;
|
32
34
|
_this.openedInvoices = [];
|
35
|
+
_this.preferedDueDate = 7;
|
33
36
|
_this.profile = new subscription_customer_entity_1.SubscriptionCustomerProfileEntity();
|
34
37
|
if (data) {
|
35
38
|
for (var key in data) {
|
@@ -1,9 +1,12 @@
|
|
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;
|
9
12
|
customerId: string | null;
|