Class InvoiceAdjustment

java.lang.Object
dev.vality.damsel.domain.InvoiceAdjustment
All Implemented Interfaces:
Serializable, Cloneable, Comparable<InvoiceAdjustment>, org.apache.thrift.TBase<InvoiceAdjustment,​InvoiceAdjustment._Fields>, org.apache.thrift.TSerializable

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

  • Constructor Details

    • InvoiceAdjustment

      public InvoiceAdjustment()
    • InvoiceAdjustment

      public InvoiceAdjustment​(String id, String reason, String created_at, InvoiceAdjustmentStatus status, long domain_revision)
    • InvoiceAdjustment

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

    • deepCopy

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

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

      public String getId()
    • setId

      public InvoiceAdjustment 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)
    • getReason

      public String getReason()
    • setReason

      public InvoiceAdjustment 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)
    • getCreatedAt

      public String getCreatedAt()
    • setCreatedAt

      public InvoiceAdjustment 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)
    • getStatus

      public InvoiceAdjustmentStatus getStatus()
    • setStatus

      public InvoiceAdjustment setStatus​(InvoiceAdjustmentStatus 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)
    • getDomainRevision

      public long getDomainRevision()
    • setDomainRevision

      public InvoiceAdjustment 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 InvoiceAdjustment 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)
    • getState

      public InvoiceAdjustmentState getState()
    • setState

      public InvoiceAdjustment setState​(InvoiceAdjustmentState state)
    • unsetState

      public void unsetState()
    • isSetState

      public boolean isSetState()
      Returns true if field state is set (has been assigned a value) and false otherwise
    • setStateIsSet

      public void setStateIsSet​(boolean value)
    • setFieldValue

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

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

      public boolean isSet​(InvoiceAdjustment._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<InvoiceAdjustment,​InvoiceAdjustment._Fields>
    • equals

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

      public boolean equals​(InvoiceAdjustment that)
    • hashCode

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

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

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

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

      public Map<InvoiceAdjustment._Fields,​org.apache.thrift.meta_data.FieldMetaData> getFieldMetaData()
      Specified by:
      getFieldMetaData in interface org.apache.thrift.TBase<InvoiceAdjustment,​InvoiceAdjustment._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