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
Nested ClassesModifier and TypeClassDescriptionstatic classChange to a FinancialAccount's balance.static classFor more details about FlowDetails, please refer to the API Reference.static 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 booleanbooleanAmount (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 valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.String representing the object's type.Status of the Transaction.inthashCode()static TransactionCollectionlist(TransactionListParams params) Retrieves a list of Transaction objects.static TransactionCollectionlist(TransactionListParams params, RequestOptions options) Retrieves a list of Transaction objects.static TransactionCollectionRetrieves a list of Transaction objects.static TransactionCollectionlist(Map<String, Object> params, RequestOptions options) Retrieves a list of Transaction objects.static TransactionRetrieves the details of an existing Transaction.static Transactionretrieve(String id, RequestOptions options) Retrieves the details of an existing Transaction.static Transactionretrieve(String id, TransactionRetrieveParams params, RequestOptions options) Retrieves the details of an existing Transaction.static TransactionRetrieves the details of an existing Transaction.voidAmount (in cents) transferred.voidsetBalanceImpact(Transaction.BalanceImpact balanceImpact) Change to a FinancialAccount's balance.voidsetCreated(Long created) Time at which the object was created.voidsetCurrency(String currency) Three-letter ISO currency code, in lowercase.voidsetDescription(String description) An arbitrary string attached to the object.voidsetEntries(TransactionEntryCollection entries) A list of TransactionEntries that are part of this Transaction.voidsetFinancialAccount(String financialAccount) The FinancialAccount associated with this object.voidID of the flow that created the Transaction.voidsetFlowDetails(Transaction.FlowDetails flowDetails) Details of the flow that created the Transaction.voidsetFlowType(String flowType) Type of the flow that created the 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.voidStatus of the Transaction.voidsetStatusTransitions(Transaction.StatusTransitions statusTransitions) 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
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: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.
-
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 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
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 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
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.
-