From 684091a5f335e557bb0133b9203af17a1914974f 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..932fbff0 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"` } // Update updates a domain's properties.