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.14.2)",
date="2022-10-25")
public class Contract
extends Object
implements org.apache.thrift.TBase<Contract,Contract._Fields>, Serializable, Cloneable, Comparable<Contract>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContract._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
Fields Modifier and Type Field Description List<ContractAdjustment>adjustmentsContractorcontractorStringcontractor_idStringcreated_atStringidLegalAgreementlegal_agreementstatic Map<Contract._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapPaymentInstitutionRefpayment_institutionList<PayoutTool>payout_toolsReportPreferencesreport_preferencesContractStatusstatusTermSetHierarchyReftermsStringvalid_sinceStringvalid_until -
Constructor Summary
Constructors Constructor Description Contract()Contract(Contract other)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 Type Method Description voidaddToAdjustments(ContractAdjustment elem)voidaddToPayoutTools(PayoutTool elem)voidclear()intcompareTo(Contract other)ContractdeepCopy()booleanequals(Contract that)booleanequals(Object that)Contract._FieldsfieldForId(int fieldId)List<ContractAdjustment>getAdjustments()Iterator<ContractAdjustment>getAdjustmentsIterator()intgetAdjustmentsSize()ContractorgetContractor()StringgetContractorId()StringgetCreatedAt()Map<Contract._Fields,org.apache.thrift.meta_data.FieldMetaData>getFieldMetaData()Contract._Fields[]getFields()ObjectgetFieldValue(Contract._Fields field)StringgetId()LegalAgreementgetLegalAgreement()PaymentInstitutionRefgetPaymentInstitution()List<PayoutTool>getPayoutTools()Iterator<PayoutTool>getPayoutToolsIterator()intgetPayoutToolsSize()ReportPreferencesgetReportPreferences()ContractStatusgetStatus()TermSetHierarchyRefgetTerms()StringgetValidSince()StringgetValidUntil()inthashCode()booleanisSet(Contract._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetAdjustments()Returns true if field adjustments is set (has been assigned a value) and false otherwisebooleanisSetContractor()Returns true if field contractor is set (has been assigned a value) and false otherwisebooleanisSetContractorId()Returns true if field contractor_id is set (has been assigned a value) and false otherwisebooleanisSetCreatedAt()Returns 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 otherwisebooleanisSetLegalAgreement()Returns true if field legal_agreement is set (has been assigned a value) and false otherwisebooleanisSetPaymentInstitution()Returns true if field payment_institution is set (has been assigned a value) and false otherwisebooleanisSetPayoutTools()Returns true if field payout_tools is set (has been assigned a value) and false otherwisebooleanisSetReportPreferences()Returns true if field report_preferences is set (has been assigned a value) and false otherwisebooleanisSetStatus()Returns true if field status is set (has been assigned a value) and false otherwisebooleanisSetTerms()Returns true if field terms is set (has been assigned a value) and false otherwisebooleanisSetValidSince()Returns true if field valid_since is set (has been assigned a value) and false otherwisebooleanisSetValidUntil()Returns true if field valid_until is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)ContractsetAdjustments(List<ContractAdjustment> adjustments)voidsetAdjustmentsIsSet(boolean value)ContractsetContractor(Contractor contractor)ContractsetContractorId(String contractor_id)voidsetContractorIdIsSet(boolean value)voidsetContractorIsSet(boolean value)ContractsetCreatedAt(String created_at)voidsetCreatedAtIsSet(boolean value)voidsetFieldValue(Contract._Fields field, Object value)ContractsetId(String id)voidsetIdIsSet(boolean value)ContractsetLegalAgreement(LegalAgreement legal_agreement)voidsetLegalAgreementIsSet(boolean value)ContractsetPaymentInstitution(PaymentInstitutionRef payment_institution)voidsetPaymentInstitutionIsSet(boolean value)ContractsetPayoutTools(List<PayoutTool> payout_tools)voidsetPayoutToolsIsSet(boolean value)ContractsetReportPreferences(ReportPreferences report_preferences)voidsetReportPreferencesIsSet(boolean value)ContractsetStatus(ContractStatus status)voidsetStatusIsSet(boolean value)ContractsetTerms(TermSetHierarchyRef terms)voidsetTermsIsSet(boolean value)ContractsetValidSince(String valid_since)voidsetValidSinceIsSet(boolean value)ContractsetValidUntil(String valid_until)voidsetValidUntilIsSet(boolean value)StringtoString()voidunsetAdjustments()voidunsetContractor()voidunsetContractorId()voidunsetCreatedAt()voidunsetId()voidunsetLegalAgreement()voidunsetPaymentInstitution()voidunsetPayoutTools()voidunsetReportPreferences()voidunsetStatus()voidunsetTerms()voidunsetValidSince()voidunsetValidUntil()voidvalidate()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
-