@@ -25,6 +25,10 @@ public struct Site: Decodable, Equatable, GeneratedFakeable, GeneratedCopiable {
2525 ///
2626 public let adminURL : String
2727
28+ /// Site's login URL.
29+ ///
30+ public let loginURL : String
31+
2832 /// Short name for site's plan.
2933 ///
3034 public let plan : String
@@ -77,12 +81,14 @@ public struct Site: Decodable, Equatable, GeneratedFakeable, GeneratedCopiable {
7781 let timezone = try optionsContainer. decode ( String . self, forKey: . timezone)
7882 let gmtOffset = try optionsContainer. decode ( Double . self, forKey: . gmtOffset)
7983 let adminURL = try optionsContainer. decode ( String . self, forKey: . adminURL)
84+ let loginURL = try optionsContainer. decode ( String . self, forKey: . loginURL)
8085
8186 self . init ( siteID: siteID,
8287 name: name,
8388 description: description,
8489 url: url,
8590 adminURL: adminURL,
91+ loginURL: loginURL,
8692 plan: String ( ) , // Not created on init. Added in supplementary API request.
8793 isJetpackThePluginInstalled: isJetpackThePluginInstalled,
8894 isJetpackConnected: isJetpackConnected,
@@ -100,6 +106,7 @@ public struct Site: Decodable, Equatable, GeneratedFakeable, GeneratedCopiable {
100106 description: String ,
101107 url: String ,
102108 adminURL: String ,
109+ loginURL: String ,
103110 plan: String ,
104111 isJetpackThePluginInstalled: Bool ,
105112 isJetpackConnected: Bool ,
@@ -113,6 +120,7 @@ public struct Site: Decodable, Equatable, GeneratedFakeable, GeneratedCopiable {
113120 self . description = description
114121 self . url = url
115122 self . adminURL = adminURL
123+ self . loginURL = loginURL
116124 self . plan = plan
117125 self . isJetpackThePluginInstalled = isJetpackThePluginInstalled
118126 self . isJetpackConnected = isJetpackConnected
@@ -154,6 +162,7 @@ private extension Site {
154162 case gmtOffset = " gmt_offset "
155163 case jetpackConnectionActivePlugins = " jetpack_connection_active_plugins "
156164 case adminURL = " admin_url "
165+ case loginURL = " login_url "
157166 }
158167
159168 enum PlanKeys : String , CodingKey {
0 commit comments