Skip to content

Rename trustee JSON fields and refresh v2 API fixtures#242

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

Rename trustee JSON fields and refresh v2 API fixtures#242
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

  1. Run cd src/dnsimple-example && dotnet run
// From the repository root:
//   1. dotnet run --project test_local

using dnsimple;
using dnsimple.Services;

var token = "dnsimpletest_a_FSYtfYn7p74jfPd3GBUUsnLoOXia8hkR";
const long accountId = 2;
const long registrantId = 1;
const string tldName = "com";
const string domainName = "asdf.com";
const string newDomainName = "csharpdomain";

var client = new Client();
client.ChangeBaseUrlTo("http://api.localhost:5000");
client.AddCredentials(new OAuth2Credentials(token));

var list = client.Tlds.ListTlds();
foreach (var t in list.Data)
{
    Console.WriteLine(
        $"tld={t.Tld} trustee_service_enabled={t.TrusteeServiceEnabled} trustee_service_required={t.TrusteeServiceRequired}");
}

var tld = client.Tlds.GetTld(tldName).Data;
Console.WriteLine(
    $"tld={tld.Tld} trustee_service_enabled={tld.TrusteeServiceEnabled} trustee_service_required={tld.TrusteeServiceRequired}");

var domain = client.Domains.GetDomain(accountId, domainName).Data;
Console.WriteLine($"domain={domain.Name} trustee={domain.Trustee}");

var prices = client.Registrar.GetDomainPrices(accountId, domainName).Data;
Console.WriteLine($"prices domain={prices.Domain} trustee_price={prices.TrusteePrice}");

var registration = client.Registrar.RegisterDomain(accountId, $"{newDomainName}.com",
    new DomainRegistrationInput { RegistrantId = registrantId }).Data;
Console.WriteLine($"registration domain_id={registration.DomainId} trustee={registration.Trustee}");

📋 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:31
@juankuquintana juankuquintana merged commit 41658eb into main May 4, 2026
4 checks passed
@juankuquintana juankuquintana deleted the change/trustee-api-fields branch May 4, 2026 16:26
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