co.omise.resources.BalanceResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of omise-java Show documentation
Show all versions of omise-java Show documentation
Java bindings for the Omise API
package co.omise.resources;
import co.omise.Endpoint;
import co.omise.models.Balance;
import okhttp3.OkHttpClient;
import java.io.IOException;
public class BalanceResource extends Resource {
public BalanceResource(OkHttpClient httpClient) {
super(httpClient);
}
public Balance get() throws IOException {
return httpGet(buildUrl(Endpoint.API, "balance")).returns(Balance.class);
}
}