/// <summary> /// All payments on the specified account of the user /// </summary> /// <param name="account">account for which to retrieve the payments</param> /// <returns>List of payments</returns> public async Task <List <FigoPayment> > GetPayments(FigoAccount account) { return(await GetPayments(account.AccountId)); }
/// <summary> /// All securities of a specific account /// </summary> /// <param name="account"></param> /// <param name="since"></param> /// <param name="count"></param> /// <param name="offset"></param> /// <param name="include_pending"></param> /// <returns></returns> public async Task <List <FigoSecurity> > GetSecurities(FigoAccount account, String since = null, int count = 1000, int offset = 0, bool include_pending = false) { return(await GetSecurities(account.AccountId, since, count, offset, include_pending)); }
/// <summary> /// Modify balance or account limits /// </summary> /// <param name="account">the account to be modified</param> /// <param name="accountBalance">modified AccountBalance object to be saved</param> /// <returns>AccountBalance object for the updated account as returned by the server</returns> public async Task <FigoAccountBalance> UpdateAccountBalance(FigoAccount account, FigoAccountBalance accountBalance) { return(await UpdateAccountBalance(account.AccountId, accountBalance)); }
/// <summary> /// Returns the balance details of the specified account /// </summary> /// <param name="account">Account whose balance is to be retrieved</param> /// <returns>Account balance or null</returns> public async Task <FigoAccountBalance> GetAccountBalance(FigoAccount account) { return(await GetAccountBalance(account.AccountId)); }
/// <summary> /// Remove an account /// </summary> /// <param name="account">account to be removed</param> public async Task <bool> RemoveAccount(FigoAccount account) { return(await RemoveAccount(account.AccountId)); }
/// <summary> /// Modify an account /// </summary> /// <param name="account">the modified account to be saved</param> /// <returns>Account object for the updated account returned by server</returns> public async Task <FigoAccount> UpdateAccount(FigoAccount account) { return(await this.DoRequest <FigoAccount>("/rest/accounts/" + account.AccountId, "PUT", account)); }