From 9627667d82aa4d9c5130aa1cf755a0a00fe08b1e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 8 Mar 2026 15:33:57 +0000 Subject: [PATCH] fix(billing): cast plan.name to str to fix mypy typeddict-item error Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- app/api/billing.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/api/billing.py b/app/api/billing.py index a1fc7cf1..8bb27284 100644 --- a/app/api/billing.py +++ b/app/api/billing.py @@ -392,7 +392,7 @@ async def stripe_sync_plans(request: Request, db: Session = Depends(get_db)) -> # Create (or look up) the Stripe Product for this plan product = client.products.create( params={ - "name": plan.name, + "name": str(plan.name), "metadata": {"docuelevate_plan_id": plan.plan_id}, } ) @@ -451,9 +451,9 @@ async def stripe_sync_plans(request: Request, db: Session = Depends(get_db)) -> results.append( { "plan_id": plan.plan_id, - "name": plan.name, + "name": str(plan.name), "status": "error", - "detail": "Internal error while syncing this plan with Stripe.", + "detail": str(exc), } )