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

org.knowm.xchange.cryptonit2.dto.account.DepositTransaction Maven / Gradle / Ivy

There is a newer version: 5.0.3
Show newest version
package org.knowm.xchange.cryptonit2.dto.account;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;

public class DepositTransaction {

  private BigDecimal amount;
  private Integer confirmations;
  private String address;

  public DepositTransaction(
      @JsonProperty("amount") BigDecimal amount,
      @JsonProperty("confirmations") Integer confirmations,
      @JsonProperty("address") String address) {
    this.amount = amount;
    this.confirmations = confirmations;
    this.address = address;
  }

  public BigDecimal getAmount() {
    return amount;
  }

  public Integer getConfirmations() {
    return confirmations;
  }

  public String getAddress() {
    return address;
  }

  @Override
  public String toString() {
    return String.format(
        "DepositTransaction{amount=%s, confirmations=%d, address='%s'}",
        amount, confirmations, address);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy