Package io.voucherify.client.model
Class ManagementProjectsUsersInviteCreateRequestBody
java.lang.Object
io.voucherify.client.model.ManagementProjectsUsersInviteCreateRequestBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ManagementProjectsUsersInviteCreateRequestBody
extends Object
Request body schema for **POST** `/management/v1/projects/users/invite`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of ManagementProjectsUsersInviteCreateRequestBody given an JSON stringgetEmail()Email address to which the invitation will be sent.First name of the person who will receive the invitation.Last name of the person who will receive the invitation.In the key, provide the project ID to which the new user will be assigned.inthashCode()putProjectsItem(String key, String projectsItem) voidvoidsetFirstName(String firstName) voidsetLastName(String lastName) voidsetProjects(Map<String, String> projects) toJson()Convert an instance of ManagementProjectsUsersInviteCreateRequestBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_EMAIL
- See Also:
-
SERIALIZED_NAME_FIRST_NAME
- See Also:
-
SERIALIZED_NAME_LAST_NAME
- See Also:
-
SERIALIZED_NAME_PROJECTS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ManagementProjectsUsersInviteCreateRequestBody
public ManagementProjectsUsersInviteCreateRequestBody()
-
-
Method Details
-
email
-
getEmail
Email address to which the invitation will be sent. Must be a valid email address.- Returns:
-
setEmail
-
firstName
-
getFirstName
First name of the person who will receive the invitation. The name will be used in the user profile.- Returns:
- firstName
-
setFirstName
-
lastName
-
getLastName
Last name of the person who will receive the invitation. The name will be used in the user profile.- Returns:
- lastName
-
setLastName
-
projects
-
putProjectsItem
public ManagementProjectsUsersInviteCreateRequestBody putProjectsItem(String key, String projectsItem) -
getProjects
In the key, provide the project ID to which the new user will be assigned. In the value, provide the role which the user will have in the project. The predefined Voucherify roles are: `ADMIN`, `USER`, `VIEWER`, `MERCHANT`, `USER_RESTRICTED` (for the Areas and Stores, an Enterprise feature). Send a custom role ID (Enterprise feature) to assign a custom role.- Returns:
- projects
-
setProjects
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static ManagementProjectsUsersInviteCreateRequestBody fromJson(String jsonString) throws IOException Create an instance of ManagementProjectsUsersInviteCreateRequestBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ManagementProjectsUsersInviteCreateRequestBody
- Throws:
IOException- if the JSON string is invalid with respect to ManagementProjectsUsersInviteCreateRequestBody
-
toJson
Convert an instance of ManagementProjectsUsersInviteCreateRequestBody to an JSON string- Returns:
- JSON string
-