flexpay-engine
v0.2.1
Published
FlexPay loan servicing engine — pricing, schedules, allocation, delinquency
Readme
flexpay-engine
FlexPay loan servicing engine — pricing, schedules, allocation, delinquency.
Installation
bun add flexpay-engineUsage
import { recordPayment, toCents, seedContract } from 'flexpay-engine';
import { engineContracts, enginePayments } from 'flexpay-engine/schema';Publishing to npm
- Bump version in
package.json - Commit:
git commit -am "chore: bump to vX.Y.Z" - Publish:
npm publish --access public --otp=YOUR_CODE - Update consumers:
# In flexpay-client-worker bun add [email protected] # In flexpay-backend bun add [email protected] - Commit lockfile changes in each consumer repo
Versioning
- Patch (0.1.x): Bug fixes, no API changes
- Minor (0.x.0): New features, backwards compatible
- Major (x.0.0): Breaking changes
Consumers
flexpay-client-worker— portal payments (PORTAL source)flexpay-backend— ChinChin payments (CHINCHIN source)
Both write to shared D1 database ENGINE_DB.
Development
bun install
bun test
bun run typecheck