Commit Graph

28 Commits

Author SHA1 Message Date
Jon Staab f7bd3e53fe Add snapshots to activity 2026-05-28 15:53:02 -07:00
Jon Staab eb0123abef Rename tenant fields to tenant_pubkey and plan to plan_id 2026-05-28 15:18:41 -07:00
Jon Staab b11fb5dc25 Fix possible race condition related to billing an activity 2026-05-28 12:45:21 -07:00
Jon Staab cd70ca6654 Move renewed_at to tenant 2026-05-27 15:35:02 -07:00
Jon Staab f37bb55286 Significant refactor of activity reconciliation 2026-05-27 15:22:33 -07:00
Jon Staab 7a2baf6f82 Refactor billing to manage subscriptions/invoices internally 2026-05-27 10:27:13 -07:00
Jon Staab 9d9192f681 Remove redundant relay.schema field 2026-05-25 16:15:00 -07:00
Jon Staab a998c9b833 Collapse multiple invoice tables into one 2026-05-21 16:23:20 -07:00
Jon Staab 6d267ed339 Remove relay subscription item column 2026-05-20 11:16:02 -07:00
Jon Staab dde4b981b2 refactor query 2026-05-19 17:04:10 -07:00
userAdityaa b1e3747ddb fix: manual Lightning payment reconciliation with Stripe invoice state (#54)
Reviewed-on: coracle/caravel#54
Co-authored-by: userAdityaa <aditya.chaudhary1558@gmail.com>
Co-committed-by: userAdityaa <aditya.chaudhary1558@gmail.com>
2026-05-01 23:38:57 +00:00
userAdityaa 3ecd285290 chore: prevent duplicate Lightning charges by adding durable invoice-level NWC payment guard (#51)
Reviewed-on: coracle/caravel#51
Co-authored-by: userAdityaa <aditya.chaudhary1558@gmail.com>
Co-committed-by: userAdityaa <aditya.chaudhary1558@gmail.com>
2026-04-25 13:02:56 +00:00
userAdityaa 21b36272b8 feat: add missing SQLite indexes for billing and API hot-path queries (#44)
Co-authored-by: userAdityaa <aditya.chaudhary1558@gmail.com>
Co-committed-by: userAdityaa <aditya.chaudhary1558@gmail.com>
2026-04-22 16:40:09 +00:00
userAdityaa ce595c8bc5 Ensure all tenants have valid Stripe customer IDs (#5)
Co-authored-by: userAdityaa <aditya.chaudhary1558@gmail.com>
Co-committed-by: userAdityaa <aditya.chaudhary1558@gmail.com>
2026-04-14 23:06:48 +00:00
Jon Staab 0980523a50 Rework billing 2026-04-09 14:11:30 -07:00
Jon Staab 65dfcaeb6c Implement stripe subscription sync 2026-04-07 11:21:40 -07:00
Jon Staab baae65b8b2 Clear billing logic, do some cleanup 2026-04-01 15:23:02 -07:00
Jon Staab 95c971af1a Avoid duplicate syncs 2026-03-31 06:51:53 -07:00
Jon Staab b796665e31 Add tenant to activity table, include resource type 2026-03-26 08:24:49 -07:00
Jon Staab 6f407fd681 Switch to plural table names 2026-03-25 16:54:30 -07:00
Jon Staab cb2e37c74a Update backend implementation to fit spec 2026-03-25 16:50:44 -07:00
Jon Staab 9491d608ae More billing work 2026-03-24 10:20:11 -07:00
Jon Staab 7e577bf7ff Stabilize id/schema 2026-03-03 10:20:36 -08:00
Jon Staab 46a270513e Simplify relay upsert 2026-03-03 09:54:38 -08:00
Jon Staab 62042b526d Implement new relay handler, rough out relay list/detail 2026-02-26 15:30:18 -08:00
Jon Staab 90831a4237 Add billing and nip 17 notifications 2026-02-25 14:00:13 -08:00
Jon Staab 051747e5c3 Add provisioner 2026-02-25 13:27:45 -08:00
Jon Staab 42abde9dcd Add backend 2026-02-25 13:11:25 -08:00