Class AccountState

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

@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
           date="2022-10-25")
public class AccountState
extends Object
implements org.apache.thrift.TBase<AccountState,​AccountState._Fields>, Serializable, Cloneable, Comparable<AccountState>
See Also:
Serialized Form
  • Field Details

    • account_id

      public long account_id
    • own_amount

      public long own_amount
    • available_amount

      public long available_amount
    • currency

      public Currency currency
    • metaDataMap

      public static final Map<AccountState._Fields,​org.apache.thrift.meta_data.FieldMetaData> metaDataMap
  • Constructor Details

    • AccountState

      public AccountState()
    • AccountState

      public AccountState​(long account_id, long own_amount, long available_amount, Currency currency)
    • AccountState

      public AccountState​(AccountState other)
      Performs a deep copy on other.
  • Method Details

    • deepCopy

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

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

      public long getAccountId()
    • setAccountId

      public AccountState setAccountId​(long account_id)
    • unsetAccountId

      public void unsetAccountId()
    • isSetAccountId

      public boolean isSetAccountId()
      Returns true if field account_id is set (has been assigned a value) and false otherwise
    • setAccountIdIsSet

      public void setAccountIdIsSet​(boolean value)
    • getOwnAmount

      public long getOwnAmount()
    • setOwnAmount

      public AccountState setOwnAmount​(long own_amount)
    • unsetOwnAmount

      public void unsetOwnAmount()
    • isSetOwnAmount

      public boolean isSetOwnAmount()
      Returns true if field own_amount is set (has been assigned a value) and false otherwise
    • setOwnAmountIsSet

      public void setOwnAmountIsSet​(boolean value)
    • getAvailableAmount

      public long getAvailableAmount()
    • setAvailableAmount

      public AccountState setAvailableAmount​(long available_amount)
    • unsetAvailableAmount

      public void unsetAvailableAmount()
    • isSetAvailableAmount

      public boolean isSetAvailableAmount()
      Returns true if field available_amount is set (has been assigned a value) and false otherwise
    • setAvailableAmountIsSet

      public void setAvailableAmountIsSet​(boolean value)
    • getCurrency

      public Currency getCurrency()
    • setCurrency

      public AccountState setCurrency​(Currency currency)
    • unsetCurrency

      public void unsetCurrency()
    • isSetCurrency

      public boolean isSetCurrency()
      Returns true if field currency is set (has been assigned a value) and false otherwise
    • setCurrencyIsSet

      public void setCurrencyIsSet​(boolean value)
    • setFieldValue

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

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

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

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

      public boolean equals​(AccountState that)
    • hashCode

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

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

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

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

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