package org.knowm.xchange.bitfinex.v1.dto.account; import java.math.BigDecimal; import java.util.Date; import com.fasterxml.jackson.annotation.JsonProperty; public class BitfinexDepositWithdrawalHistoryResponse { @JsonProperty("id") private long id; @JsonProperty("currency") private String currency; @JsonProperty("method") private String method; @JsonProperty("type") private Type type; @JsonProperty("amount") private BigDecimal amount; @JsonProperty("description") private String description; @JsonProperty("address") private String address; @JsonProperty("status") private String status; @JsonProperty("timestamp") private BigDecimal timestamp; @Override public String toString() { return "BitfinexDepositWithdrawalHistoryResponse [id=" + id + ", currency=" + currency + ", method=" + method + ", type=" + type + ", amount=" + amount + ", description=" + description + ", address=" + address + ", status=" + status + ", timestamp=" + getTimestamp() + "]"; } public long getId() { return id; } public String getCurrency() { return currency; } public String getMethod() { return method; } public Type getType() { return type; } public BigDecimal getAmount() { return amount; } public String getDescription() { return description; } public String getAddress() { return address; } public String getStatus() { return status; } public Date getTimestamp() { return new Date(timestamp.scaleByPowerOfTen(3).longValue()); } public static enum Type { WITHDRAWAL, DEPOSIT; } }