Class InvoicePaymentRefund

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

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

  • Constructor Details

    • InvoicePaymentRefund

      public InvoicePaymentRefund()
    • InvoicePaymentRefund

      public InvoicePaymentRefund​(String id, InvoicePaymentRefundStatus status, String created_at, long domain_revision)
    • InvoicePaymentRefund

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

    • deepCopy

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

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

      public String getId()
    • setId

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

      public InvoicePaymentRefundStatus getStatus()
    • setStatus

      public InvoicePaymentRefund setStatus​(InvoicePaymentRefundStatus 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)
    • getCreatedAt

      public String getCreatedAt()
    • setCreatedAt

      public InvoicePaymentRefund 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 InvoicePaymentRefund 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 InvoicePaymentRefund 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)
    • getCash

      public Cash getCash()
    • setCash

      public InvoicePaymentRefund setCash​(Cash cash)
    • unsetCash

      public void unsetCash()
    • isSetCash

      public boolean isSetCash()
      Returns true if field cash is set (has been assigned a value) and false otherwise
    • setCashIsSet

      public void setCashIsSet​(boolean value)
    • getReason

      public String getReason()
    • setReason

      public InvoicePaymentRefund 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)
    • getCart

      public InvoiceCart getCart()
    • setCart

      public InvoicePaymentRefund setCart​(InvoiceCart cart)
    • unsetCart

      public void unsetCart()
    • isSetCart

      public boolean isSetCart()
      Returns true if field cart is set (has been assigned a value) and false otherwise
    • setCartIsSet

      public void setCartIsSet​(boolean value)
    • getExternalId

      public String getExternalId()
    • setExternalId

      public InvoicePaymentRefund 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)
    • getAllocation

      public Allocation getAllocation()
    • setAllocation

      public InvoicePaymentRefund setAllocation​(Allocation allocation)
    • unsetAllocation

      public void unsetAllocation()
    • isSetAllocation

      public boolean isSetAllocation()
      Returns true if field allocation is set (has been assigned a value) and false otherwise
    • setAllocationIsSet

      public void setAllocationIsSet​(boolean value)
    • setFieldValue

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

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

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

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

      public boolean equals​(InvoicePaymentRefund that)
    • hashCode

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

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

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

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

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