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 Summary
Nested 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.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 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.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
-
CreditBalanceTransaction
public CreditBalanceTransaction()
-
-
Method Details
-
getCreditGrant
Get ID of expandablecreditGrantobject. -
setCreditGrant
-
getCreditGrantObject
Get expandedcreditGrant. -
setCreditGrantObject
-
getTestClock
Get ID of expandabletestClockobject. -
setTestClock
-
getTestClockObject
Get expandedtestClock. -
setTestClockObject
-
list
public static CreditBalanceTransactionCollection list(Map<String, Object> params) throws StripeExceptionRetrieve a list of credit balance transactions.- Throws:
StripeException
-
list
public static CreditBalanceTransactionCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieve a list of credit balance transactions.- Throws:
StripeException
-
list
public static CreditBalanceTransactionCollection list(CreditBalanceTransactionListParams params) throws StripeException Retrieve a list of credit balance transactions.- Throws:
StripeException
-
list
public static CreditBalanceTransactionCollection list(CreditBalanceTransactionListParams params, RequestOptions options) throws StripeException Retrieve a list of credit balance transactions.- Throws:
StripeException
-
retrieve
Retrieves a credit balance transaction.- Throws:
StripeException
-
retrieve
public static CreditBalanceTransaction retrieve(String id, RequestOptions options) throws StripeException Retrieves a credit balance transaction.- Throws:
StripeException
-
retrieve
public static CreditBalanceTransaction retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a credit balance transaction.- Throws:
StripeException
-
retrieve
public static CreditBalanceTransaction retrieve(String id, CreditBalanceTransactionRetrieveParams params, RequestOptions options) throws StripeException Retrieves a credit balance transaction.- Throws:
StripeException
-
setResponseGetter
Get expandedinvoice.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCredit
Credit details for this credit balance transaction. Only present if type iscredit. -
getDebit
Debit details for this credit balance transaction. Only present if type isdebit. -
getEffectiveAt
The effective time of this credit balance transaction. -
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_transaction. -
getType
The type of credit balance transaction (credit or debit).One of
credit, ordebit. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCredit
Credit details for this credit balance transaction. Only present if type iscredit. -
setDebit
Debit details for this credit balance transaction. Only present if type isdebit. -
setEffectiveAt
The effective time of this credit balance transaction. -
setId
Unique identifier for the object. -
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_transaction. -
setType
The type of credit balance transaction (credit or debit).One of
credit, ordebit. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-