CreditCardType

public struct CreditCardType : OptionSet, CustomStringConvertible

Credit card types that are supported by CreditCardCondition. There is a regex property that returns the regex for validating that credit card number.

  • Declaration

    Swift

    public var rawValue: Int
  • Declaration

    Swift

    public init(rawValue: Int)
  • Undocumented

    Declaration

    Swift

    public static let americanExpress: CreditCardType
  • Undocumented

    Declaration

    Swift

    public static let dinersClub: CreditCardType
  • Undocumented

    Declaration

    Swift

    public static let discover: CreditCardType
  • jcb

    Undocumented

    Declaration

    Swift

    public static let jcb: CreditCardType
  • Undocumented

    Declaration

    Swift

    public static let maestro: CreditCardType
  • Undocumented

    Declaration

    Swift

    public static let mastercard: CreditCardType
  • Undocumented

    Declaration

    Swift

    public static let visa: CreditCardType
  • all

    Undocumented

    Declaration

    Swift

    public static let all: CreditCardType
  • Undocumented

    Declaration

    Swift

    public static let allArray: [CreditCardType]
  • Literal description for set of credit cards, separated with commas and single space.

    Declaration

    Swift

    public var description: String { get }
  • Combined regular expression string for set of credit cards.

    Declaration

    Swift

    public var regex: String { get }