Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtbuilds committed Jan 11, 2025
1 parent af2b62e commit a64124c
Show file tree
Hide file tree
Showing 1,928 changed files with 25,904 additions and 10,923 deletions.
11 changes: 6 additions & 5 deletions examples/accounts_balance_get.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(unused_imports)]
use plaid::PlaidClient;
use plaid::model::*;
use plaid::PlaidClient;
#[tokio::main]
async fn main() {
let client = PlaidClient::from_env();
Expand All @@ -12,12 +12,13 @@ async fn main() {
min_last_updated_datetime: Some(chrono::Utc::now()),
})
.payment_details(AccountsBalanceGetRequestPaymentDetails {
account_id: Some("your account id".to_owned()),
amount: Some(1.0),
account_id: "your account id".to_owned(),
amount: 1.0,
balance_threshold_percentage: Some(1),
client_transaction_id: Some("your client transaction id".to_owned()),
client_transaction_id: "your client transaction id".to_owned(),
requires_real_time_balance_refresh: Some(true),
})
.await
.unwrap();
println!("{:#?}", response);
}
}
4 changes: 2 additions & 2 deletions examples/accounts_get.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(unused_imports)]
use plaid::PlaidClient;
use plaid::model::*;
use plaid::PlaidClient;
#[tokio::main]
async fn main() {
let client = PlaidClient::from_env();
Expand All @@ -13,4 +13,4 @@ async fn main() {
.await
.unwrap();
println!("{:#?}", response);
}
}
4 changes: 2 additions & 2 deletions examples/application_get.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#![allow(unused_imports)]
use plaid::PlaidClient;
use plaid::model::*;
use plaid::PlaidClient;
#[tokio::main]
async fn main() {
let client = PlaidClient::from_env();
let application_id = "your application id";
let response = client.application_get(application_id).await.unwrap();
println!("{:#?}", response);
}
}
4 changes: 2 additions & 2 deletions examples/asset_report_audit_copy_create.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(unused_imports)]
use plaid::PlaidClient;
use plaid::model::*;
use plaid::PlaidClient;
#[tokio::main]
async fn main() {
let client = PlaidClient::from_env();
Expand All @@ -11,4 +11,4 @@ async fn main() {
.await
.unwrap();
println!("{:#?}", response);
}
}
4 changes: 2 additions & 2 deletions examples/asset_report_audit_copy_get.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#![allow(unused_imports)]
use plaid::PlaidClient;
use plaid::model::*;
use plaid::PlaidClient;
#[tokio::main]
async fn main() {
let client = PlaidClient::from_env();
let audit_copy_token = "your audit copy token";
let response = client.asset_report_audit_copy_get(audit_copy_token).await.unwrap();
println!("{:#?}", response);
}
}
4 changes: 2 additions & 2 deletions examples/asset_report_audit_copy_remove.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(unused_imports)]
use plaid::PlaidClient;
use plaid::model::*;
use plaid::PlaidClient;
#[tokio::main]
async fn main() {
let client = PlaidClient::from_env();
Expand All @@ -10,4 +10,4 @@ async fn main() {
.await
.unwrap();
println!("{:#?}", response);
}
}
7 changes: 4 additions & 3 deletions examples/asset_report_create.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(unused_imports)]
use plaid::PlaidClient;
use plaid::model::*;
use plaid::PlaidClient;
#[tokio::main]
async fn main() {
let client = PlaidClient::from_env();
Expand All @@ -9,10 +9,11 @@ async fn main() {
.asset_report_create(days_requested)
.access_tokens(&["your access tokens"])
.options(AssetReportCreateRequestOptions {
add_ons: Some(vec!["your add ons".to_owned()]),
add_ons: Some(vec![AssetReportAddOns::Investments]),
client_report_id: Some("your client report id".to_owned()),
include_fast_report: Some(true),
products: Some(vec!["your products".to_owned()]),
require_all_items: Some(true),
user: Some(AssetReportUser {
client_user_id: Some("your client user id".to_owned()),
email: Some("your email".to_owned()),
Expand All @@ -27,4 +28,4 @@ async fn main() {
.await
.unwrap();
println!("{:#?}", response);
}
}
4 changes: 2 additions & 2 deletions examples/asset_report_filter.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(unused_imports)]
use plaid::PlaidClient;
use plaid::model::*;
use plaid::PlaidClient;
#[tokio::main]
async fn main() {
let client = PlaidClient::from_env();
Expand All @@ -11,4 +11,4 @@ async fn main() {
.await
.unwrap();
println!("{:#?}", response);
}
}
4 changes: 2 additions & 2 deletions examples/asset_report_get.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(unused_imports)]
use plaid::PlaidClient;
use plaid::model::*;
use plaid::PlaidClient;
#[tokio::main]
async fn main() {
let client = PlaidClient::from_env();
Expand All @@ -16,4 +16,4 @@ async fn main() {
.await
.unwrap();
println!("{:#?}", response);
}
}
4 changes: 2 additions & 2 deletions examples/asset_report_pdf_get.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(unused_imports)]
use plaid::PlaidClient;
use plaid::model::*;
use plaid::PlaidClient;
#[tokio::main]
async fn main() {
let client = PlaidClient::from_env();
Expand All @@ -13,4 +13,4 @@ async fn main() {
.await
.unwrap();
println!("{:#?}", response);
}
}
4 changes: 2 additions & 2 deletions examples/asset_report_refresh.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(unused_imports)]
use plaid::PlaidClient;
use plaid::model::*;
use plaid::PlaidClient;
#[tokio::main]
async fn main() {
let client = PlaidClient::from_env();
Expand All @@ -24,4 +24,4 @@ async fn main() {
.await
.unwrap();
println!("{:#?}", response);
}
}
4 changes: 2 additions & 2 deletions examples/asset_report_remove.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#![allow(unused_imports)]
use plaid::PlaidClient;
use plaid::model::*;
use plaid::PlaidClient;
#[tokio::main]
async fn main() {
let client = PlaidClient::from_env();
let asset_report_token = "your asset report token";
let response = client.asset_report_remove(asset_report_token).await.unwrap();
println!("{:#?}", response);
}
}
4 changes: 2 additions & 2 deletions examples/auth_get.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(unused_imports)]
use plaid::PlaidClient;
use plaid::model::*;
use plaid::PlaidClient;
#[tokio::main]
async fn main() {
let client = PlaidClient::from_env();
Expand All @@ -13,4 +13,4 @@ async fn main() {
.await
.unwrap();
println!("{:#?}", response);
}
}
4 changes: 2 additions & 2 deletions examples/bank_transfer_balance_get.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(unused_imports)]
use plaid::PlaidClient;
use plaid::model::*;
use plaid::PlaidClient;
#[tokio::main]
async fn main() {
let client = PlaidClient::from_env();
Expand All @@ -10,4 +10,4 @@ async fn main() {
.await
.unwrap();
println!("{:#?}", response);
}
}
4 changes: 2 additions & 2 deletions examples/bank_transfer_cancel.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#![allow(unused_imports)]
use plaid::PlaidClient;
use plaid::model::*;
use plaid::PlaidClient;
#[tokio::main]
async fn main() {
let client = PlaidClient::from_env();
let bank_transfer_id = "your bank transfer id";
let response = client.bank_transfer_cancel(bank_transfer_id).await.unwrap();
println!("{:#?}", response);
}
}
46 changes: 27 additions & 19 deletions examples/bank_transfer_create.rs
Original file line number Diff line number Diff line change
@@ -1,32 +1,40 @@
#![allow(unused_imports)]
use plaid::PlaidClient;
use plaid::model::*;
use plaid::PlaidClient;
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 access_token = "your access token";
let account_id = "your account id";
let amount = "your amount";
let description = "your description";
let idempotency_key = "your idempotency key";
let iso_currency_code = "your iso currency code";
let network = BankTransferNetwork::Ach;
let type_ = BankTransferType::Debit;
let 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")
.bank_transfer_create(BankTransferCreateRequired {
access_token,
account_id,
amount,
description,
idempotency_key,
iso_currency_code,
network,
type_,
user,
})
.ach_class(AchClass::Ccd)
.custom_tag("your custom tag")
.metadata(BankTransferMetadata {})
.metadata("your bank transfer metadata")
.origination_account_id("your origination account id")
.await
.unwrap();
println!("{:#?}", response);
}
}
6 changes: 3 additions & 3 deletions examples/bank_transfer_event_list.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(unused_imports)]
use plaid::PlaidClient;
use plaid::model::*;
use plaid::PlaidClient;
#[tokio::main]
async fn main() {
let client = PlaidClient::from_env();
Expand All @@ -12,11 +12,11 @@ async fn main() {
.count(1)
.direction(BankTransferEventListDirection(serde_json::json!({})))
.end_date(chrono::Utc::now())
.event_types(&["your event types"])
.event_types(vec![BankTransferEventType::Pending])
.offset(1)
.origination_account_id("your origination account id")
.start_date(chrono::Utc::now())
.await
.unwrap();
println!("{:#?}", response);
}
}
4 changes: 2 additions & 2 deletions examples/bank_transfer_event_sync.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#![allow(unused_imports)]
use plaid::PlaidClient;
use plaid::model::*;
use plaid::PlaidClient;
#[tokio::main]
async fn main() {
let client = PlaidClient::from_env();
let after_id = 1;
let response = client.bank_transfer_event_sync(after_id).count(1).await.unwrap();
println!("{:#?}", response);
}
}
4 changes: 2 additions & 2 deletions examples/bank_transfer_get.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#![allow(unused_imports)]
use plaid::PlaidClient;
use plaid::model::*;
use plaid::PlaidClient;
#[tokio::main]
async fn main() {
let client = PlaidClient::from_env();
let bank_transfer_id = "your bank transfer id";
let response = client.bank_transfer_get(bank_transfer_id).await.unwrap();
println!("{:#?}", response);
}
}
4 changes: 2 additions & 2 deletions examples/bank_transfer_list.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(unused_imports)]
use plaid::PlaidClient;
use plaid::model::*;
use plaid::PlaidClient;
#[tokio::main]
async fn main() {
let client = PlaidClient::from_env();
Expand All @@ -15,4 +15,4 @@ async fn main() {
.await
.unwrap();
println!("{:#?}", response);
}
}
4 changes: 2 additions & 2 deletions examples/bank_transfer_migrate_account.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(unused_imports)]
use plaid::PlaidClient;
use plaid::model::*;
use plaid::PlaidClient;
#[tokio::main]
async fn main() {
let client = PlaidClient::from_env();
Expand All @@ -13,4 +13,4 @@ async fn main() {
.await
.unwrap();
println!("{:#?}", response);
}
}
Loading

0 comments on commit a64124c

Please sign in to comment.