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.
The top-level available and pending comprise your "payments
balance."
Related guide: Balances and settlement time, Understanding Connect account balances
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about Available, please refer to the API Reference.static classFor more details about ConnectReserved, please refer to the API Reference.static classFor more details about InstantAvailable, please refer to the API Reference.static classFor more details about Issuing, please refer to the API Reference.static classFor more details about Pending, please refer to the API Reference.static classFor more details about RefundAndDisputePrefunding, please refer to the API Reference.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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanAvailable 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 valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.String representing the object's type.Funds that aren't available in the balance yet.inthashCode()static Balanceretrieve()Retrieves the current account balance, based on the authentication that was used to make the request.static Balanceretrieve(RequestOptions options) Retrieves the current account balance, based on the authentication that was used to make the request.static Balanceretrieve(BalanceRetrieveParams params, RequestOptions options) Retrieves the current account balance, based on the authentication that was used to make the request.static Balanceretrieve(Map<String, Object> params, RequestOptions options) Retrieves the current account balance, based on the authentication that was used to make the request.voidsetAvailable(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.voidsetConnectReserved(List<Balance.ConnectReserved> connectReserved) Funds held due to negative balances on connected accounts where account.controller.requirement_collection isapplication, which includes Custom accounts.voidsetInstantAvailable(List<Balance.InstantAvailable> instantAvailable) Funds that you can pay out using Instant Payouts.voidsetIssuing(Balance.Issuing issuing) voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidString representing the object's type.voidsetPending(List<Balance.Pending> pending) Funds that aren't available in the balance yet.voidsetRefundAndDisputePrefunding(Balance.RefundAndDisputePrefunding refundAndDisputePrefunding) voidsetResponseGetter(StripeResponseGetter responseGetter) Amount coming from FPX, a Malaysian payment method.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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 coming from FPX, a Malaysian payment method.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance 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_typesproperty. -
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_typesproperty. -
getInstantAvailable
Funds that you can pay out using Instant Payouts. -
getIssuing
-
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif 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_typesproperty. -
getRefundAndDisputePrefunding
-
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_typesproperty. -
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_typesproperty. -
setInstantAvailable
Funds that you can pay out using Instant Payouts. -
setIssuing
-
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif 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_typesproperty. -
setRefundAndDisputePrefunding
public void setRefundAndDisputePrefunding(Balance.RefundAndDisputePrefunding refundAndDisputePrefunding) -
equals
-
canEqual
-
hashCode
public int hashCode()
-