Class TransactionImpl
- All Implemented Interfaces:
Customizable<Transaction>
,Transaction
,io.vrap.rmf.base.client.ModelBase
Represents a financial transaction typically created as a result of a notification from the payment service.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Money value of the Transaction.Custom Fields defined for the Transaction.getId()
Unique identifier of the Transaction.Identifier used by the interface that manages the Transaction (usually the PSP).getState()
State of the Transaction.Date and time (UTC) the Transaction took place.getType()
Type of the Transaction.int
hashCode()
void
setAmount
(CentPrecisionMoney amount) Money value of the Transaction.void
setCustom
(CustomFields custom) Custom Fields defined for the Transaction.void
Unique identifier of the Transaction.void
setInteractionId
(String interactionId) Identifier used by the interface that manages the Transaction (usually the PSP).void
setState
(TransactionState state) State of the Transaction.void
setTimestamp
(ZonedDateTime timestamp) Date and time (UTC) the Transaction took place.void
setType
(TransactionType type) Type of the Transaction.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.Customizable
unwrapCustomizable
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.payment.Transaction
withTransaction
-
Constructor Details
-
TransactionImpl
public TransactionImpl()create empty instance
-
-
Method Details
-
getId
Unique identifier of the Transaction.
- Specified by:
getId
in interfaceTransaction
- Returns:
- id
-
getTimestamp
Date and time (UTC) the Transaction took place.
- Specified by:
getTimestamp
in interfaceTransaction
- Returns:
- timestamp
-
getType
Type of the Transaction. For example,
Authorization
.- Specified by:
getType
in interfaceTransaction
- Returns:
- type
-
getAmount
Money value of the Transaction.
- Specified by:
getAmount
in interfaceTransaction
- Returns:
- amount
-
getInteractionId
Identifier used by the interface that manages the Transaction (usually the PSP). If a matching interaction was logged in the
interfaceInteractions
array, the corresponding interaction can be found with this ID.- Specified by:
getInteractionId
in interfaceTransaction
- Returns:
- interactionId
-
getState
State of the Transaction.
- Specified by:
getState
in interfaceTransaction
- Returns:
- state
-
getCustom
Custom Fields defined for the Transaction.
- Specified by:
getCustom
in interfaceCustomizable<Transaction>
- Specified by:
getCustom
in interfaceTransaction
- Returns:
- custom
-
setId
Description copied from interface:Transaction
Unique identifier of the Transaction.
- Specified by:
setId
in interfaceTransaction
- Parameters:
id
- value to be set
-
setTimestamp
Description copied from interface:Transaction
Date and time (UTC) the Transaction took place.
- Specified by:
setTimestamp
in interfaceTransaction
- Parameters:
timestamp
- value to be set
-
setType
Description copied from interface:Transaction
Type of the Transaction. For example,
Authorization
.- Specified by:
setType
in interfaceTransaction
- Parameters:
type
- value to be set
-
setAmount
Description copied from interface:Transaction
Money value of the Transaction.
- Specified by:
setAmount
in interfaceTransaction
- Parameters:
amount
- value to be set
-
setInteractionId
Description copied from interface:Transaction
Identifier used by the interface that manages the Transaction (usually the PSP). If a matching interaction was logged in the
interfaceInteractions
array, the corresponding interaction can be found with this ID.- Specified by:
setInteractionId
in interfaceTransaction
- Parameters:
interactionId
- value to be set
-
setState
Description copied from interface:Transaction
State of the Transaction.
- Specified by:
setState
in interfaceTransaction
- Parameters:
state
- value to be set
-
setCustom
Description copied from interface:Transaction
Custom Fields defined for the Transaction.
- Specified by:
setCustom
in interfaceCustomizable<Transaction>
- Specified by:
setCustom
in interfaceTransaction
- Parameters:
custom
- value to be set
-
equals
-
hashCode
-