Package com.stripe.model
Class CashBalance
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.CashBalance
- All Implemented Interfaces:
StripeObjectInterface
A customer's
Cash balance
represents real funds. Customers can add funds to their cash
balance by sending a bank transfer. These funds can be used for payment and can eventually be
paid out to your bank account.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
A hash of all cash balances available to this customer.The ID of the customer whose cash balance this object represents.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.int
hashCode()
static CashBalance
Retrieves a customer’s cash balance.static CashBalance
retrieve
(String customer, RequestOptions options) Retrieves a customer’s cash balance.static CashBalance
retrieve
(String customer, CashBalanceRetrieveParams params, RequestOptions options) Retrieves a customer’s cash balance.static CashBalance
Retrieves a customer’s cash balance.void
setAvailable
(Map<String, Long> available) A hash of all cash balances available to this customer.void
setCustomer
(String customer) The ID of the customer whose cash balance this object represents.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
setSettings
(CashBalance.Settings settings) update
(CashBalanceUpdateParams params) Changes the settings on a customer’s cash balance.update
(CashBalanceUpdateParams params, RequestOptions options) Changes the settings on a customer’s cash balance.Changes the settings on a customer’s cash balance.update
(Map<String, Object> params, RequestOptions options) Changes the settings on a customer’s cash balance.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, fullUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
CashBalance
public CashBalance()
-
-
Method Details
-
retrieve
Retrieves a customer’s cash balance.- Throws:
StripeException
-
retrieve
Retrieves a customer’s cash balance.- Throws:
StripeException
-
retrieve
public static CashBalance retrieve(String customer, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a customer’s cash balance.- Throws:
StripeException
-
retrieve
public static CashBalance retrieve(String customer, CashBalanceRetrieveParams params, RequestOptions options) throws StripeException Retrieves a customer’s cash balance.- Throws:
StripeException
-
update
Changes the settings on a customer’s cash balance.- Throws:
StripeException
-
update
Changes the settings on a customer’s cash balance.- Throws:
StripeException
-
update
Changes the settings on a customer’s cash balance.- Throws:
StripeException
-
update
public CashBalance update(CashBalanceUpdateParams params, RequestOptions options) throws StripeException Changes the settings on a customer’s cash balance.- Throws:
StripeException
-
getAvailable
A hash of all cash balances available to this customer. You cannot delete a customer with any cash balances, even if the balance is 0. Amounts are represented in the smallest currency unit. -
getCustomer
The ID of the customer whose cash balance this object represents. -
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
cash_balance
. -
getSettings
-
setAvailable
A hash of all cash balances available to this customer. You cannot delete a customer with any cash balances, even if the balance is 0. Amounts are represented in the smallest currency unit. -
setCustomer
The ID of the customer whose cash balance this object represents. -
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
cash_balance
. -
setSettings
-
equals
-
canEqual
-
hashCode
public int hashCode()
-