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 class
For 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_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The billing credit balances.Get ID of expandablecustomer
object.Get expandedcustomer
.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 CreditBalanceSummary
retrieve()
Retrieves the credit balance summary for a customer.static CreditBalanceSummary
retrieve
(RequestOptions options) Retrieves the credit balance summary for a customer.static CreditBalanceSummary
retrieve
(CreditBalanceSummaryRetrieveParams params, RequestOptions options) Retrieves the credit balance summary for a customer.static CreditBalanceSummary
retrieve
(Map<String, Object> params, RequestOptions options) Retrieves the credit balance summary for a customer.void
setBalances
(List<CreditBalanceSummary.Balance> balances) The billing credit balances.void
setCustomer
(String id) void
setCustomerObject
(Customer expandableObject) 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) A positive integer representing the amount.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, 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
-
CreditBalanceSummary
public CreditBalanceSummary()
-
-
Method Details
-
getCustomer
Get ID of expandablecustomer
object. -
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:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance 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. -
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
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. -
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
billing.credit_balance_summary
. -
equals
-
canEqual
-
hashCode
public int hashCode()
-