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 ClassesModifier and TypeClassDescriptionstatic classFor more details about Settings, 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 booleanbooleanA hash of all cash balances available to this customer.The ID of the customer whose cash balance this object represents.The ID of the account whose cash balance this object represents.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.String representing the object's type.inthashCode()static CashBalanceRetrieves a customer’s cash balance.static CashBalanceretrieve(String customer, RequestOptions options) Retrieves a customer’s cash balance.static CashBalanceretrieve(String customer, CashBalanceRetrieveParams params, RequestOptions options) Retrieves a customer’s cash balance.static CashBalanceRetrieves a customer’s cash balance.voidsetAvailable(Map<String, Long> available) A hash of all cash balances available to this customer.voidsetCustomer(String customer) The ID of the customer whose cash balance this object represents.voidsetCustomerAccount(String customerAccount) The ID of the account whose cash balance this object represents.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.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidsetSettings(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, 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
-
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:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance 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. -
getCustomerAccount
The ID of the account whose cash balance this object represents. -
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
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. -
setCustomerAccount
The ID of the account whose cash balance this object represents. -
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
cash_balance. -
setSettings
-
equals
-
canEqual
-
hashCode
public int hashCode()
-