#![allow(unused_imports)] use plaid::PlaidClient; use plaid::model::*; use plaid::request::BankTransferCreateRequired; #[tokio::main] async fn main() { let client = PlaidClient::from_env(); let args = BankTransferCreateRequired { access_token: "your access token", account_id: "your account id", amount: "your amount", description: "your description", idempotency_key: "your idempotency key", iso_currency_code: "your iso currency code", network: "your network", type_: "your type", user: BankTransferUser { email_address: Some("your email address".to_owned()), legal_name: "your legal name".to_owned(), routing_number: Some("your routing number".to_owned()), }, }; let response = client .bank_transfer_create(args) .ach_class("your ach class") .custom_tag("your custom tag") .metadata(BankTransferMetadata {}) .origination_account_id("your origination account id") .await .unwrap(); println!("{:#?}", response); }