@movalib/movalib-commons 1.59.36 → 1.59.37

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.
@@ -1,31 +1,45 @@
1
- import { OrderPreference, OrderState, PartsApplicationType, ProductType } from "../helpers/Enums";
1
+ import {
2
+ OrderPreference,
3
+ OrderState,
4
+ PartsApplicationType,
5
+ ProductType,
6
+ } from "../helpers/Enums";
2
7
  import Operation from "./Operation";
3
8
  import Supplier from "./Supplier";
4
9
 
5
10
  export default class Product {
11
+ // Properties
12
+ id: string; //UUID
13
+ name: string;
14
+ code: string;
15
+ type: ProductType;
16
+ order?: String;
17
+ orderPreference?: OrderPreference;
18
+ originReferences?: string[];
19
+ // Eventuelle opération associée au produit
20
+ operation?: Operation;
21
+ // Eventuel statut commande associé au produit
22
+ orderState?: OrderState;
23
+ // Eventuel fournisseur du produit
24
+ supplier?: Supplier;
25
+ // Eventuelle application du produit (avant, arrière)
26
+ application?: PartsApplicationType;
6
27
 
7
- // Properties
8
- id: string; //UUID
9
- name: string;
10
- code:string;
11
- type: ProductType;
12
- orderPreference?: OrderPreference;
13
- originReferences?: string[];
14
- // Eventuelle opération associée au produit
15
- operation?: Operation;
16
- // Eventuel statut commande associé au produit
17
- orderState?: OrderState;
18
- // Eventuel fournisseur du produit
19
- supplier?: Supplier;
20
- // Eventuelle application du produit (avant, arrière)
21
- application?: PartsApplicationType;
22
-
23
- constructor(id:string, code: string, name:string, type: ProductType, orderPreference: OrderPreference, originReferences: string[]) {
24
- this.id = id;
25
- this.name = name;
26
- this.code = code;
27
- this.type = type;
28
- this.orderPreference = orderPreference;
29
- this.originReferences = originReferences;
30
- }
31
- }
28
+ constructor(
29
+ id: string,
30
+ code: string,
31
+ name: string,
32
+ type: ProductType,
33
+ orderPreference: OrderPreference,
34
+ originReferences: string[],
35
+ order?: string
36
+ ) {
37
+ this.id = id;
38
+ this.name = name;
39
+ this.code = code;
40
+ this.type = type;
41
+ this.orderPreference = orderPreference;
42
+ this.originReferences = originReferences;
43
+ this.order = order;
44
+ }
45
+ }