pub struct PaymentMethod {
pub id: PaymentMethodID,
pub customer_id: CustomerID,
pub address_id: AddressID,
pub type: SavedPaymentMethodType,
pub card: Option<Card>,
pub paypal: Option<PayPal>,
pub origin: PaymentMethodOrigin,
pub saved_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}
Expand description
Represents a customer payment method entity.
Fields§
§id: PaymentMethodID
Unique Paddle ID for this payment method entity, prefixed with paymtd_
.
customer_id: CustomerID
Unique Paddle ID for this customer entity, prefixed with ctm_
.
address_id: AddressID
Unique Paddle ID for this address entity, prefixed with add_
.
type: SavedPaymentMethodType
Type of payment method saved.
card: Option<Card>
Information about the credit or debit card saved. null
unless type
is card
.
paypal: Option<PayPal>
Information about the PayPal payment method saved. null
unless type
is paypal
.
origin: PaymentMethodOrigin
Describes how this payment method was saved.
saved_at: DateTime<Utc>
RFC 3339 datetime string of when this entity was saved. Set automatically by Paddle.
updated_at: DateTime<Utc>
RFC 3339 datetime string of when this entity was updated. Set automatically by Paddle.
Trait Implementations§
Source§impl Clone for PaymentMethod
impl Clone for PaymentMethod
Source§fn clone(&self) -> PaymentMethod
fn clone(&self) -> PaymentMethod
Returns a duplicate of the value. Read more
1.0.0 · 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 PaymentMethod
impl Debug for PaymentMethod
Source§impl<'de> Deserialize<'de> for PaymentMethod
impl<'de> Deserialize<'de> for PaymentMethod
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
Auto Trait Implementations§
impl Freeze for PaymentMethod
impl RefUnwindSafe for PaymentMethod
impl Send for PaymentMethod
impl Sync for PaymentMethod
impl Unpin for PaymentMethod
impl UnwindSafe for PaymentMethod
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