serialize
Serializes a compensation event envelope.
Parameters
saga Id
originating saga's id (used for Saga Log Correlation on the consumer side).
step Id
optional id of the step being compensated; null for saga-level actions.
command
typed compensation command to be encoded on the wire.