Skip to content

Models

domain.entity.models

Summary

Define the Entity aggregate model with default-logo resolution.

Classes

Entity

Bases: BaseModel

Entity (payee) model: a merchant, person, transfer, or other kind.

Attributes:

Name Type Description
name str

Display name of the entity.

type str

Entity kind used to pick the default logo, e.g. "merchant".

logo str | None

Logo URL/path; filled with a per-type default when unset.

Notes

Guarantees: After validation, logo is always a non-empty value; a missing logo is replaced using :data:DEFAULT_LOGO_MAP keyed by type.