square_api_client/models/
bank_account_payment_details.rs

1//! Model struct for BankAccountPaymentDetails type.
2
3use serde::{Deserialize, Serialize};
4
5use super::{
6    enums::{
7        BankAccountPaymentDetailsAccountOwnershipType, BankAccountPaymentDetailsTransferType,
8        Country,
9    },
10    errors::Error,
11    AchDetails,
12};
13
14/// Additional details about BANK_ACCOUNT type payments.
15#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
16pub struct BankAccountPaymentDetails {
17    /// The name of the bank associated with the bank account.
18    pub bank_name: Option<String>,
19    /// The type of the bank transfer.
20    pub transfer_type: Option<BankAccountPaymentDetailsTransferType>,
21    /// The ownership type of the bank account performing the transfer.
22    pub account_ownership_type: Option<BankAccountPaymentDetailsAccountOwnershipType>,
23    /// Uniquely identifies the bank account for this seller and can be used to determine if
24    /// payments are from the same bank account.
25    pub fingerprint: Option<String>,
26    /// The two-letter ISO code representing the country the bank account is located in.
27    pub country: Option<Country>,
28    /// The statement description as sent to the bank.
29    pub statement_description: Option<String>,
30    /// ACH-specific information about the transfer. The information is only populated if the
31    /// `transfer_type` is ACH.
32    pub ach_details: Option<AchDetails>,
33    /// Information about errors encountered during the request.
34    pub errors: Option<Vec<Error>>,
35}