Main page
Contents:

Recently visited pages:

Model CharityBalance

This model tracks the aggregated net balance for all charities in the platform, reflecting the sum of all allocations and transfers over time.

Purpose

CharityBalance provides the overall financial position of all charities combined, ensuring that allocations and transfers are correctly accounted for at the platform level. It is used exclusively for validation.

Structure

The model consists of a single field:

CharityBalance     Amount Net aggregated balance for all charities (decimal)

Relationships

Implementation Notes

  • The model is updated via event sourcing and is immutable.
  • Each allocation (exit) increases the aggregated balance; each transfer decreases it.
  • Used to validate that all amounts to transfer and payouts are consistent with the total charity balances in the system.

By J.W. Morsink