Class: Accounts

Accounts()

Accounts grants access to Hatchfi's user account data

Constructor

new Accounts()

Source:

Methods

(async) deleteAll()

Source:
Returns:

a status message

(async) deleteOne(accountId)

Parameters:
Name Type Description
accountId string

the accounts id

Source:
Returns:

a status message

(async) getAll()

Returns all of the selected users accounts

Source:
Returns:

an account array

(async) getOne(accountId)

Parameters:
Name Type Description
accountId string

the accounts id

Source:
Returns:

an account object

(async) sync(accountId)

Parameters:
Name Type Description
accountId string

the accounts id

Source:
Returns:

a success message