Class TransactionImpl
java.lang.Object
com.commercetools.history.models.common.TransactionImpl
- All Implemented Interfaces:
Transaction,io.vrap.rmf.base.client.ModelBase
public class TransactionImpl
extends Object
implements Transaction, io.vrap.rmf.base.client.ModelBase
Transaction
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()Unique identifier of the Transaction.Identifier used by the interface that manages the transaction (usually the PSP).getState()Time at which the transaction took place.getType()inthashCode()voidset amountvoidUnique identifier of the Transaction.voidsetInteractionId(String interactionId) Identifier used by the interface that manages the transaction (usually the PSP).voidsetState(TransactionState state) set statevoidsetTimestamp(String timestamp) Time at which the transaction took place.voidsetType(TransactionType type) set typetoString()Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionStringMethods inherited from interface com.commercetools.history.models.common.Transaction
withTransaction
-
Constructor Details
-
TransactionImpl
public TransactionImpl()create empty instance
-
-
Method Details
-
getId
Unique identifier of the Transaction.
- Specified by:
getIdin interfaceTransaction- Returns:
- id
-
getTimestamp
Time at which the transaction took place.
- Specified by:
getTimestampin interfaceTransaction- Returns:
- timestamp
-
getType
- Specified by:
getTypein interfaceTransaction- Returns:
- type
-
getAmount
- Specified by:
getAmountin interfaceTransaction- Returns:
- amount
-
getInteractionId
Identifier used by the interface that manages the transaction (usually the PSP). If a matching interaction was logged in the
interfaceInteractionsarray, the corresponding interaction should be findable with this ID.- Specified by:
getInteractionIdin interfaceTransaction- Returns:
- interactionId
-
getState
- Specified by:
getStatein interfaceTransaction- Returns:
- state
-
setId
Description copied from interface:TransactionUnique identifier of the Transaction.
- Specified by:
setIdin interfaceTransaction- Parameters:
id- value to be set
-
setTimestamp
Description copied from interface:TransactionTime at which the transaction took place.
- Specified by:
setTimestampin interfaceTransaction- Parameters:
timestamp- value to be set
-
setType
Description copied from interface:Transactionset type- Specified by:
setTypein interfaceTransaction- Parameters:
type- value to be set
-
setAmount
Description copied from interface:Transactionset amount- Specified by:
setAmountin interfaceTransaction- Parameters:
amount- value to be set
-
setInteractionId
Description copied from interface:TransactionIdentifier used by the interface that manages the transaction (usually the PSP). If a matching interaction was logged in the
interfaceInteractionsarray, the corresponding interaction should be findable with this ID.- Specified by:
setInteractionIdin interfaceTransaction- Parameters:
interactionId- value to be set
-
setState
Description copied from interface:Transactionset state- Specified by:
setStatein interfaceTransaction- Parameters:
state- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-