[][src]Struct libstripe::resources::paymentmethods::cards::Card

pub struct Card {
    pub id: String,
    pub object: Object,
    pub account: Option<Expandable<Account>>,
    pub address_city: Option<String>,
    pub address_country: Option<String>,
    pub address_line1: Option<String>,
    pub address_line1_check: Option<CardCheck>,
    pub address_line2: Option<String>,
    pub address_state: Option<String>,
    pub address_zip: Option<String>,
    pub address_zip_check: Option<CardCheck>,
    pub available_payout_methods: Option<Vec<AvailablePayoutMethods>>,
    pub brand: CardBrand,
    pub country: String,
    pub currency: Option<Currency>,
    pub customer: Option<Expandable<Customer>>,
    pub cvc_check: Option<CardCheck>,
    pub dynamic_last4: Option<String>,
    pub exp_month: i32,
    pub exp_year: i32,
    pub fingerprint: String,
    pub funding: CardType,
    pub last4: String,
    pub metadata: HashMap<String, String>,
    pub name: Option<String>,
    pub recipient: Option<String>,
    pub tokenization_method: Option<TokenizationMethod>,
}

Fields

id: Stringobject: Objectaccount: Option<Expandable<Account>>address_city: Option<String>address_country: Option<String>address_line1: Option<String>address_line1_check: Option<CardCheck>address_line2: Option<String>address_state: Option<String>address_zip: Option<String>address_zip_check: Option<CardCheck>available_payout_methods: Option<Vec<AvailablePayoutMethods>>brand: CardBrandcountry: Stringcurrency: Option<Currency>customer: Option<Expandable<Customer>>cvc_check: Option<CardCheck>dynamic_last4: Option<String>exp_month: i32exp_year: i32fingerprint: Stringfunding: CardTypelast4: Stringmetadata: HashMap<String, String>name: Option<String>recipient: Option<String>tokenization_method: Option<TokenizationMethod>

Methods

impl Card[src]

pub fn create<B: Serialize>(
    client: &Client,
    customer_id: &str,
    param: B
) -> Result<Self>
[src]

pub fn retrieve(client: &Client, customer_id: &str, id: &str) -> Result<Self>[src]

pub fn update<B: Serialize>(
    client: &Client,
    customer_id: &str,
    id: &str,
    param: B
) -> Result<Self>
[src]

pub fn delete(client: &Client, customer_id: &str, id: &str) -> Result<Deleted>[src]

pub fn list<B: Serialize>(
    client: &Client,
    customer_id: &str,
    param: B
) -> Result<List<Self>>
[src]

Trait Implementations

impl PartialEq<Card> for Card[src]

impl Debug for Card[src]

impl Serialize for Card[src]

impl<'de> Deserialize<'de> for Card[src]

Auto Trait Implementations

impl Send for Card

impl Sync for Card

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err