card_details library

Classes

CardDetails
Class encapsulating the card's data as well as validation of the data.
CardProvider
Encapsulates criteria for Card Providers in the U.S. Used by CardDetails.detectCardProvider() to determine a card's Provider.
Range
Object for CardProvider to determine valid number ranges. A loose wrapper on a tuple, that provides assertion of valid inputs and the isWithin() helper function.

Enums

CardDetailsValidState
Enum of validation states a CardDetails object can have.
CardProviderID
Enum of supported Card Providers