cecon-interfaces 1.2.4 → 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/invoice/entities/invoice-item.entity.mjs +7 -4
- package/dist/esm2022/invoice/interfaces/i-invoice-item.mjs +1 -1
- package/dist/esm2022/subscription-customer/entities/subscription.entity.mjs +4 -3
- package/dist/esm2022/subscription-customer/interfaces/i-subscription.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +9 -5
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/invoice/entities/invoice-item.entity.d.ts +4 -1
- package/dist/invoice/entities/invoice-item.entity.js +6 -3
- package/dist/invoice/interfaces/i-invoice-item.d.ts +3 -0
- package/dist/package.json +1 -1
- package/dist/subscription-customer/entities/subscription.entity.d.ts +1 -0
- package/dist/subscription-customer/entities/subscription.entity.js +3 -2
- package/dist/subscription-customer/interfaces/i-subscription.d.ts +1 -0
- package/package.json +1 -1
@@ -1,11 +1,14 @@
|
|
1
1
|
export class InvoiceItemEntity {
|
2
|
-
// #region Properties (
|
2
|
+
// #region Properties (8)
|
3
|
+
createdAt = new Date();
|
3
4
|
description = '';
|
4
5
|
isRefunded = false;
|
5
6
|
quantity = 1;
|
6
|
-
|
7
|
+
reference = '';
|
7
8
|
totalPrice = 0;
|
8
|
-
|
9
|
+
unitPrice = 0;
|
10
|
+
updatedAt = new Date();
|
11
|
+
// #endregion Properties (8)
|
9
12
|
// #region Constructors (1)
|
10
13
|
constructor(data) {
|
11
14
|
if (data) {
|
@@ -17,4 +20,4 @@ export class InvoiceItemEntity {
|
|
17
20
|
}
|
18
21
|
}
|
19
22
|
}
|
20
|
-
//# sourceMappingURL=data:application/json;base64,
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW52b2ljZS1pdGVtLmVudGl0eS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9pbnZvaWNlL2VudGl0aWVz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cHVibGljIGlzUmVmdW5kZWQ6IGJvb2xlYW4gPSBmYWxzZTtcbiAgcHVibGljIHF1YW50aXR5OiBudW1iZXIgPSAxO1xuICBwdWJsaWMgcmVmZXJlbmNlOiBzdHJpbmcgfCBudWxsID0gJyc7XG4gIHB1YmxpYyB0b3RhbFByaWNlOiBudW1iZXIgPSAwO1xuICBwdWJsaWMgdW5pdFByaWNlOiBudW1iZXIgPSAwO1xuICBwdWJsaWMgdXBkYXRlZEF0OiBEYXRlID0gbmV3IERhdGUoKTtcblxuICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDgpXG5cbiAgLy8gI3JlZ2lvbiBDb25zdHJ1Y3RvcnMgKDEpXG5cbiAgY29uc3RydWN0b3IoZGF0YT86IFBhcnRpYWw8SW52b2ljZUl0ZW1FbnRpdHk+KSB7XG4gICAgaWYgKGRhdGEpIHtcbiAgICAgIGZvciAobGV0IGtleSBpbiBkYXRhKSB7XG4gICAgICAgIGlmIChkYXRhLmhhc093blByb3BlcnR5KGtleSkgJiYga2V5IGluIHRoaXMpIHtcbiAgICAgICAgICAodGhpcyBhcyBhbnkpW2tleV0gPSAoZGF0YSBhcyBhbnkpW2tleV07XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICAvLyAjZW5kcmVnaW9uIENvbnN0cnVjdG9ycyAoMSlcbn1cbiJdfQ==
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1pbnZvaWNlLWl0ZW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvaW52b2ljZS9pbnRlcmZhY2VzL2ktaW52b2ljZS1pdGVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIElJbnZvaWNlSXRlbSB7XG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoOClcblxuICBkZXNjcmlwdGlvbjogc3RyaW5nO1xuICBxdWFudGl0eTogbnVtYmVyO1xuICBpc1JlZnVuZGVkOiBib29sZWFuO1xuICB1bml0UHJpY2U6IG51bWJlcjtcbiAgdG90YWxQcmljZTogbnVtYmVyO1xuICByZWZlcmVuY2U6IHN0cmluZyB8IG51bGw7XG4gIGNyZWF0ZWRBdDogRGF0ZTtcbiAgdXBkYXRlZEF0OiBEYXRlO1xuXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoOClcbn1cbiJdfQ==
|
@@ -1,13 +1,14 @@
|
|
1
1
|
import { SubscriptionBaseEntity } from '../../subscription-base';
|
2
2
|
import { SubscriptionCustomerProfileEntity } from './subscription-customer.entity';
|
3
3
|
export class SubscriptionCustomerEntity extends SubscriptionBaseEntity {
|
4
|
-
// #region Properties (
|
4
|
+
// #region Properties (6)
|
5
5
|
amountUsed = 0;
|
6
6
|
creditLimit = 0;
|
7
7
|
currentBalance = 0;
|
8
|
+
customerId = null;
|
8
9
|
openedInvoices = [];
|
9
10
|
profile = new SubscriptionCustomerProfileEntity();
|
10
|
-
// #endregion Properties (
|
11
|
+
// #endregion Properties (6)
|
11
12
|
// #region Constructors (1)
|
12
13
|
constructor(data) {
|
13
14
|
super(data);
|
@@ -20,4 +21,4 @@ export class SubscriptionCustomerEntity extends SubscriptionBaseEntity {
|
|
20
21
|
}
|
21
22
|
}
|
22
23
|
}
|
23
|
-
//# sourceMappingURL=data:application/json;base64,
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vic2NyaXB0aW9uLmVudGl0eS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9zdWJzY3JpcHRpb24tY3VzdG9tZXIvZW50aXRpZXMvc3Vic2NyaXB0a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h0aGlzIGFzIGFueSlba2V5XSA9IChkYXRhIGFzIGFueSlba2V5XTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gIC8vICNlbmRyZWdpb24gQ29uc3RydWN0b3JzICgxKVxufVxuIl19
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1zdWJzY3JpcHRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvc3Vic2NyaXB0aW9uLWN1c3RvbWVyL2ludGVyZmFjZXMvaS1zdWJzY3JpcHRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IElJbnZvaWNlIH0gZnJvbSAnLi4vLi4vaW52b2ljZSc7XG5pbXBvcnQgeyBJU3Vic2NyaXB0aW9uQmFzZSB9IGZyb20gJy4uLy4uL3N1YnNjcmlwdGlvbi1iYXNlJztcbmltcG9ydCB7IElTdWJzY3JpcHRpb25DdXN0b21lclByb2ZpbGUgfSBmcm9tICcuL2ktc3Vic2NyaXB0aW9uLWN1c3RvbWVyJztcblxuZXhwb3J0IGludGVyZmFjZSBJU3Vic2NyaXB0aW9uQ3VzdG9tZXIgZXh0ZW5kcyBJU3Vic2NyaXB0aW9uQmFzZSB7XG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoMSlcblxuICBwcm9maWxlOiBJU3Vic2NyaXB0aW9uQ3VzdG9tZXJQcm9maWxlO1xuICBjcmVkaXRMaW1pdDogbnVtYmVyO1xuICBhbW91bnRVc2VkOiBudW1iZXI7XG4gIGN1cnJlbnRCYWxhbmNlOiBudW1iZXI7XG4gIGN1c3RvbWVySWQ6IHN0cmluZyB8IG51bGw7XG4gIG9wZW5lZEludm9pY2VzOiBJSW52b2ljZVtdO1xuICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDEpXG59XG4iXX0=
|
@@ -2111,13 +2111,16 @@ class InvoiceCreditCardEntity {
|
|
2111
2111
|
}
|
2112
2112
|
|
2113
2113
|
class InvoiceItemEntity {
|
2114
|
-
// #region Properties (
|
2114
|
+
// #region Properties (8)
|
2115
|
+
createdAt = new Date();
|
2115
2116
|
description = '';
|
2116
2117
|
isRefunded = false;
|
2117
2118
|
quantity = 1;
|
2118
|
-
|
2119
|
+
reference = '';
|
2119
2120
|
totalPrice = 0;
|
2120
|
-
|
2121
|
+
unitPrice = 0;
|
2122
|
+
updatedAt = new Date();
|
2123
|
+
// #endregion Properties (8)
|
2121
2124
|
// #region Constructors (1)
|
2122
2125
|
constructor(data) {
|
2123
2126
|
if (data) {
|
@@ -3561,13 +3564,14 @@ class SubscriptionCustomerProfileEntity {
|
|
3561
3564
|
}
|
3562
3565
|
|
3563
3566
|
class SubscriptionCustomerEntity extends SubscriptionBaseEntity {
|
3564
|
-
// #region Properties (
|
3567
|
+
// #region Properties (6)
|
3565
3568
|
amountUsed = 0;
|
3566
3569
|
creditLimit = 0;
|
3567
3570
|
currentBalance = 0;
|
3571
|
+
customerId = null;
|
3568
3572
|
openedInvoices = [];
|
3569
3573
|
profile = new SubscriptionCustomerProfileEntity();
|
3570
|
-
// #endregion Properties (
|
3574
|
+
// #endregion Properties (6)
|
3571
3575
|
// #region Constructors (1)
|
3572
3576
|
constructor(data) {
|
3573
3577
|
super(data);
|