PayeeService
public struct PayeeService
Provides access to payee operations
-
createPayee(planId:Asynchronouspayee: ) Creates a single payee.
Declaration
Swift
public func createPayee( planId: String, payee: SavePayee ) async throws -> (Payee, ServerKnowledge)Parameters
planIdThe id of the plan (last_used can also be used to specify the last used plan)
payeeThe payee to create
Return Value
A single payee and the last server knowledge
-
payees(planId:AsynchronouslastKnowledgeOfServer: ) Returns all payees
Declaration
Swift
public func payees( planId: String, lastKnowledgeOfServer: ServerKnowledge? = nil ) async throws -> ([Payee], ServerKnowledge)Parameters
planIdThe id of the plan (last_used can also be used to specify the last used plan)
lastKnowledgeOfServerIf provided, only entities that have changed since
lastKnowledgeOfServerwill be included.Return Value
A list of payees and the last server knowledge
-
payee(planId:AsynchronouspayeeId: ) Returns a single payee.
Declaration
Swift
public func payee(planId: String, payeeId: String) async throws -> PayeeParameters
planIdThe id of the plan (last_used can also be used to specify the last used plan)
lastKnowledgeOfServerIf provided, only entities that have changed since
lastKnowledgeOfServerwill be included.Return Value
A single payee
-
updatePayee(planId:AsynchronouspayeeId: payee: ) Updates a single payee.
Declaration
Swift
public func updatePayee( planId: String, payeeId: String, payee: SavePayee ) async throws -> (Payee, ServerKnowledge)Parameters
planIdThe id of the plan (last_used can also be used to specify the last used plan)
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