pub struct PaymentMethodBase {
pub active: bool,
pub created_at: DateTime<Utc>,
pub payment_method_id: PaymentMethodId,
pub updated_at: DateTime<Utc>,
}Expand description
Common properties shared by all payment method types.
JSON schema
{
"description": "Common properties shared by all payment method types.",
"type": "object",
"required": [
"active",
"createdAt",
"paymentMethodId",
"updatedAt"
],
"properties": {
"active": {
"description": "Whether 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.",
"examples": [
true
],
"type": "boolean"
},
"createdAt": {
"description": "The timestamp when the payment method was created.",
"examples": [
"2024-01-15T10:30:00Z"
],
"type": "string",
"format": "date-time"
},
"paymentMethodId": {
"$ref": "#/components/schemas/PaymentMethodId"
},
"updatedAt": {
"description": "The timestamp when the payment method was last updated.",
"examples": [
"2024-01-15T10:30:00Z"
],
"type": "string",
"format": "date-time"
}
}
}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§updated_at: DateTime<Utc>The timestamp when the payment method was last updated.
Implementations§
Source§impl PaymentMethodBase
impl PaymentMethodBase
pub fn builder() -> PaymentMethodBase
Trait Implementations§
Source§impl Clone for PaymentMethodBase
impl Clone for PaymentMethodBase
Source§fn clone(&self) -> PaymentMethodBase
fn clone(&self) -> PaymentMethodBase
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 PaymentMethodBase
impl Debug for PaymentMethodBase
Source§impl<'de> Deserialize<'de> for PaymentMethodBase
impl<'de> Deserialize<'de> for PaymentMethodBase
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<&PaymentMethodBase> for PaymentMethodBase
impl From<&PaymentMethodBase> for PaymentMethodBase
Source§fn from(value: &PaymentMethodBase) -> Self
fn from(value: &PaymentMethodBase) -> Self
Converts to this type from the input type.
Source§impl From<PaymentMethodBase> for PaymentMethodBase
impl From<PaymentMethodBase> for PaymentMethodBase
Source§fn from(value: PaymentMethodBase) -> Self
fn from(value: PaymentMethodBase) -> Self
Converts to this type from the input type.
Source§impl Serialize for PaymentMethodBase
impl Serialize for PaymentMethodBase
Source§impl TryFrom<PaymentMethodBase> for PaymentMethodBase
impl TryFrom<PaymentMethodBase> for PaymentMethodBase
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PaymentMethodBase) -> Result<Self, ConversionError>
fn try_from(value: PaymentMethodBase) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PaymentMethodBase
impl RefUnwindSafe for PaymentMethodBase
impl Send for PaymentMethodBase
impl Sync for PaymentMethodBase
impl Unpin for PaymentMethodBase
impl UnsafeUnpin for PaymentMethodBase
impl UnwindSafe for PaymentMethodBase
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