Initial Node.js SDK v1.0.0

This commit is contained in:
garfieldheron
2026-02-19 12:07:39 -05:00
commit 6c252b7495
24 changed files with 1837 additions and 0 deletions

31
dist/api/ledger.d.ts vendored Normal file
View File

@@ -0,0 +1,31 @@
import { AxiosInstance } from 'axios';
import { LedgerAccount, LedgerEntry, ListResponse, PaginationParams } from '../types';
/**
* Ledger API client
*/
export declare class LedgerClient {
private http;
constructor(http: AxiosInstance);
/**
* List all ledger accounts
*/
listAccounts(params?: PaginationParams & {
type?: string;
}): Promise<ListResponse<LedgerAccount>>;
/**
* Retrieve a ledger account by ID
*/
retrieveAccount(accountId: string): Promise<LedgerAccount>;
/**
* List all ledger entries
*/
listEntries(params?: PaginationParams & {
account_id?: string;
payment_id?: string;
entry_type?: string;
}): Promise<ListResponse<LedgerEntry>>;
/**
* Retrieve a ledger entry by ID
*/
retrieveEntry(entryId: string): Promise<LedgerEntry>;
}