pub struct SwiftDetails {
pub account_last4: SwiftDetailsAccountLast4,
pub asset: String,
pub bank_name: String,
pub bic: SwiftDetailsBic,
pub iban_last4: Option<SwiftDetailsIbanLast4>,
}Expand description
Details specific to SWIFT (international wire) payment methods.
JSON schema
{
"description": "Details specific to SWIFT (international wire) payment methods.",
"examples": [
{
"accountLast4": "5678",
"asset": "eur",
"bankName": "Deutsche Bank",
"bic": "DEUTDEFF",
"ibanLast4": "5678"
}
],
"type": "object",
"required": [
"accountLast4",
"asset",
"bankName",
"bic"
],
"properties": {
"accountLast4": {
"description": "The last 4 characters of the account identifier. For IBAN-based accounts (e.g., EU), this is the last 4 characters of the IBAN. For account number-based accounts (e.g., US), this is the last 4 digits of the account number.",
"examples": [
"5678"
],
"type": "string",
"pattern": "^[A-Z0-9]{4}$"
},
"asset": {
"description": "The asset for this payment method (e.g., `eur`, `gbp`).",
"examples": [
"eur"
],
"type": "string"
},
"bankName": {
"description": "The name of the bank.",
"examples": [
"Deutsche Bank"
],
"type": "string"
},
"bic": {
"description": "The Bank Identifier Code (BIC) / SWIFT code.",
"examples": [
"DEUTDEFF"
],
"type": "string",
"pattern": "^[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?$"
},
"ibanLast4": {
"description": "Deprecated: use `accountLast4` instead. The last 4 characters of the account identifier.",
"deprecated": true,
"examples": [
"5678"
],
"type": "string",
"pattern": "^[A-Z0-9]{4}$"
}
}
}Fields§
§account_last4: SwiftDetailsAccountLast4The last 4 characters of the account identifier. For IBAN-based accounts (e.g., EU), this is the last 4 characters of the IBAN. For account number-based accounts (e.g., US), this is the last 4 digits of the account number.
asset: StringThe asset for this payment method (e.g., eur, gbp).
bank_name: StringThe name of the bank.
bic: SwiftDetailsBicThe Bank Identifier Code (BIC) / SWIFT code.
iban_last4: Option<SwiftDetailsIbanLast4>Deprecated: use accountLast4 instead. The last 4 characters of the account identifier.
Implementations§
Source§impl SwiftDetails
impl SwiftDetails
pub fn builder() -> SwiftDetails
Trait Implementations§
Source§impl Clone for SwiftDetails
impl Clone for SwiftDetails
Source§fn clone(&self) -> SwiftDetails
fn clone(&self) -> SwiftDetails
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SwiftDetails
impl Debug for SwiftDetails
Source§impl<'de> Deserialize<'de> for SwiftDetails
impl<'de> Deserialize<'de> for SwiftDetails
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<&SwiftDetails> for SwiftDetails
impl From<&SwiftDetails> for SwiftDetails
Source§fn from(value: &SwiftDetails) -> Self
fn from(value: &SwiftDetails) -> Self
Converts to this type from the input type.
Source§impl From<SwiftDetails> for SwiftDetails
impl From<SwiftDetails> for SwiftDetails
Source§fn from(value: SwiftDetails) -> Self
fn from(value: SwiftDetails) -> Self
Converts to this type from the input type.
Source§impl Serialize for SwiftDetails
impl Serialize for SwiftDetails
Source§impl TryFrom<SwiftDetails> for SwiftDetails
impl TryFrom<SwiftDetails> for SwiftDetails
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SwiftDetails) -> Result<Self, ConversionError>
fn try_from(value: SwiftDetails) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SwiftDetails
impl RefUnwindSafe for SwiftDetails
impl Send for SwiftDetails
impl Sync for SwiftDetails
impl Unpin for SwiftDetails
impl UnsafeUnpin for SwiftDetails
impl UnwindSafe for SwiftDetails
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