class AccountID
  def self.validate(row, repo)
    reasons = []

    unless row[:account_id]
      return 'Account ID is required'
    end

    account_id = verify_account_id(row[:account_id], repo)

    reasons << 'Account ID does not exist in Abacus' unless account_id

    reasons
  end

  def self.verify_account_id(account_id, repo)
    repo.verify_account_id(account_id)
  end
end


