@dascompany/product 3.5.0 → 3.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,31 +8,31 @@ export default class Order extends StockObject {
|
|
|
8
8
|
private paymentDetailsId;
|
|
9
9
|
private invoice;
|
|
10
10
|
private zsiId;
|
|
11
|
-
constructor(email: string, price: number, clientId:
|
|
11
|
+
constructor(email: string, price: number, clientId: string | null, deliveryDetailsId: string, companyDetailsId?: string | null, paymentDetailsId?: string | null, invoice?: boolean);
|
|
12
12
|
getData(): Promise<{
|
|
13
13
|
id: string | null;
|
|
14
14
|
email: string;
|
|
15
15
|
price: number;
|
|
16
16
|
invoice: boolean;
|
|
17
|
-
clientId:
|
|
18
|
-
deliveryDetailsId:
|
|
19
|
-
companyDetailsId:
|
|
20
|
-
paymentDetailsId:
|
|
17
|
+
clientId: string | null;
|
|
18
|
+
deliveryDetailsId: string | null;
|
|
19
|
+
companyDetailsId: string | null;
|
|
20
|
+
paymentDetailsId: string | null;
|
|
21
21
|
}>;
|
|
22
22
|
getEmail(): string;
|
|
23
23
|
getPrice(): number;
|
|
24
24
|
getZsiId(): number | null;
|
|
25
25
|
getGrossPrice(): number;
|
|
26
|
-
getClientId():
|
|
27
|
-
getDeliveryDetailsId():
|
|
28
|
-
getCompanyDetailsId():
|
|
29
|
-
getPaymentDetailsId():
|
|
26
|
+
getClientId(): string | null;
|
|
27
|
+
getDeliveryDetailsId(): string | null;
|
|
28
|
+
getCompanyDetailsId(): string | null;
|
|
29
|
+
getPaymentDetailsId(): string | null;
|
|
30
30
|
isInvoice(): boolean;
|
|
31
31
|
setPrice(price: number): void;
|
|
32
|
-
setclientId(clientId:
|
|
33
|
-
setDeliveryDetailsId(deliveryDetailsId:
|
|
34
|
-
setCompanyDetailsId(companyDetailsId:
|
|
35
|
-
setPaymentDetailsId(paymentDetailsId:
|
|
32
|
+
setclientId(clientId: string): void;
|
|
33
|
+
setDeliveryDetailsId(deliveryDetailsId: string): void;
|
|
34
|
+
setCompanyDetailsId(companyDetailsId: string): void;
|
|
35
|
+
setPaymentDetailsId(paymentDetailsId: string): void;
|
|
36
36
|
setZsiId(zsiId: number): void;
|
|
37
37
|
calculateAndUpdatePrice(): Promise<void>;
|
|
38
38
|
protected getMapper(): StockObjectMapper;
|
|
@@ -5,9 +5,9 @@ export default class OrderProduct extends StockObject {
|
|
|
5
5
|
private netPrice;
|
|
6
6
|
private inOrder;
|
|
7
7
|
private installationPrice;
|
|
8
|
-
constructor(orderId:
|
|
9
|
-
getOrderId():
|
|
10
|
-
getProductId():
|
|
8
|
+
constructor(orderId: string, productId: string, netPrice: number, inOrder: boolean, installationPrice: number);
|
|
9
|
+
getOrderId(): string;
|
|
10
|
+
getProductId(): string;
|
|
11
11
|
getNetPrice(): number;
|
|
12
12
|
getInOrder(): boolean;
|
|
13
13
|
getInstallationPrice(): number;
|