pub struct BankAccountUs {
pub account_number: FiatAccountNumber,
pub account_type: BankAccountUsAccountType,
pub bank_address: Option<String>,
pub bank_name: String,
pub beneficiary_name: String,
pub currency: BankAccountUsCurrency,
pub reference_code: Option<String>,
pub routing_number: BankAccountUsRoutingNumber,
pub supported_rails: Vec<DepositDestinationPaymentRail>,
}Expand description
A US bank account identified by ABA routing number and account number.
JSON schema
{
"description": "A US bank account identified by ABA routing number and account number.",
"examples": [
{
"accountNumber": "123456789",
"accountType": "us_bank",
"bankAddress": "399 Park Avenue, New York, NY 10022",
"bankName": "Citibank N.A.",
"beneficiaryName": "John Smith",
"currency": "usd",
"routingNumber": "987654321",
"supportedRails": [
"ach",
"fedwire"
]
}
],
"type": "object",
"required": [
"accountNumber",
"accountType",
"bankName",
"beneficiaryName",
"currency",
"routingNumber",
"supportedRails"
],
"properties": {
"accountNumber": {
"$ref": "#/components/schemas/FiatAccountNumber"
},
"accountType": {
"description": "The type of bank account, based on the account identification scheme (e.g., `us_bank`).",
"examples": [
"us_bank"
],
"type": "string",
"enum": [
"us_bank"
]
},
"bankAddress": {
"description": "The address of the bank. Present when required by the receiving institution.",
"examples": [
"399 Park Avenue, New York, NY 10022"
],
"type": "string"
},
"bankName": {
"description": "The name of the bank holding the account.",
"examples": [
"Citibank N.A."
],
"type": "string"
},
"beneficiaryName": {
"description": "The name of the account beneficiary.",
"examples": [
"John Smith"
],
"type": "string"
},
"currency": {
"description": "The fiat currency for the deposit destination.",
"examples": [
"usd"
],
"type": "string",
"enum": [
"usd"
]
},
"referenceCode": {
"description": "A reference code that must be included in the payment memo or reference field so the receiving institution can route the deposit to the correct account. Only present when required by the receiving institution.",
"examples": [
"CBAUSD1A2B3C4D"
],
"type": "string"
},
"routingNumber": {
"description": "The ABA routing number of the bank.",
"examples": [
"987654321"
],
"type": "string",
"pattern": "^[0-9]{9}$"
},
"supportedRails": {
"description": "The payment rails this account can receive deposits on.",
"examples": [
[
"ach",
"fedwire"
]
],
"type": "array",
"items": {
"$ref": "#/components/schemas/DepositDestinationPaymentRail"
}
}
}
}Fields§
§account_number: FiatAccountNumber§account_type: BankAccountUsAccountTypeThe type of bank account, based on the account identification scheme (e.g., us_bank).
bank_address: Option<String>The address of the bank. Present when required by the receiving institution.
bank_name: StringThe name of the bank holding the account.
beneficiary_name: StringThe name of the account beneficiary.
currency: BankAccountUsCurrencyThe fiat currency for the deposit destination.
reference_code: Option<String>A reference code that must be included in the payment memo or reference field so the receiving institution can route the deposit to the correct account. Only present when required by the receiving institution.
routing_number: BankAccountUsRoutingNumberThe ABA routing number of the bank.
supported_rails: Vec<DepositDestinationPaymentRail>The payment rails this account can receive deposits on.
Implementations§
Source§impl BankAccountUs
impl BankAccountUs
pub fn builder() -> BankAccountUs
Trait Implementations§
Source§impl Clone for BankAccountUs
impl Clone for BankAccountUs
Source§impl Debug for BankAccountUs
impl Debug for BankAccountUs
Source§impl<'de> Deserialize<'de> for BankAccountUs
impl<'de> Deserialize<'de> for BankAccountUs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&BankAccountUs> for BankAccountUs
impl From<&BankAccountUs> for BankAccountUs
Source§fn from(value: &BankAccountUs) -> Self
fn from(value: &BankAccountUs) -> Self
Converts to this type from the input type.
Source§impl From<BankAccountUs> for DepositDestinationFiat
impl From<BankAccountUs> for DepositDestinationFiat
Source§fn from(value: BankAccountUs) -> Self
fn from(value: BankAccountUs) -> Self
Converts to this type from the input type.
Source§impl From<BankAccountUs> for BankAccountUs
impl From<BankAccountUs> for BankAccountUs
Source§fn from(value: BankAccountUs) -> Self
fn from(value: BankAccountUs) -> Self
Converts to this type from the input type.
Source§impl From<DepositDestinationFiat> for BankAccountUs
impl From<DepositDestinationFiat> for BankAccountUs
Source§fn from(value: DepositDestinationFiat) -> Self
fn from(value: DepositDestinationFiat) -> Self
Converts to this type from the input type.
Source§impl Serialize for BankAccountUs
impl Serialize for BankAccountUs
Source§impl TryFrom<BankAccountUs> for BankAccountUs
impl TryFrom<BankAccountUs> for BankAccountUs
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: BankAccountUs) -> Result<Self, ConversionError>
fn try_from(value: BankAccountUs) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for BankAccountUs
impl RefUnwindSafe for BankAccountUs
impl Send for BankAccountUs
impl Sync for BankAccountUs
impl Unpin for BankAccountUs
impl UnsafeUnpin for BankAccountUs
impl UnwindSafe for BankAccountUs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more