From c107ff34b195343d9099b047b73a7076dc4576c5 Mon Sep 17 00:00:00 2001 From: Ben Howdle Date: Thu, 12 Dec 2024 16:06:25 +0000 Subject: [PATCH] feat(commerce): delete plan feature ids --- commerce.go | 6 +++--- commerce/features/client.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/commerce.go b/commerce.go index c63e831..c520879 100644 --- a/commerce.go +++ b/commerce.go @@ -110,10 +110,10 @@ type CreateMultiplePlanFeaturesParams struct { FeatureIDs []string `json:"feature_ids"` } -type DeletePlanFeatureParams struct { +type DeletePlanFeaturesParams struct { APIParams - FeatureID string `json:"feature_id"` - PlanID string `json:"plan_id"` + FeatureIDs []string `json:"feature_ids"` + PlanID string `json:"plan_id"` } type CreateFeatureParams struct { diff --git a/commerce/features/client.go b/commerce/features/client.go index 74d2b44..e14850c 100644 --- a/commerce/features/client.go +++ b/commerce/features/client.go @@ -47,8 +47,8 @@ func (c *Client) CreatePlanFeatures(ctx context.Context, params *clerk.CreateMul return resource, err } -func (c *Client) DeletePlanFeature(ctx context.Context, params *clerk.DeletePlanFeatureParams) error { - reqPath, err := clerk.JoinPath(rootPath, "plans", params.PlanID, path, params.FeatureID) +func (c *Client) DeletePlanFeatures(ctx context.Context, params *clerk.DeletePlanFeaturesParams) error { + reqPath, err := clerk.JoinPath(rootPath, "plans", params.PlanID, path) if err != nil { return err }