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 }