Class Transaction
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.moneymanagement.Transaction
- All Implemented Interfaces:
HasId,StripeObjectInterface
Use Transactions to view changes to your FinancialAccount balance over time. Every flow that
moves money, such as OutboundPayments or ReceivedCredits, will have one or more Transactions that
describes how the flow impacted your balance. Note that while the FinancialAccount balance will
always be up to date, be aware that Transactions and TransactionEntries are created shortly after
to reflect changes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe delta to the FinancialAccount's balance.static classDetails about the Flow object that created the Transaction.static classTimestamps for when the Transaction transitioned to a particular status. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe amount of the Transaction.The delta to the FinancialAccount's balance.Open Enum.Time at which the object was created.Indicates the FinancialAccount affected by this Transaction.getFlow()Details about the Flow object 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.Closed Enum.Timestamps for when the Transaction transitioned to a particular status.inthashCode()voidThe amount of the Transaction.voidsetBalanceImpact(Transaction.BalanceImpact balanceImpact) The delta to the FinancialAccount's balance.voidsetCategory(String category) Open Enum.voidsetCreated(Instant created) Time at which the object was created.voidsetFinancialAccount(String financialAccount) Indicates the FinancialAccount affected by this Transaction.voidsetFlow(Transaction.Flow flow) Details about the Flow object 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.voidClosed Enum.voidsetStatusTransitions(Transaction.StatusTransitions statusTransitions) Timestamps for when the Transaction transitioned to a particular status.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Transaction
public Transaction()
-
-
Method Details
-
getAmount
The amount of the Transaction. -
getBalanceImpact
The delta to the FinancialAccount's balance. The balance_impact for the Transaction is equal to sum of its TransactionEntries that haveeffective_ats in the past. -
getCategory
Open Enum. A descriptive category used to classify the Transaction.One of
adjustment,currency_conversion,inbound_transfer,outbound_payment,outbound_transfer,received_credit,received_debit,return, orstripe_fee. -
getCreated
Time at which the object was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. -
getFinancialAccount
Indicates the FinancialAccount affected by this Transaction. -
getFlow
Details about the Flow object that created the 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 of the object field.Equal to
v2.money_management.transaction. -
getStatus
Closed Enum. Current status of the Transaction. A Transaction ispendingif eitherbalance_impact.inbound_pendingorbalance_impact.outbound_pendingis non-zero. A Transaction ispostedif onlybalance_impact.availableis non-zero. A Transaction isvoidif there is no balance impact.postedandvoidare terminal states, and no additional entries will be added to the Transaction.One of
pending,posted, orvoid. -
getStatusTransitions
Timestamps for when the Transaction transitioned to a particular status. -
setAmount
The amount of the Transaction. -
setBalanceImpact
The delta to the FinancialAccount's balance. The balance_impact for the Transaction is equal to sum of its TransactionEntries that haveeffective_ats in the past. -
setCategory
Open Enum. A descriptive category used to classify the Transaction.One of
adjustment,currency_conversion,inbound_transfer,outbound_payment,outbound_transfer,received_credit,received_debit,return, orstripe_fee. -
setCreated
Time at which the object was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. -
setFinancialAccount
Indicates the FinancialAccount affected by this Transaction. -
setFlow
Details about the Flow object that created the 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 of the object field.Equal to
v2.money_management.transaction. -
setStatus
Closed Enum. Current status of the Transaction. A Transaction ispendingif eitherbalance_impact.inbound_pendingorbalance_impact.outbound_pendingis non-zero. A Transaction ispostedif onlybalance_impact.availableis non-zero. A Transaction isvoidif there is no balance impact.postedandvoidare terminal states, and no additional entries will be added to the Transaction.One of
pending,posted, orvoid. -
setStatusTransitions
Timestamps for when the Transaction transitioned to a particular status. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-