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 ClassesModifier and TypeClassDescriptionstatic classFor more details about StatusTransitions, 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 booleanbooleanThe 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 valuetrueif the object exists in live mode or the valuefalseif 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.inthashCode()static TransactionCollectionlist(TransactionListParams params) Returns a list of Financial ConnectionsTransactionobjects.static TransactionCollectionlist(TransactionListParams params, RequestOptions options) Returns a list of Financial ConnectionsTransactionobjects.static TransactionCollectionReturns a list of Financial ConnectionsTransactionobjects.static TransactionCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of Financial ConnectionsTransactionobjects.static TransactionRetrieves the details of a Financial ConnectionsTransaction.static Transactionretrieve(String transaction, RequestOptions options) Retrieves the details of a Financial ConnectionsTransaction.static Transactionretrieve(String transaction, TransactionRetrieveParams params, RequestOptions options) Retrieves the details of a Financial ConnectionsTransaction.static TransactionRetrieves the details of a Financial ConnectionsTransaction.voidsetAccount(String account) The ID of the Financial Connections Account this transaction belongs to.voidThe amount of this transaction, in cents (or local equivalent).voidsetCurrency(String currency) Three-letter ISO currency code, in lowercase.voidsetDescription(String description) The description of this 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) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidThe status of the transaction.voidsetStatusTransitions(Transaction.StatusTransitions statusTransitions) voidsetTransactedAt(Long transactedAt) Time at which the transaction was transacted.voidsetTransactionRefresh(String transactionRefresh) The token of the transaction refresh that last updated or created this transaction.voidsetUpdated(Long updated) Time at which the object was last updated.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
-
Transaction
public Transaction()
-
-
Method Details
-
list
Returns a list of Financial ConnectionsTransactionobjects.- Throws:
StripeException
-
list
public static TransactionCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of Financial ConnectionsTransactionobjects.- Throws:
StripeException
-
list
Returns a list of Financial ConnectionsTransactionobjects.- Throws:
StripeException
-
list
public static TransactionCollection list(TransactionListParams params, RequestOptions options) throws StripeException Returns a list of Financial ConnectionsTransactionobjects.- 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:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance 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 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
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 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
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.
-