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
  • Constructor Details

    • TransactionImpl

      public TransactionImpl()
      create empty instance
  • Method Details

    • getId

      public String getId()

      Unique identifier of the Transaction.

      Specified by:
      getId in interface Transaction
      Returns:
      id
    • getTimestamp

      public String getTimestamp()

      Time at which the transaction took place.

      Specified by:
      getTimestamp in interface Transaction
      Returns:
      timestamp
    • getType

      public TransactionType getType()
      Specified by:
      getType in interface Transaction
      Returns:
      type
    • getAmount

      public Money getAmount()
      Specified by:
      getAmount in interface Transaction
      Returns:
      amount
    • getInteractionId

      public String 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 should be findable with this ID.

      Specified by:
      getInteractionId in interface Transaction
      Returns:
      interactionId
    • getState

      public TransactionState getState()
      Specified by:
      getState in interface Transaction
      Returns:
      state
    • setId

      public void setId(String id)
      Description copied from interface: Transaction

      Unique identifier of the Transaction.

      Specified by:
      setId in interface Transaction
      Parameters:
      id - value to be set
    • setTimestamp

      public void setTimestamp(String timestamp)
      Description copied from interface: Transaction

      Time at which the transaction took place.

      Specified by:
      setTimestamp in interface Transaction
      Parameters:
      timestamp - value to be set
    • setType

      public void setType(TransactionType type)
      Description copied from interface: Transaction
      set type
      Specified by:
      setType in interface Transaction
      Parameters:
      type - value to be set
    • setAmount

      public void setAmount(Money amount)
      Description copied from interface: Transaction
      set amount
      Specified by:
      setAmount in interface Transaction
      Parameters:
      amount - value to be set
    • setInteractionId

      public void setInteractionId(String interactionId)
      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 should be findable with this ID.

      Specified by:
      setInteractionId in interface Transaction
      Parameters:
      interactionId - value to be set
    • setState

      public void setState(TransactionState state)
      Description copied from interface: Transaction
      set state
      Specified by:
      setState in interface Transaction
      Parameters:
      state - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object