public class Balance extends ApiResource
Modifier and Type | Class and Description |
---|---|
static class |
Balance.Money |
ApiResource.RequestMethod, ApiResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
Balance() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.util.List<Balance.Money> |
getAvailable()
Funds that are available to be transferred or paid out, whether automatically by Stripe or
explicitly via the [Transfers API](#transfers) or [Payouts API](#payouts).
|
java.util.List<Balance.Money> |
getConnectReserved()
Funds held due to negative balances on connected Custom accounts.
|
java.lang.Boolean |
getLivemode()
Has the value `true` if the object exists in live mode or the value `false` if the object
exists in test mode.
|
java.lang.String |
getObject()
String representing the object's type.
|
java.util.List<Balance.Money> |
getPending()
Funds that are not yet available in the balance, due to the 7-day rolling pay cycle.
|
int |
hashCode() |
static Balance |
retrieve()
Retrieves the current account balance, based on the authentication that was used to make the
request.
|
static Balance |
retrieve(BalanceRetrieveParams params,
RequestOptions options)
Retrieves the current account balance, based on the authentication that was used to make the
request.
|
static Balance |
retrieve(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieves the current account balance, based on the authentication that was used to make the
request.
|
static Balance |
retrieve(RequestOptions options)
Retrieves the current account balance, based on the authentication that was used to make the
request.
|
void |
setAvailable(java.util.List<Balance.Money> available)
Funds that are available to be transferred or paid out, whether automatically by Stripe or
explicitly via the [Transfers API](#transfers) or [Payouts API](#payouts).
|
void |
setConnectReserved(java.util.List<Balance.Money> connectReserved)
Funds held due to negative balances on connected Custom accounts.
|
void |
setLivemode(java.lang.Boolean livemode)
Has the value `true` if the object exists in live mode or the value `false` if the object
exists in test mode.
|
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setPending(java.util.List<Balance.Money> pending)
Funds that are not yet available in the balance, due to the 7-day rolling pay cycle.
|
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, multipartRequest, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public static Balance retrieve() throws StripeException
StripeException
public static Balance retrieve(RequestOptions options) throws StripeException
StripeException
public static Balance retrieve(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static Balance retrieve(BalanceRetrieveParams params, RequestOptions options) throws StripeException
StripeException
public java.util.List<Balance.Money> getAvailable()
public java.util.List<Balance.Money> getConnectReserved()
public java.lang.Boolean getLivemode()
public java.lang.String getObject()
Equal to `balance`.
public java.util.List<Balance.Money> getPending()
public void setAvailable(java.util.List<Balance.Money> available)
public void setConnectReserved(java.util.List<Balance.Money> connectReserved)
public void setLivemode(java.lang.Boolean livemode)
public void setObject(java.lang.String object)
Equal to `balance`.
public void setPending(java.util.List<Balance.Money> pending)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object