pub enum PaymentMethodsPaymentMethod {
FedwirePaymentMethod(FedwirePaymentMethod),
SwiftPaymentMethod(SwiftPaymentMethod),
SepaPaymentMethod(SepaPaymentMethod),
}Expand description
A payment method linked to your entity. Payment methods represent external financial instruments that can be used as a target for transfers.
The `paymentRail` field indicates which type-specific details object is present. Type-specific fields are nested under a key matching the rail name (e.g., `fedwire`, `swift`).JSON schema
{
"description": "A payment method linked to your entity. Payment methods represent external financial instruments that can be used as a target for transfers.\n\nThe `paymentRail` field indicates which type-specific details object is present. Type-specific fields are nested under a key matching the rail name (e.g., `fedwire`, `swift`).",
"oneOf": [
{
"$ref": "#/components/schemas/FedwirePaymentMethod"
},
{
"$ref": "#/components/schemas/SwiftPaymentMethod"
},
{
"$ref": "#/components/schemas/SepaPaymentMethod"
}
]
}Variants§
FedwirePaymentMethod(FedwirePaymentMethod)
SwiftPaymentMethod(SwiftPaymentMethod)
SepaPaymentMethod(SepaPaymentMethod)
Trait Implementations§
Source§impl Clone for PaymentMethodsPaymentMethod
impl Clone for PaymentMethodsPaymentMethod
Source§fn clone(&self) -> PaymentMethodsPaymentMethod
fn clone(&self) -> PaymentMethodsPaymentMethod
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 PaymentMethodsPaymentMethod
impl Debug for PaymentMethodsPaymentMethod
Source§impl<'de> Deserialize<'de> for PaymentMethodsPaymentMethod
impl<'de> Deserialize<'de> for PaymentMethodsPaymentMethod
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<&PaymentMethodsPaymentMethod> for PaymentMethodsPaymentMethod
impl From<&PaymentMethodsPaymentMethod> for PaymentMethodsPaymentMethod
Source§fn from(value: &PaymentMethodsPaymentMethod) -> Self
fn from(value: &PaymentMethodsPaymentMethod) -> Self
Converts to this type from the input type.
Source§impl From<FedwirePaymentMethod> for PaymentMethodsPaymentMethod
impl From<FedwirePaymentMethod> for PaymentMethodsPaymentMethod
Source§fn from(value: FedwirePaymentMethod) -> Self
fn from(value: FedwirePaymentMethod) -> Self
Converts to this type from the input type.
Source§impl From<SepaPaymentMethod> for PaymentMethodsPaymentMethod
impl From<SepaPaymentMethod> for PaymentMethodsPaymentMethod
Source§fn from(value: SepaPaymentMethod) -> Self
fn from(value: SepaPaymentMethod) -> 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.
Auto Trait Implementations§
impl Freeze for PaymentMethodsPaymentMethod
impl RefUnwindSafe for PaymentMethodsPaymentMethod
impl Send for PaymentMethodsPaymentMethod
impl Sync for PaymentMethodsPaymentMethod
impl Unpin for PaymentMethodsPaymentMethod
impl UnsafeUnpin for PaymentMethodsPaymentMethod
impl UnwindSafe for PaymentMethodsPaymentMethod
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