Package com.stripe.model.billing
Class CreditBalanceTransaction
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.billing.CreditBalanceTransaction
- All Implemented Interfaces:
- HasId,- StripeActiveObject,- StripeObjectInterface
A credit balance transaction is a resource representing a transaction (either a credit or a
 debit) against an existing credit grant.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classFor more details about Credit, please refer to the API Reference.static classFor more details about Debit, please refer to the API Reference.Nested classes/interfaces inherited from class com.stripe.net.ApiResourceApiResource.RequestMethod
- 
Field SummaryFields inherited from class com.stripe.net.ApiResourceCHARSET, GSON, INTERNAL_GSONFields inherited from class com.stripe.model.StripeObjectPRETTY_PRINT_GSON
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanbooleanTime at which the object was created.Credit details for this credit balance transaction.Get ID of expandablecreditGrantobject.Get expandedcreditGrant.getDebit()Debit details for this credit balance transaction.The effective time of this credit balance transaction.getId()Unique identifier for the object.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.String representing the object's type.Get ID of expandabletestClockobject.Get expandedtestClock.getType()The type of credit balance transaction (credit or debit).inthashCode()Retrieve a list of credit balance transactions.list(CreditBalanceTransactionListParams params, RequestOptions options) Retrieve a list of credit balance transactions.Retrieve a list of credit balance transactions.list(Map<String, Object> params, RequestOptions options) Retrieve a list of credit balance transactions.static CreditBalanceTransactionRetrieves a credit balance transaction.static CreditBalanceTransactionretrieve(String id, RequestOptions options) Retrieves a credit balance transaction.static CreditBalanceTransactionretrieve(String id, CreditBalanceTransactionRetrieveParams params, RequestOptions options) Retrieves a credit balance transaction.static CreditBalanceTransactionRetrieves a credit balance transaction.voidsetCreated(Long created) Time at which the object was created.voidCredit details for this credit balance transaction.voidsetCreditGrant(String id) voidsetCreditGrantObject(CreditGrant expandableObject) voidDebit details for this credit balance transaction.voidsetEffectiveAt(Long effectiveAt) The effective time of this credit balance transaction.voidUnique identifier for the object.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) Get expandedinvoice.voidsetTestClock(String id) voidsetTestClockObject(TestClock expandableObject) voidThe type of credit balance transaction (credit or debit).Methods inherited from class com.stripe.net.ApiResourcecheckNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObjectdeserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObjecttrySetResponseGetter
- 
Constructor Details- 
CreditBalanceTransactionpublic CreditBalanceTransaction()
 
- 
- 
Method Details- 
getCreditGrantGet ID of expandablecreditGrantobject.
- 
setCreditGrant
- 
getCreditGrantObjectGet expandedcreditGrant.
- 
setCreditGrantObject
- 
getTestClockGet ID of expandabletestClockobject.
- 
setTestClock
- 
getTestClockObjectGet expandedtestClock.
- 
setTestClockObject
- 
listpublic static CreditBalanceTransactionCollection list(Map<String, Object> params) throws StripeExceptionRetrieve a list of credit balance transactions.- Throws:
- StripeException
 
- 
listpublic static CreditBalanceTransactionCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieve a list of credit balance transactions.- Throws:
- StripeException
 
- 
listpublic static CreditBalanceTransactionCollection list(CreditBalanceTransactionListParams params) throws StripeException Retrieve a list of credit balance transactions.- Throws:
- StripeException
 
- 
listpublic static CreditBalanceTransactionCollection list(CreditBalanceTransactionListParams params, RequestOptions options) throws StripeException Retrieve a list of credit balance transactions.- Throws:
- StripeException
 
- 
retrieveRetrieves a credit balance transaction.- Throws:
- StripeException
 
- 
retrievepublic static CreditBalanceTransaction retrieve(String id, RequestOptions options) throws StripeException Retrieves a credit balance transaction.- Throws:
- StripeException
 
- 
retrievepublic static CreditBalanceTransaction retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a credit balance transaction.- Throws:
- StripeException
 
- 
retrievepublic static CreditBalanceTransaction retrieve(String id, CreditBalanceTransactionRetrieveParams params, RequestOptions options) throws StripeException Retrieves a credit balance transaction.- Throws:
- StripeException
 
- 
setResponseGetterGet expandedinvoice.- Specified by:
- setResponseGetterin interface- StripeActiveObject
- Overrides:
- setResponseGetterin class- ApiResource
- Parameters:
- responseGetter- the- StripeResponseGetterinstance to use for making further requests.
 
- 
getCreatedTime at which the object was created. Measured in seconds since the Unix epoch.
- 
getCreditCredit details for this credit balance transaction. Only present if type iscredit.
- 
getDebitDebit details for this credit balance transaction. Only present if type isdebit.
- 
getEffectiveAtThe effective time of this credit balance transaction.
- 
getLivemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
- 
getObjectString representing the object's type. Objects of the same type share the same value.Equal to billing.credit_balance_transaction.
- 
getTypeThe type of credit balance transaction (credit or debit).One of credit, ordebit.
- 
setCreatedTime at which the object was created. Measured in seconds since the Unix epoch.
- 
setCreditCredit details for this credit balance transaction. Only present if type iscredit.
- 
setDebitDebit details for this credit balance transaction. Only present if type isdebit.
- 
setEffectiveAtThe effective time of this credit balance transaction.
- 
setIdUnique identifier for the object.
- 
setLivemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
- 
setObjectString representing the object's type. Objects of the same type share the same value.Equal to billing.credit_balance_transaction.
- 
setTypeThe type of credit balance transaction (credit or debit).One of credit, ordebit.
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
- 
getIdUnique identifier for the object.
 
-