def METHOD_NAME(cls, order):
    if not order.is_draft():
        raise ValidationError(
            {
                "id": ValidationError(
                    "The order is not draft.", code=OrderErrorCode.INVALID.value
                )
            }
        )
    return order