Sha256: fb6e4ae61a9f05e3d135c0831777fdfb326d2841a1ff4988e332ca394f86e0c3
Contents?: true
Size: 942 Bytes
Versions: 13
Compression:
Stored size: 942 Bytes
Contents
module Kaui class AnalyticsController < Kaui::EngineController def index end def account_snapshot # params[:account_id] can either be a uuid or an external key begin @account = Kaui::KillbillHelper::get_account_by_key(params[:account_id], false, false, options_for_klient) @snapshot = Kaui::KillbillHelper::get_account_snapshot(@account.account_id, options_for_klient) rescue => e flash[:error] = "Error while retrieving account snapshot: #{as_string(e)}" redirect_to :analytics end end def refresh_account begin Kaui::KillbillHelper::refresh_account(params[:account_id], options_for_klient) flash[:notice] = "Account successfully refreshed!" rescue => e flash[:error] = "Error while refreshing account: #{as_string(e)}" end redirect_to account_snapshot_path(:account_id => params[:account_id]) end end end
Version data entries
13 entries across 13 versions & 1 rubygems