module Payments
  class Transaction < Payments::Base
    def self.transactions_for_user(user_id)
      response = get "/admin_panel/transactions?user_id=#{user_id}"
      response.body['transactions']
    end
  end
end
