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

br.com.moip.resource.Balances Maven / Gradle / Ivy

There is a newer version: 4.7.6
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy