CreditCardValidator
public struct CreditCardValidator : ConfigurableValidator
The CreditCardValidator
contains an CreditCardCondition
. A valid string is a credit card number.
Seealso
CreditCardCondition
-
Declaration
Swift
public var conditions: [Condition]
-
Declaration
Swift
public init(configuration: CreditCardConfiguration)
-
Returns valid card types for a credit card number asynchronously.
Declaration
Swift
public func validCardTypes(`for` creditCardNumber: String, completion : @escaping (CreditCardType) -> Void)