com.xeiam.xchange.quoine.dto.account.FiatAccount Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-quoine Show documentation
Show all versions of xchange-quoine Show documentation
XChange implementation for the Quoine Exchange
The newest version!
package com.xeiam.xchange.quoine.dto.account;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author timmolter
*/
public final class FiatAccount {
private final Integer id;
private final String currency;
private final String currencySymbol;
private final BigDecimal balance;
private final String sendToBtcAddress;
private final String pusherChannel;
private final BigDecimal lowestOfferInterestRate;
private final BigDecimal highestOfferInterestRate;
private BigDecimal freeBalance;
private Bank bank;
/**
* Constructor
*
* @param id
* @param currency
* @param currencySymbol
* @param balance
* @param sendToBtcAddress
* @param pusherChannel
* @param lowestOfferInterestRate
* @param highestOfferInterestRate
* @param freeBalance
* @param bank
*/
public FiatAccount(@JsonProperty("id") Integer id, @JsonProperty("currency") String currency,
@JsonProperty("currency_symbol") String currencySymbol, @JsonProperty("balance") BigDecimal balance,
@JsonProperty("send_to_btc_address") String sendToBtcAddress, @JsonProperty("pusher_channel") String pusherChannel,
@JsonProperty("lowest_offer_interest_rate") BigDecimal lowestOfferInterestRate,
@JsonProperty("highest_offer_interest_rate") BigDecimal highestOfferInterestRate, @JsonProperty("free_balance") BigDecimal freeBalance,
@JsonProperty("bank") Bank bank) {
this.id = id;
this.currency = currency;
this.currencySymbol = currencySymbol;
this.balance = balance;
this.sendToBtcAddress = sendToBtcAddress;
this.pusherChannel = pusherChannel;
this.lowestOfferInterestRate = lowestOfferInterestRate;
this.highestOfferInterestRate = highestOfferInterestRate;
this.freeBalance = freeBalance;
this.bank = bank;
}
public BigDecimal getFreeBalance() {
return freeBalance;
}
public void setFreeBalance(BigDecimal freeBalance) {
this.freeBalance = freeBalance;
}
public Bank getBank() {
return bank;
}
public void setBank(Bank bank) {
this.bank = bank;
}
public Integer getId() {
return id;
}
public String getCurrency() {
return currency;
}
public String getCurrencySymbol() {
return currencySymbol;
}
public BigDecimal getBalance() {
return balance;
}
public String getSendToBtcAddress() {
return sendToBtcAddress;
}
public String getPusherChannel() {
return pusherChannel;
}
public BigDecimal getLowestOfferInterestRate() {
return lowestOfferInterestRate;
}
public BigDecimal getHighestOfferInterestRate() {
return highestOfferInterestRate;
}
@Override
public String toString() {
return "FiatAccount [id=" + id + ", currency=" + currency + ", currencySymbol=" + currencySymbol + ", balance=" + balance + ", sendToBtcAddress="
+ sendToBtcAddress + ", pusherChannel=" + pusherChannel + ", lowestOfferInterestRate=" + lowestOfferInterestRate
+ ", highestOfferInterestRate=" + highestOfferInterestRate + ", freeBalance=" + freeBalance + ", bank=" + bank + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy