Skip to content

Commit f707fa0

Browse files
author
Ted Spence
committed
Added default values for data objects
1 parent 1b898d0 commit f707fa0

Some content is hidden

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

64 files changed

+770
-770
lines changed

src/models/activitymodel.py

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -28,30 +28,30 @@
2828
"""
2929
@dataclass
3030
class ActivityModel:
31-
activityId: str
32-
groupKey: str
33-
companyId: str
34-
activityTypeCode: str
35-
activityName: str
36-
activityDescription: str
37-
activityStatus: str
38-
isOpen: bool
39-
priority: str
40-
userAssignedTo: str
41-
dateAssigned: str
42-
dateClosed: str
43-
snoozeUntilDate: str
44-
created: str
45-
createdUserId: str
46-
modified: str
47-
modifiedUserId: str
48-
amountCollected: float
49-
amountPaid: float
50-
creditGiven: float
51-
isUnread: bool
52-
isArchived: bool
53-
attachments: list[AttachmentModel]
54-
notes: list[NoteModel]
55-
customFieldDefinitions: list[CustomFieldDefinitionModel]
56-
customFieldValues: list[CustomFieldValueModel]
31+
activityId: str = None
32+
groupKey: str = None
33+
companyId: str = None
34+
activityTypeCode: str = None
35+
activityName: str = None
36+
activityDescription: str = None
37+
activityStatus: str = None
38+
isOpen: bool = None
39+
priority: str = None
40+
userAssignedTo: str = None
41+
dateAssigned: str = None
42+
dateClosed: str = None
43+
snoozeUntilDate: str = None
44+
created: str = None
45+
createdUserId: str = None
46+
modified: str = None
47+
modifiedUserId: str = None
48+
amountCollected: float = None
49+
amountPaid: float = None
50+
creditGiven: float = None
51+
isUnread: bool = None
52+
isArchived: bool = None
53+
attachments: list[AttachmentModel] = None
54+
notes: list[NoteModel] = None
55+
customFieldDefinitions: list[CustomFieldDefinitionModel] = None
56+
customFieldValues: list[CustomFieldValueModel] = None
5757

src/models/agingmodel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"""
2121
@dataclass
2222
class AgingModel:
23-
bucket: int
24-
currencyCode: str
25-
outstandingBalance: float
23+
bucket: int = None
24+
currencyCode: str = None
25+
outstandingBalance: float = None
2626

src/models/apikeymodel.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
"""
2828
@dataclass
2929
class ApiKeyModel:
30-
apiKeyId: str
31-
groupKey: str
32-
name: str
33-
apiKey: str
34-
keyPrefix: str
35-
created: str
36-
createdUserId: str
37-
revoked: str
38-
revokedUserId: str
39-
expires: str
30+
apiKeyId: str = None
31+
groupKey: str = None
32+
name: str = None
33+
apiKey: str = None
34+
keyPrefix: str = None
35+
created: str = None
36+
createdUserId: str = None
37+
revoked: str = None
38+
revokedUserId: str = None
39+
expires: str = None
4040

src/models/appenrollmentcustomfieldmodel.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
"""
2121
@dataclass
2222
class AppEnrollmentCustomFieldModel:
23-
appEnrollmentId: str
24-
appId: str
25-
name: str
26-
appType: str
27-
groupKey: str
28-
customFieldDefinitionId: str
29-
customFieldLabel: str
30-
dataType: str
31-
sortOrder: int
32-
stringValue: str
33-
numericValue: float
23+
appEnrollmentId: str = None
24+
appId: str = None
25+
name: str = None
26+
appType: str = None
27+
groupKey: str = None
28+
customFieldDefinitionId: str = None
29+
customFieldLabel: str = None
30+
dataType: str = None
31+
sortOrder: int = None
32+
stringValue: str = None
33+
numericValue: float = None
3434

src/models/appenrollmentmodel.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,20 @@
3333
"""
3434
@dataclass
3535
class AppEnrollmentModel:
36-
appEnrollmentId: str
37-
appId: str
38-
groupKey: str
39-
isActive: bool
40-
created: str
41-
createdUserId: str
42-
modified: str
43-
modifiedUserId: str
44-
cronSettings: str
45-
syncScheduleIsActive: bool
46-
app: ApplicationModel
47-
customFieldDefinitions: list[CustomFieldDefinitionModel]
48-
customFieldValues: list[CustomFieldValueModel]
49-
lastSync: SyncRequestModel
50-
erpInfo: ErpInfoDataModel
51-
connectorInfo: ConnectorInfoModel
36+
appEnrollmentId: str = None
37+
appId: str = None
38+
groupKey: str = None
39+
isActive: bool = None
40+
created: str = None
41+
createdUserId: str = None
42+
modified: str = None
43+
modifiedUserId: str = None
44+
cronSettings: str = None
45+
syncScheduleIsActive: bool = None
46+
app: ApplicationModel = None
47+
customFieldDefinitions: list[CustomFieldDefinitionModel] = None
48+
customFieldValues: list[CustomFieldValueModel] = None
49+
lastSync: SyncRequestModel = None
50+
erpInfo: ErpInfoDataModel = None
51+
connectorInfo: ConnectorInfoModel = None
5252

src/models/applicationmodel.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,23 @@
3434
"""
3535
@dataclass
3636
class ApplicationModel:
37-
appId: str
38-
name: str
39-
description: str
40-
appType: str
41-
ownerId: str
42-
projectUrl: str
43-
iconUrl: str
44-
priceTerms: str
45-
createdUserId: str
46-
modifiedUserId: str
47-
created: str
48-
modified: str
49-
isActive: bool
50-
wikiURL: str
51-
groupKey: str
52-
notes: list[NoteModel]
53-
attachments: list[AttachmentModel]
54-
customFieldDefinitions: list[CustomFieldDefinitionModel]
55-
customFieldValues: list[CustomFieldValueModel]
37+
appId: str = None
38+
name: str = None
39+
description: str = None
40+
appType: str = None
41+
ownerId: str = None
42+
projectUrl: str = None
43+
iconUrl: str = None
44+
priceTerms: str = None
45+
createdUserId: str = None
46+
modifiedUserId: str = None
47+
created: str = None
48+
modified: str = None
49+
isActive: bool = None
50+
wikiURL: str = None
51+
groupKey: str = None
52+
notes: list[NoteModel] = None
53+
attachments: list[AttachmentModel] = None
54+
customFieldDefinitions: list[CustomFieldDefinitionModel] = None
55+
customFieldValues: list[CustomFieldValueModel] = None
5656

