Record actual Stripe payment costs for tegwick membership

Update payment_records to 8.99 EUR gross, 0.44 EUR fees, 8.55 EUR net
payout to binky-hedgehog. Link member tegwick in membership ledger and
add Stripe reference catalog.
This commit is contained in:
2026-06-22 02:36:42 +02:00
parent bb3f152846
commit 7b84d34ea6
9 changed files with 183 additions and 48 deletions

View File

@@ -46,7 +46,7 @@ def test_monthly_ledger_starts_january_2025() -> None:
assert march.infrastructure_cost == Decimal("20.74")
assert march.payment_processing_cost == Decimal("0.00")
assert june.infrastructure_cost == Decimal("29.73")
assert june.payment_processing_cost == Decimal("0.38")
assert june.payment_processing_cost == Decimal("0.44")
assert june.gross_revenue == Decimal("8.99")
@@ -60,9 +60,9 @@ def test_build_snapshot_june_2026_domain_only_infrastructure() -> None:
snapshot = build_snapshot("2026-06", product, models, members, payments, ledger)
assert snapshot.monthly_infrastructure_cost == Decimal("29.73")
assert snapshot.monthly_payment_processing_cost == Decimal("0.38")
assert snapshot.monthly_total_platform_cost == Decimal("30.11")
assert snapshot.period_net_liquidity == Decimal("-21.12")
assert snapshot.monthly_payment_processing_cost == Decimal("0.44")
assert snapshot.monthly_total_platform_cost == Decimal("30.17")
assert snapshot.period_net_liquidity == Decimal("-21.18")
assert snapshot.liquidity_status == "burning"
@@ -74,11 +74,11 @@ def test_liquidity_summary_with_actual_domain_costs() -> None:
summary = build_liquidity_summary(budget, payments, ledger, "2026-06")
assert summary.cumulative_infrastructure_cost == Decimal("409.28")
assert summary.cumulative_payment_processing_cost == Decimal("3.04")
assert summary.cumulative_total_platform_cost == Decimal("412.32")
assert summary.cumulative_member_payments == Decimal("68.88")
assert summary.cumulative_net_liquidity == Decimal("-340.40")
assert summary.remaining_budget == Decimal("659.60")
assert summary.cumulative_payment_processing_cost == Decimal("3.52")
assert summary.cumulative_total_platform_cost == Decimal("412.80")
assert summary.cumulative_member_payments == Decimal("68.40")
assert summary.cumulative_net_liquidity == Decimal("-340.88")
assert summary.remaining_budget == Decimal("659.12")
assert summary.liquidity_status == "burning"
assert summary.months_tracked == 18
@@ -95,11 +95,23 @@ def test_build_monthly_ledger_matches_loader() -> None:
)
def test_payment_records_match_stripe_actuals_for_tegwick() -> None:
payments = load_payment_records(DATA_DIR)
nov = next(p for p in payments if p.period == "2025-11")
assert nov.gross_amount == Decimal("8.99")
assert nov.fees_amount == Decimal("0.44")
assert nov.net_amount == Decimal("8.55")
assert nov.member_username == "tegwick"
assert nov.payout_account == "binky-hedgehog"
assert nov.source == "stripe"
def test_dashboard_notes_expense_record_source() -> None:
from observatory.dashboard import generate_dashboard
report = generate_dashboard(DATA_DIR, "2026-06")
assert "expense and payment record ledgers" in report
assert "409.28" in report
assert "659.60" in report
assert "659.12" in report
assert "coulomb.social" not in report # dashboard shows aggregates, not domain names