Pagination
New in v2. List methods return an async iterator that fetches the next page as you go:
for await (const invoice of sahel.listInvoices({ status: "paid" })) { console.log(invoice.id, invoice.amount);}To take only some, stop the loop with break; no further pages are fetched.