Get billing information.
client.billing.get(
['id', 'month', 'year'],
{ input: { year: Number(req.query.year), month: Number(req.query.month) } },
{
records: {
fields: ['id', 'date'],
with: {
usages: {
fields: ['paidSec', 'amount', 'ledgerType'],
with: {
user: {
fields: ['id'], with: { profile: { fields: ['firstName'] } }
},
room: { fields: ['name'] }
}
},
freeCredits: { fields: ['paidSec', 'amount', 'ledgerType']},
topups: { fields: ['paidSec', 'amount', 'ledgerType']},
}
}
}
)
Array of Billing key names. Returns specified fields as result.
Generated using TypeDoc
Client to call Billing schema