diff --git a/internal/client/tollbit/client.go b/internal/client/tollbit/client.go index 00e36dc..55f8dfd 100644 --- a/internal/client/tollbit/client.go +++ b/internal/client/tollbit/client.go @@ -183,7 +183,7 @@ func (c *client) Search(ctx context.Context, params SearchParams, token agent.To q.Set("properties", properties) } if params.ProgrammaticOnlySet { - q.Set("allowedOnly", strconv.FormatBool(params.ProgrammaticOnly)) + q.Set("readyToLicense", strconv.FormatBool(params.ProgrammaticOnly)) } u := c.resolve("/agents/v1/search") diff --git a/internal/client/tollbit/client_test.go b/internal/client/tollbit/client_test.go index 939ce8c..b8ebee8 100644 --- a/internal/client/tollbit/client_test.go +++ b/internal/client/tollbit/client_test.go @@ -52,8 +52,8 @@ func TestSearch(t *testing.T) { if r.URL.Query().Get("properties") != "example.com,other.com" { t.Fatalf("unexpected properties: %q", r.URL.Query().Get("properties")) } - if r.URL.Query().Get("allowedOnly") != "true" { - t.Fatalf("unexpected allowedOnly: %q", r.URL.Query().Get("allowedOnly")) + if r.URL.Query().Get("readyToLicense") != "true" { + t.Fatalf("unexpected readyToLicense: %q", r.URL.Query().Get("readyToLicense")) } if r.Header.Get("Authorization") != "Bearer "+token.RawToken { t.Fatalf("unexpected authorization: %q", r.Header.Get("Authorization"))