All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.blockchyp.client.dto.MerchantUser Maven / Gradle / Ivy

Go to download

This is the recommended means for Java developers to access the BlockChyp gateway and BlockChyp terminals.

There is a newer version: 2.19.0
Show newest version
/**
 * Copyright 2019-2024 BlockChyp, Inc. All rights reserved. Use of this code is governed
 * by a license that can be found in the LICENSE file.
 *
 * This file was generated automatically by the BlockChyp SDK Generator. Changes to this
 * file will be lost every time the code is regenerated.
 */

package com.blockchyp.client.dto;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.ArrayList;
import java.util.Collection;

/**
 * Details about a merchant user.
 */
@SuppressWarnings({"rawtypes", "unchecked"})
public class MerchantUser {

     private boolean test;

     private String id;

     private String firstName;

     private String lastName;

     private String email;

     private String status;

     private String type;

     private Collection roles;

     private boolean locked;

    /**
     * Sets whether or not these results are for test or live merchants.
     * @param value whether or not these results are for test or live merchants.
     */
     public void setTest(boolean value) {
          this.test = value;
     }

    /**
     * Gets whether or not these results are for test or live merchants.
     * @return whether or not these results are for test or live merchants.
     */
     @JsonProperty("test")
     public boolean isTest() {
          return this.test;
     }

    /**
     * Sets the user's primary key.
     * @param value the user's primary key.
     */
     public void setId(String value) {
          this.id = value;
     }

    /**
     * Gets the user's primary key.
     * @return the user's primary key.
     */
     @JsonProperty("id")
     public String getId() {
          return this.id;
     }

    /**
     * Sets the user's first name.
     * @param value the user's first name.
     */
     public void setFirstName(String value) {
          this.firstName = value;
     }

    /**
     * Gets the user's first name.
     * @return the user's first name.
     */
     @JsonProperty("firstName")
     public String getFirstName() {
          return this.firstName;
     }

    /**
     * Sets the user's last name.
     * @param value the user's last name.
     */
     public void setLastName(String value) {
          this.lastName = value;
     }

    /**
     * Gets the user's last name.
     * @return the user's last name.
     */
     @JsonProperty("lastName")
     public String getLastName() {
          return this.lastName;
     }

    /**
     * Sets the user's email address.
     * @param value the user's email address.
     */
     public void setEmail(String value) {
          this.email = value;
     }

    /**
     * Gets the user's email address.
     * @return the user's email address.
     */
     @JsonProperty("email")
     public String getEmail() {
          return this.email;
     }

    /**
     * Sets the user account status.
     * @param value the user account status.
     */
     public void setStatus(String value) {
          this.status = value;
     }

    /**
     * Gets the user account status.
     * @return the user account status.
     */
     @JsonProperty("status")
     public String getStatus() {
          return this.status;
     }

    /**
     * Sets the type of user account.
     * @param value the type of user account.
     */
     public void setType(String value) {
          this.type = value;
     }

    /**
     * Gets the type of user account.
     * @return the type of user account.
     */
     @JsonProperty("type")
     public String getType() {
          return this.type;
     }

    /**
     * Sets the role codes assigned to this user.
     * @param value the role codes assigned to this user.
     */
     public void setRoles(Collection value) {
          this.roles = value;
     }

    /**
     * Gets the role codes assigned to this user.
     * @return the role codes assigned to this user.
     */
     @JsonProperty("roles")
     public Collection getRoles() {
          return this.roles;
     }

    /**
     * Sets whether or not this user account is locked.
     * @param value whether or not this user account is locked.
     */
     public void setLocked(boolean value) {
          this.locked = value;
     }

    /**
     * Gets whether or not this user account is locked.
     * @return whether or not this user account is locked.
     */
     @JsonProperty("locked")
     public boolean isLocked() {
          return this.locked;
     }

    /**
     * Adds a the role codes assigned to this user.
     * @param value the role codes assigned to this user.
     */
     public void addRole(String value) {
          if (this.roles == null) {
               this.roles = new ArrayList();
          }
          this.roles.add(value);
     }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy