Package dev.vality.damsel.accounter
Class Posting
java.lang.Object
dev.vality.damsel.accounter.Posting
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Posting>,org.apache.thrift.TBase<Posting,,Posting._Fields> org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.19.0)",
date="2024-08-02")
public class Posting
extends Object
implements org.apache.thrift.TBase<Posting,Posting._Fields>, Serializable, Cloneable, Comparable<Posting>
Описывает одну проводку в системе (перевод спедств с одного счета на другой):
from_id - id счета, с которого производится списание
to_id - id счета, на который производится зачисление
amount - объем переводимых средств (не может быть отрицательным)
currency_sym_code - код валюты, должен совпадать с кодами задействованных счетов
description - описание проводки
- 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 TypeFieldDescriptionlonglongstatic final Map<Posting._Fields,org.apache.thrift.meta_data.FieldMetaData> long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()intdeepCopy()booleanbooleanfieldForId(int fieldId) longMap<Posting._Fields,org.apache.thrift.meta_data.FieldMetaData> getFieldValue(Posting._Fields field) longlonggetToId()inthashCode()booleanisSet(Posting._Fields field) Returns 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 currency_sym_code is set (has been assigned a value) and false otherwisebooleanReturns true if field description is set (has been assigned a value) and false otherwisebooleanReturns true if field from_id is set (has been assigned a value) and false otherwisebooleanReturns true if field to_id is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot) setAmount(long amount) voidsetAmountIsSet(boolean value) setCurrencySymCode(String currency_sym_code) voidsetCurrencySymCodeIsSet(boolean value) setDescription(String description) voidsetDescriptionIsSet(boolean value) voidsetFieldValue(Posting._Fields field, Object value) setFromId(long from_id) voidsetFromIdIsSet(boolean value) setToId(long to_id) voidsetToIdIsSet(boolean value) toString()voidvoidvoidvoidvoidvoidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
from_id
public long from_id -
to_id
public long to_id -
amount
public long amount -
currency_sym_code
-
description
-
metaDataMap
-
-
Constructor Details
-
Posting
public Posting() -
Posting
-
Posting
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<Posting,Posting._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<Posting,Posting._Fields>
-
getFromId
public long getFromId() -
setFromId
-
unsetFromId
public void unsetFromId() -
isSetFromId
public boolean isSetFromId()Returns true if field from_id is set (has been assigned a value) and false otherwise -
setFromIdIsSet
public void setFromIdIsSet(boolean value) -
getToId
public long getToId() -
setToId
-
unsetToId
public void unsetToId() -
isSetToId
public boolean isSetToId()Returns true if field to_id is set (has been assigned a value) and false otherwise -
setToIdIsSet
public void setToIdIsSet(boolean value) -
getAmount
public long 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) -
getCurrencySymCode
-
setCurrencySymCode
-
unsetCurrencySymCode
public void unsetCurrencySymCode() -
isSetCurrencySymCode
public boolean isSetCurrencySymCode()Returns true if field currency_sym_code is set (has been assigned a value) and false otherwise -
setCurrencySymCodeIsSet
public void setCurrencySymCodeIsSet(boolean value) -
getDescription
-
setDescription
-
unsetDescription
public void unsetDescription() -
isSetDescription
public boolean isSetDescription()Returns true if field description is set (has been assigned a value) and false otherwise -
setDescriptionIsSet
public void setDescriptionIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<Posting,Posting._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<Posting,Posting._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<Posting,Posting._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<Posting>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<Posting,Posting._Fields>
-
getFields
- Specified by:
getFieldsin interfaceorg.apache.thrift.TBase<Posting,Posting._Fields>
-
getFieldMetaData
- Specified by:
getFieldMetaDatain interfaceorg.apache.thrift.TBase<Posting,Posting._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
-