From 5001eb7e9ae94518d4a17d379c1e84e91a2f50fc Mon Sep 17 00:00:00 2001 From: JohnSharpe Date: Thu, 25 Apr 2024 09:34:39 +0100 Subject: [PATCH] Sorted out some comments --- service/fixed/plans/service.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service/fixed/plans/service.go b/service/fixed/plans/service.go index 543ce8c..d493df7 100644 --- a/service/fixed/plans/service.go +++ b/service/fixed/plans/service.go @@ -24,16 +24,17 @@ func NewAPI(client HttpClient, logger Log) *API { return &API{client: client, logger: logger} } +// List will list all the plans available to the current account func (a *API) List(ctx context.Context) ([]*GetPlanResponse, error) { return a.list(ctx, root) } +// ListWithProvider will list all the plans available to the current account, filtered by provider func (a *API) ListWithProvider(ctx context.Context, provider string) ([]*GetPlanResponse, error) { address := fmt.Sprintf("%s?provider=%s", root, provider) return a.list(ctx, address) } -// List will list all the plans available to the current account (filtered by provider if given). func (a *API) list(ctx context.Context, address string) ([]*GetPlanResponse, error) { var response ListPlansResponse