model/CardBrand.kt

stripe-android · payments-model/src/main/java/com/stripe/android/model/CardBrand.kt · kotlin · MIT
payments

CardBrand.kt from stripe/stripe-android

// Source: https://github.com/stripe/stripe-android | License: MIT | Copyright 2011- Stripe, Inc. (https://stripe.com)
// Provided via justclaw.it.com; keep this notice with the code.
package com.stripe.android.model

import androidx.annotation.DrawableRes
import androidx.annotation.RestrictTo
import com.stripe.android.cards.CardNumber
import com.stripe.payments.model.R
import java.util.regex.Pattern

/**
 * A representation of supported card brands and related data
 */
@Suppress("LongParameterList", "MaxLineLength")
enum class CardBrand(
    val code: String,
    val displayName: String,
    @DrawableRes val icon: Int,
    @DrawableRes val cvcIcon: Int = R.drawable.stripe_ic_cvc,
    @DrawableRes val errorIcon: Int = R.drawable.stripe_ic_error,
    /**
     * Accepted CVC lengths
     */


... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key