BudgetService
public class BudgetService
Provides access to account operations
-
getBudgets()
AsynchronousReturns budgets list with summary information.
Declaration
Swift
public func getBudgets() async throws -> [BudgetSummary]
Return Value
A list of budgets
-
getBudget(budgetId:
AsynchronouslastKnowledgeOfServer: ) Returns a single budget with all related entities.
This is effectively a full budget export. Depending on the size of your budget, this request can take a while.
Declaration
Swift
public func getBudget( budgetId: String, lastKnowledgeOfServer: Int? = nil ) async throws -> BudgetDetail
Parameters
budgetId
The id of the budget (last_used can also be used to specify the last used budget)
lastKnowledgeOfServer
The starting server knowledge. If provided, only entities that have changed since
lastKnowledgeOfServer
will be included.Return Value
A single budget
-
getBudgetSettings(budgetId:
Asynchronous) Returns settings for a budget.
Declaration
Swift
public func getBudgetSettings(budgetId: String) async throws -> BudgetSettings
Parameters
budgetId
The id of the budget (last_used can also be used to specify the last used budget)
Return Value
Settings for a specific budget