Skip to content

Add support for trustee service#495

Merged
juankuquintana merged 1 commit into
mainfrom
change/trustee
Mar 23, 2026
Merged

Add support for trustee service#495
juankuquintana merged 1 commit into
mainfrom
change/trustee

Conversation

@juankuquintana
Copy link
Copy Markdown
Contributor

@juankuquintana juankuquintana commented Mar 22, 2026

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

Add support for trustee service

🔍 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_service={domain.trustee_service}")

prices = client.registrar.get_domain_prices(account_id, domain_name).data
print(f"prices domain={prices.domain} trustee_service_price={prices.trustee_service_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_service={registration.trustee_service}")

📋 Deployment Pre/Post tasks

:shipit: Deployment Verification

  • QAd

@juankuquintana juankuquintana merged commit 7e3a962 into main Mar 23, 2026
3 checks passed
@juankuquintana juankuquintana deleted the change/trustee branch March 23, 2026 17:51
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