new DepositsAPI(rest)
This class is used to interact with Deposits in TidyHQ.
Parameters:
Name | Type | Description |
---|---|---|
rest | Rest | The rest instance to use for requests. |
- Source
Methods
(async) createDeposit(deposit, optionsopt) → {Promise.<TidyAPI_V1_Deposit>}
Create a new deposit in TidyHQ.
Parameters:
Name | Type | Attributes | Default | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
deposit | Tidy_V1_DepositParams | The deposit to create. | ||||||||||
options | object | <optional> | {} | The options to create the deposit with.Properties
|
- Source
Returns:
- The newly created deposit.
- Type:
- Promise.<TidyAPI_V1_Deposit>
(async) getDeposit(depositID, optionsopt) → {Promise.<TidyAPI_V1_Deposit>}
Get a single deposit from TidyHQ.
Parameters:
Name | Type | Attributes | Default | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
depositID | string | The ID of the deposit to get | ||||||||||
options | object | <optional> | {} | Properties
|
- Source
Returns:
- An deposit object.
- Type:
- Promise.<TidyAPI_V1_Deposit>
(async) getDeposits(optionsopt) → {Promise.<TidyAPI_V1_Deposits>}
Get a list of deposits from TidyHQ.
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | <optional> | {} | Properties
|
- Source
Returns:
- An array of deposits.
- Type:
- Promise.<TidyAPI_V1_Deposits>