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 class
For more details about Credit, please refer to the API Reference.static class
For 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_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Time at which the object was created.Credit details for this credit balance transaction.Get ID of expandablecreditGrant
object.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 valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.String representing the object's type.Get ID of expandabletestClock
object.Get expandedtestClock
.getType()
The type of credit balance transaction (credit or debit).int
hashCode()
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 CreditBalanceTransaction
Retrieves a credit balance transaction.static CreditBalanceTransaction
retrieve
(String id, RequestOptions options) Retrieves a credit balance transaction.static CreditBalanceTransaction
retrieve
(String id, CreditBalanceTransactionRetrieveParams params, RequestOptions options) Retrieves a credit balance transaction.static CreditBalanceTransaction
Retrieves a credit balance transaction.void
setCreated
(Long created) Time at which the object was created.void
Credit details for this credit balance transaction.void
setCreditGrant
(String id) void
setCreditGrantObject
(CreditGrant expandableObject) void
Debit details for this credit balance transaction.void
setEffectiveAt
(Long effectiveAt) The effective time of this credit balance transaction.void
Unique identifier for the object.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) Get expandedinvoice
.void
setTestClock
(String id) void
setTestClockObject
(TestClock expandableObject) void
The type of credit balance transaction (credit or debit).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
-
CreditBalanceTransaction
public CreditBalanceTransaction()
-
-
Method Details
-
getCreditGrant
Get ID of expandablecreditGrant
object. -
setCreditGrant
-
getCreditGrantObject
Get expandedcreditGrant
. -
setCreditGrantObject
-
getTestClock
Get ID of expandabletestClock
object. -
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:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance 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 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_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 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_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.
-