code: def _get_session_timeout_seconds(cls, session_server):
          
  
          if session_server.user_company is not None:
              return session_server.user_company.session_timeout
          elif session_server.user_person is not None:
              return session_server.user_person.session_timeout
          elif session_server.user_api_key is not None:
              return session_server \
                  .user_api_key \
                  .requested_by_user \
                  .get_referenced_object() \
                  .session_timeout
          else:
              raise BunqException()
docs: :type session_server: core.SessionServer
  
          :rtype: int