com.banxa.model.TransactionFee Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
The Java SDK for integration with Banxa's API
The newest version!
package com.banxa.model;
import java.util.List;
import java.util.Objects;
public class TransactionFee {
private String fiatCode;
private String coinCode;
private List fees;
public TransactionFee() {
}
public TransactionFee(String fiatCode, String coinCode, List fees) {
this.fiatCode = fiatCode;
this.coinCode = coinCode;
this.fees = fees;
}
public String getFiatCode() {
return fiatCode;
}
public String getCoinCode() {
return coinCode;
}
public List getFees() {
return fees;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TransactionFee that = (TransactionFee) o;
return Objects.equals(getFiatCode(), that.getFiatCode()) && Objects.equals(getCoinCode(), that.getCoinCode());
}
@Override
public int hashCode() {
return Objects.hash(getFiatCode(), getCoinCode());
}
}