src/models/aragingheaderinfomodel.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
"""
2121
@dataclass
2222
class ArAgingHeaderInfoModel:
23-
groupKey: str
24-
reportBucket: str
25-
totalCustomers: int
26-
totalInvoicesOutstanding: int
27-
totalOutstandingAmount: float
28-
totalArAmount: float
29-
percentageOfTotalAr: float
23+
groupKey: str = None
24+
reportBucket: str = None
25+
totalCustomers: int = None
26+
totalInvoicesOutstanding: int = None
27+
totalOutstandingAmount: float = None
28+
totalArAmount: float = None
29+
percentageOfTotalAr: float = None
3030

src/models/arheaderinfomodel.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,25 @@
2020
"""
2121
@dataclass
2222
class ArHeaderInfoModel:
23-
groupKey: str
24-
reportPeriod: str
25-
totalCustomers: int
26-
totalInvoices: int
27-
totalInvoicedAmount: float
28-
totalUnappliedPayments: float
29-
totalCollected: float
30-
totalArAmount: float
31-
totalInvoicesPaid: int
32-
totalInvoicesPastDue: int
33-
totalInvoices90DaysPastDue: int
34-
totalPastDueAmount: float
35-
totalPastDueAmount90Days: float
36-
percentageOfTotalAr: float
37-
dso: float
38-
totalInvoiceAmountCurrentYear: float
39-
totalInvoiceAmountPreviousYear: float
40-
totalPaymentAmountCurrentYear: float
41-
totalCollectedPastThirtyDays: int
42-
totalInvoicesPaidPastThirtyDays: int
43-
percentageOfTotalAr90DaysPastDue: float
23+
groupKey: str = None
24+
reportPeriod: str = None
25+
totalCustomers: int = None
26+
totalInvoices: int = None
27+
totalInvoicedAmount: float = None
28+
totalUnappliedPayments: float = None
29+
totalCollected: float = None
30+
totalArAmount: float = None
31+
totalInvoicesPaid: int = None
32+
totalInvoicesPastDue: int = None
33+
totalInvoices90DaysPastDue: int = None
34+
totalPastDueAmount: float = None
35+
totalPastDueAmount90Days: float = None
36+
percentageOfTotalAr: float = None
37+
dso: float = None
38+
totalInvoiceAmountCurrentYear: float = None
39+
totalInvoiceAmountPreviousYear: float = None
40+
totalPaymentAmountCurrentYear: float = None
41+
totalCollectedPastThirtyDays: int = None
42+
totalInvoicesPaidPastThirtyDays: int = None
43+
percentageOfTotalAr90DaysPastDue: float = None
4444

src/models/atriskinvoicesummarymodel.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@
2020
"""
2121
@dataclass
2222
class AtRiskInvoiceSummaryModel:
23-
reportDate: str
24-
groupKey: str
25-
customerId: str
26-
invoiceId: str
27-
invoiceNumber: str
28-
invoiceDate: str
29-
customerName: str
30-
status: str
31-
paymentDueDate: str
32-
invoiceAmount: float
33-
outstandingBalance: float
34-
invoiceTypeCode: str
35-
newestActivity: str
36-
daysPastDue: int
37-
paymentNumbers: list[str]
38-
paymentIds: list[str]
23+
reportDate: str = None
24+
groupKey: str = None
25+
customerId: str = None
26+
invoiceId: str = None
27+
invoiceNumber: str = None
28+
invoiceDate: str = None
29+
customerName: str = None
30+
status: str = None
31+
paymentDueDate: str = None
32+
invoiceAmount: float = None
33+
outstandingBalance: float = None
34+
invoiceTypeCode: str = None
35+
newestActivity: str = None
36+
daysPastDue: int = None
37+
paymentNumbers: list[str] = None
38+
paymentIds: list[str] = None
3939

src/models/attachmentheaderinfomodel.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
"""
2121
@dataclass
2222
class AttachmentHeaderInfoModel:
23-
groupKey: str
24-
companyId: str
25-
totalAttachments: int
26-
totalArchived: int
27-
totalActive: int
23+
groupKey: str = None
24+
companyId: str = None
25+
totalAttachments: int = None
26+
totalArchived: int = None
27+
totalActive: int = None
2828

0 commit comments

Comments
 (0)