Skip to content

Commit 0189a0f

Browse files
authored
Remove deprecated Certificate contact_id field (#164)
The `contact_id` field in the Certificate schema was deprecated on 2022-05-17 and is no longer required for certificate operations. Remove `contactId` from the `Certificate` struct. This is a breaking change. References dnsimple/dnsimple-developer#987
1 parent 5c9b470 commit 0189a0f

3 files changed

Lines changed: 1 addition & 7 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ This project uses [Semantic Versioning 2.0.0](http://semver.org/), the format is
66

77
### Removed
88

9+
- **BREAKING**: Removed the deprecated `contactId` field from the `Certificate` struct. The field was deprecated on 2022-05-17 and is no longer required for certificate operations.
910
- **BREAKING**: Removed the deprecated `from` and `to` fields from the `EmailForward` struct. Use `aliasEmail` and `destinationEmail` instead.
1011

1112
## 6.3.0 - 2026-04-15

src/Dnsimple/Struct/Certificate.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ class Certificate
1717
* @var int The associated domain ID
1818
*/
1919
public $domainId;
20-
/**
21-
* @var int The associated contact ID
22-
* @deprecated
23-
*/
24-
public $contactId;
2520
/**
2621
* @var string The certificate name
2722
*/
@@ -71,7 +66,6 @@ public function __construct($data)
7166
{
7267
$this->id = $data->id;
7368
$this->domainId = $data->domain_id;
74-
$this->contactId = $data->contact_id;
7569
$this->name = $data->name;
7670
$this->commonName = $data->common_name;
7771
$this->years = $data->years;

tests/Dnsimple/Service/CertificatesTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ public function testGetCertificate()
7171

7272
self::assertEquals(101967, $certificate->id);
7373
self::assertEquals(289333, $certificate->domainId);
74-
self::assertEquals(2511, $certificate->contactId);
7574
self::assertEquals("www", $certificate->name);
7675
self::assertEquals("www.bingo.pizza", $certificate->commonName);
7776
self::assertEquals(1, $certificate->years);

0 commit comments

Comments
 (0)