MonthService

public struct MonthService

Provides access to month operations

  • Returns a list of budget months.

    Declaration

    Swift

    public func months(
        budgetId: String,
        lastKnowledgeOfServer: ServerKnowledge?
    ) async throws -> ([MonthSummary], ServerKnowledge)

    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 and the last knowledge of the server

  • month(budgetId:month:) Asynchronous

    Returns a specific month for a budget.

    Declaration

    Swift

    public func month(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