CardScheme

@objc
public final class CardScheme : NSObject, OptionSet, CaseIterable

A type representing different card schemes and their associated properties.

  • All available card schemes.

    Declaration

    Swift

    public static let allCases: Set<CardScheme>
  • The raw value of the card scheme.

    Declaration

    Swift

    public let rawValue: Int
  • Initializes a card scheme with a given raw value.

    Declaration

    Swift

    public required init(rawValue: Int)

    Parameters

    rawValue

    The raw value representing the card scheme.

  • American Express card scheme.

    Declaration

    Swift

    @objc
    public static let amex: CardScheme
  • Diners Club International card scheme.

    Declaration

    Swift

    @objc
    public static let dinersClubInternational: CardScheme
  • Discover card scheme.

    Declaration

    Swift

    @objc
    public static let discover: CardScheme
  • jcb

    JCB card scheme.

    Declaration

    Swift

    @objc
    public static let jcb: CardScheme
  • Maestro card scheme.

    Declaration

    Swift

    @objc
    public static let maestro: CardScheme
  • MasterCard card scheme.

    Declaration

    Swift

    @objc
    public static let masterCard: CardScheme
  • Visa card scheme.

    Declaration

    Swift

    @objc
    public static let visa: CardScheme