Class Contract

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

@Generated(value="Autogenerated by Thrift Compiler (0.19.0)", date="2024-08-02") public class Contract extends Object implements org.apache.thrift.TBase<Contract,Contract._Fields>, Serializable, Cloneable, Comparable<Contract>
Договор
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • deepCopy

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

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

      public String getId()
    • setId

      public Contract 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)
    • getContractorId

      public String getContractorId()
    • setContractorId

      public Contract setContractorId(String contractor_id)
    • unsetContractorId

      public void unsetContractorId()
    • isSetContractorId

      public boolean isSetContractorId()
      Returns true if field contractor_id is set (has been assigned a value) and false otherwise
    • setContractorIdIsSet

      public void setContractorIdIsSet(boolean value)
    • getPaymentInstitution

      public PaymentInstitutionRef getPaymentInstitution()
    • setPaymentInstitution

      public Contract setPaymentInstitution(PaymentInstitutionRef payment_institution)
    • unsetPaymentInstitution

      public void unsetPaymentInstitution()
    • isSetPaymentInstitution

      public boolean isSetPaymentInstitution()
      Returns true if field payment_institution is set (has been assigned a value) and false otherwise
    • setPaymentInstitutionIsSet

      public void setPaymentInstitutionIsSet(boolean value)
    • getCreatedAt

      public String getCreatedAt()
    • setCreatedAt

      public Contract 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)
    • getValidSince

      public String getValidSince()
    • setValidSince

      public Contract setValidSince(String valid_since)
    • unsetValidSince

      public void unsetValidSince()
    • isSetValidSince

      public boolean isSetValidSince()
      Returns true if field valid_since is set (has been assigned a value) and false otherwise
    • setValidSinceIsSet

      public void setValidSinceIsSet(boolean value)
    • getValidUntil

      public String getValidUntil()
    • setValidUntil

      public Contract setValidUntil(String valid_until)
    • unsetValidUntil

      public void unsetValidUntil()
    • isSetValidUntil

      public boolean isSetValidUntil()
      Returns true if field valid_until is set (has been assigned a value) and false otherwise
    • setValidUntilIsSet

      public void setValidUntilIsSet(boolean value)
    • getStatus

      public ContractStatus getStatus()
    • setStatus

      public Contract setStatus(ContractStatus 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)
    • getTerms

      public TermSetHierarchyRef getTerms()
    • setTerms

      public Contract setTerms(TermSetHierarchyRef terms)
    • unsetTerms

      public void unsetTerms()
    • isSetTerms

      public boolean isSetTerms()
      Returns true if field terms is set (has been assigned a value) and false otherwise
    • setTermsIsSet

      public void setTermsIsSet(boolean value)
    • getAdjustmentsSize

      public int getAdjustmentsSize()
    • getAdjustmentsIterator

      public Iterator<ContractAdjustment> getAdjustmentsIterator()
    • addToAdjustments

      public void addToAdjustments(ContractAdjustment elem)
    • getAdjustments

      public List<ContractAdjustment> getAdjustments()
    • setAdjustments

      public Contract setAdjustments(List<ContractAdjustment> adjustments)
    • unsetAdjustments

      public void unsetAdjustments()
    • isSetAdjustments

      public boolean isSetAdjustments()
      Returns true if field adjustments is set (has been assigned a value) and false otherwise
    • setAdjustmentsIsSet

      public void setAdjustmentsIsSet(boolean value)
    • getPayoutToolsSize

      public int getPayoutToolsSize()
    • getPayoutToolsIterator

      public Iterator<PayoutTool> getPayoutToolsIterator()
    • addToPayoutTools

      public void addToPayoutTools(PayoutTool elem)
    • getPayoutTools

      public List<PayoutTool> getPayoutTools()
    • setPayoutTools

      public Contract setPayoutTools(List<PayoutTool> payout_tools)
    • unsetPayoutTools

      public void unsetPayoutTools()
    • isSetPayoutTools

      public boolean isSetPayoutTools()
      Returns true if field payout_tools is set (has been assigned a value) and false otherwise
    • setPayoutToolsIsSet

      public void setPayoutToolsIsSet(boolean value)
    • getLegalAgreement

      public LegalAgreement getLegalAgreement()
    • setLegalAgreement

      public Contract setLegalAgreement(LegalAgreement legal_agreement)
    • unsetLegalAgreement

      public void unsetLegalAgreement()
    • isSetLegalAgreement

      public boolean isSetLegalAgreement()
      Returns true if field legal_agreement is set (has been assigned a value) and false otherwise
    • setLegalAgreementIsSet

      public void setLegalAgreementIsSet(boolean value)
    • getReportPreferences

      public ReportPreferences getReportPreferences()
    • setReportPreferences

      public Contract setReportPreferences(ReportPreferences report_preferences)
    • unsetReportPreferences

      public void unsetReportPreferences()
    • isSetReportPreferences

      public boolean isSetReportPreferences()
      Returns true if field report_preferences is set (has been assigned a value) and false otherwise
    • setReportPreferencesIsSet

      public void setReportPreferencesIsSet(boolean value)
    • getContractor

      public Contractor getContractor()
    • setContractor

      public Contract setContractor(Contractor contractor)
    • unsetContractor

      public void unsetContractor()
    • isSetContractor

      public boolean isSetContractor()
      Returns true if field contractor is set (has been assigned a value) and false otherwise
    • setContractorIsSet

      public void setContractorIsSet(boolean value)
    • setFieldValue

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

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

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

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

      public boolean equals(Contract that)
    • hashCode

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

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

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

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

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