![JAR search and dependency download from the Maven repository](/logo.png)
org.oxerr.peatio.rest.dto.Deposit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of peatio-client-rest Show documentation
Show all versions of peatio-client-rest Show documentation
Client for <a href="http://peat.io">Peatio</a> RESTful API.
The newest version!
package org.oxerr.peatio.rest.dto;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Deposit information.
*/
public class Deposit extends BaseObject {
private final String currency;
private final BigDecimal amount;
private final BigDecimal fee;
private final String txid;
private final Date createdAt;
private final int confirmations;
private final Date doneAt;
private final String state;
public Deposit(@JsonProperty("currency") String currency,
@JsonProperty("amount") BigDecimal amount,
@JsonProperty("fee") BigDecimal fee,
@JsonProperty("txid") String txid,
@JsonProperty("created_at")
@JsonFormat(pattern="yyyy-MM-dd'T'HH:mm:ssXXX")
Date createdAt,
@JsonProperty("confirmations") int confirmations,
@JsonProperty("done_at")
@JsonFormat(pattern="yyyy-MM-dd'T'HH:mm:ssXXX")
Date doneAt,
@JsonProperty("state") String state) {
this.currency = currency;
this.amount = amount;
this.fee = fee;
this.txid = txid;
this.createdAt = createdAt;
this.confirmations = confirmations;
this.doneAt = doneAt;
this.state = state;
}
public String getCurrency() {
return currency;
}
public BigDecimal getAmount() {
return amount;
}
public BigDecimal getFee() {
return fee;
}
public String getTxid() {
return txid;
}
public Date getCreatedAt() {
return createdAt;
}
public int getConfirmations() {
return confirmations;
}
public Date getDoneAt() {
return doneAt;
}
public String getState() {
return state;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy