def METHOD_NAME(cls, _info: ResolveInfo, instance, data):  # type: ignore[override]
    number = instance.number or data.get("number")
    url = instance.external_url or data.get("url")
    validation_errors: Dict[str, ValidationError] = {}
    if not number:
        validation_errors["number"] = ValidationError(
            "Number need to be set after update operation.",
            code=InvoiceErrorCode.NUMBER_NOT_SET.value,
        )
    if not url:
        validation_errors["url"] = ValidationError(
            "URL need to be set after update operation.",
            code=InvoiceErrorCode.URL_NOT_SET.value,
        )
    if validation_errors:
        raise ValidationError(validation_errors)
    return data