org.knowm.xchange.coinbaseex.dto.account.CoinbaseExSendMoneyRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-coinbaseex Show documentation
Show all versions of xchange-coinbaseex Show documentation
XChange implementation for Coinbase (Exchange)
The newest version!
package org.knowm.xchange.coinbaseex.dto.account;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonProperty;
public class CoinbaseExSendMoneyRequest {
@JsonProperty("type")
private final String type = "send";
@JsonProperty("to")
private final String to;
@JsonProperty("amount")
private final BigDecimal amount;
@JsonProperty("currency")
private final String currency;
public CoinbaseExSendMoneyRequest(String to, BigDecimal amount, String currency) {
this.to = to;
this.amount = amount;
this.currency = currency;
}
public String getType() {
return type;
}
public String getTo() {
return to;
}
public BigDecimal getAmount() {
return amount;
}
public String getCurrency() {
return currency;
}
@Override
public String toString() {
return "CoinbaseExSendMoneyRequest{" + "type='" + type + '\'' + ", to='" + to + '\'' + ", amount=" + amount + ", currency='" + currency + '\''
+ '}';
}
}