Class GetQuoteParams

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

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

    • idempotency_id

      public String idempotency_id
    • currency_from

      public Currency currency_from
    • currency_to

      public Currency currency_to
    • exchange_cash

      public Cash exchange_cash
      Сумма в одной из валют обмена
    • metaDataMap

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

    • GetQuoteParams

      public GetQuoteParams()
    • GetQuoteParams

      public GetQuoteParams​(Currency currency_from, Currency currency_to, Cash exchange_cash)
    • GetQuoteParams

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

    • deepCopy

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

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

      public String getIdempotencyId()
    • setIdempotencyId

      public GetQuoteParams setIdempotencyId​(String idempotency_id)
    • unsetIdempotencyId

      public void unsetIdempotencyId()
    • isSetIdempotencyId

      public boolean isSetIdempotencyId()
      Returns true if field idempotency_id is set (has been assigned a value) and false otherwise
    • setIdempotencyIdIsSet

      public void setIdempotencyIdIsSet​(boolean value)
    • getCurrencyFrom

      public Currency getCurrencyFrom()
    • setCurrencyFrom

      public GetQuoteParams setCurrencyFrom​(Currency currency_from)
    • unsetCurrencyFrom

      public void unsetCurrencyFrom()
    • isSetCurrencyFrom

      public boolean isSetCurrencyFrom()
      Returns true if field currency_from is set (has been assigned a value) and false otherwise
    • setCurrencyFromIsSet

      public void setCurrencyFromIsSet​(boolean value)
    • getCurrencyTo

      public Currency getCurrencyTo()
    • setCurrencyTo

      public GetQuoteParams setCurrencyTo​(Currency currency_to)
    • unsetCurrencyTo

      public void unsetCurrencyTo()
    • isSetCurrencyTo

      public boolean isSetCurrencyTo()
      Returns true if field currency_to is set (has been assigned a value) and false otherwise
    • setCurrencyToIsSet

      public void setCurrencyToIsSet​(boolean value)
    • getExchangeCash

      public Cash getExchangeCash()
      Сумма в одной из валют обмена
    • setExchangeCash

      public GetQuoteParams setExchangeCash​(Cash exchange_cash)
      Сумма в одной из валют обмена
    • unsetExchangeCash

      public void unsetExchangeCash()
    • isSetExchangeCash

      public boolean isSetExchangeCash()
      Returns true if field exchange_cash is set (has been assigned a value) and false otherwise
    • setExchangeCashIsSet

      public void setExchangeCashIsSet​(boolean value)
    • setFieldValue

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

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

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

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

      public boolean equals​(GetQuoteParams that)
    • hashCode

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

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

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

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

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