def METHOD_NAME(cls, events: QuerySet) -> payment_models.TransactionEvent:
    """Get event with details of requested action.
    This searches for a request event with the appropriate type and
    include_in_calculations set to false. Request events created from
    transactionInitialize have their include_in_calculation set to false by default.
    """
    for event in events:
        if (
            event.type
            in [
                TransactionEventType.AUTHORIZATION_REQUEST,
                TransactionEventType.CHARGE_REQUEST,
            ]
            and not event.include_in_calculations
        ):
            return event
    raise ValidationError(
        {
            "id": ValidationError(
                "Missing call of `transactionInitialize` mutation.",
                code=TransactionProcessErrorCode.INVALID.value,
            )
        }
    )