#![allow(unused_imports)] use stripe::StripeClient; use stripe::model::*; #[tokio::main] async fn main() { let client = StripeClient::from_env(); let id = "your id"; let response = client.post_credit_notes_id_void(id).await.unwrap(); println!("{:#?}", response); }