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

org.knowm.xchange.coinbaseex.dto.account.CoinbaseExSendMoneyRequest Maven / Gradle / Ivy

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 + '\''
        + '}';
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy