38 Commits

Author SHA1 Message Date
Jon Staab a34f5ec41d Split out migration
Docker / build-and-push-image (push) Successful in 1h8m33s
2026-06-11 16:23:08 -07:00
Jon Staab b5f3efc775 Fix a few bugs
Docker / build-and-push-image (push) Successful in 1h6m37s
2026-06-05 11:31:10 -07:00
Jon Staab 43eaad1621 Differentiate checkout id/session id
Docker / build-and-push-image (push) Successful in 52m8s
2026-06-03 14:27:57 -07:00
Jon Staab 5e6d5ab7c4 Handle stripe's 50c minimum, avoid lost write 2026-06-03 14:14:54 -07:00
Jon Staab ffb1491f00 Void unattached invoice items when churning a tenant 2026-06-03 11:05:00 -07:00
Jon Staab b702733559 Add checkout sessions for paying an invoice 2026-06-03 10:02:43 -07:00
Jon Staab 31c8e596a6 Avoid spammy payment DMs 2026-06-01 12:59:19 -07:00
Jon Staab 0018a5d4f3 Improve transactionality, align invoice model with frontend 2026-05-29 14:31:58 -07:00
Jon Staab ae3e1c316e Track payment method 2026-05-29 12:24:39 -07:00
Jon Staab d5047dedb1 Add dunning 2026-05-29 11:32:06 -07:00
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
Docker / build-and-push-image (backend, backend, coracle/caravel-backend) (push) Failing after 0s
Docker / build-and-push-image (frontend, frontend, coracle/caravel-frontend) (push) Failing after 0s
2026-05-25 16:15:00 -07:00
Jon Staab a998c9b833 Collapse multiple invoice tables into one
Docker / build-and-push-image (backend, backend, coracle/caravel-backend) (push) Failing after 1s
Docker / build-and-push-image (frontend, frontend, coracle/caravel-frontend) (push) Failing after 0s
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
Docker / build-and-push-image (backend, backend, coracle/caravel-backend) (push) Failing after 0s
Docker / build-and-push-image (frontend, frontend, coracle/caravel-frontend) (push) Failing after 1s
2026-05-19 17:04:10 -07:00
userAdityaa b1e3747ddb fix: manual Lightning payment reconciliation with Stripe invoice state (#54)
Reviewed-on: #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: #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