Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
157 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
module Dnsimple | ||
module Struct | ||
|
||
class WhoisPrivacyOrder < Base | ||
# @return [Integer] The associated domain ID. | ||
attr_accessor :domain_id | ||
|
||
# @return [Integer] The associated WHOIS Privacy ID. | ||
attr_accessor :whois_privacy_id | ||
|
||
# @return [String] The WHOIS Privacy order state. | ||
attr_accessor :state | ||
|
||
# @return [Boolean] Whether the WHOIS Privacy is enabled for the domain. | ||
attr_accessor :enabled | ||
|
||
# @return [String] The date the WHOIS Privacy will expire on. | ||
attr_accessor :expires_on | ||
|
||
# @return [String] When the WHOIS Privacy was created in DNSimple. | ||
attr_accessor :created_at | ||
|
||
# @return [String] When the WHOIS Privacy was last updated in DNSimple. | ||
attr_accessor :updated_at | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
spec/fixtures.http/renewWhoisPrivacy/duplicated-order.http
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
HTTP/1.1 400 | ||
server: nginx | ||
date: Fri, 21 Dec 2018 16:21:31 GMT | ||
content-type: application/json; charset=utf-8 | ||
x-ratelimit-limit: 2400 | ||
x-ratelimit-remaining: 2398 | ||
x-ratelimit-reset: 1545411828 | ||
cache-control: no-cache | ||
x-request-id: 762d810d-a42c-4b1b-9382-9f56e5a339ff | ||
x-runtime: 0.141307 | ||
x-frame-options: DENY | ||
x-content-type-options: nosniff | ||
x-xss-protection: 1; mode=block | ||
x-download-options: noopen | ||
x-permitted-cross-domain-policies: none | ||
|
||
{"message":"The whois privacy for example.com has just been renewed, a new renewal cannot be started at this time","errors":{}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
HTTP/1.1 200 | ||
server: nginx | ||
date: Fri, 21 Dec 2018 14:10:06 GMT | ||
content-type: application/json; charset=utf-8 | ||
x-ratelimit-limit: 2400 | ||
x-ratelimit-remaining: 2397 | ||
x-ratelimit-reset: 1545404617 | ||
etag: W/"23030fb7c68d7b7da22a374b5f1b1743" | ||
cache-control: max-age=0, private, must-revalidate | ||
x-request-id: 0c31a341-8078-4851-b232-d0f3819910c8 | ||
x-runtime: 2.015707 | ||
x-frame-options: DENY | ||
x-content-type-options: nosniff | ||
x-xss-protection: 1; mode=block | ||
x-download-options: noopen | ||
x-permitted-cross-domain-policies: none | ||
strict-transport-security: max-age=31536000 | ||
|
||
{"data":{"id":9,"domain_id":35879,"whois_privacy_id":478,"state":"new","expires_on":"2018-12-27","enabled":true,"created_at":"2018-12-21T14:10:04Z","updated_at":"2018-12-21T14:10:04Z"}} |
17 changes: 17 additions & 0 deletions
17
spec/fixtures.http/renewWhoisPrivacy/whois-privacy-was-not-found.http
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
HTTP/1.1 400 | ||
server: nginx | ||
date: Mon, 07 Jan 2019 13:58:34 GMT | ||
content-type: application/json; charset=utf-8 | ||
x-ratelimit-limit: 2400 | ||
x-ratelimit-remaining: 2399 | ||
x-ratelimit-reset: 1546873114 | ||
cache-control: no-cache | ||
x-request-id: 5a43c5f0-4900-4563-ae9d-bd4a996312fa | ||
x-runtime: 0.066139 | ||
x-frame-options: DENY | ||
x-content-type-options: nosniff | ||
x-xss-protection: 1; mode=block | ||
x-download-options: noopen | ||
x-permitted-cross-domain-policies: none | ||
|
||
{"message":"WHOIS privacy not found for example.com","errors":{}} |