Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 836b85e

Browse files
authored
Merge pull request #642 from wordpress-mobile/task/api-transfer-domain-type
Add transfer case to DomainType enum
2 parents ae2d7a1 + c39c259 commit 836b85e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ _None._
4747
### New Features
4848

4949
- Add `tag` parameter to `PostServiceRemoteOptions` [#634]
50+
- Add `transfer` case to `DomainType` case [#642]
5051

5152
## 8.10.0
5253

WordPressKit/RemoteDomain.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Foundation
44
case registered
55
case mapped
66
case siteRedirect
7+
case transfer
78
case wpCom
89

910
public var description: String {
@@ -16,6 +17,8 @@ import Foundation
1617
return NSLocalizedString("Site Redirect", comment: "Describes a site redirect domain")
1718
case .wpCom:
1819
return NSLocalizedString("Included with Site", comment: "Describes a standard *.wordpress.com site domain")
20+
case .transfer:
21+
return NSLocalizedString("Transferred Domain", comment: "Describes a domain that was transferred from elsewhere to wordpress.com")
1922
}
2023
}
2124

@@ -30,6 +33,8 @@ import Foundation
3033
init(type: String?, wpComDomain: Bool?, hasRegistration: Bool?) {
3134
if type == "redirect" {
3235
self = .siteRedirect
36+
} else if type == "transfer" {
37+
self = .transfer
3338
} else if wpComDomain == true {
3439
self = .wpCom
3540
} else if hasRegistration == true {

0 commit comments

Comments
 (0)