Class UserCreatedEventBody

java.lang.Object
es.kukenan.smartfi.events.common.AbstractEventBody
es.kukenan.smartfi.microservice.clients.events.BaseUsersEventBody
es.kukenan.smartfi.microservice.clients.events.created.UserCreatedEventBody

public class UserCreatedEventBody extends BaseUsersEventBody
Base class for the body of any Users micro-service event.
  • Field Details

    • type

      @NotNull private @javax.validation.constraints.NotNull int type
      User type.
    • state

      @NotNull private @javax.validation.constraints.NotNull int state
      User state.
    • language

      private int language
      Client language (see https://en.wikipedia.org/wiki/IETF_language_tag).
    • gender

      private int gender
      Client gender.
    • civilStatus

      private int civilStatus
      Client civil status.
    • name

      @NotBlank private @NotBlank String name
      User name.
    • surname

      private String surname
      User surname.
    • documentTypeId

      private int documentTypeId
      Type of user document.
    • documentId

      private String documentId
      User document id.
    • birthdate

      private LocalDate birthdate
      User birthdate.
    • email

      private String email
      User email.
    • phone

      private String phone
      User phone.
    • phonePrefix

      private String phonePrefix
      User phone prefix.
    • onboardingId

      private String onboardingId
      Onboarding identifier, may be null if the user is not creating by an onboarding process.
    • natureType

      private String natureType
      Onboarding identifier, may be null if the user is not creating by an onboarding process.
    • userBackoffice

      private List<UserBackoffice> userBackoffice
      list of user back office identifier.
    • userCode

      private Integer userCode
      User code.
    • address

      private String address
      User address.
    • nationality

      private String nationality
      User nationality.
  • Constructor Details

    • UserCreatedEventBody

      public UserCreatedEventBody(String id, int type, int state, int language, int gender, int civilStatus, String name, String surname, int documentTypeId, String documentId, LocalDate birthdate, String email, String phone, String phonePrefix, String onboardingId, String natureType, List<UserBackoffice> userBackoffice, Integer userCode, String address, String nationality)
      Full state constructor.
      Parameters:
      id - user identifier.
      type - user identifier.
      state - user identifier.
      language - user language.
      gender - User gender.
      civilStatus - User civilStatus.
      name - user name.
      surname - user first surname.
      documentTypeId - user document type identifier.
      documentId - user document identifier.
      birthdate - user birth date.
      email - user email.
      phone - user phone.
      phonePrefix - user phone prefix.
      onboardingId - onboarding identifier, may be null if the user is not creating by an onboarding process.
      natureType - user nature type.
      userBackoffice - user back office identifier list.
      userCode - User unique code identifier.
      address - user address.
      nationality - user nationality.