Class Transaction
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.financialconnections.Transaction
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
A Transaction represents a real transaction that affects a Financial Connections Account balance.
-
Nested Class Summary
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
The ID of the Financial Connections Account this transaction belongs to.The amount of this transaction, in cents (or local equivalent).Three-letter ISO currency code, in lowercase.The description of this 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.The status of the transaction.Time at which the transaction was transacted.The token of the transaction refresh that last updated or created this transaction.Time at which the object was last updated.int
hashCode()
static TransactionCollection
list
(TransactionListParams params) Returns a list of Financial ConnectionsTransaction
objects.static TransactionCollection
list
(TransactionListParams params, RequestOptions options) Returns a list of Financial ConnectionsTransaction
objects.static TransactionCollection
Returns a list of Financial ConnectionsTransaction
objects.static TransactionCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of Financial ConnectionsTransaction
objects.static Transaction
Retrieves the details of a Financial ConnectionsTransaction
.static Transaction
retrieve
(String transaction, RequestOptions options) Retrieves the details of a Financial ConnectionsTransaction
.static Transaction
retrieve
(String transaction, TransactionRetrieveParams params, RequestOptions options) Retrieves the details of a Financial ConnectionsTransaction
.static Transaction
Retrieves the details of a Financial ConnectionsTransaction
.void
setAccount
(String account) The ID of the Financial Connections Account this transaction belongs to.void
The amount of this transaction, in cents (or local equivalent).void
setCurrency
(String currency) Three-letter ISO currency code, in lowercase.void
setDescription
(String description) The description of this 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
The status of the transaction.void
setStatusTransitions
(Transaction.StatusTransitions statusTransitions) void
setTransactedAt
(Long transactedAt) Time at which the transaction was transacted.void
setTransactionRefresh
(String transactionRefresh) The token of the transaction refresh that last updated or created this transaction.void
setUpdated
(Long updated) Time at which the object was last updated.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
Returns a list of Financial ConnectionsTransaction
objects.- Throws:
StripeException
-
list
public static TransactionCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of Financial ConnectionsTransaction
objects.- Throws:
StripeException
-
list
Returns a list of Financial ConnectionsTransaction
objects.- Throws:
StripeException
-
list
public static TransactionCollection list(TransactionListParams params, RequestOptions options) throws StripeException Returns a list of Financial ConnectionsTransaction
objects.- Throws:
StripeException
-
retrieve
Retrieves the details of a Financial ConnectionsTransaction
.- Throws:
StripeException
-
retrieve
public static Transaction retrieve(String transaction, RequestOptions options) throws StripeException Retrieves the details of a Financial ConnectionsTransaction
.- Throws:
StripeException
-
retrieve
public static Transaction retrieve(String transaction, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of a Financial ConnectionsTransaction
.- Throws:
StripeException
-
retrieve
public static Transaction retrieve(String transaction, TransactionRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of a Financial ConnectionsTransaction
.- 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.
-
getAccount
The ID of the Financial Connections Account this transaction belongs to. -
getAmount
The amount of this transaction, in cents (or local equivalent). -
getCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
getDescription
The description of this 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
financial_connections.transaction
. -
getStatus
The status of the transaction.One of
pending
,posted
, orvoid
. -
getStatusTransitions
-
getTransactedAt
Time at which the transaction was transacted. Measured in seconds since the Unix epoch. -
getTransactionRefresh
The token of the transaction refresh that last updated or created this transaction. -
getUpdated
Time at which the object was last updated. Measured in seconds since the Unix epoch. -
setAccount
The ID of the Financial Connections Account this transaction belongs to. -
setAmount
The amount of this transaction, in cents (or local equivalent). -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setDescription
The description of this 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
financial_connections.transaction
. -
setStatus
The status of the transaction.One of
pending
,posted
, orvoid
. -
setStatusTransitions
-
setTransactedAt
Time at which the transaction was transacted. Measured in seconds since the Unix epoch. -
setTransactionRefresh
The token of the transaction refresh that last updated or created this transaction. -
setUpdated
Time at which the object was last updated. Measured in seconds since the Unix epoch. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-