@dascompany/product 4.1.5 → 4.1.6

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.
@@ -6,7 +6,7 @@ export default class OrderRepo {
6
6
  return this.createOrderFromRow(orderData);
7
7
  }
8
8
  static createOrderFromRow(orderData) {
9
- const order = new Order(orderData.email, orderData.net_price, orderData.client_id, orderData.delivery_details_id, orderData.company_details_id, orderData.payment_details_id, orderData.invoice, orderData.vat);
9
+ const order = new Order(orderData.email, orderData.net_price, orderData.vat, orderData.client_id, orderData.delivery_details_id, orderData.company_details_id, orderData.payment_details_id, orderData.invoice);
10
10
  order.setId(orderData.id);
11
11
  return order;
12
12
  }
@@ -9,7 +9,7 @@ export default class Order extends StockObject {
9
9
  private invoice;
10
10
  private zsiId;
11
11
  private vat;
12
- constructor(email: string, net_price: number, clientId: string | null, deliveryDetailsId: string, companyDetailsId: string | null | undefined, paymentDetailsId: string | null | undefined, invoice: boolean | undefined, vat: number);
12
+ constructor(email: string, net_price: number, vat: number, clientId: string | null, deliveryDetailsId: string, companyDetailsId?: string | null, paymentDetailsId?: string | null, invoice?: boolean);
13
13
  getData(): Promise<{
14
14
  id: string | null;
15
15
  email: string;
@@ -12,7 +12,7 @@ export default class Order extends StockObject {
12
12
  invoice;
13
13
  zsiId;
14
14
  vat;
15
- constructor(email, net_price, clientId, deliveryDetailsId, companyDetailsId = null, paymentDetailsId = null, invoice = false, vat) {
15
+ constructor(email, net_price, vat, clientId, deliveryDetailsId, companyDetailsId = null, paymentDetailsId = null, invoice = false) {
16
16
  super();
17
17
  this.email = email;
18
18
  this.net_price = net_price;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dascompany/product",
3
- "version": "4.1.5",
3
+ "version": "4.1.6",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "test": "vitest",