Skip to content

Rename trustee JSON fields and refresh v2 API fixtures#472

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

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

require 'dnsimple'
client = Dnsimple::Client.new(base_url: "http://api.localhost:5000",  access_token: "dnsimpletest_a_FSYtfYn7p74jfPd3GBUUsnLoOXia8hkR")

account_id = 2
registrant_id = 1
tld_name = 'com'
domain_name = 'domain.com'
new_domain_name = 'newdomain'

list = client.tlds.list_tlds(per_page: 5)
list.data.each { |t| puts "tld=#{t.tld} trustee_service_enabled=#{t.trustee_service_enabled} trustee_service_required=#{t.trustee_service_required}" }

tld = client.tlds.tld(tld_name).data
puts "tld=#{tld.tld} trustee_service_enabled=#{tld.trustee_service_enabled} trustee_service_required=#{tld.trustee_service_required}"

domain = client.domains.domain(account_id, domain_name).data
puts "domain=#{domain.name} trustee=#{domain.trustee}"

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

attributes = { registrant_id: registrant_id }
registration = client.registrar.register_domain(account_id, "#{new_domain_name}.com", attributes).data
puts "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:29
@juankuquintana juankuquintana merged commit ad58440 into main May 4, 2026
7 checks passed
@juankuquintana juankuquintana deleted the change/trustee-api-fields branch May 4, 2026 16:01
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