Class Revert

java.lang.Object
dev.vality.fistful.deposit.revert.Revert
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Revert>, org.apache.thrift.TBase<Revert,​Revert._Fields>, org.apache.thrift.TSerializable

@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
           date="2022-06-27")
public class Revert
extends Object
implements org.apache.thrift.TBase<Revert,​Revert._Fields>, Serializable, Cloneable, Comparable<Revert>
See Also:
Serialized Form
  • Field Details

    • id

      public String id
    • wallet_id

      public String wallet_id
    • source_id

      public String source_id
    • status

      public Status status
    • body

      public Cash body
    • created_at

      public String created_at
    • domain_revision

      public long domain_revision
    • party_revision

      public long party_revision
    • reason

      public String reason
    • external_id

      public String external_id
    • metaDataMap

      public static final Map<Revert._Fields,​org.apache.thrift.meta_data.FieldMetaData> metaDataMap
  • Constructor Details

    • Revert

      public Revert()
    • Revert

      public Revert​(String id, String wallet_id, String source_id, Status status, Cash body, String created_at, long domain_revision, long party_revision)
    • Revert

      public Revert​(Revert other)
      Performs a deep copy on other.
  • Method Details

    • deepCopy

      public Revert deepCopy()
      Specified by:
      deepCopy in interface org.apache.thrift.TBase<Revert,​Revert._Fields>
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.thrift.TBase<Revert,​Revert._Fields>
    • getId

      public String getId()
    • setId

      public Revert setId​(String id)
    • unsetId

      public void unsetId()
    • isSetId

      public boolean isSetId()
      Returns true if field id is set (has been assigned a value) and false otherwise
    • setIdIsSet

      public void setIdIsSet​(boolean value)
    • getWalletId

      public String getWalletId()
    • setWalletId

      public Revert setWalletId​(String wallet_id)
    • unsetWalletId

      public void unsetWalletId()
    • isSetWalletId

      public boolean isSetWalletId()
      Returns true if field wallet_id is set (has been assigned a value) and false otherwise
    • setWalletIdIsSet

      public void setWalletIdIsSet​(boolean value)
    • getSourceId

      public String getSourceId()
    • setSourceId

      public Revert setSourceId​(String source_id)
    • unsetSourceId

      public void unsetSourceId()
    • isSetSourceId

      public boolean isSetSourceId()
      Returns true if field source_id is set (has been assigned a value) and false otherwise
    • setSourceIdIsSet

      public void setSourceIdIsSet​(boolean value)
    • getStatus

      public Status getStatus()
    • setStatus

      public Revert setStatus​(Status status)
    • unsetStatus

      public void unsetStatus()
    • isSetStatus

      public boolean isSetStatus()
      Returns true if field status is set (has been assigned a value) and false otherwise
    • setStatusIsSet

      public void setStatusIsSet​(boolean value)
    • getBody

      public Cash getBody()
    • setBody

      public Revert setBody​(Cash body)
    • unsetBody

      public void unsetBody()
    • isSetBody

      public boolean isSetBody()
      Returns true if field body is set (has been assigned a value) and false otherwise
    • setBodyIsSet

      public void setBodyIsSet​(boolean value)
    • getCreatedAt

      public String getCreatedAt()
    • setCreatedAt

      public Revert setCreatedAt​(String created_at)
    • unsetCreatedAt

      public void unsetCreatedAt()
    • isSetCreatedAt

      public boolean isSetCreatedAt()
      Returns true if field created_at is set (has been assigned a value) and false otherwise
    • setCreatedAtIsSet

      public void setCreatedAtIsSet​(boolean value)
    • getDomainRevision

      public long getDomainRevision()
    • setDomainRevision

      public Revert setDomainRevision​(long domain_revision)
    • unsetDomainRevision

      public void unsetDomainRevision()
    • isSetDomainRevision

      public boolean isSetDomainRevision()
      Returns true if field domain_revision is set (has been assigned a value) and false otherwise
    • setDomainRevisionIsSet

      public void setDomainRevisionIsSet​(boolean value)
    • getPartyRevision

      public long getPartyRevision()
    • setPartyRevision

      public Revert setPartyRevision​(long party_revision)
    • unsetPartyRevision

      public void unsetPartyRevision()
    • isSetPartyRevision

      public boolean isSetPartyRevision()
      Returns true if field party_revision is set (has been assigned a value) and false otherwise
    • setPartyRevisionIsSet

      public void setPartyRevisionIsSet​(boolean value)
    • getReason

      public String getReason()
    • setReason

      public Revert setReason​(String reason)
    • unsetReason

      public void unsetReason()
    • isSetReason

      public boolean isSetReason()
      Returns true if field reason is set (has been assigned a value) and false otherwise
    • setReasonIsSet

      public void setReasonIsSet​(boolean value)
    • getExternalId

      public String getExternalId()
    • setExternalId

      public Revert setExternalId​(String external_id)
    • unsetExternalId

      public void unsetExternalId()
    • isSetExternalId

      public boolean isSetExternalId()
      Returns true if field external_id is set (has been assigned a value) and false otherwise
    • setExternalIdIsSet

      public void setExternalIdIsSet​(boolean value)
    • setFieldValue

      public void setFieldValue​(Revert._Fields field, Object value)
      Specified by:
      setFieldValue in interface org.apache.thrift.TBase<Revert,​Revert._Fields>
    • getFieldValue

      public Object getFieldValue​(Revert._Fields field)
      Specified by:
      getFieldValue in interface org.apache.thrift.TBase<Revert,​Revert._Fields>
    • isSet

      public boolean isSet​(Revert._Fields field)
      Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
      Specified by:
      isSet in interface org.apache.thrift.TBase<Revert,​Revert._Fields>
    • equals

      public boolean equals​(Object that)
      Overrides:
      equals in class Object
    • equals

      public boolean equals​(Revert that)
    • hashCode

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

      public int compareTo​(Revert other)
      Specified by:
      compareTo in interface Comparable<Revert>
    • fieldForId

      public Revert._Fields fieldForId​(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<Revert,​Revert._Fields>
    • getFields

      public Revert._Fields[] getFields()
      Specified by:
      getFields in interface org.apache.thrift.TBase<Revert,​Revert._Fields>
    • getFieldMetaData

      public Map<Revert._Fields,​org.apache.thrift.meta_data.FieldMetaData> getFieldMetaData()
      Specified by:
      getFieldMetaData in interface org.apache.thrift.TBase<Revert,​Revert._Fields>
    • read

      public void read​(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
      Specified by:
      read in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • write

      public void write​(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
      Specified by:
      write in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validate

      public void validate() throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException