Instantly share code, notes, and snippets.

Embed
What would you like to do?
Delete an Account in Amatino Swift - A double-entry accounting library for iOS & MacOS
// Amatino Swift: https://github.com/amatino-code/amatino-swift
// Double entry accounting API
try account.delete(
entryReplacement: cash,
callback: { (error) in
// A lack of error indicates the Account is a goner
})
@hwjeremy

This comment has been minimized.

Copy link
Owner Author

hwjeremy commented Aug 5, 2018

The account and cash instances are examples of Account instances retrieved or created using techniques visible in the Account.create() and Account.retrieve() gists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment