def _get_con(cls, identifier: str = None, filing_event_info: dict = None): """Get change of name filing.""" name_obj = EntityName.get_by_event(identifier=identifier, event_id=filing_event_info['event_id']) if not name_obj: raise FilingNotFoundException(identifier=identifier, filing_type='change_of_name', event_id=filing_event_info['event_id']) filing_obj = Filing() filing_obj.body = { **name_obj.as_dict() } filing_obj.filing_type = 'changeOfName' return filing_obj
def _get_con(cls, cursor, identifier: str = None, filing_event_info: dict = None): """Get change of name filing.""" name_obj = EntityName.get_by_event(identifier=identifier, event_id=filing_event_info['event_id'], cursor=cursor) if not name_obj: raise FilingNotFoundException(identifier=identifier, filing_type='change_of_name', event_id=filing_event_info['event_id']) filing_obj = Filing() filing_obj.body = { **name_obj.as_dict() } filing_obj.filing_type = 'changeOfName' filing_obj.paper_only = False filing_obj.effective_date = filing_event_info['event_timestmp'] return filing_obj