Add NATS account-balance SoT and statement review for customers, CS, and sales
Some checks are pending
offline / test (push) Waiting to run

Internal billing now uses verae.billing.* request-reply and pubs. zappier-account-balance tracks prepaid, credits, usage, and payments. Portal, admin, CS, and sales all review the same statement. Independent Forgejo repos stay split via push-module-repos.
This commit is contained in:
George Lambert 2026-09-11 15:35:37 -04:00
parent a1a5b957fd
commit ac38676645
135 changed files with 3078 additions and 130 deletions

View file

@ -5,8 +5,13 @@ Sales-department API for **per-customer pricing** (tier + `multiplierOverride`).
**Forgejo:** https://git.georgelambert.org/marchon/zappier-sales-pricing
**Catalog:** https://zapier.georgelambert.org/packages/zappier-sales-pricing/README.pdf
Internal reviews use NATS `verae.billing.statement.get` (account-balance).
Staff UI: http://127.0.0.1:3012/ — review credits, balances, usage, payments.
```bash
PORT=3012 node src/server.js
PORT=3012 NATS_URL=nats://127.0.0.1:4222 node src/server.js
curl http://127.0.0.1:3012/review/cust_2
curl http://127.0.0.1:3012/quotes/cust_2
curl -X PUT http://127.0.0.1:3012/customers/cust_2/pricing \
-H 'content-type: application/json' \