Class Balance

All Implemented Interfaces:
StripeObjectInterface

public class Balance extends ApiResource
  • Constructor Details

    • Balance

      public Balance()
  • Method Details

    • retrieve

      public static Balance retrieve() 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
    • retrieve

      public static Balance retrieve(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
    • retrieve

      public static Balance retrieve(Map<String,Object> 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
    • 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
    • getAvailable

      public List<Balance.Money> getAvailable()
      Funds that are available to be transferred or paid out, whether automatically by Stripe or explicitly via the Transfers API or Payouts API. The available balance for each currency and payment type can be found in the source_types property.
    • getConnectReserved

      public List<Balance.Money> getConnectReserved()
      Funds held due to negative balances on connected Custom accounts. The connect reserve balance for each currency and payment type can be found in the source_types property.
    • getInstantAvailable

      public List<Balance.Money> getInstantAvailable()
      Funds that can be paid out using Instant Payouts.
    • getIssuing

      public Balance.Details getIssuing()
    • getLivemode

      public Boolean getLivemode()
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • getObject

      public String getObject()
      String representing the object's type. Objects of the same type share the same value.

      Equal to balance.

    • getPending

      public List<Balance.Money> getPending()
      Funds that are not yet available in the balance, due to the 7-day rolling pay cycle. The pending balance for each currency, and for each payment type, can be found in the source_types property.
    • setAvailable

      public void setAvailable(List<Balance.Money> available)
      Funds that are available to be transferred or paid out, whether automatically by Stripe or explicitly via the Transfers API or Payouts API. The available balance for each currency and payment type can be found in the source_types property.
    • setConnectReserved

      public void setConnectReserved(List<Balance.Money> connectReserved)
      Funds held due to negative balances on connected Custom accounts. The connect reserve balance for each currency and payment type can be found in the source_types property.
    • setInstantAvailable

      public void setInstantAvailable(List<Balance.Money> instantAvailable)
      Funds that can be paid out using Instant Payouts.
    • setIssuing

      public void setIssuing(Balance.Details issuing)
    • setLivemode

      public void setLivemode(Boolean livemode)
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • setObject

      public void setObject(String object)
      String representing the object's type. Objects of the same type share the same value.

      Equal to balance.

    • setPending

      public void setPending(List<Balance.Money> pending)
      Funds that are not yet available in the balance, due to the 7-day rolling pay cycle. The pending balance for each currency, and for each payment type, can be found in the source_types property.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object