From e5ac3e06e3e64f7f9ab4b2f33bfc3b10170f002a Mon Sep 17 00:00:00 2001 From: Okhan Okbay Date: Wed, 1 Nov 2023 17:59:31 +0000 Subject: [PATCH] Fix logging issue --- Checkout/Source/Logging/CheckoutLogEvent.swift | 4 ++-- .../Network/Models/SecurityCode/SecurityCodeRequest.swift | 2 +- .../iOS Example Frame SPM.xcodeproj/project.pbxproj | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Checkout/Source/Logging/CheckoutLogEvent.swift b/Checkout/Source/Logging/CheckoutLogEvent.swift index e52befe30..ccb2313aa 100644 --- a/Checkout/Source/Logging/CheckoutLogEvent.swift +++ b/Checkout/Source/Logging/CheckoutLogEvent.swift @@ -107,14 +107,14 @@ enum CheckoutLogEvent: Equatable { ) case .cvvRequested(let tokenRequestData): return [ - .tokenType: tokenRequestData.tokenType, + .tokenType: tokenRequestData.tokenType?.rawValue.lowercased(), .publicKey: tokenRequestData.publicKey ].compactMapValues { $0 } case let .cvvResponse(tokenRequestData, tokenResponseData): return mergeDictionaries( [ - .tokenType: tokenRequestData.tokenType, + .tokenType: tokenRequestData.tokenType?.rawValue.lowercased(), .publicKey: tokenRequestData.publicKey, .tokenID: tokenResponseData.tokenID, .scheme: tokenResponseData.scheme diff --git a/Checkout/Source/Network/Models/SecurityCode/SecurityCodeRequest.swift b/Checkout/Source/Network/Models/SecurityCode/SecurityCodeRequest.swift index bc9a1dbf9..a52bece7e 100644 --- a/Checkout/Source/Network/Models/SecurityCode/SecurityCodeRequest.swift +++ b/Checkout/Source/Network/Models/SecurityCode/SecurityCodeRequest.swift @@ -21,6 +21,6 @@ struct TokenData: Encodable, Equatable { } // For logging purposes only -enum SecurityCodeTokenType: String { +enum SecurityCodeTokenType: String, Codable, Equatable { case cvv } diff --git a/iOS Example Frame SPM/iOS Example Frame SPM.xcodeproj/project.pbxproj b/iOS Example Frame SPM/iOS Example Frame SPM.xcodeproj/project.pbxproj index 414f6ebc6..0d342368e 100644 --- a/iOS Example Frame SPM/iOS Example Frame SPM.xcodeproj/project.pbxproj +++ b/iOS Example Frame SPM/iOS Example Frame SPM.xcodeproj/project.pbxproj @@ -1235,7 +1235,7 @@ isa = XCRemoteSwiftPackageReference; repositoryURL = "https://github.com/checkout/frames-ios"; requirement = { - branch = "feature/cvv-component-tokenisation"; + branch = "feature/cvv-component-logging"; kind = branch; }; };