package sub2api

import "context"

func (c *Client) CreatePlan(ctx context.Context, req CreatePlanRequest) (PlanRef, error) {
	var ref PlanRef
	if err := c.postJSON(ctx, "/api/v1/admin/payment/plans", req, &ref); err != nil {
		return PlanRef{}, err
	}
	return ref, nil
}
