use std::error::Error;
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error + 'static>> {
let client = billecta::Client::from_env();
let all_creditors = billecta::creditors::get_all_creditors(None, None, None, None)
.send(&client)
.await?;
all_creditors
.iter()
.filter_map(|c| c.name.as_deref())
.for_each(|name| println!("{name}"));
Ok(())
}