File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,9 @@ import Foundation
10
10
public struct Settings : Codable {
11
11
public var integrations : JSON ? = nil
12
12
public var plan : JSON ? = nil
13
- public var edgeFunctions : JSON ? = nil
14
-
13
+ public var edgeFunction : JSON ? = nil
14
+ public var middlewareSettings : JSON ? = nil
15
+
15
16
public init ( writeKey: String , apiHost: String ) {
16
17
integrations = try ! JSON ( [
17
18
SegmentDestination . Constants. integrationName. rawValue: [
@@ -34,13 +35,15 @@ public struct Settings: Codable {
34
35
let values = try decoder. container ( keyedBy: CodingKeys . self)
35
36
self . integrations = try ? values. decode ( JSON . self, forKey: CodingKeys . integrations)
36
37
self . plan = try ? values. decode ( JSON . self, forKey: CodingKeys . plan)
37
- self . edgeFunctions = try ? values. decode ( JSON . self, forKey: CodingKeys . edgeFunctions)
38
+ self . edgeFunction = try ? values. decode ( JSON . self, forKey: CodingKeys . edgeFunction)
39
+ self . middlewareSettings = try ? values. decode ( JSON . self, forKey: CodingKeys . middlewareSettings)
38
40
}
39
41
40
42
enum CodingKeys : String , CodingKey {
41
43
case integrations
42
44
case plan
43
- case edgeFunctions
45
+ case edgeFunction
46
+ case middlewareSettings
44
47
}
45
48
46
49
/**
You can’t perform that action at this time.
0 commit comments