Package io.voucherify.client.model
Class User
java.lang.Object
io.voucherify.client.model.User
Details about the user.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic UserCreate an instance of User given an JSON stringgetEmail()The email address of the user who has been assigned to the project.The first name of the user who has been assigned to the project.getId()The unique identifier of the user who has been assigned to the project.Determines if the user is the owner for the organization in Voucherify.The last name of the user who has been assigned to the project.getLogin()The login data of the user who has been assigned to the project.Lists key-value pairs, where the key is the project to which the user is assigned.inthashCode()putProjectsItem(String key, String projectsItem) voidvoidsetFirstName(String firstName) voidvoidsetIsOwner(Boolean isOwner) voidsetLastName(String lastName) voidvoidsetProjects(Map<String, String> projects) toJson()Convert an instance of User to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_LOGIN
- See Also:
-
SERIALIZED_NAME_EMAIL
- See Also:
-
SERIALIZED_NAME_FIRST_NAME
- See Also:
-
SERIALIZED_NAME_LAST_NAME
- See Also:
-
SERIALIZED_NAME_PROJECTS
- See Also:
-
SERIALIZED_NAME_IS_OWNER
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
User
public User()
-
-
Method Details
-
id
-
getId
The unique identifier of the user who has been assigned to the project.- Returns:
- id
-
setId
-
login
-
getLogin
The login data of the user who has been assigned to the project.- Returns:
- login
-
setLogin
-
email
-
getEmail
The email address of the user who has been assigned to the project.- Returns:
-
setEmail
-
firstName
-
getFirstName
The first name of the user who has been assigned to the project.- Returns:
- firstName
-
setFirstName
-
lastName
-
getLastName
The last name of the user who has been assigned to the project.- Returns:
- lastName
-
setLastName
-
projects
-
putProjectsItem
-
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
-
isOwner
-
getIsOwner
Determines if the user is the owner for the organization in Voucherify.- Returns:
- isOwner
-
setIsOwner
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
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
Convert an instance of User to an JSON string- Returns:
- JSON string
-