Package dev.vality.damsel.domain
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<Contract._Fields,org.apache.thrift.meta_data.FieldMetaData> -
Constructor Summary
ConstructorsConstructorDescriptionContract()Performs a deep copy on other.Contract(String id, String created_at, ContractStatus status, TermSetHierarchyRef terms, List<ContractAdjustment> adjustments, List<PayoutTool> payout_tools) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddToPayoutTools(PayoutTool elem) voidclear()intdeepCopy()booleanbooleanfieldForId(int fieldId) intMap<Contract._Fields,org.apache.thrift.meta_data.FieldMetaData> getFieldValue(Contract._Fields field) getId()intgetTerms()inthashCode()booleanisSet(Contract._Fields field) Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanReturns true if field adjustments is set (has been assigned a value) and false otherwisebooleanReturns true if field contractor is set (has been assigned a value) and false otherwisebooleanReturns true if field contractor_id is set (has been assigned a value) and false otherwisebooleanReturns true if field created_at is set (has been assigned a value) and false otherwisebooleanisSetId()Returns true if field id is set (has been assigned a value) and false otherwisebooleanReturns true if field legal_agreement is set (has been assigned a value) and false otherwisebooleanReturns true if field payment_institution is set (has been assigned a value) and false otherwisebooleanReturns true if field payout_tools is set (has been assigned a value) and false otherwisebooleanReturns true if field report_preferences is set (has been assigned a value) and false otherwisebooleanReturns true if field status is set (has been assigned a value) and false otherwisebooleanReturns true if field terms is set (has been assigned a value) and false otherwisebooleanReturns true if field valid_since is set (has been assigned a value) and false otherwisebooleanReturns true if field valid_until is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot) setAdjustments(List<ContractAdjustment> adjustments) voidsetAdjustmentsIsSet(boolean value) setContractor(Contractor contractor) setContractorId(String contractor_id) voidsetContractorIdIsSet(boolean value) voidsetContractorIsSet(boolean value) setCreatedAt(String created_at) voidsetCreatedAtIsSet(boolean value) voidsetFieldValue(Contract._Fields field, Object value) voidsetIdIsSet(boolean value) setLegalAgreement(LegalAgreement legal_agreement) voidsetLegalAgreementIsSet(boolean value) setPaymentInstitution(PaymentInstitutionRef payment_institution) voidsetPaymentInstitutionIsSet(boolean value) setPayoutTools(List<PayoutTool> payout_tools) voidsetPayoutToolsIsSet(boolean value) setReportPreferences(ReportPreferences report_preferences) voidsetReportPreferencesIsSet(boolean value) setStatus(ContractStatus status) voidsetStatusIsSet(boolean value) setTerms(TermSetHierarchyRef terms) voidsetTermsIsSet(boolean value) setValidSince(String valid_since) voidsetValidSinceIsSet(boolean value) setValidUntil(String valid_until) voidsetValidUntilIsSet(boolean value) toString()voidvoidvoidvoidvoidunsetId()voidvoidvoidvoidvoidvoidvoidvoidvoidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
id
-
contractor_id
-
payment_institution
-
created_at
-
valid_since
-
valid_until
-
status
-
terms
-
adjustments
-
payout_tools
-
legal_agreement
-
report_preferences
-
contractor
-
metaDataMap
-
-
Constructor Details
-
Contract
public Contract() -
Contract
public Contract(String id, String created_at, ContractStatus status, TermSetHierarchyRef terms, List<ContractAdjustment> adjustments, List<PayoutTool> payout_tools) -
Contract
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<Contract,Contract._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<Contract,Contract._Fields>
-
getId
-
setId
-
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
-
setContractorId
-
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
-
setPaymentInstitution
-
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
-
setCreatedAt
-
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
-
setValidSince
-
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
-
setValidUntil
-
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
-
setStatus
-
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
-
setTerms
-
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
-
addToAdjustments
-
getAdjustments
-
setAdjustments
-
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
-
addToPayoutTools
-
getPayoutTools
-
setPayoutTools
-
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
-
setLegalAgreement
-
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
-
setReportPreferences
-
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
-
setContractor
-
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
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<Contract,Contract._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<Contract,Contract._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<Contract,Contract._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<Contract>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<Contract,Contract._Fields>
-
getFields
- Specified by:
getFieldsin interfaceorg.apache.thrift.TBase<Contract,Contract._Fields>
-
getFieldMetaData
- Specified by:
getFieldMetaDatain interfaceorg.apache.thrift.TBase<Contract,Contract._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException - Specified by:
readin interfaceorg.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:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
toString
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-