Class User

java.lang.Object
io.voucherify.client.model.User

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class User extends Object
Details about the user.
  • Field Details

  • Constructor Details

    • User

      public User()
  • Method Details

    • id

      public User id(String id)
    • getId

      @Nullable public String getId()
      The unique identifier of the user who has been assigned to the project.
      Returns:
      id
    • setId

      public void setId(String id)
    • login

      public User login(String login)
    • getLogin

      @Nullable public String getLogin()
      The login data of the user who has been assigned to the project.
      Returns:
      login
    • setLogin

      public void setLogin(String login)
    • email

      public User email(String email)
    • getEmail

      @Nullable public String getEmail()
      The email address of the user who has been assigned to the project.
      Returns:
      email
    • setEmail

      public void setEmail(String email)
    • firstName

      public User firstName(String firstName)
    • getFirstName

      @Nullable public String getFirstName()
      The first name of the user who has been assigned to the project.
      Returns:
      firstName
    • setFirstName

      public void setFirstName(String firstName)
    • lastName

      public User lastName(String lastName)
    • getLastName

      @Nullable public String getLastName()
      The last name of the user who has been assigned to the project.
      Returns:
      lastName
    • setLastName

      public void setLastName(String lastName)
    • projects

      public User projects(Map<String,String> projects)
    • putProjectsItem

      public User putProjectsItem(String key, String projectsItem)
    • getProjects

      @Nullable public Map<String,String> getProjects()
      Lists key-value pairs, where the key is the project to which the user is assigned. The value is the role assigned in a given project. The predefined Voucherify roles are: `ADMIN`, `USER`, `VIEWER`, `MERCHANT`, `USER_RESTRICTED` (for the Areas and Stores, an Enterprise feature).
      Returns:
      projects
    • setProjects

      public void setProjects(Map<String,String> projects)
    • isOwner

      public User isOwner(Boolean isOwner)
    • getIsOwner

      @Nullable public Boolean getIsOwner()
      Determines if the user is the owner for the organization in Voucherify.
      Returns:
      isOwner
    • setIsOwner

      public void setIsOwner(Boolean isOwner)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromJson

      public static User fromJson(String jsonString) throws IOException
      Create an instance of User given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of User
      Throws:
      IOException - if the JSON string is invalid with respect to User
    • toJson

      public String toJson()
      Convert an instance of User to an JSON string
      Returns:
      JSON string