Package com.stripe.model
Class Balance
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.Balance
- All Implemented Interfaces:
StripeActiveObject
,StripeObjectInterface
This is an object representing your Stripe balance. You can retrieve it to see the balance
currently on your Stripe account.
You can also retrieve the balance history, which contains a list of transactions that contributed to the balance (charges, payouts, and so forth).
The available and pending amounts for each currency are broken down further by payment source types.
Related guide: Understanding Connect account balances
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Amount for FPX.static class
Amount for FPX.static class
Amount for FPX.static class
Amount for FPX.Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Available funds that you can transfer or pay out automatically by Stripe or explicitly through the Transfers API or Payouts API.Funds held due to negative balances on connected accounts where account.controller.requirement_collection isapplication
, which includes Custom accounts.Funds that you can pay out using Instant Payouts.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.String representing the object's type.Funds that aren't available in the balance yet.int
hashCode()
static Balance
retrieve()
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.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
(Map<String, Object> params, RequestOptions options) Retrieves the current account balance, based on the authentication that was used to make the request.void
setAvailable
(List<Balance.Available> available) Available funds that you can transfer or pay out automatically by Stripe or explicitly through the Transfers API or Payouts API.void
setConnectReserved
(List<Balance.ConnectReserved> connectReserved) Funds held due to negative balances on connected accounts where account.controller.requirement_collection isapplication
, which includes Custom accounts.void
setInstantAvailable
(List<Balance.InstantAvailable> instantAvailable) Funds that you can pay out using Instant Payouts.void
setIssuing
(Balance.Issuing issuing) void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
String representing the object's type.void
setPending
(List<Balance.Pending> pending) Funds that aren't available in the balance yet.void
setResponseGetter
(StripeResponseGetter responseGetter) Amount for FPX.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
Balance
public Balance()
-
-
Method Details
-
retrieve
Retrieves the current account balance, based on the authentication that was used to make the request. For a sample request, see Accounting for negative balances.- Throws:
StripeException
-
retrieve
Retrieves the current account balance, based on the authentication that was used to make the request. For a sample request, see Accounting for negative balances.- Throws:
StripeException
-
retrieve
public static Balance retrieve(Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the current account balance, based on the authentication that was used to make the request. For a sample request, see Accounting for negative balances.- Throws:
StripeException
-
retrieve
public static Balance retrieve(BalanceRetrieveParams params, RequestOptions options) throws StripeException Retrieves the current account balance, based on the authentication that was used to make the request. For a sample request, see Accounting for negative balances.- Throws:
StripeException
-
setResponseGetter
Amount for FPX.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getAvailable
Available funds that you can transfer or pay out automatically by Stripe or explicitly through the Transfers API or Payouts API. You can find the available balance for each currency and payment type in thesource_types
property. -
getConnectReserved
Funds held due to negative balances on connected accounts where account.controller.requirement_collection isapplication
, which includes Custom accounts. You can find the connect reserve balance for each currency and payment type in thesource_types
property. -
getInstantAvailable
Funds that you can pay out using Instant Payouts. -
getIssuing
-
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
balance
. -
getPending
Funds that aren't available in the balance yet. You can find the pending balance for each currency and each payment type in thesource_types
property. -
setAvailable
Available funds that you can transfer or pay out automatically by Stripe or explicitly through the Transfers API or Payouts API. You can find the available balance for each currency and payment type in thesource_types
property. -
setConnectReserved
Funds held due to negative balances on connected accounts where account.controller.requirement_collection isapplication
, which includes Custom accounts. You can find the connect reserve balance for each currency and payment type in thesource_types
property. -
setInstantAvailable
Funds that you can pay out using Instant Payouts. -
setIssuing
-
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
balance
. -
setPending
Funds that aren't available in the balance yet. You can find the pending balance for each currency and each payment type in thesource_types
property. -
equals
-
canEqual
-
hashCode
public int hashCode()
-