pub struct SwiftPaymentMethod {
pub active: bool,
pub created_at: DateTime<Utc>,
pub payment_method_id: PaymentMethodId,
pub payment_rail: SwiftPaymentMethodPaymentRail,
pub swift: SwiftDetails,
pub updated_at: DateTime<Utc>,
}Expand description
A SWIFT (international wire) payment method linked to your entity.
JSON schema
{
"title": "SwiftPaymentMethod",
"description": "A SWIFT (international wire) payment method linked to your entity.",
"examples": [
{
"active": true,
"createdAt": "2024-01-15T10:30:00Z",
"paymentMethodId": "paymentMethod_def45678-1234-5678-9abc-def012345678",
"paymentRail": "swift",
"swift": {
"accountLast4": "5678",
"asset": "eur",
"bankName": "Deutsche Bank",
"bic": "DEUTDEFF",
"ibanLast4": "5678"
},
"updatedAt": "2024-01-15T10:30:00Z"
}
],
"type": "object",
"allOf": [
{
"$ref": "#/components/schemas/PaymentMethodBase"
},
{
"type": "object",
"required": [
"paymentRail",
"swift"
],
"properties": {
"paymentRail": {
"description": "The payment rail for this payment method.",
"examples": [
"swift"
],
"type": "string",
"enum": [
"swift"
]
},
"swift": {
"description": "SWIFT (international wire) details.",
"allOf": [
{
"$ref": "#/components/schemas/SwiftDetails"
}
]
}
}
}
]
}Fields§
§active: boolWhether the payment method is active and can be used in transfers. A payment method may be inactive due to verification requirements or entity-level restrictions.
created_at: DateTime<Utc>The timestamp when the payment method was created.
payment_method_id: PaymentMethodId§payment_rail: SwiftPaymentMethodPaymentRailThe payment rail for this payment method.
swift: SwiftDetailsSWIFT (international wire) details.
updated_at: DateTime<Utc>The timestamp when the payment method was last updated.
Implementations§
Source§impl SwiftPaymentMethod
impl SwiftPaymentMethod
pub fn builder() -> SwiftPaymentMethod
Trait Implementations§
Source§impl Clone for SwiftPaymentMethod
impl Clone for SwiftPaymentMethod
Source§fn clone(&self) -> SwiftPaymentMethod
fn clone(&self) -> SwiftPaymentMethod
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 SwiftPaymentMethod
impl Debug for SwiftPaymentMethod
Source§impl<'de> Deserialize<'de> for SwiftPaymentMethod
impl<'de> Deserialize<'de> for SwiftPaymentMethod
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<&SwiftPaymentMethod> for SwiftPaymentMethod
impl From<&SwiftPaymentMethod> for SwiftPaymentMethod
Source§fn from(value: &SwiftPaymentMethod) -> Self
fn from(value: &SwiftPaymentMethod) -> Self
Converts to this type from the input type.
Source§impl From<SwiftPaymentMethod> for PaymentMethodsPaymentMethod
impl From<SwiftPaymentMethod> for PaymentMethodsPaymentMethod
Source§fn from(value: SwiftPaymentMethod) -> Self
fn from(value: SwiftPaymentMethod) -> Self
Converts to this type from the input type.
Source§impl From<SwiftPaymentMethod> for SwiftPaymentMethod
impl From<SwiftPaymentMethod> for SwiftPaymentMethod
Source§fn from(value: SwiftPaymentMethod) -> Self
fn from(value: SwiftPaymentMethod) -> Self
Converts to this type from the input type.
Source§impl Serialize for SwiftPaymentMethod
impl Serialize for SwiftPaymentMethod
Source§impl TryFrom<SwiftPaymentMethod> for SwiftPaymentMethod
impl TryFrom<SwiftPaymentMethod> for SwiftPaymentMethod
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SwiftPaymentMethod) -> Result<Self, ConversionError>
fn try_from(value: SwiftPaymentMethod) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SwiftPaymentMethod
impl RefUnwindSafe for SwiftPaymentMethod
impl Send for SwiftPaymentMethod
impl Sync for SwiftPaymentMethod
impl Unpin for SwiftPaymentMethod
impl UnsafeUnpin for SwiftPaymentMethod
impl UnwindSafe for SwiftPaymentMethod
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