@@ -140,6 +140,7 @@ def __init__(
140140 dba : Optional [str ],
141141 sole_proprietorship : Optional [bool ],
142142 business_vertical : Optional [BusinessVertical ],
143+ operating_address : Optional [Address ],
143144 tags : Optional [Dict [str , str ]],
144145 relationships : Optional [Dict [str , Relationship ]],
145146 ):
@@ -160,6 +161,7 @@ def __init__(
160161 "dba" : dba ,
161162 "soleProprietorship" : sole_proprietorship ,
162163 "businessVertical" : business_vertical ,
164+ "operatingAddress" : operating_address ,
163165 "tags" : tags ,
164166 }
165167 self .relationships = relationships
@@ -182,6 +184,7 @@ def from_json_api(_id, _type, attributes, relationships):
182184 attributes .get ("dba" ),
183185 attributes .get ("soleProprietorship" ),
184186 attributes .get ("businessVertical" ),
187+ attributes .get ("operatingAddress" ),
185188 attributes .get ("tags" ),
186189 relationships ,
187190 )
@@ -213,6 +216,7 @@ def __init__(
213216 number_of_employees : Optional [NumberOfEmployees ],
214217 cash_flow : Optional [CashFlow ],
215218 countries_of_operation : Optional [List [str ]],
219+ operating_address : Optional [Address ],
216220 tags : Optional [Dict [str , str ]],
217221 relationships : Optional [Dict [str , Relationship ]],
218222 ):
@@ -241,6 +245,7 @@ def __init__(
241245 "contact" : contact ,
242246 "officer" : officer ,
243247 "beneficialOwners" : beneficial_owners ,
248+ "operatingAddress" : operating_address ,
244249 "tags" : tags ,
245250 }
246251 self .relationships = relationships
@@ -271,6 +276,7 @@ def from_json_api(_id, _type, attributes, relationships):
271276 attributes .get ("number_of_employees" ),
272277 attributes .get ("cash_flow" ),
273278 attributes .get ("countries_of_operation" ),
279+ attributes .get ("operating_address" ),
274280 attributes .get ("tags" ),
275281 relationships ,
276282 )
@@ -301,6 +307,7 @@ def __init__(
301307 annual_revenue : Optional [AnnualRevenue ] = None ,
302308 number_of_employees : Optional [NumberOfEmployees ] = None ,
303309 business_vertical : Optional [BusinessVertical ] = None ,
310+ operating_address : Optional [Address ] = None ,
304311 ):
305312 self .full_name = full_name
306313 self .date_of_birth = date_of_birth
@@ -321,6 +328,7 @@ def __init__(
321328 self .number_of_employees = number_of_employees
322329 self .business_vertical = business_vertical
323330 self .website = website
331+ self .operating_address = operating_address
324332
325333 def to_json_api (self ) -> Dict :
326334 payload = {
@@ -382,6 +390,9 @@ def to_json_api(self) -> Dict:
382390 if self .business_vertical :
383391 payload ["data" ]["attributes" ]["businessVertical" ] = self .business_vertical
384392
393+ if self .operating_address :
394+ payload ["data" ]["attributes" ]["operatingAddress" ] = self .operating_address
395+
385396 return payload
386397
387398 def __repr__ (self ):
@@ -412,7 +423,8 @@ def __init__(
412423 countries_of_operation : Optional [List [str ]] = None ,
413424 stock_symbol : Optional [str ] = None ,
414425 business_vertical : Optional [BusinessVertical ] = None ,
415- device_fingerprints : Optional [List [DeviceFingerprint ]] = None
426+ device_fingerprints : Optional [List [DeviceFingerprint ]] = None ,
427+ operating_address : Optional [Address ] = None ,
416428 ):
417429 self .name = name
418430 self .address = address
@@ -436,6 +448,7 @@ def __init__(
436448 self .stock_symbol = stock_symbol
437449 self .business_vertical = business_vertical
438450 self .device_fingerprints = device_fingerprints
451+ self .operating_address = operating_address
439452
440453 def to_json_api (self ) -> dict :
441454 payload = {
@@ -487,6 +500,9 @@ def to_json_api(self) -> dict:
487500 if self .stock_symbol :
488501 payload ["data" ]["attributes" ]["stockSymbol" ] = self .stock_symbol
489502
503+ if self .operating_address :
504+ payload ["data" ]["attributes" ]["operatingAddress" ] = self .operating_address
505+
490506 return payload
491507
492508 def __repr__ (self ):
0 commit comments