#![allow(unused_imports)] use plaid::PlaidClient; use plaid::model::*; #[tokio::main] async fn main() { let client = PlaidClient::from_env(); let account_type = "your account type"; let transactions = vec![ ClientProvidedTransaction { account_subtype : Some("your account subtype" .to_owned()), account_type : Some("your account type".to_owned()), amount : 1.0, client_account_id : Some("your client account id".to_owned()), client_user_id : Some("your client user id".to_owned()), date_posted : Some(chrono::Utc::now() .date_naive()), description : "your description".to_owned(), direction : "your direction".to_owned(), id : "your id".to_owned(), iso_currency_code : "your iso currency code".to_owned(), location : Some(ClientProvidedTransactionLocation { address : Some("your address" .to_owned()), city : Some("your city".to_owned()), country : Some("your country" .to_owned()), postal_code : Some("your postal code".to_owned()), region : Some("your region".to_owned()) }), mcc : Some("your mcc".to_owned()) } ]; let response = client .transactions_enrich(account_type, transactions) .options(TransactionsEnrichRequestOptions { include_legacy_category: Some(true), }) .await .unwrap(); println!("{:#?}", response); }