[][src]Struct stripe::Card

pub struct Card {
    pub id: CardId,
    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<CheckResult>,
    pub address_line2: Option<String>,
    pub address_state: Option<String>,
    pub address_zip: Option<String>,
    pub address_zip_check: Option<CheckResult>,
    pub available_payout_methods: Option<Vec<String>>,
    pub brand: Option<CardBrand>,
    pub country: Option<String>,
    pub currency: Option<Currency>,
    pub customer: Option<Expandable<Customer>>,
    pub cvc_check: Option<CheckResult>,
    pub default_for_currency: Option<bool>,
    pub deleted: bool,
    pub dynamic_last4: Option<String>,
    pub exp_month: Option<i64>,
    pub exp_year: Option<i64>,
    pub fingerprint: Option<String>,
    pub funding: Option<CardType>,
    pub last4: Option<String>,
    pub metadata: Metadata,
    pub name: Option<String>,
    pub recipient: Option<Expandable<Recipient>>,
    pub tokenization_method: Option<TokenizationMethod>,
}

The resource representing a Stripe "Card".

For more details see https://stripe.com/docs/api/cards/object.

Fields

id: CardId

Unique identifier for the object.

account: Option<Expandable<Account>>

The account this card belongs to.

This attribute will not be in the card object if the card belongs to a customer or recipient instead.

address_city: Option<String>

City/District/Suburb/Town/Village.

address_country: Option<String>

Billing address country, if provided when creating card.

address_line1: Option<String>

Address line 1 (Street address/PO Box/Company name).

address_line1_check: Option<CheckResult>

If address_line1 was provided, results of the check: pass, fail, unavailable, or unchecked.

address_line2: Option<String>

Address line 2 (Apartment/Suite/Unit/Building).

address_state: Option<String>

State/County/Province/Region.

address_zip: Option<String>

ZIP or postal code.

address_zip_check: Option<CheckResult>

If address_zip was provided, results of the check: pass, fail, unavailable, or unchecked.

available_payout_methods: Option<Vec<String>>

A set of available payout methods for this card.

Will be either ["standard"] or ["standard", "instant"]. Only values from this set should be passed as the method when creating a transfer.

brand: Option<CardBrand>

Card brand.

Can be American Express, Diners Club, Discover, JCB, MasterCard, UnionPay, Visa, or Unknown.

country: Option<String>

Two-letter ISO code representing the country of the card.

You could use this attribute to get a sense of the international breakdown of cards you've collected.

currency: Option<Currency>customer: Option<Expandable<Customer>>

The customer that this card belongs to.

This attribute will not be in the card object if the card belongs to an account or recipient instead.

cvc_check: Option<CheckResult>

If a CVC was provided, results of the check: pass, fail, unavailable, or unchecked.

default_for_currency: Option<bool>

Whether this card is the default external account for its currency.

deleted: booldynamic_last4: Option<String>

(For tokenized numbers only.) The last four digits of the device account number.

exp_month: Option<i64>

Two-digit number representing the card's expiration month.

exp_year: Option<i64>

Four-digit number representing the card's expiration year.

fingerprint: Option<String>

Uniquely identifies this particular card number.

You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example.

funding: Option<CardType>

Card funding type.

Can be credit, debit, prepaid, or unknown.

last4: Option<String>

The last four digits of the card.

metadata: Metadata

Set of key-value pairs that you can attach to an object.

This can be useful for storing additional information about the object in a structured format.

name: Option<String>

Cardholder name.

recipient: Option<Expandable<Recipient>>

The recipient that this card belongs to.

This attribute will not be in the card object if the card belongs to a customer or account instead.

tokenization_method: Option<TokenizationMethod>

If the card number is tokenized, this is the method that was used.

Can be apple_pay or google_pay.

Trait Implementations

impl Clone for Card[src]

impl Debug for Card[src]

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

impl Object for Card[src]

type Id = CardId

The canonical id type for this object.

impl Serialize for Card[src]

Auto Trait Implementations

impl RefUnwindSafe for Card

impl Send for Card

impl Sync for Card

impl Unpin for Card

impl UnwindSafe for Card

Blanket Implementations

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

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.