diff --git a/unit/models/application.py b/unit/models/application.py index e9efe1e..e1c2edf 100644 --- a/unit/models/application.py +++ b/unit/models/application.py @@ -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]], ): @@ -161,7 +160,6 @@ def __init__( "dba": dba, "soleProprietorship": sole_proprietorship, "businessVertical": business_vertical, - "operatingAddress": operating_address, "tags": tags, } self.relationships = relationships @@ -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, ) @@ -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 @@ -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 = { @@ -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):