pub struct Donator {Show 15 fields
pub deprecated: DonatorDeprecated,
pub count: i64,
pub donation_receipt_created_date: Option<DateTime<Utc>>,
pub has_all_donator_data: bool,
pub has_donation_receipt: bool,
pub has_donator_data: DonatorHasDonatorData,
pub is_donation_receipt_outdated: bool,
pub last_donation_amount: i64,
pub last_donation_date: DateTime<Utc>,
pub last_modified: Option<DateTime<Utc>>,
pub last_modified_date: DateTime<Utc>,
pub payback_count: i64,
pub persons: Vec<DomainObjectPerson>,
pub sum: i64,
pub extra: Map<String, Value>,
}Expand description
Donation summary for one person or one donor/spouse pair in an accounting period. A single person and that person’s couple form separate aggregates. Canceled transactions and cancellation entries are excluded.
Fields§
§deprecated: DonatorDeprecatedSerialized migration hint for the deprecated field.
count: i64Total number of donations in the specified accounting period.
donation_receipt_created_date: Option<DateTime<Utc>>Creation timestamp of the selected stored receipt, or null if no receipt exists.
has_all_donator_data: boolIndicator if all necessary data for a donation receipt is available.
has_donation_receipt: boolIndicator if a donation receipt is available.
has_donator_data: DonatorHasDonatorDataPresence of first name, last name, street, postcode and city for the single donor or, for a pair, the person with the smaller ID. These are presence flags, not validated addresses.
is_donation_receipt_outdated: boolTrue if the stored receipt predates the tracked last modification or has a different net sum. False when no receipt exists.
last_donation_amount: i64Amount for the selected latest donation in minor currency units; a payback fallback is negative. Equal document dates have no transaction-ID tie-breaker.
last_donation_date: DateTime<Utc>Latest donation document date, falling back to the latest payback date if no donation exists.
last_modified: Option<DateTime<Utc>>deprecated in the ChurchTools API
Deprecated alias of lastModifiedDate.
last_modified_date: DateTime<Utc>Latest modification timestamp considered for the household’s donation records and cancellation tracking.
payback_count: i64Total number of donation paybacks in the specified accounting period.
persons: Vec<DomainObjectPerson>Resolved persons for the donor or donor/spouse pair. Pair grouping normalizes the person IDs regardless of their order in the original transaction.
sum: i64Net donation amount after paybacks, in minor currency units. May be zero or negative.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.