示例#1
0
 /// <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. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; 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 &#x60;last_knowledge_of_server&#x60; 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);
 }
示例#2
0
 /// <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. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; 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 &#x60;last_knowledge_of_server&#x60; 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);
 }
示例#3
0
        /// <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. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; 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 &#x60;last_knowledge_of_server&#x60; 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);
        }
示例#4
0
 /// <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. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; 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);
 }
示例#5
0
        /// <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. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; 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);
        }
示例#6
0
        /// <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);
        }
示例#7
0
 /// <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);
 }
示例#8
0
        /// <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 (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; 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);
        }
示例#9
0
 /// <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 (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; 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);
 }
示例#10
0
        /// <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 (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; 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);
        }