Class Transaction
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.moneymanagement.Transaction
- All Implemented Interfaces:
HasId,StripeObjectInterface
A Transaction records how a money movement flow affects your FinancialAccount balance. A flow can
create one or more Transactions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe change to the FinancialAccount's balance.static classDetails about the counterparty to this Transaction.static classDetails about the flow object that created the Transaction, such as an InboundTransfer or OutboundPayment.static classHosted transaction receipt that is provided when money movement is considered regulated under Stripe's money transmission licenses.static classTimestamps for when the Transaction transitioned to each 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 change to the FinancialAccount's balance.Open Enum.Details about the counterparty to this Transaction.Time at which the object was created.A description of the Transaction.The ID of the FinancialAccount affected by this Transaction.getFlow()Details about the flow object that created the Transaction, such as an InboundTransfer or OutboundPayment.getId()Unique identifier for the object.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.Set of key-value pairs that you can attach to an object.String representing the object's type.Hosted transaction receipt that is provided when money movement is considered regulated under Stripe's money transmission licenses.Closed Enum.Timestamps for when the Transaction transitioned to each status.inthashCode()voidThe amount of the Transaction.voidsetBalanceImpact(Transaction.BalanceImpact balanceImpact) The change to the FinancialAccount's balance.voidsetCategory(String category) Open Enum.voidsetCounterparty(Transaction.Counterparty counterparty) Details about the counterparty to this Transaction.voidsetCreated(Instant created) Time at which the object was created.voidsetDescription(String description) A description of the Transaction.voidsetFinancialAccount(String financialAccount) The ID of the FinancialAccount affected by this Transaction.voidsetFlow(Transaction.Flow flow) Details about the flow object that created the Transaction, such as an InboundTransfer or OutboundPayment.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.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidString representing the object's type.voidsetRegulatoryReceipt(Transaction.RegulatoryReceipt regulatoryReceipt) Hosted transaction receipt that is provided when money movement is considered regulated under Stripe's money transmission licenses.voidClosed Enum.voidsetStatusTransitions(Transaction.StatusTransitions statusTransitions) Timestamps for when the Transaction transitioned to each status.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, 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 change to the FinancialAccount's balance. This is the sum of the balance impacts of this Transaction's TransactionEntries witheffective_attimestamps in the past. -
getCategory
Open Enum. A category used to classify the Transaction.One of
adjustment,currency_conversion,inbound_transfer,inbound_transfer_reversal,outbound_payment,outbound_payment_reversal,outbound_transfer,outbound_transfer_reversal,received_credit,received_credit_reversal,received_debit,received_debit_reversal,stripe_fee, orstripe_fee_tax. -
getCounterparty
Details about the counterparty to this Transaction. -
getCreated
Time at which the object was created. Represented as an RFC 3339 timestamp in UTC with millisecond precision, for example2022-09-18T13:22:18.123Z. -
getDescription
A description of the Transaction. When applicable, the description is copied from the flow object when the Transaction is created. You can update it using the Update Transaction endpoint. -
getFinancialAccount
The ID of the FinancialAccount affected by this Transaction. -
getFlow
Details about the flow object that created the Transaction, such as an InboundTransfer or OutboundPayment.flow.typeidentifies the kind of object. The corresponding field contains its ID, when available: for an InboundTransfer,flow.inbound_transfercontains the InboundTransfer's ID. Pass that ID to theflowparameter on List Transactions. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
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. -
getRegulatoryReceipt
Hosted transaction receipt that is provided when money movement is considered regulated under Stripe's money transmission licenses. If not applicable,regulatory_receipt.statuswill benot_applicableand no URL will be provided unless you opt in by calling/refresh_regulatory_receipt. -
getStatus
Closed Enum. The 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 TransactionEntries will be added to the Transaction.One of
pending,posted, orvoid. -
getStatusTransitions
Timestamps for when the Transaction transitioned to each status. -
setAmount
The amount of the Transaction. -
setBalanceImpact
The change to the FinancialAccount's balance. This is the sum of the balance impacts of this Transaction's TransactionEntries witheffective_attimestamps in the past. -
setCategory
Open Enum. A category used to classify the Transaction.One of
adjustment,currency_conversion,inbound_transfer,inbound_transfer_reversal,outbound_payment,outbound_payment_reversal,outbound_transfer,outbound_transfer_reversal,received_credit,received_credit_reversal,received_debit,received_debit_reversal,stripe_fee, orstripe_fee_tax. -
setCounterparty
Details about the counterparty to this Transaction. -
setCreated
Time at which the object was created. Represented as an RFC 3339 timestamp in UTC with millisecond precision, for example2022-09-18T13:22:18.123Z. -
setDescription
A description of the Transaction. When applicable, the description is copied from the flow object when the Transaction is created. You can update it using the Update Transaction endpoint. -
setFinancialAccount
The ID of the FinancialAccount affected by this Transaction. -
setFlow
Details about the flow object that created the Transaction, such as an InboundTransfer or OutboundPayment.flow.typeidentifies the kind of object. The corresponding field contains its ID, when available: for an InboundTransfer,flow.inbound_transfercontains the InboundTransfer's ID. Pass that ID to theflowparameter on List Transactions. -
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. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
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. -
setRegulatoryReceipt
Hosted transaction receipt that is provided when money movement is considered regulated under Stripe's money transmission licenses. If not applicable,regulatory_receipt.statuswill benot_applicableand no URL will be provided unless you opt in by calling/refresh_regulatory_receipt. -
setStatus
Closed Enum. The 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 TransactionEntries will be added to the Transaction.One of
pending,posted, orvoid. -
setStatusTransitions
Timestamps for when the Transaction transitioned to each status. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-