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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// Fireblocks API
//
// Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
//
// The version of the OpenAPI document: 1.8.0
// Contact: developers@fireblocks.com
// Generated by: https://openapi-generator.tech
use {
crate::models,
serde::{Deserialize, Serialize},
};
/// AbaPaymentInfo : ABA payment information for US bank transfers
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AbaPaymentInfo {
/// The given name (first name) of the account holder
#[serde(rename = "accountHolderGivenName")]
pub account_holder_given_name: String,
/// The surname (last name) of the account holder
#[serde(
rename = "accountHolderSurname",
skip_serializing_if = "Option::is_none"
)]
pub account_holder_surname: Option<String>,
/// The city where the account holder resides
#[serde(rename = "accountHolderCity")]
pub account_holder_city: String,
/// The country where the account holder resides (ISO 3166-1 alpha-2 code)
#[serde(rename = "accountHolderCountry")]
pub account_holder_country: String,
/// The primary address line of the account holder
#[serde(rename = "accountHolderAddress1")]
pub account_holder_address1: String,
/// The secondary address line of the account holder (optional)
#[serde(
rename = "accountHolderAddress2",
skip_serializing_if = "Option::is_none"
)]
pub account_holder_address2: Option<String>,
/// The district or region where the account holder resides
#[serde(
rename = "accountHolderDistrict",
skip_serializing_if = "Option::is_none"
)]
pub account_holder_district: Option<String>,
/// The postal code of the account holder's address
#[serde(rename = "accountHolderPostalCode")]
pub account_holder_postal_code: String,
/// The ABA routing number for the bank
#[serde(rename = "abaRoutingNumber")]
pub aba_routing_number: String,
/// The account number at the bank
#[serde(rename = "abaAccountNumber")]
pub aba_account_number: String,
/// The country for the ABA transfer (ISO 3166-1 alpha-2 code)
#[serde(rename = "abaCountry")]
pub aba_country: String,
}
impl AbaPaymentInfo {
/// ABA payment information for US bank transfers
pub fn new(
account_holder_given_name: String,
account_holder_city: String,
account_holder_country: String,
account_holder_address1: String,
account_holder_postal_code: String,
aba_routing_number: String,
aba_account_number: String,
aba_country: String,
) -> AbaPaymentInfo {
AbaPaymentInfo {
account_holder_given_name,
account_holder_surname: None,
account_holder_city,
account_holder_country,
account_holder_address1,
account_holder_address2: None,
account_holder_district: None,
account_holder_postal_code,
aba_routing_number,
aba_account_number,
aba_country,
}
}
}