Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
okhan-okbay-cko committed Nov 1, 2023
1 parent b040cc3 commit ccd83f0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
import Foundation

public struct SecurityCodeResponse: Decodable, Equatable {
/// Type of the tokenisation. In SecurityCodeResponse, it's always `cvv`
public let type: String

/// Reference token
public let token: String

/// Date/time of the token expiration. The format is `2023-11-01T13:36:16.2003858Z`
public let expiresOn: String
}
Original file line number Diff line number Diff line change
Expand Up @@ -115,21 +115,25 @@ extension SecurityCodeComponentTests {
(.visa, "12", false),
(.visa, "123", true),
(.visa, "1234", false),
(.visa, "12345", false),
(.americanExpress, "", false),
(.americanExpress, "1", false),
(.americanExpress, "12", false),
(.americanExpress, "123", false),
(.americanExpress, "1234", true),
(.americanExpress, "12345", false),
(.unknown, "", false),
(.unknown, "1", false),
(.unknown, "12", false),
(.unknown, "123", true),
(.unknown, "1234", true),
(.unknown, "12345", false),
(nil, "", false),
(nil, "1", false),
(nil, "12", false),
(nil, "123", true),
(nil, "1234", true),
(nil, "12345", false),
]

testMatrix.forEach { testData in
Expand Down

0 comments on commit ccd83f0

Please sign in to comment.