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,9 +1,12 @@
|
|
1
1
|
import { IInvoiceItem } from '../interfaces';
|
2
2
|
export declare class InvoiceItemEntity implements IInvoiceItem {
|
3
|
+
createdAt: Date;
|
3
4
|
description: string;
|
4
5
|
isRefunded: boolean;
|
5
6
|
quantity: number;
|
6
|
-
|
7
|
+
reference: string | null;
|
7
8
|
totalPrice: number;
|
9
|
+
unitPrice: number;
|
10
|
+
updatedAt: Date;
|
8
11
|
constructor(data?: Partial<InvoiceItemEntity>);
|
9
12
|
}
|
@@ -2,15 +2,18 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.InvoiceItemEntity = void 0;
|
4
4
|
var InvoiceItemEntity = /** @class */ (function () {
|
5
|
-
// #endregion Properties (
|
5
|
+
// #endregion Properties (8)
|
6
6
|
// #region Constructors (1)
|
7
7
|
function InvoiceItemEntity(data) {
|
8
|
-
// #region Properties (
|
8
|
+
// #region Properties (8)
|
9
|
+
this.createdAt = new Date();
|
9
10
|
this.description = '';
|
10
11
|
this.isRefunded = false;
|
11
12
|
this.quantity = 1;
|
12
|
-
this.
|
13
|
+
this.reference = '';
|
13
14
|
this.totalPrice = 0;
|
15
|
+
this.unitPrice = 0;
|
16
|
+
this.updatedAt = new Date();
|
14
17
|
if (data) {
|
15
18
|
for (var key in data) {
|
16
19
|
if (data.hasOwnProperty(key) && key in this) {
|
package/dist/package.json
CHANGED
@@ -6,6 +6,7 @@ export declare class SubscriptionCustomerEntity extends SubscriptionBaseEntity i
|
|
6
6
|
amountUsed: number;
|
7
7
|
creditLimit: number;
|
8
8
|
currentBalance: number;
|
9
|
+
customerId: string | null;
|
9
10
|
openedInvoices: IInvoice[];
|
10
11
|
profile: SubscriptionCustomerProfileEntity;
|
11
12
|
constructor(data?: Partial<SubscriptionCustomerEntity>);
|
@@ -20,14 +20,15 @@ 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 (6)
|
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 (6)
|
28
28
|
_this.amountUsed = 0;
|
29
29
|
_this.creditLimit = 0;
|
30
30
|
_this.currentBalance = 0;
|
31
|
+
_this.customerId = null;
|
31
32
|
_this.openedInvoices = [];
|
32
33
|
_this.profile = new subscription_customer_entity_1.SubscriptionCustomerProfileEntity();
|
33
34
|
if (data) {
|