#![allow(unused_imports)] use plaid::PlaidClient; use plaid::model::*; use plaid::request::WalletTransactionExecuteRequired; #[tokio::main] async fn main() { let client = PlaidClient::from_env(); let args = WalletTransactionExecuteRequired { amount: WalletTransactionAmount { iso_currency_code: "your iso currency code".to_owned(), value: 1.0, }, counterparty: WalletTransactionCounterparty { address: Some(PaymentInitiationAddress { city: "your city".to_owned(), country: "your country".to_owned(), postal_code: "your postal code".to_owned(), street: vec!["your street".to_owned()], }), date_of_birth: Some(chrono::Utc::now().date_naive()), name: "your name".to_owned(), numbers: WalletTransactionCounterpartyNumbers { bacs: Some(RecipientBacs { account: Some("your account".to_owned()), sort_code: Some("your sort code".to_owned()), }), international: Some(WalletTransactionCounterpartyInternational { iban: Some("your iban".to_owned()), }), }, }, idempotency_key: "your idempotency key", reference: "your reference", wallet_id: "your wallet id", }; let response = client.wallet_transaction_execute(args).await.unwrap(); println!("{:#?}", response); }