ScheduledTransactionServiceType
public protocol ScheduledTransactionServiceType : Sendable
Provides access to scheduled transaction operations
-
scheduledTransaction(planId:AsynchronoustransactionId: ) Returns a single scheduled transaction for a plan.
Declaration
Swift
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:Default implementation, asynchronouslastKnowledgeOfServer: ) Returns all scheduled transactions for a plan.
Default Implementation
Returns all scheduled transactions for a plan, with optional parameters defaulted.
Declaration
Swift
func scheduledTransactions( planId: String, lastKnowledgeOfServer: ServerKnowledge? ) async throws -> ScheduledTransactionsResponseParameters
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 list of scheduled transactions and the knowledge of the server
-
createScheduledTransaction(planId:Asynchronoustransaction: ) Creates a new scheduled transaction.
Declaration
Swift
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
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
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