fireblocks_sdk/models/
aba_payment_info.rs

1// Fireblocks API
2//
3// 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)
4//
5// The version of the OpenAPI document: 1.8.0
6// Contact: developers@fireblocks.com
7// Generated by: https://openapi-generator.tech
8
9use {
10    crate::models,
11    serde::{Deserialize, Serialize},
12};
13
14/// AbaPaymentInfo : ABA payment information for US bank transfers
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AbaPaymentInfo {
17    /// The given name (first name) of the account holder
18    #[serde(rename = "accountHolderGivenName")]
19    pub account_holder_given_name: String,
20    /// The surname (last name) of the account holder
21    #[serde(
22        rename = "accountHolderSurname",
23        skip_serializing_if = "Option::is_none"
24    )]
25    pub account_holder_surname: Option<String>,
26    /// The city where the account holder resides
27    #[serde(rename = "accountHolderCity")]
28    pub account_holder_city: String,
29    /// The country where the account holder resides (ISO 3166-1 alpha-2 code)
30    #[serde(rename = "accountHolderCountry")]
31    pub account_holder_country: String,
32    /// The primary address line of the account holder
33    #[serde(rename = "accountHolderAddress1")]
34    pub account_holder_address1: String,
35    /// The secondary address line of the account holder (optional)
36    #[serde(
37        rename = "accountHolderAddress2",
38        skip_serializing_if = "Option::is_none"
39    )]
40    pub account_holder_address2: Option<String>,
41    /// The district or region where the account holder resides
42    #[serde(
43        rename = "accountHolderDistrict",
44        skip_serializing_if = "Option::is_none"
45    )]
46    pub account_holder_district: Option<String>,
47    /// The postal code of the account holder's address
48    #[serde(rename = "accountHolderPostalCode")]
49    pub account_holder_postal_code: String,
50    /// The ABA routing number for the bank
51    #[serde(rename = "abaRoutingNumber")]
52    pub aba_routing_number: String,
53    /// The account number at the bank
54    #[serde(rename = "abaAccountNumber")]
55    pub aba_account_number: String,
56    /// The country for the ABA transfer (ISO 3166-1 alpha-2 code)
57    #[serde(rename = "abaCountry")]
58    pub aba_country: String,
59}
60
61impl AbaPaymentInfo {
62    /// ABA payment information for US bank transfers
63    pub fn new(
64        account_holder_given_name: String,
65        account_holder_city: String,
66        account_holder_country: String,
67        account_holder_address1: String,
68        account_holder_postal_code: String,
69        aba_routing_number: String,
70        aba_account_number: String,
71        aba_country: String,
72    ) -> AbaPaymentInfo {
73        AbaPaymentInfo {
74            account_holder_given_name,
75            account_holder_surname: None,
76            account_holder_city,
77            account_holder_country,
78            account_holder_address1,
79            account_holder_address2: None,
80            account_holder_district: None,
81            account_holder_postal_code,
82            aba_routing_number,
83            aba_account_number,
84            aba_country,
85        }
86    }
87}