Skip to content

Rename trustee JSON fields and refresh v2 API fixtures#505

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

Rename trustee JSON fields and refresh v2 API fixtures#505
juankuquintana merged 1 commit intomainfrom
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

#!/usr/bin/env python3
# From the repository root:
#   1. poetry install
#   2. poetry run python test_local.py

from dnsimple import Client
from dnsimple.struct import DomainRegistrationRequest

client = Client(
    access_token="dnsimpletest_a_FSYtfYn7p74jfPd3GBUUsnLoOXia8hkR",
    base_url="http://api.localhost:5000",
)

account_id = 2
registrant_id = 1
tld_name = "com"
domain_name = "asdf.com"
new_domain_name = "pythondomain"

list_resp = client.tlds.list_tlds()
for t in list_resp.data:
    print(
        f"tld={t.tld} trustee_service_enabled={t.trustee_service_enabled} "
        f"trustee_service_required={t.trustee_service_required}"
    )

tld = client.tlds.get_tld(tld_name).data
print(
    f"tld={tld.tld} trustee_service_enabled={tld.trustee_service_enabled} "
    f"trustee_service_required={tld.trustee_service_required}"
)

domain = client.domains.get_domain(account_id, domain_name).data
print(f"domain={domain.name} trustee={domain.trustee}")

prices = client.registrar.get_domain_prices(account_id, domain_name).data
print(f"prices domain={prices.domain} trustee_price={prices.trustee_price}")

registration = client.registrar.register_domain(
    account_id,
    f"{new_domain_name}.com",
    DomainRegistrationRequest(registrant_id=registrant_id),
).data
print(f"registration domain_id={registration.domain_id} 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:33
@juankuquintana juankuquintana merged commit 2909bed into main May 4, 2026
3 checks passed
@juankuquintana juankuquintana deleted the change/trustee-api-fields branch May 4, 2026 16:22
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