fireblocks_sdk/models/
ach_address.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AchAddress {
16    #[serde(rename = "accountHolder")]
17    pub account_holder: models::AccountHolderDetails,
18    /// Name of the bank.
19    #[serde(rename = "bankName", skip_serializing_if = "Option::is_none")]
20    pub bank_name: Option<String>,
21    /// The bank account number for the ACH transfer.
22    #[serde(rename = "bankAccountNumber")]
23    pub bank_account_number: String,
24    /// Routing number identifying the bank account.
25    #[serde(rename = "routingNumber")]
26    pub routing_number: String,
27    #[serde(rename = "accountType")]
28    pub account_type: models::AchAccountType,
29}
30
31impl AchAddress {
32    pub fn new(
33        account_holder: models::AccountHolderDetails,
34        bank_account_number: String,
35        routing_number: String,
36        account_type: models::AchAccountType,
37    ) -> AchAddress {
38        AchAddress {
39            account_holder,
40            bank_name: None,
41            bank_account_number,
42            routing_number,
43            account_type,
44        }
45    }
46}