Generated after a successful Transition State update action.

interface ReviewStateTransitionMessage {
    createdAt: string;
    createdBy?: CreatedBy;
    force: boolean;
    id: string;
    lastModifiedAt: string;
    lastModifiedBy?: LastModifiedBy;
    newIncludedInStatistics: boolean;
    newState: StateReference;
    oldIncludedInStatistics: boolean;
    oldState?: StateReference;
    resource: Reference;
    resourceUserProvidedIdentifiers?: UserProvidedIdentifiers;
    resourceVersion: number;
    sequenceNumber: number;
    target?: Reference;
    type: "ReviewStateTransition";
    version: number;
}

Properties

createdAt: string

Date and time (UTC) the Message was generated.

createdBy?: CreatedBy

IDs and references that created the Message.

force: boolean

Whether State transition validations were turned off during the Transition State update action.

id: string

Unique identifier of the Message. Can be used to track which Messages have been processed.

lastModifiedAt: string

Value of createdAt.

lastModifiedBy?: LastModifiedBy

IDs and references that last modified the Message.

newIncludedInStatistics: boolean

Whether the new Review was taken into account in the rating statistics of the target after the state transition.

newState: StateReference

State of the Review after the Transition State update action.

oldIncludedInStatistics: boolean

Whether the old Review was taken into account in the rating statistics of the target before the state transition.

oldState?: StateReference

State of the Review before the Transition State update action.

resource: Reference

Reference to the resource on which the change or action was performed.

resourceUserProvidedIdentifiers?: UserProvidedIdentifiers

User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

resourceVersion: number

Version of the resource on which the change or action was performed.

sequenceNumber: number

Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.

target?: Reference

Reference to the resource that the Review belongs to.

type: "ReviewStateTransition"
version: number

Version of a resource. In case of Messages, this is always 1.