bitpay-sdk
Version:
Complete version of the NodeJS library for the new cryptographically secure BitPay API
27 lines (26 loc) • 1.03 kB
TypeScript
import { BitPayClient } from './BitPayClient';
import { TokenContainer } from '../TokenContainer';
import { LedgerEntryInterface, LedgerInterface } from '../Model';
export declare class LedgerClient {
private bitPayClient;
private tokenContainer;
constructor(bitPayClient: BitPayClient, tokenContainer: TokenContainer);
/**
* Retrieve a list of ledgers using the merchant facade.
*
* @return A list of Ledger objects populated with the currency and current balance of each one.
* @throws BitPayApiException BitPayApiException class
* @throws BitPayGenericException BitPayGenericException class
*/
getLedgers(): Promise<LedgerInterface[]>;
/**
* Retrieve a list of ledgers by params
*
* @param currency
* @param params
* @returns ledgers
* @throws BitPayApiException BitPayApiException class
* @throws BitPayGenericException BitPayGenericException class
*/
getEntries(currency: string, params: object): Promise<LedgerEntryInterface[]>;
}