Transactions

Transactions

Handle Tillhub Transactions from the v0 Model

Constructor

new Transactions()

Source:
Example
const Tillhub = require('@tillhub/node-sdk')

const th = new Tillhub({
  credentials: {
    username: 'user@example.com',
    password: '123455'
  }
})

await th.init()
const transactions = th.transactions()

const { data, metadata } = await transactions.getAll()
console.log(data) // [...]

Methods

getAll(queryOrCallbackopt, callbackopt)

Get all transactions from client account.

Parameters:
Name Type Attributes Description
queryOrCallback Object | function <optional>

query for transactions with allowed paramaters, or specify an optional callback

callback function <optional>

optional callback. If not specified, this function returns a promise

Source: