Return propertype enum typescript

I have some function like this

  public CustomerEditType(customer: Customer): CustomerEditType {
    if (customer.company) {
      if (customer.vatNumber) {
        return CustomerEditType.COMPANYVAT;
      } else {
        return CustomerEditType.COMPANYNOVAT;
      }
    } else {
      return CustomerEditType.PRIVATE;
    }
  }

The problem I have here i dont know how to shorter this function, maybe some inline?