From 5a63912abeb1daec0a7f36d829a8eaec376d34ba Mon Sep 17 00:00:00 2001 From: Marek Stransky Date: Thu, 2 Nov 2023 14:24:22 +0100 Subject: [PATCH] Fix incorrect name of otp in `WMTProximityCheckData` --- .../Operations/Model/Requests/WMTAuthorizationData.swift | 4 ++-- WultraMobileTokenSDKTests/NetworkingObjectsTests.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/WultraMobileTokenSDK/Operations/Model/Requests/WMTAuthorizationData.swift b/WultraMobileTokenSDK/Operations/Model/Requests/WMTAuthorizationData.swift index 02e1026..2d07eae 100644 --- a/WultraMobileTokenSDK/Operations/Model/Requests/WMTAuthorizationData.swift +++ b/WultraMobileTokenSDK/Operations/Model/Requests/WMTAuthorizationData.swift @@ -44,7 +44,7 @@ class WMTAuthorizationData: Codable { } self.proximityCheck = WMTProximityCheckData( - totp: proximityCheck.totp, + otp: proximityCheck.totp, type: proximityCheck.type, timestampRequested: proximityCheck.timestampRequested, timestampSigned: timestampSigned @@ -56,7 +56,7 @@ class WMTAuthorizationData: Codable { struct WMTProximityCheckData: Codable { /// Tha actual otp code - let totp: String + let otp: String /// Type of the Proximity check let type: WMTProximityCheckType diff --git a/WultraMobileTokenSDKTests/NetworkingObjectsTests.swift b/WultraMobileTokenSDKTests/NetworkingObjectsTests.swift index 6601236..6996faa 100644 --- a/WultraMobileTokenSDKTests/NetworkingObjectsTests.swift +++ b/WultraMobileTokenSDKTests/NetworkingObjectsTests.swift @@ -259,7 +259,7 @@ class NetworkingObjectsTests: XCTestCase { XCTAssertEqual(request.requestObject?.data, "A2") XCTAssertEqual(request.requestObject?.id, "47825519-35b8-469d-ad76-e42f85b9a31d") XCTAssertEqual(proximityCheck?.type, .qrCode) - XCTAssertEqual(proximityCheck?.totp, "12345678") + XCTAssertEqual(proximityCheck?.otp, "12345678") }