Skip to content

Commit e217bb0

Browse files
committed
Remove classicApiEnvironment from Configuration
1 parent 478c440 commit e217bb0

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

Demo/Common/Networking/Environment.swift

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,3 @@ internal enum DemoCheckoutAPIEnvironment: String, AnyAPIEnvironment, CaseIterabl
4343
internal var version: Int { ConfigurationConstants.current.apiVersion }
4444

4545
}
46-
47-
internal enum DemoClassicAPIEnvironment: String, AnyAPIEnvironment, CaseIterable {
48-
49-
case beta, test, local
50-
51-
internal var baseURL: URL {
52-
switch self {
53-
case .beta:
54-
return URL(string: "https://pal-beta.adyen.com/pal/servlet/")!
55-
case .test:
56-
return URL(string: "https://pal-test.adyen.com/pal/servlet/")!
57-
case .local:
58-
return URL(string: "http://localhost:8080/pal/servlet/")!
59-
}
60-
}
61-
62-
}

Demo/Configuration.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ internal enum ConfigurationConstants {
2424
DemoCheckoutAPIEnvironment(rawValue: environment) ?? .test
2525
}()
2626

27-
static let classicAPIEnvironment: DemoClassicAPIEnvironment = {
28-
DemoClassicAPIEnvironment(rawValue: environment) ?? .test
29-
}()
30-
3127
static let componentsEnvironment: Environment = {
3228
switch environment.lowercased() {
3329
case "beta":

0 commit comments

Comments
 (0)