From 6bcb219872f05251c9cd8d9a8750cc70950c458c Mon Sep 17 00:00:00 2001 From: Mark Pitsilos Date: Tue, 30 Jul 2024 14:42:22 +0300 Subject: [PATCH] feat: Support is_secondary for domain updates to indicate that the subdomain is significant If `is_secondary` is `true` and the application supports it, then the full domain name provided will be stored as the domain, including any subdomain(s). i.e. we will not be storing the eTLD+1 as the domain in case a subdomain is provided. --- domain/client.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/domain/client.go b/domain/client.go index 50e550b9..6e268c74 100644 --- a/domain/client.go +++ b/domain/client.go @@ -42,8 +42,9 @@ func (c *Client) Create(ctx context.Context, params *CreateParams) (*clerk.Domai type UpdateParams struct { clerk.APIParams - Name *string `json:"name,omitempty"` - ProxyURL *string `json:"proxy_url,omitempty"` + Name *string `json:"name,omitempty"` + ProxyURL *string `json:"proxy_url,omitempty"` + IsSecondary *bool `json:"is_secondary,omitempty"` } // Update updates a domain's properties.