Package com.stripe.model.billing
Class CreditBalanceSummary
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.billing.CreditBalanceSummary
- All Implemented Interfaces:
StripeActiveObject,StripeObjectInterface
Indicates the billing credit balance for billing credits granted to a customer.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about Balance, 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 booleanbooleanThe billing credit balances.Get ID of expandablecustomerobject.The account the balance is for.Get expandedcustomer.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 CreditBalanceSummaryretrieve()Retrieves the credit balance summary for a customer.static CreditBalanceSummaryretrieve(RequestOptions options) Retrieves the credit balance summary for a customer.static CreditBalanceSummaryretrieve(CreditBalanceSummaryRetrieveParams params, RequestOptions options) Retrieves the credit balance summary for a customer.static CreditBalanceSummaryretrieve(Map<String, Object> params, RequestOptions options) Retrieves the credit balance summary for a customer.voidsetBalances(List<CreditBalanceSummary.Balance> balances) The billing credit balances.voidsetCustomer(String id) voidsetCustomerAccount(String customerAccount) The account the balance is for.voidsetCustomerObject(Customer expandableObject) 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) A positive integer representing the amount.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
-
CreditBalanceSummary
public CreditBalanceSummary()
-
-
Method Details
-
getCustomer
Get ID of expandablecustomerobject. -
setCustomer
-
getCustomerObject
Get expandedcustomer. -
setCustomerObject
-
retrieve
Retrieves the credit balance summary for a customer.- Throws:
StripeException
-
retrieve
Retrieves the credit balance summary for a customer.- Throws:
StripeException
-
retrieve
public static CreditBalanceSummary retrieve(Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the credit balance summary for a customer.- Throws:
StripeException
-
retrieve
public static CreditBalanceSummary retrieve(CreditBalanceSummaryRetrieveParams params, RequestOptions options) throws StripeException Retrieves the credit balance summary for a customer.- Throws:
StripeException
-
setResponseGetter
A positive integer representing the amount.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
getBalances
The billing credit balances. One entry per credit grant currency. If a customer only has credit grants in a single currency, then this will have a single balance entry. -
getCustomerAccount
The account the balance is for. -
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
billing.credit_balance_summary. -
setBalances
The billing credit balances. One entry per credit grant currency. If a customer only has credit grants in a single currency, then this will have a single balance entry. -
setCustomerAccount
The account the balance is for. -
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
billing.credit_balance_summary. -
equals
-
canEqual
-
hashCode
public int hashCode()
-