StoreProtocol
public protocol StoreProtocol : AnyObject, Sendable
-
Declaration
Swift
func addAddress(a: UpdatableAddressFields) throws -> Address -
Declaration
Swift
func addCreditCard(cc: UpdatableCreditCardFields) throws -> CreditCard -
Declaration
Swift
func deleteAddress(guid: String) throws -> Bool -
Declaration
Swift
func deleteCreditCard(guid: String) throws -> Bool -
Declaration
Swift
func getAddress(guid: String) throws -> Address -
Declaration
Swift
func getAllAddresses() throws -> [Address] -
Declaration
Swift
func getAllCreditCards() throws -> [CreditCard] -
Declaration
Swift
func getCreditCard(guid: String) throws -> CreditCard -
Declaration
Swift
func registerWithSyncManager() -
Run maintenance on the DB
This is intended to be run during idle time and will take steps / to clean up / shrink the database.
Declaration
Swift
func runMaintenance() throws -
Declaration
Swift
func scrubEncryptedData() throws -
The
scrub_undecryptable_credit_card_data_for_remote_replacementfunction locally scrubs credit cards that cannot be decrypted, sets the record’s metadata to their default values, and resets the credit card engine so any existing server records can overwrite the locally scrubbed records.NB: This function was created to unblock iOS credit card users who are unable to sync records and should not be used outside of this use case.
Declaration
Swift
func scrubUndecryptableCreditCardDataForRemoteReplacement(localEncryptionKey: String) throws -> CreditCardsDeletionMetrics -
Declaration
Swift
func touchAddress(guid: String) throws -
Declaration
Swift
func touchCreditCard(guid: String) throws -
Declaration
Swift
func updateAddress(guid: String, a: UpdatableAddressFields) throws -
Declaration
Swift
func updateCreditCard(guid: String, cc: UpdatableCreditCardFields) throws