From 090abc5481a3bbc5462eaf6a28cef7a9ca6c8693 Mon Sep 17 00:00:00 2001 From: misesin Date: Fri, 21 Feb 2020 12:37:45 +0200 Subject: [PATCH] Make length properties public --- TranzzoTokenizer/CardUtilities/CardProvider.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TranzzoTokenizer/CardUtilities/CardProvider.swift b/TranzzoTokenizer/CardUtilities/CardProvider.swift index e735eaf..3cb14f2 100644 --- a/TranzzoTokenizer/CardUtilities/CardProvider.swift +++ b/TranzzoTokenizer/CardUtilities/CardProvider.swift @@ -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] @@ -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