Skip to content

Commit 1b898d0

Browse files
author
Ted Spence
committed
Standardized on @DataClass
1 parent 244bf40 commit 1b898d0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+133
-67
lines changed

src/models/activitymodel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#
1414

1515

16-
16+
from dataclasses import dataclass
1717
from src.models.attachmentmodel import AttachmentModel
1818
from src.models.notemodel import NoteModel
1919
from src.models.customfielddefinitionmodel import CustomFieldDefinitionModel
@@ -26,6 +26,7 @@
2626
name and description given for the particular task, the priority of the
2727
task, and any amounts collected, paid, or credited for the task.
2828
"""
29+
@dataclass
2930
class ActivityModel:
3031
activityId: str
3132
groupKey: str

src/models/agingmodel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
#
1414

1515

16-
16+
from dataclasses import dataclass
1717

1818
"""
1919
Represents an aging record
2020
"""
21+
@dataclass
2122
class AgingModel:
2223
bucket: int
2324
currencyCode: str

src/models/apikeymodel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#
1414

1515

16-
16+
from dataclasses import dataclass
1717

1818
"""
1919
An API Key is an authentication token that you may use with the Lockstep
@@ -25,6 +25,7 @@
2525
information, see [API
2626
Keys](https://developer.lockstep.io/docs/api-keys).
2727
"""
28+
@dataclass
2829
class ApiKeyModel:
2930
apiKeyId: str
3031
groupKey: str

src/models/appenrollmentcustomfieldmodel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
#
1414

1515

16-
16+
from dataclasses import dataclass
1717

1818
"""
1919
App enrollment and custom field merged into one
2020
"""
21+
@dataclass
2122
class AppEnrollmentCustomFieldModel:
2223
appEnrollmentId: str
2324
appId: str

src/models/appenrollmentmodel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#
1414

1515

16-
16+
from dataclasses import dataclass
1717
from src.models.applicationmodel import ApplicationModel
1818
from src.models.customfielddefinitionmodel import CustomFieldDefinitionModel
1919
from src.models.customfieldvaluemodel import CustomFieldValueModel
@@ -31,6 +31,7 @@
3131
Enrollments](https://developer.lockstep.io/docs/applications-and-enrollments)
3232
for more information.
3333
"""
34+
@dataclass
3435
class AppEnrollmentModel:
3536
appEnrollmentId: str
3637
appId: str

src/models/applicationmodel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#
1414

1515

16-
16+
from dataclasses import dataclass
1717
from src.models.notemodel import NoteModel
1818
from src.models.attachmentmodel import AttachmentModel
1919
from src.models.customfielddefinitionmodel import CustomFieldDefinitionModel
@@ -32,6 +32,7 @@
3232
Enrollments](https://developer.lockstep.io/docs/applications-and-enrollments)
3333
for more information. --swaggerCategory:Platform
3434
"""
35+
@dataclass
3536
class ApplicationModel:
3637
appId: str
3738
name: str

src/models/aragingheaderinfomodel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
#
1414

1515

16-
16+
from dataclasses import dataclass
1717

1818
"""
1919
Aggregated Accounts Receivable Aging information.
2020
"""
21+
@dataclass
2122
class ArAgingHeaderInfoModel:
2223
groupKey: str
2324
reportBucket: str

src/models/arheaderinfomodel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
#
1414

1515

16-
16+
from dataclasses import dataclass
1717

1818
"""
1919
Aggregated Accounts Receivable information.
2020
"""
21+
@dataclass
2122
class ArHeaderInfoModel:
2223
groupKey: str
2324
reportPeriod: str

src/models/atriskinvoicesummarymodel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
#
1414

1515

16-
16+
from dataclasses import dataclass
1717

1818
"""
1919
Contains summarized data for an invoice
2020
"""
21+
@dataclass
2122
class AtRiskInvoiceSummaryModel:
2223
reportDate: str
2324
groupKey: str

src/models/attachmentheaderinfomodel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
#
1414

1515

16-
16+
from dataclasses import dataclass
1717

1818
"""
1919
Aggregated Attachment status information.
2020
"""
21+
@dataclass
2122
class AttachmentHeaderInfoModel:
2223
groupKey: str
2324
companyId: str

0 commit comments

Comments
 (0)