Files
the_order/services/finance/README.md

646 B

Finance Service

Service for payments, ledgers, rate models, and invoicing.

Features

  • Double-entry ledger
  • Payment processing
  • Rate models
  • Invoicing
  • Deal milestone tracking

Development

# Install dependencies
pnpm install

# Run development server
pnpm dev

# Build
pnpm build

# Start production server
pnpm start

API Endpoints

  • GET /health - Health check
  • POST /ledger/entry - Create ledger entry
  • POST /payments - Process payment

Environment Variables

  • PORT - Server port (default: 4003)
  • DATABASE_URL - PostgreSQL connection string
  • PAYMENT_PROVIDER - Payment provider configuration