Skip to content

Commit

Permalink
Make length properties public
Browse files Browse the repository at this point in the history
  • Loading branch information
misesin committed Feb 21, 2020
1 parent 514da42 commit 090abc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TranzzoTokenizer/CardUtilities/CardProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public enum CardProvider: String, CaseIterable {
}

/// Valid length of a valid card number for the provider
var validLength: [Int] {
public var validLength: [Int] {
switch self {
case .visa, .mastercard, .prostir, .mir:
return [16]
Expand All @@ -102,7 +102,7 @@ public enum CardProvider: String, CaseIterable {
}

/// Valid length of a valid card cvv for the provider
var validCVVLength: Int {
public var validCVVLength: Int {
switch self {
case .visa, .mastercard, .prostir, .maestro, .mir, .unionpay:
return 3
Expand Down

0 comments on commit 090abc5

Please sign in to comment.