From 1002f08f040369f726d3e9fb166e31a9ce03ee73 Mon Sep 17 00:00:00 2001 From: Simone Carletti Date: Thu, 28 Dec 2017 15:42:35 +0100 Subject: [PATCH] Remove premium_price field from response See dnsimple/dnsimple-developer#155 --- dnsimple/registrar.go | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/dnsimple/registrar.go b/dnsimple/registrar.go index e89b1a4..9435f82 100644 --- a/dnsimple/registrar.go +++ b/dnsimple/registrar.go @@ -100,7 +100,6 @@ type DomainRegistration struct { State string `json:"state"` AutoRenew bool `json:"auto_renew"` WhoisPrivacy bool `json:"whois_privacy"` - PremiumPrice string `json:"premium_price"` CreatedAt string `json:"created_at,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` } @@ -150,7 +149,6 @@ type DomainTransfer struct { State string `json:"state"` AutoRenew bool `json:"auto_renew"` WhoisPrivacy bool `json:"whois_privacy"` - PremiumPrice string `json:"premium_price"` CreatedAt string `json:"created_at,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` } @@ -219,13 +217,12 @@ func (s *RegistrarService) TransferDomainOut(accountID string, domainName string // DomainRenewal represents the result of a domain renewal call. type DomainRenewal struct { - ID int `json:"id"` - DomainID int `json:"domain_id"` - Period int `json:"period"` - State string `json:"state"` - PremiumPrice string `json:"premium_price"` - CreatedAt string `json:"created_at,omitempty"` - UpdatedAt string `json:"updated_at,omitempty"` + ID int `json:"id"` + DomainID int `json:"domain_id"` + Period int `json:"period"` + State string `json:"state"` + CreatedAt string `json:"created_at,omitempty"` + UpdatedAt string `json:"updated_at,omitempty"` } // domainRenewalResponse represents a response from an API method that returns a domain renewal.