Commit Graph

192 Commits

Author SHA1 Message Date
Jon Staab ffb1491f00 Void unattached invoice items when churning a tenant 2026-06-03 11:05:00 -07:00
Jon Staab 4dc8ea942d Hide stripe error, remove pdf qr 2026-06-03 10:50:22 -07:00
Jon Staab 0e18d4020a Restructure reconciliation to always reconcile oob payments 2026-06-03 10:36:06 -07:00
Jon Staab b702733559 Add checkout sessions for paying an invoice 2026-06-03 10:02:43 -07:00
Jon Staab 8c44d8cc0f Add backend skill 2026-06-02 15:11:19 -07:00
Jon Staab 3682d0606d Fix period tiling 2026-06-02 15:07:03 -07:00
Jon Staab 6b693e11d3 refactor billing endpoints to separate reads from reconciliation requests 2026-06-02 14:33:26 -07:00
Jon Staab 5e7aa7df10 Add frontend skill 2026-06-02 14:17:27 -07:00
Jon Staab 240304b302 Add rebuild-skill 2026-06-02 13:28:57 -07:00
Jon Staab 4bd469fd17 Fix small bugs 2026-06-02 13:17:05 -07:00
Jon Staab b331a806ca Update readme, move frontend build to build phase in dockerfile 2026-06-02 12:56:52 -07:00
Jon Staab 430f33383b Fix a few possible concurrency bugs 2026-06-02 10:16:14 -07:00
Jon Staab 1d5c825e15 Consolidate dockerfiles 2026-06-02 10:01:43 -07:00
Jon Staab bd5f4b1cd0 Frontend refactor 2026-06-02 09:24:27 -07:00
Jon Staab 08e59e3b40 Add draft invoices 2026-06-01 17:22:44 -07:00
Jon Staab 93bfe8e5a4 Show tenant links, remove plan from relay edit form 2026-06-01 16:37:39 -07:00
Jon Staab 55a0b69089 Convert inline error message to toast, tweak account page 2026-06-01 16:13:25 -07:00
Jon Staab 0b6302b66b Improve payment dialogs 2026-06-01 15:53:23 -07:00
Jon Staab fd38f9cbc0 Fix bolt11 reconciliation 2026-06-01 15:09:03 -07:00
Jon Staab 76fbee6be1 Round prorations to the nearest hour 2026-06-01 14:43:40 -07:00
Jon Staab 572f772ed1 Split payment setup into separate components 2026-06-01 14:39:58 -07:00
Jon Staab fed9387617 Fix login/tenant create race 2026-06-01 13:53:15 -07:00
Jon Staab 9171824ee5 Fix nip98 2026-06-01 13:31:00 -07:00
Jon Staab e4e0172972 Add agents stuff 2026-06-01 13:15:27 -07:00
Jon Staab 31c8e596a6 Avoid spammy payment DMs 2026-06-01 12:59:19 -07:00
Jon Staab f5403b6aef Massive user-story-oriented refactor 2026-06-01 12:38:58 -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 9f599d66be Clean up billing a bit 2026-05-28 14:34:19 -07:00
Jon Staab 72b30489b9 Add BillingPeriod helper 2026-05-28 13:20:17 -07:00
Jon Staab b11fb5dc25 Fix possible race condition related to billing an activity 2026-05-28 12:45:21 -07:00
Jon Staab 35d9aab02a Make infra module free functions 2026-05-27 17:26:47 -07:00
Jon Staab 0f47b483aa Update docs 2026-05-27 16:56:34 -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 28cd7b0a9a remove spec 2026-05-26 14:53:26 -07:00
Jon Staab 9d9192f681 Remove redundant relay.schema field 2026-05-25 16:15:00 -07:00
Jon Staab acf7ae8e0a Remove comments from env template 2026-05-25 14:47:52 -07:00
Jon Staab ebada70c0d Fix cors 2026-05-25 14:47:26 -07:00
Jon Staab 34d5e732f4 Add endpoint for paying an invoice so that users don't get expired qr codes 2026-05-25 11:09:24 -07:00
Jon Staab 384ddbd439 Sync frontend and backend 2026-05-22 11:03:55 -07:00
Jon Staab b4af2f3866 Update spec and readme 2026-05-22 10:15:52 -07:00
Jon Staab f8a0860045 Refactor billing/invoices a bit 2026-05-22 09:41:40 -07:00
Jon Staab 97b1bd9a02 Remove reconciliation step 2026-05-21 17:30:09 -07:00
Jon Staab e7c0e6fdbe Some lightning invoice refactoring 2026-05-21 17:19:35 -07:00
Jon Staab a998c9b833 Collapse multiple invoice tables into one 2026-05-21 16:23:20 -07:00