Skip to content

Rename trustee JSON fields and refresh v2 API fixtures#168

Merged
juankuquintana merged 1 commit into
mainfrom
change/trustee-api-fields
May 4, 2026
Merged

Rename trustee JSON fields and refresh v2 API fixtures#168
juankuquintana merged 1 commit into
mainfrom
change/trustee-api-fields

Conversation

@juankuquintana
Copy link
Copy Markdown
Contributor

@juankuquintana juankuquintana commented May 1, 2026

Belongs to https://github.com/dnsimple/dnsimple-business/issues/2641

Rename trustee JSON fields and refresh v2 API fixtures

🔍 QA

From the rake console

<?php
/**
 * From the repository root:
 *   1. composer install
 *   2. php test_local.php
 */

require __DIR__ . '/vendor/autoload.php';

use Dnsimple\Client;

$client = new Client('dnsimpletest_a_FSYtfYn7p74jfPd3GBUUsnLoOXia8hkR', [
    'base_uri' => 'http://api.localhost:5000',
]);

$accountId = 2;
$registrantId = 1;
$tldName = 'com';
$domainName = 'asdf.com';
$newDomainName = 'phpdomain';

$list = $client->tlds->listTlds();
foreach ($list->getData() as $t) {
    echo "tld={$t->tld} trustee_service_enabled={$t->trusteeServiceEnabled} trustee_service_required={$t->trusteeServiceRequired}\n";
}

$tld = $client->tlds->getTld($tldName)->getData();
echo "tld={$tld->tld} trustee_service_enabled={$tld->trusteeServiceEnabled} trustee_service_required={$tld->trusteeServiceRequired}\n";

$domain = $client->domains->getDomain($accountId, $domainName)->getData();
echo "domain={$domain->name} trustee={$domain->trustee}\n";

$prices = $client->registrar->getDomainPrices($accountId, $domainName)->getData();
echo "prices domain={$prices->domain} trustee_price={$prices->trusteePrice}\n";

$registration = $client->registrar->registerDomain($accountId, "{$newDomainName}.com", [
    'registrant_id' => $registrantId,
])->getData();
echo "registration domain_id={$registration->domainId} trustee={$registration->trustee}\n";

📋 Deployment Pre/Post tasks

:shipit: Deployment Verification

  • QAd

@juankuquintana juankuquintana self-assigned this May 1, 2026
@juankuquintana juankuquintana requested a review from lokst May 1, 2026 02:34
@juankuquintana juankuquintana merged commit c4b514b into main May 4, 2026
3 checks passed
@juankuquintana juankuquintana deleted the change/trustee-api-fields branch May 4, 2026 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants