AVSTransactionDataStore
public protocol AVSTransactionDataStore
Interface for saving, loading and deleting AVSTransaction records
sourcery: StreamWrapped
-
Fetches a
AVSTransaction
by it’s identifierDeclaration
Swift
func fetchAVSTransaction(by identifier: UUID) -> AnyPublisher<AVSTransaction?, LocalStoreError>
Parameters
identifier
Identifier of the
AVSTransaction
to fetch -
List all
AVSTransaction
s contained in the storeDeclaration
Swift
func listAllAVSTransactions() -> AnyPublisher<[AVSTransaction], LocalStoreError>
-
Creates or updates a sequence of
AVSTransaction
into the store. Updates if the identifier does already exist in store, otherwise creates a new instance.sourcery: SkipStreamWrapped
Declaration
Swift
func save(avsTransactions: [AVSTransaction]) -> AnyPublisher<[AVSTransaction], LocalStoreError>
Parameters
avsTransactions
Array of
AVSTransaction
to be saved -
Deletes a sequence of
AVSTransaction
from the store with the related identifiersourcery: SkipStreamWrapped
Declaration
Swift
func delete(avsTransactions: [AVSTransaction]) -> AnyPublisher<[AVSTransaction], LocalStoreError>
Parameters
avsTransactions
Array of
AVSTransaction
to be deleted -
save(avsTransaction:
Extension method) Creates or updates a
AVSTransaction
into the store. Updates if the identifier does already exist in storesourcery: SkipStreamWrapped
Declaration
Swift
public func save(avsTransaction: AVSTransaction) -> AnyPublisher<AVSTransaction?, LocalStoreError>
Parameters
avsTransaction
Instance of
AVSTransaction
to be saved -
delete(avsTransaction:
Extension method) Deletes a
AVSTransaction
into from the store with the related identifiersourcery: SkipStreamWrapped
Declaration
Swift
public func delete(avsTransaction: AVSTransaction) -> AnyPublisher<AVSTransaction?, LocalStoreError>
Parameters
avsTransaction
Instance of
AVSTransaction
to be deleted