pub enum Payload {
OrganisationDescribed {
organisation: Organisation,
},
PersonDescribed {
person: Person,
},
OwnerAdded {
owner: PartyId,
},
OwnerRemoved {
owner: PartyId,
},
ChartSelected {
chart: String,
},
AccountOpened {
account: Account,
},
BookingRecorded {
booking: Booking,
},
BookingReversed {
reverses: EventHash,
booking: Booking,
},
DocumentRecorded {
document: Document,
},
Unknown,
}Expand description
What happened – the event’s kind and the members that come with it, written at the level of the event.
Variants§
OrganisationDescribed
An organisation was described, or its description changed (spec part 0008).
Fields
organisation: OrganisationThe organisation; a later description with the same identity replaces an earlier one.
PersonDescribed
A person was described, or their description changed (spec part 0008).
Fields
OwnerAdded
The books belong to this organisation or person, too.
OwnerRemoved
The books no longer belong to this organisation or person.
ChartSelected
The books use this harmonised chart of accounts (spec part 0004).
AccountOpened
An account of the books’ own was opened, refining an account of the chart or another opened account.
BookingRecorded
A booking was recorded.
BookingReversed
An earlier booking was cancelled by a counter-booking; nothing is ever changed or deleted.
Fields
DocumentRecorded
A document was recorded, with its data and its original; the original’s bytes are stored by their hash, outside the events.
Unknown
A kind of a later version of the protocol. The event is kept and synchronised as received, but not interpreted; it cannot be written by this version.