MonthService
public class MonthService
Provides access to month operations
-
getMonths(budgetId:
AsynchronouslastKnowledgeOfServer: ) Returns a list of budget months.
Declaration
Swift
public func getMonths( budgetId: String, lastKnowledgeOfServer: Int? = nil ) async throws -> [MonthSummary]
Parameters
budgetId
The id of the budget (last_used can also be used to specify the last used budget)
lastKnowledgeOfServer
If provided, only entities that have changed since
lastKnowledgeOfServer
will be included.Return Value
A list of months
-
getMonth(budgetId:
Asynchronousmonth: ) Returns a specific month for a budget.
Declaration
Swift
public func getMonth(budgetId: String, month: String) async throws -> MonthDetail
Parameters
budgetId
The id of the budget (last_used can also be used to specify the last used budget)
month
The budget month in ISO format (e.g. 2016-12-01) (current can also be used to specify the current calendar month (UTC))
Return Value
A single month