Repository navigation
fix(billing): el Plan Despacho emite licencia real y se renueva cada mes - #57
Merged
Merged
Conversation
Antes, una compra con metadata tier=despacho_* devolvía 422 (DTO y CHECK de SQLite no conocían el tier): el cliente pagaba y no recibía licencia. - Tiers despacho_* en DTOs, CLI, schemas.sql y migración (reconstruye la tabla licenses en BD existentes conservando datos). - Despacho cuenta como suscripción: invoice.payment_succeeded rellena créditos y customer.subscription.deleted la detiene. - Sin metadata: suscripción EUR de 49/99/149 € se infiere como Despacho. - tests/tier1_features/test_despacho_plan.py (5 tests). Suite 239/239. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01R4cLjd2oEZwwjivgXu6rxX
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Arcee · project thread
Problema
Una compra con
metadata.tier=despacho_*devolvía 422: los DTO y el CHECK de SQLite no conocían esos tiers. El cliente pagaba y no recibía licencia, y Stripe reintentaba en bucle.Cambios
despacho_basico/pro/empresaen los DTO, la CLI,schemas.sqly la migración. La migración reconstruyelicensesen las BD existentes y conserva los datos.invoice.payment_succeededrellena 2.500/6.000/15.000 créditos ycustomer.subscription.deletedla detiene.Pruebas
tests/tier1_features/test_despacho_plan.py(5 tests).python run_tests.py: 239/239.LIC-DESPACHO_BASICO, con 2.500 créditos.Despliegue
fly deploy(Arcee). La migración se aplica sola al arrancar.Generated by Claude Code