PayeeService
public struct PayeeService
Provides access to payee operations
-
payees(budgetId:AsynchronouslastKnowledgeOfServer: ) Returns all payees
Declaration
Swift
public func payees( budgetId: String, lastKnowledgeOfServer: ServerKnowledge? = nil ) async throws -> [Payee]Parameters
budgetIdThe id of the budget (last_used can also be used to specify the last used budget)
lastKnowledgeOfServerIf provided, only entities that have changed since
lastKnowledgeOfServerwill be included.Return Value
A list of payees
-
payee(budgetId:AsynchronouspayeeId: ) Returns a single payee.
Declaration
Swift
public func payee(budgetId: String, payeeId: String) async throws -> PayeeParameters
budgetIdThe id of the budget (last_used can also be used to specify the last used budget)
lastKnowledgeOfServerIf provided, only entities that have changed since
lastKnowledgeOfServerwill be included.Return Value
A single payee
-
updatePayee(budgetId:AsynchronouspayeeId: payee: ) Updates a single payee.
Declaration
Swift
public func updatePayee( budgetId: String, payeeId: String, payee: SavePayee ) async throws -> (Payee, ServerKnowledge)Parameters
budgetIdThe id of the budget (last_used can also be used to specify the last used budget)
payeeIdThe id of the payee being update
payeeThe details of the payee that need to be updated
Return Value
A single payee and the last server knowledge
View on GitHub