PayeeServiceType
public protocol PayeeServiceType : Sendable
Provides access to payee operations
-
createPayee(planId:Asynchronouspayee: ) Creates a single payee.
Declaration
Swift
func createPayee(planId: String, payee: SavePayee) async throws -> PayeeResponseParameters
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 knowledge of the server
-
payees(planId:Default implementation, asynchronouslastKnowledgeOfServer: ) Returns all payees
Default Implementation
Returns all payees, with optional parameters defaulted.
Declaration
Swift
func payees( planId: String, lastKnowledgeOfServer: ServerKnowledge? ) async throws -> PayeesResponseParameters
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 knowledge of the server
-
payee(planId:AsynchronouspayeeId: ) Returns a single payee.
Declaration
Swift
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)
payeeIdThe id of the payee
Return Value
A single payee
-
updatePayee(planId:AsynchronouspayeeId: payee: ) Updates a single payee.
Declaration
Swift
func updatePayee( planId: String, payeeId: String, payee: SavePayee ) async throws -> PayeeResponseParameters
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 knowledge of the server
View on GitHub