#![allow(unused_imports)] use plaid::PlaidClient; use plaid::model::*; #[tokio::main] async fn main() { let client = PlaidClient::from_env(); let event_type = "your event type"; let refund_id = "your refund id"; let response = client .sandbox_transfer_refund_simulate(event_type, refund_id) .failure_reason(TransferFailure { ach_return_code: Some("your ach return code".to_owned()), description: Some("your description".to_owned()), }) .test_clock_id("your test clock id") .await .unwrap(); println!("{:#?}", response); }