1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
use params::{Identifiable, Metadata};
use resources::Currency;
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct BankAccount {
pub id: String,
pub object: String,
pub account: String,
pub account_holder_name: String,
pub account_holder_type: String,
pub bank_name: String,
pub country: String,
pub currency: Currency,
pub customer: String,
pub default_for_currency: bool,
pub fingerprint: String,
pub last4: String,
pub metadata: Metadata,
pub routing_number: String,
pub status: String,
}
impl Identifiable for BankAccount {
fn id(&self) -> &str {
&self.id
}
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct AchCreditTransfer {
pub account_number: String,
pub routing_number: String,
pub fingerprint: String,
pub bank_name: String,
pub swift_code: String,
}