Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions unit/models/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ def __init__(
dba: Optional[str],
sole_proprietorship: Optional[bool],
business_vertical: Optional[BusinessVertical],
operating_address: Optional[Address],
tags: Optional[Dict[str, str]],
relationships: Optional[Dict[str, Relationship]],
):
Expand All @@ -161,7 +160,6 @@ def __init__(
"dba": dba,
"soleProprietorship": sole_proprietorship,
"businessVertical": business_vertical,
"operatingAddress": operating_address,
"tags": tags,
}
self.relationships = relationships
Expand All @@ -184,7 +182,6 @@ def from_json_api(_id, _type, attributes, relationships):
attributes.get("dba"),
attributes.get("soleProprietorship"),
attributes.get("businessVertical"),
attributes.get("operatingAddress"),
attributes.get("tags"),
relationships,
)
Expand Down Expand Up @@ -307,7 +304,6 @@ def __init__(
annual_revenue: Optional[AnnualRevenue] = None,
number_of_employees: Optional[NumberOfEmployees] = None,
business_vertical: Optional[BusinessVertical] = None,
operating_address: Optional[Address] = None,
):
self.full_name = full_name
self.date_of_birth = date_of_birth
Expand All @@ -328,7 +324,6 @@ def __init__(
self.number_of_employees = number_of_employees
self.business_vertical = business_vertical
self.website = website
self.operating_address = operating_address

def to_json_api(self) -> Dict:
payload = {
Expand Down Expand Up @@ -390,9 +385,6 @@ def to_json_api(self) -> Dict:
if self.business_vertical:
payload["data"]["attributes"]["businessVertical"] = self.business_vertical

if self.operating_address:
payload["data"]["attributes"]["operatingAddress"] = self.operating_address

return payload

def __repr__(self):
Expand Down
Loading