
com.xeiam.xchange.ripple.dto.trade.RippleOrderDetails Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-ripple Show documentation
Show all versions of xchange-ripple Show documentation
XChange implementation for the Ripple Network
The newest version!
package com.xeiam.xchange.ripple.dto.trade;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.xeiam.xchange.ripple.dto.RippleAmount;
import com.xeiam.xchange.ripple.dto.RippleCommon;
public class RippleOrderDetails extends RippleCommon {
@JsonProperty("timestamp")
public Date timestamp;
@JsonProperty("fee")
public BigDecimal fee;
@JsonProperty("action")
public String action;
@JsonProperty("direction")
public String direction;
@JsonProperty("order")
public RippleOrderResponseBody order;
@JsonProperty("balance_changes")
public List balanceChanges;
@JsonProperty("order_changes")
public List orderChanges;
public Date getTimestamp() {
return timestamp;
}
public void setTimestamp(final Date value) {
this.timestamp = value;
}
public BigDecimal getFee() {
return fee;
}
public void setFee(final BigDecimal value) {
fee = value;
}
public String getAction() {
return action;
}
public void setAction(final String value) {
action = value;
}
public String getDirection() {
return direction;
}
public void setDirection(final String value) {
this.direction = value;
}
public void setOrder(final RippleOrderResponseBody value) {
order = value;
}
public List getOrderChanges() {
return orderChanges;
}
public List getBalanceChanges() {
return balanceChanges;
}
public void setBalanceChanges(final List value) {
balanceChanges = value;
}
public RippleOrderResponseBody getOrder() {
return order;
}
public void setOrderChanges(final List value) {
orderChanges = value;
}
@Override
public String toString() {
return String.format(
"%s [hash=%s, ledger=%d, validated=%s, success=%s timestamp=%s, fee=%s, action=%s, direction=%s, order=%s, balance_changes=%s order_changes=%s]",
getClass().getSimpleName(), hash, ledger, validated, success, timestamp, fee, action, direction, order, balanceChanges, orderChanges);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy