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") }