Skip to content

Commit 782b34c

Browse files
committed
change schemaVersion to Int
1 parent 28cea55 commit 782b34c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Adyen/Model/SDKData.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public struct SDKData: Codable {
2323

2424
internal let analytics: Analytics
2525
internal private(set) var authentication: Authentication?
26-
internal let schemaVersion: String = SchemaVersions.v1_0
26+
internal let schemaVersion: Int = SchemaVersions.v1
2727
private let supportNativeRedirect: Bool = true
2828
private let timestamp = Int(Date().timeIntervalSince1970 * 1000)
2929

@@ -48,8 +48,7 @@ public struct SDKData: Codable {
4848
}
4949

5050
private enum SchemaVersions {
51-
// swiftlint:disable:next identifier_name
52-
internal static let v1_0 = "1.0"
51+
internal static let v1 = 1
5352
}
5453
}
5554

Tests/IntegrationTests/Components Tests/PaymentComponent/PaymentComponentSubjectTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class PaymentComponentSubjectTests: XCTestCase {
135135

136136
// Verify SDKData contains checkoutAttemptId
137137
XCTAssertEqual(sdkDataDecoded.analytics.checkoutAttemptId, expectedCheckoutAttemptId)
138-
XCTAssertEqual(sdkDataDecoded.schemaVersion, "1.0")
138+
XCTAssertEqual(sdkDataDecoded.schemaVersion, 1)
139139
// Verify through the deprecated property for backward compatibility
140140
XCTAssertEqual(data.checkoutAttemptId, expectedCheckoutAttemptId)
141141
didSubmitExpectation.fulfill()

0 commit comments

Comments
 (0)