bitpay-sdk
Version:
Complete version of the NodeJS library for the new cryptographically secure BitPay API
37 lines (36 loc) • 1.43 kB
TypeScript
import { BitPayClient } from './BitPayClient';
import { TokenContainer } from '../TokenContainer';
import { SettlementInterface } from '../Model/Settlement/Settlement';
export declare class SettlementClient {
private bitPayClient;
private tokenContainer;
constructor(bitPayClient: BitPayClient, tokenContainer: TokenContainer);
/**
* Retrieves a summary of the specified settlement.
*
* @param settlementId Settlement Id
* @returns Settlement
* @throws BitPayApiException BitPayApiException class
* @throws BitPayGenericException BitPayGenericException class
*/
get(settlementId: string): Promise<SettlementInterface>;
/**
* Retrieves settlement reports for the calling merchant filtered by query.
*
* @param params
* @returns Settlement[]
* @throws BitPayApiException BitPayApiException class
* @throws BitPayGenericException BitPayGenericException class
*/
getSettlements(params: object): Promise<SettlementInterface[]>;
/**
* Gets a detailed reconciliation report of the activity within the settlement period.
*
* @param settlementId
* @param token
* @returns Settlement
* @throws BitPayApiException BitPayApiException class
* @throws BitPayGenericException BitPayGenericException class
*/
getReconciliationReport(settlementId: string, token: string): Promise<SettlementInterface>;
}