File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 2
2
3
3
from typing import Any
4
4
5
- from pydantic . v1 import BaseModel
5
+ from pydantic import BaseModel
6
6
7
7
from cg .constants .priority import PriorityTerms
8
8
from cg .constants .sequencing import RecordType
@@ -21,7 +21,7 @@ class InvoiceContact(BaseModel):
21
21
class InvoiceApplication (BaseModel ):
22
22
"""Class to collect Application information used in the invoice."""
23
23
24
- version : str
24
+ version : int
25
25
tag : str
26
26
discounted_price : int
27
27
percent_kth : int
@@ -31,27 +31,27 @@ class InvoiceInfo(BaseModel):
31
31
"""Class to collect invoice information used in the invoice report."""
32
32
33
33
name : str
34
- id : str
35
- lims_id : str | None
34
+ id : int
35
+ lims_id : str | None = None
36
36
application_tag : str
37
37
project : str
38
- date : Any | None
38
+ date : Any | None = None
39
39
price : int
40
40
priority : PriorityTerms
41
- price_kth : int | None
42
- total_price : int | None
41
+ price_kth : int | None = None
42
+ total_price : int | None = None
43
43
44
44
45
45
class InvoiceReport (BaseModel ):
46
46
"""Class that collects information used to create the invoice Excel sheet."""
47
47
48
48
cost_center : str
49
- project_number : str | None
49
+ project_number : str | None = None
50
50
customer_id : str
51
51
customer_name : str
52
- agreement : str | None
52
+ agreement : str | None = None
53
53
invoice_id : int
54
54
contact : dict
55
55
records : list
56
- pooled_samples : Any | None
56
+ pooled_samples : Any | None = None
57
57
record_type : RecordType
You can’t perform that action at this time.
0 commit comments