br.com.moip.resource.Balances 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
Java SDK for Moip v2 APIs
package br.com.moip.resource;
import java.util.List;
public class Balances {
private List unavailable;
private List future;
private List current;
public Balance getUnavailable() { return unavailable.get(0); }
public Balance getFuture() { return future.get(0); }
public Balance getCurrent() { return current.get(0); }
public class Balance {
public int amount;
public String currency;
public int getAmount() { return amount; }
public String getCurrency() { return currency; }
@Override
public String toString() {
return new StringBuilder()
.append('{')
.append("amount=").append(amount)
.append(",currency=").append(currency)
.append('}').toString();
}
}
@Override
public String toString() {
return new StringBuilder("Balances{")
.append("unavailable=").append(unavailable)
.append("future").append(future)
.append("current").append(current)
.append('}').toString();
}
}