Package com.stripe.model
Class CashBalance
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.CashBalance
- All Implemented Interfaces:
StripeActiveObject
,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 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
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
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.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, 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
-
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
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
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()
-