Card

data class Card @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP]) constructor(val expMonth: Int?, val expYear: Int?, val name: String? = null, val addressLine1: String? = null, val addressLine1Check: String? = null, val addressLine2: String? = null, val addressCity: String? = null, val addressState: String? = null, val addressZip: String? = null, val addressZipCheck: String? = null, val addressCountry: String? = null, @Size(value = 4) val last4: String? = null, val brand: CardBrand, val funding: CardFunding? = null, val fingerprint: String? = null, val country: String? = null, val currency: String? = null, val customerId: String? = null, val cvcCheck: String? = null, val id: String?, val tokenizationMethod: TokenizationMethod? = null) : StripeModel, StripePaymentSource

A representation of a Card API object.

Constructors

Link copied to clipboard
constructor(expMonth: Int?, expYear: Int?, name: String? = null, addressLine1: String? = null, addressLine1Check: String? = null, addressLine2: String? = null, addressCity: String? = null, addressState: String? = null, addressZip: String? = null, addressZipCheck: String? = null, addressCountry: String? = null, @Size(value = 4) last4: String? = null, brand: CardBrand, funding: CardFunding? = null, fingerprint: String? = null, country: String? = null, currency: String? = null, customerId: String? = null, cvcCheck: String? = null, id: String?, tokenizationMethod: TokenizationMethod? = null)

Types

Link copied to clipboard

Properties

Link copied to clipboard
val addressCity: String? = null

City/District/Suburb/Town/Village.

Link copied to clipboard
val addressCountry: String? = null

Billing address country, if provided when creating card.

Link copied to clipboard
val addressLine1: String? = null

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

Link copied to clipboard

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

Link copied to clipboard
val addressLine2: String? = null

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

Link copied to clipboard
val addressState: String? = null

State/County/Province/Region.

Link copied to clipboard
val addressZip: String? = null

ZIP or postal code.

Link copied to clipboard
val addressZipCheck: String? = null

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

Link copied to clipboard

Card brand. See CardBrand.

Link copied to clipboard
val country: String? = null

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.

Link copied to clipboard
val currency: String? = null

Three-letter ISO code for currency. Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency.

Link copied to clipboard
val customerId: String? = null

The ID of the customer that this card belongs to.

Link copied to clipboard
val cvcCheck: String? = null

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

Link copied to clipboard
@get:IntRange(from = 1, to = 12)
val expMonth: Int?

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

Link copied to clipboard
val expYear: Int?

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

Link copied to clipboard
val fingerprint: String? = null

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. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.

Link copied to clipboard
val funding: CardFunding? = null

Card funding type. See CardFunding.

Link copied to clipboard
open override val id: String?

Unique identifier for the object.

Link copied to clipboard
val last4: String? = null

The last four digits of the card.

Link copied to clipboard
val name: String? = null

Cardholder name.

Link copied to clipboard

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

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)