PlanService
public struct PlanService
Provides access to plan operations
-
plans(includeAccounts:Asynchronous) Returns plans list with summary information.
Declaration
Swift
public func plans(includeAccounts: Bool) async throws -> [PlanSummary]Parameters
includeAccountsIncludes plan accounts in the response
Return Value
A list of plans
-
plan(planId:AsynchronouslastKnowledgeOfServer: ) Returns a single plan with all related entities.
This is effectively a full plan export. Depending on the size of your plan, this request can take a while.
Declaration
Swift
public func plan( planId: String, lastKnowledgeOfServer: Int? = nil ) async throws -> (PlanDetail, ServerKnowledge)Parameters
planIdThe id of the plan (last_used can also be used to specify the last used plan)
lastKnowledgeOfServerThe starting server knowledge. If provided, only entities that have changed since
lastKnowledgeOfServerwill be included.Return Value
A single plan and the last knowledge of the server
-
planSettings(planId:Asynchronous) Returns settings for a plan.
Declaration
Swift
public func planSettings(planId: String) async throws -> PlanSettingsParameters
planIdThe id of the plan (last_used can also be used to specify the last used plan)
Return Value
Settings for a specific plan
View on GitHub