Class ManagementProjectsCreateRequestBodyUsersItem

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ManagementProjectsCreateRequestBodyUsersItem extends Object
Contains details about the users who will be assigned to the project. Only the `id` and `role` or `login` and `role` should be provided in the request.
  • Field Details

  • Constructor Details

    • ManagementProjectsCreateRequestBodyUsersItem

      public ManagementProjectsCreateRequestBodyUsersItem()
  • Method Details

    • id

    • getId

      @Nullable public String getId()
      The unique identifier of the user who will be assigned to the project. It can be found in Team Settings > Team > Edit member. **Required** with the `role` string. Do **not** use with the `login` string.
      Returns:
      id
    • setId

      public void setId(String id)
    • login

    • getLogin

      @Nullable public String getLogin()
      The login data of the user who will be assigned to the project. **Required** with the `role` string. Do **not** use with the `id` string.
      Returns:
      login
    • setLogin

      public void setLogin(String login)
    • role

    • getRole

      @Nonnull public String getRole()
      The role of the user to be added. It can be one of the following predefined roles: `ADMIN`, `USER`, `VIEWER`, `MERCHANT` or an ID of a custom role.
      Returns:
      role
    • setRole

      public void setRole(String role)
    • 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 ManagementProjectsCreateRequestBodyUsersItem fromJson(String jsonString) throws IOException
      Create an instance of ManagementProjectsCreateRequestBodyUsersItem given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of ManagementProjectsCreateRequestBodyUsersItem
      Throws:
      IOException - if the JSON string is invalid with respect to ManagementProjectsCreateRequestBodyUsersItem
    • toJson

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