Package dev.vality.damsel.domain
Class AllocationTransaction
java.lang.Object
dev.vality.damsel.domain.AllocationTransaction
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<AllocationTransaction>,org.apache.thrift.TBase<AllocationTransaction,,AllocationTransaction._Fields> org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.19.0)",
date="2024-08-02")
public class AllocationTransaction
extends Object
implements org.apache.thrift.TBase<AllocationTransaction,AllocationTransaction._Fields>, Serializable, Cloneable, Comparable<AllocationTransaction>
Транзакция - единица распределения денежных средств.
- 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 TypeFieldDescriptionСумма, которая будет переведена по назначению.Описывает содержимое транзакции в том случае, если был использован вариант прототипа с AllocationTransactionPrototypeBody.totalstatic final Map<AllocationTransaction._Fields,org.apache.thrift.meta_data.FieldMetaData> По этому назначению переводится часть денежных средств. -
Constructor Summary
ConstructorsConstructorDescriptionPerforms a deep copy on other.AllocationTransaction(String id, AllocationTransactionTarget target, Cash amount) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()intcompareTo(AllocationTransaction other) deepCopy()booleanequals(AllocationTransaction that) booleanfieldForId(int fieldId) Сумма, которая будет переведена по назначению.getBody()Описывает содержимое транзакции в том случае, если был использован вариант прототипа с AllocationTransactionPrototypeBody.totalMap<AllocationTransaction._Fields,org.apache.thrift.meta_data.FieldMetaData> getId()По этому назначению переводится часть денежных средств.inthashCode()booleanReturns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanReturns true if field amount is set (has been assigned a value) and false otherwisebooleanReturns true if field body is set (has been assigned a value) and false otherwisebooleanReturns true if field details 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 target is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot) Сумма, которая будет переведена по назначению.voidsetAmountIsSet(boolean value) Описывает содержимое транзакции в том случае, если был использован вариант прототипа с AllocationTransactionPrototypeBody.totalvoidsetBodyIsSet(boolean value) setDetails(AllocationTransactionDetails details) voidsetDetailsIsSet(boolean value) voidsetFieldValue(AllocationTransaction._Fields field, Object value) voidsetIdIsSet(boolean value) setTarget(AllocationTransactionTarget target) По этому назначению переводится часть денежных средств.voidsetTargetIsSet(boolean value) toString()voidvoidvoidvoidunsetId()voidvoidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
id
-
target
По этому назначению переводится часть денежных средств. -
amount
Сумма, которая будет переведена по назначению. -
body
Описывает содержимое транзакции в том случае, если был использован вариант прототипа с AllocationTransactionPrototypeBody.total -
details
-
metaDataMap
public static final Map<AllocationTransaction._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Details
-
AllocationTransaction
public AllocationTransaction() -
AllocationTransaction
-
AllocationTransaction
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<AllocationTransaction,AllocationTransaction._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<AllocationTransaction,AllocationTransaction._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) -
getTarget
По этому назначению переводится часть денежных средств. -
setTarget
По этому назначению переводится часть денежных средств. -
unsetTarget
public void unsetTarget() -
isSetTarget
public boolean isSetTarget()Returns true if field target is set (has been assigned a value) and false otherwise -
setTargetIsSet
public void setTargetIsSet(boolean value) -
getAmount
Сумма, которая будет переведена по назначению. -
setAmount
Сумма, которая будет переведена по назначению. -
unsetAmount
public void unsetAmount() -
isSetAmount
public boolean isSetAmount()Returns true if field amount is set (has been assigned a value) and false otherwise -
setAmountIsSet
public void setAmountIsSet(boolean value) -
getBody
Описывает содержимое транзакции в том случае, если был использован вариант прототипа с AllocationTransactionPrototypeBody.total -
setBody
Описывает содержимое транзакции в том случае, если был использован вариант прототипа с AllocationTransactionPrototypeBody.total -
unsetBody
public void unsetBody() -
isSetBody
public boolean isSetBody()Returns true if field body is set (has been assigned a value) and false otherwise -
setBodyIsSet
public void setBodyIsSet(boolean value) -
getDetails
-
setDetails
-
unsetDetails
public void unsetDetails() -
isSetDetails
public boolean isSetDetails()Returns true if field details is set (has been assigned a value) and false otherwise -
setDetailsIsSet
public void setDetailsIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<AllocationTransaction,AllocationTransaction._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<AllocationTransaction,AllocationTransaction._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<AllocationTransaction,AllocationTransaction._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<AllocationTransaction>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<AllocationTransaction,AllocationTransaction._Fields>
-
getFields
- Specified by:
getFieldsin interfaceorg.apache.thrift.TBase<AllocationTransaction,AllocationTransaction._Fields>
-
getFieldMetaData
public Map<AllocationTransaction._Fields,org.apache.thrift.meta_data.FieldMetaData> getFieldMetaData()- Specified by:
getFieldMetaDatain interfaceorg.apache.thrift.TBase<AllocationTransaction,AllocationTransaction._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
-