Package com.stripe.android.model

Types

Link copied to clipboard
data class BankAccount @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP]) constructor(    val id: String? = null,     val accountHolderName: String? = null,     val accountHolderType: BankAccount.Type? = null,     val bankName: String? = null,     @Size(value = 2) val countryCode: String? = null,     @Size(value = 3) val currency: String? = null,     val fingerprint: String? = null,     val last4: String? = null,     val routingNumber: String? = null,     val status: BankAccount.Status? = null) : StripeModel, StripePaymentSource
Link copied to clipboard
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.

Link copied to clipboard
enum CardBrand : Enum<CardBrand>

A representation of supported card brands and related data

Link copied to clipboard
enum CardFunding : Enum<CardFunding>
Link copied to clipboard
interface StripeParamsModel : Parcelable

Model for a Stripe API object creation parameters

Link copied to clipboard
interface StripePaymentSource : Parcelable

Represents an object that has an ID field that can be used to create payments with Stripe.

Link copied to clipboard
data class Token @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP]) constructor(    val id: String,     val type: Token.Type,     val created: Date,     val livemode: Boolean,     val used: Boolean,     val bankAccount: BankAccount? = null,     val card: Card? = null) : StripeModel, StripePaymentSource

Tokenization is the process Stripe uses to collect sensitive card, bank account details, Stripe account details or personally identifiable information (PII), directly from your customers in a secure manner. A Token representing this information is returned to you to use.

Link copied to clipboard
enum TokenizationMethod : Enum<TokenizationMethod>

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

Link copied to clipboard
abstract class TokenParams(val tokenType: Token.Type, val attribution: Set<String> = emptySet()) : StripeParamsModel, Parcelable