ScheduledTransactionService
public struct ScheduledTransactionService
Provides access to scheduled transaction operations
-
scheduledTransaction(planId:AsynchronoustransactionId: ) Returns a single scheduled transaction for a plan.
Declaration
Swift
public func scheduledTransaction( planId: String, transactionId: String ) async throws -> ScheduledTransactionDetailParameters
planIdThe id of the plan (last_used can also be used to specify the last used plan).
transactionIdId of the transaction.
Return Value
A single scheduled transaction
-
scheduledTransactions(planId:AsynchronouslastKnowledgeOfServer: ) Returns all scheduled transactions for a plan.
Declaration
Swift
public func scheduledTransactions( planId: String, lastKnowledgeOfServer: ServerKnowledge? = nil ) async throws -> ([ScheduledTransactionDetail], 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 tuple containing a list of scheduled transactions and server knowledge
-
createScheduledTransaction(planId:Asynchronoustransaction: ) Creates a new scheduled transaction.
Declaration
Swift
public func createScheduledTransaction( planId: String, transaction: SaveScheduledTransaction ) async throws -> ScheduledTransactionDetailParameters
planIdThe id of the plan (last_used can also be used to specify the last used plan)
transactionThe scheduled transaction data to create
Return Value
The created scheduled transaction
-
Updates an existing scheduled transaction.
Declaration
Swift
public func updateScheduledTransaction( planId: String, transactionId: String, transaction: SaveScheduledTransaction ) async throws -> ScheduledTransactionDetailParameters
planIdThe id of the plan (last_used can also be used to specify the last used plan)
transactionIdThe id of the scheduled transaction to update
transactionThe updated scheduled transaction data
Return Value
The updated scheduled transaction
-
deleteScheduledTransaction(planId:AsynchronoustransactionId: ) Deletes a scheduled transaction.
Declaration
Swift
public func deleteScheduledTransaction( planId: String, transactionId: String ) async throws -> ScheduledTransactionDetailParameters
planIdThe id of the plan (last_used can also be used to specify the last used plan)
transactionIdThe id of the scheduled transaction to delete
Return Value
The deleted scheduled transaction
View on GitHub