/// <summary> /// All payments on the specified account of the user /// </summary> /// <param name="accountId">ID of the account for which to retrieve the payments</param> /// <returns>List of payments</returns> public async Task <List <FigoPayment> > GetPayments(string accountId) { FigoPayment.PaymentsResponse response = await this.DoRequest <FigoPayment.PaymentsResponse>("/rest/accounts/" + accountId + "/payments"); return(response == null ? null : response.Payments); }
/// <summary> /// All payments on all accounts of the user /// </summary> /// <returns>List of payments</returns> public async Task <List <FigoPayment> > GetPayments() { FigoPayment.PaymentsResponse response = await this.DoRequest <FigoPayment.PaymentsResponse>("/rest/payments"); return(response == null ? null : response.Payments); }