/// <summary> /// Single budget Returns a single budget with all related entities. This resource is effectively a full budget export. /// </summary> /// <exception cref="YNAB.SDK.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="budgetId">The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).</param> /// <param name="lastKnowledgeOfServer">The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included. (optional)</param> /// <returns>BudgetDetailResponse</returns> public BudgetDetailResponse GetBudgetById(string budgetId, long?lastKnowledgeOfServer = default(long?)) { YNAB.SDK.Client.ApiResponse <BudgetDetailResponse> localVarResponse = GetBudgetByIdWithHttpInfo(budgetId, lastKnowledgeOfServer); return(localVarResponse.Data); }
/// <summary> /// List payees Returns all payees /// </summary> /// <exception cref="YNAB.SDK.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="budgetId">The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).</param> /// <param name="lastKnowledgeOfServer">The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included. (optional)</param> /// <returns>PayeesResponse</returns> public PayeesResponse GetPayees(string budgetId, long?lastKnowledgeOfServer = default(long?)) { YNAB.SDK.Client.ApiResponse <PayeesResponse> localVarResponse = GetPayeesWithHttpInfo(budgetId, lastKnowledgeOfServer); return(localVarResponse.Data); }
/// <summary> /// List payees Returns all payees /// </summary> /// <exception cref="YNAB.SDK.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="budgetId">The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).</param> /// <param name="lastKnowledgeOfServer">The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included. (optional)</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of PayeesResponse</returns> public async System.Threading.Tasks.Task <PayeesResponse> GetPayeesAsync(string budgetId, long?lastKnowledgeOfServer = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { YNAB.SDK.Client.ApiResponse <PayeesResponse> localVarResponse = await GetPayeesWithHttpInfoAsync(budgetId, lastKnowledgeOfServer, cancellationToken).ConfigureAwait(false); return(localVarResponse.Data); }
/// <summary> /// Single payee Returns a single payee /// </summary> /// <exception cref="YNAB.SDK.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="budgetId">The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).</param> /// <param name="payeeId">The id of the payee</param> /// <returns>PayeeResponse</returns> public PayeeResponse GetPayeeById(string budgetId, string payeeId) { YNAB.SDK.Client.ApiResponse <PayeeResponse> localVarResponse = GetPayeeByIdWithHttpInfo(budgetId, payeeId); return(localVarResponse.Data); }
/// <summary> /// Single payee Returns a single payee /// </summary> /// <exception cref="YNAB.SDK.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="budgetId">The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).</param> /// <param name="payeeId">The id of the payee</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of PayeeResponse</returns> public async System.Threading.Tasks.Task <PayeeResponse> GetPayeeByIdAsync(string budgetId, string payeeId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { YNAB.SDK.Client.ApiResponse <PayeeResponse> localVarResponse = await GetPayeeByIdWithHttpInfoAsync(budgetId, payeeId, cancellationToken).ConfigureAwait(false); return(localVarResponse.Data); }
/// <summary> /// List budgets Returns budgets list with summary information /// </summary> /// <exception cref="YNAB.SDK.Client.ApiException">Thrown when fails to make API call</exception> /// <returns>Task of BudgetSummaryResponse</returns> public async System.Threading.Tasks.Task <BudgetSummaryResponse> GetBudgetsAsync() { YNAB.SDK.Client.ApiResponse <BudgetSummaryResponse> localVarResponse = await GetBudgetsAsyncWithHttpInfo(); return(localVarResponse.Data); }
/// <summary> /// List budgets Returns budgets list with summary information /// </summary> /// <exception cref="YNAB.SDK.Client.ApiException">Thrown when fails to make API call</exception> /// <returns>BudgetSummaryResponse</returns> public BudgetSummaryResponse GetBudgets() { YNAB.SDK.Client.ApiResponse <BudgetSummaryResponse> localVarResponse = GetBudgetsWithHttpInfo(); return(localVarResponse.Data); }
/// <summary> /// Budget Settings Returns settings for a budget /// </summary> /// <exception cref="YNAB.SDK.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="budgetId">The id of the budget (\"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)</param> /// <returns>Task of BudgetSettingsResponse</returns> public async System.Threading.Tasks.Task <BudgetSettingsResponse> GetBudgetSettingsByIdAsync(string budgetId) { YNAB.SDK.Client.ApiResponse <BudgetSettingsResponse> localVarResponse = await GetBudgetSettingsByIdAsyncWithHttpInfo(budgetId); return(localVarResponse.Data); }
/// <summary> /// Budget Settings Returns settings for a budget /// </summary> /// <exception cref="YNAB.SDK.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="budgetId">The id of the budget (\"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)</param> /// <returns>BudgetSettingsResponse</returns> public BudgetSettingsResponse GetBudgetSettingsById(string budgetId) { YNAB.SDK.Client.ApiResponse <BudgetSettingsResponse> localVarResponse = GetBudgetSettingsByIdWithHttpInfo(budgetId); return(localVarResponse.Data); }
/// <summary> /// Single budget Returns a single budget with all related entities. This resource is effectively a full budget export. /// </summary> /// <exception cref="YNAB.SDK.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="budgetId">The id of the budget (\"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)</param> /// <param name="lastKnowledgeOfServer">The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included. (optional)</param> /// <returns>Task of BudgetDetailResponse</returns> public async System.Threading.Tasks.Task <BudgetDetailResponse> GetBudgetByIdAsync(string budgetId, long?lastKnowledgeOfServer = null) { YNAB.SDK.Client.ApiResponse <BudgetDetailResponse> localVarResponse = await GetBudgetByIdAsyncWithHttpInfo(budgetId, lastKnowledgeOfServer); return(localVarResponse.Data); }