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
-
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()
Retrieves a customer’s cash balance.retrieve
(String customer, RequestOptions options) Retrieves a customer’s cash balance.retrieve
(String customer, CashBalanceRetrieveParams params, RequestOptions options) Retrieves a customer’s cash balance.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.BalanceSettings settings) update
(CashBalanceUpdateParams params) Updates a customer’s cash balance.update
(CashBalanceUpdateParams params, RequestOptions options) Updates a customer’s cash balance.Updates a customer’s cash balance.update
(Map<String, Object> params, RequestOptions options) Updates a customer’s cash balance.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, 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 CashBalance retrieve(String customer, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a customer’s cash balance.- Throws:
StripeException
-
retrieve
public CashBalance retrieve(String customer, CashBalanceRetrieveParams params, RequestOptions options) throws StripeException Retrieves a customer’s cash balance.- Throws:
StripeException
-
update
Updates a customer’s cash balance.- Throws:
StripeException
-
update
Updates a customer’s cash balance.- Throws:
StripeException
-
update
Updates a customer’s cash balance.- Throws:
StripeException
-
update
public CashBalance update(CashBalanceUpdateParams params, RequestOptions options) throws StripeException Updates 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. -
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. -
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()
-