package ee.tuleva.onboarding.epis.contact;

import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Builder
// TODO: rename to ContactDetails
public class UserPreferences {

  public enum ContactPreferenceType {E, P} // E - email, P - postal

  private ContactPreferenceType contactPreference;

  private String districtCode;

  private String addressRow1;

  private String addressRow2;

  private String addressRow3;

  private String postalIndex;

  private String country;

  public enum LanguagePreferenceType {EST, RUS, ENG}

  private LanguagePreferenceType languagePreference;

  private String noticeNeeded; // boolean { 'Y', 'N' }

  private String email;

  public static UserPreferences defaultUserPreferences() {
    return builder()
        .addressRow1("Tuleva, Telliskivi 60")
        .addressRow2("TALLINN")
        .addressRow3("TALLINN")
        .country("EE")
        .postalIndex("10412")
        .districtCode("0784")
        .contactPreference(ContactPreferenceType.valueOf("E"))
        .languagePreference(LanguagePreferenceType.valueOf("EST"))
        .noticeNeeded("Y")
        .email("tuleva@tuleva.ee")
        .build();
  }

}

@@ -55,85 +55,74 @@
 bok.
-Builder;%0Aimport lombok.Getter;%0Aimport lombok.Setter;%0A%0A@Getter%0A@Setter%0A@Builde
+*;%0A%0A@Getter%0A@Setter%0A@Builder%0A@NoArgsConstructor%0A@AllArgsConstructo
 r%0A//

Fix mandate error