cecon-interfaces 1.2.4 → 1.2.5
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/fesm2022/cecon-interfaces.mjs +6 -3
- 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/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