code: function findTransactionTypeByName($type_name) {
  		//FIXME: more than 1000 transactions
  		$types = $this->getTransactionTypes(1, 1000)->getResult();
  
  		$type_name = mb_strtolower($type_name);
  
  		foreach($types as $type) {
  			if(strcmp(mb_strtolower($type->name), $type_name) == 0) {
  				return (int)$type->id;
  			}
  		}
  
  		return null;
  	}
docs: Finds a transaction type by name
  
  @param string $type_name
  the transaction name to find
  @return int
  the id if the found transaction
  @throws com_maileon_api_MaileonAPIException
  if there was a connection problem or a server error occurred