A suite of generic banking products with testable features.
- Go 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Module path and self-referencing URLs now point at the new Forgejo instance following the move off Codeberg. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
| .claude | ||
| .vscode | ||
| testdata | ||
| testkit | ||
| .gitignore | ||
| account.go | ||
| api.md | ||
| catalog.go | ||
| catalog_test.go | ||
| CHANGELOG.md | ||
| clock.go | ||
| deposit.go | ||
| deposit_test.go | ||
| event.go | ||
| feature.go | ||
| features.md | ||
| go.mod | ||
| go.sum | ||
| goluca_test.go | ||
| index.md | ||
| interest.go | ||
| interest.md | ||
| interest_test.go | ||
| isa.go | ||
| lifecycle.go | ||
| lifecycle_test.go | ||
| overdraft.go | ||
| parameter.go | ||
| product.go | ||
| products.md | ||
| README.md | ||
| repayment.go | ||
| ROADMAP.md | ||
| simulation.go | ||
| task-plus.yml | ||
| Taskfile.yml | ||
| term.go | ||
| term_test.go | ||
| withdrawal.go | ||
| withdrawal_test.go | ||
gobank-products
Composable banking product library for Go. Products are built from independently testable features (interest accrual, deposits, withdrawals, term locks, etc.) driven by a simulation framework with controllable time and typed events.
Links
- Documentation: https://h3-gobank-products.statichost.eu
- Source: https://git.bytestone.uk/hum3/gobank-products
- Mirror: https://github.com/drummonds/gobank-products
Usage
import gbp "git.bytestone.uk/hum3/gobank-products"
sim, _ := gbp.NewSimulation(ledger, clock)
sim.RegisterProduct(gbp.EasyAccess())
ma, _ := sim.OpenAccount("easy-access", "Liability:Savings:alice", "GBP", -2, nil)
sim.Deposit(ma.Account.ID, 100000, equityID, "")
sim.AdvanceToDate(targetDate)
Product Catalog
| Product | Family | Default Rate | Features |
|---|---|---|---|
| Easy Access | Savings | 1.5% | Deposit, Withdrawal, Interest, Lifecycle |
| Fixed Term | Savings | 4.0% | Deposit, Term Lock, Interest, Lifecycle |
| ISA | Savings | 3.5% | ISA Allowance, Deposit, Withdrawal, Interest, Lifecycle |
| Personal Loan | Lending | 6.9% | Interest, Repayment, Lifecycle |
| Mortgage | Lending | 4.5% | Interest, Repayment, Lifecycle |
| Overdraft | Lending | 15.9% | Deposit, Overdraft Facility, Interest, Lifecycle |