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

org.knowm.xchange.bitmex.dto.account.BitmexAccount Maven / Gradle / Ivy

There is a newer version: 5.2.0
Show newest version
package org.knowm.xchange.bitmex.dto.account;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.HashMap;
import java.util.Map;
import org.knowm.xchange.bitmex.AbstractHttpResponseAware;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
  "id",
  "ownerId",
  "firstname",
  "lastname",
  "username",
  "email",
  "phone",
  "created",
  "lastUpdated",
  "preferences",
  "TFAEnabled",
  "affiliateID",
  "pgpPubKey",
  "country"
})
public final class BitmexAccount extends AbstractHttpResponseAware {

  @JsonProperty("id")
  private Integer id;

  @JsonProperty("ownerId")
  private Integer ownerId;

  @JsonProperty("firstname")
  private String firstname;

  @JsonProperty("lastname")
  private String lastname;

  @JsonProperty("username")
  private String username;

  @JsonProperty("email")
  private String email;

  @JsonProperty("phone")
  private String phone;

  @JsonProperty("created")
  private String created;

  @JsonProperty("lastUpdated")
  private String lastUpdated;

  @JsonProperty("preferences")
  private BitmexAccountPreferences preferences;

  @JsonProperty("TFAEnabled")
  private String tFAEnabled;

  @JsonProperty("affiliateID")
  private String affiliateID;

  @JsonProperty("pgpPubKey")
  private String pgpPubKey;

  @JsonProperty("country")
  private String country;

  @JsonIgnore private Map additionalProperties = new HashMap<>();

  public Integer getId() {
    return id;
  }

  public Integer getOwnerId() {
    return ownerId;
  }

  public String getFirstname() {
    return firstname;
  }

  public String getLastname() {
    return lastname;
  }

  public String getUsername() {
    return username;
  }

  public String getEmail() {
    return email;
  }

  public String getPhone() {
    return phone;
  }

  public String getCreated() {
    return created;
  }

  public String getLastUpdated() {
    return lastUpdated;
  }

  public BitmexAccountPreferences getPreferences() {
    return preferences;
  }

  public String gettFAEnabled() {
    return tFAEnabled;
  }

  public String getAffiliateID() {
    return affiliateID;
  }

  public String getPgpPubKey() {
    return pgpPubKey;
  }

  public String getCountry() {
    return country;
  }

  public Map getAdditionalProperties() {
    return additionalProperties;
  }

  @Override
  public String toString() {
    return "BitmexAccount{"
        + "id="
        + id
        + ", ownerId="
        + ownerId
        + ", firstname='"
        + firstname
        + '\''
        + ", lastname='"
        + lastname
        + '\''
        + ", username='"
        + username
        + '\''
        + ", email='"
        + email
        + '\''
        + ", phone='"
        + phone
        + '\''
        + ", created='"
        + created
        + '\''
        + ", lastUpdated='"
        + lastUpdated
        + '\''
        + ", preferences="
        + preferences
        + ", tFAEnabled='"
        + tFAEnabled
        + '\''
        + ", affiliateID='"
        + affiliateID
        + '\''
        + ", pgpPubKey='"
        + pgpPubKey
        + '\''
        + ", country='"
        + country
        + '\''
        + ", additionalProperties="
        + additionalProperties
        + '}';
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy