Package com.stripe.model.treasury
Class Transaction
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.treasury.Transaction
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
Transactions represent changes to a FinancialAccount's balance.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Change to a FinancialAccount's balance.static class
static class
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Amount (in cents) transferred.Change to a FinancialAccount's balance.Time at which the object was created.Three-letter ISO currency code, in lowercase.An arbitrary string attached to the object.A list of TransactionEntries that are part of this Transaction.The FinancialAccount associated with this object.getFlow()
ID of the flow that created the Transaction.Details of the flow that created the Transaction.Type of the flow that created the 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.Status of the Transaction.int
hashCode()
static TransactionCollection
list
(TransactionListParams params) Retrieves a list of Transaction objects.static TransactionCollection
list
(TransactionListParams params, RequestOptions options) Retrieves a list of Transaction objects.static TransactionCollection
Retrieves a list of Transaction objects.static TransactionCollection
list
(Map<String, Object> params, RequestOptions options) Retrieves a list of Transaction objects.static Transaction
Retrieves the details of an existing Transaction.static Transaction
retrieve
(String id, RequestOptions options) Retrieves the details of an existing Transaction.static Transaction
retrieve
(String id, TransactionRetrieveParams params, RequestOptions options) Retrieves the details of an existing Transaction.static Transaction
Retrieves the details of an existing Transaction.void
Amount (in cents) transferred.void
setBalanceImpact
(Transaction.BalanceImpact balanceImpact) Change to a FinancialAccount's balance.void
setCreated
(Long created) Time at which the object was created.void
setCurrency
(String currency) Three-letter ISO currency code, in lowercase.void
setDescription
(String description) An arbitrary string attached to the object.void
setEntries
(TransactionEntryCollection entries) A list of TransactionEntries that are part of this Transaction.void
setFinancialAccount
(String financialAccount) The FinancialAccount associated with this object.void
ID of the flow that created the Transaction.void
setFlowDetails
(Transaction.FlowDetails flowDetails) Details of the flow that created the Transaction.void
setFlowType
(String flowType) Type of the flow that created the 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) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
Status of the Transaction.void
setStatusTransitions
(Transaction.StatusTransitions statusTransitions) Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
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
-
Transaction
public Transaction()
-
-
Method Details
-
list
Retrieves a list of Transaction objects.- Throws:
StripeException
-
list
public static TransactionCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a list of Transaction objects.- Throws:
StripeException
-
list
Retrieves a list of Transaction objects.- Throws:
StripeException
-
list
public static TransactionCollection list(TransactionListParams params, RequestOptions options) throws StripeException Retrieves a list of Transaction objects.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing Transaction.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing Transaction.- Throws:
StripeException
-
retrieve
public static Transaction retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of an existing Transaction.- Throws:
StripeException
-
retrieve
public static Transaction retrieve(String id, TransactionRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of an existing Transaction.- Throws:
StripeException
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getAmount
Amount (in cents) transferred. -
getBalanceImpact
Change to a FinancialAccount's balance. -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
getDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
getEntries
A list of TransactionEntries that are part of this Transaction. This cannot be expanded in any list endpoints. -
getFinancialAccount
The FinancialAccount associated with this object. -
getFlow
ID of the flow that created the Transaction. -
getFlowDetails
Details of the flow that created the Transaction. -
getFlowType
Type of the flow that created the Transaction.One of
credit_reversal
,debit_reversal
,inbound_transfer
,issuing_authorization
,other
,outbound_payment
,outbound_transfer
,received_credit
, orreceived_debit
. -
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
treasury.transaction
. -
getStatus
Status of the Transaction.One of
open
,posted
, orvoid
. -
getStatusTransitions
-
setAmount
Amount (in cents) transferred. -
setBalanceImpact
Change to a FinancialAccount's balance. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
setEntries
A list of TransactionEntries that are part of this Transaction. This cannot be expanded in any list endpoints. -
setFinancialAccount
The FinancialAccount associated with this object. -
setFlow
ID of the flow that created the Transaction. -
setFlowDetails
Details of the flow that created the Transaction. -
setFlowType
Type of the flow that created the Transaction.One of
credit_reversal
,debit_reversal
,inbound_transfer
,issuing_authorization
,other
,outbound_payment
,outbound_transfer
,received_credit
, orreceived_debit
. -
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
treasury.transaction
. -
setStatus
Status of the Transaction.One of
open
,posted
, orvoid
. -
setStatusTransitions
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-