Class Payout

java.lang.Object
dev.vality.payout.manager.Payout
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Payout>, org.apache.thrift.TBase<Payout,​Payout._Fields>, org.apache.thrift.TSerializable

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

    • payout_id

      public String payout_id
    • created_at

      public String created_at
    • party_id

      public String party_id
    • shop_id

      public String shop_id
    • status

      public PayoutStatus status
    • cash_flow

      public List<dev.vality.damsel.domain.FinalCashFlowPosting> cash_flow
    • payout_tool_id

      public String payout_tool_id
    • amount

      public long amount
    • fee

      public long fee
    • currency

      public dev.vality.damsel.domain.CurrencyRef currency
    • metaDataMap

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

    • Payout

      public Payout()
    • Payout

      public Payout​(String payout_id, String created_at, String party_id, String shop_id, PayoutStatus status, List<dev.vality.damsel.domain.FinalCashFlowPosting> cash_flow, String payout_tool_id, long amount, long fee, dev.vality.damsel.domain.CurrencyRef currency)
    • Payout

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

    • deepCopy

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

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

      public String getPayoutId()
    • setPayoutId

      public Payout setPayoutId​(String payout_id)
    • unsetPayoutId

      public void unsetPayoutId()
    • isSetPayoutId

      public boolean isSetPayoutId()
      Returns true if field payout_id is set (has been assigned a value) and false otherwise
    • setPayoutIdIsSet

      public void setPayoutIdIsSet​(boolean value)
    • getCreatedAt

      public String getCreatedAt()
    • setCreatedAt

      public Payout setCreatedAt​(String created_at)
    • 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)
    • getPartyId

      public String getPartyId()
    • setPartyId

      public Payout setPartyId​(String party_id)
    • unsetPartyId

      public void unsetPartyId()
    • isSetPartyId

      public boolean isSetPartyId()
      Returns true if field party_id is set (has been assigned a value) and false otherwise
    • setPartyIdIsSet

      public void setPartyIdIsSet​(boolean value)
    • getShopId

      public String getShopId()
    • setShopId

      public Payout setShopId​(String shop_id)
    • unsetShopId

      public void unsetShopId()
    • isSetShopId

      public boolean isSetShopId()
      Returns true if field shop_id is set (has been assigned a value) and false otherwise
    • setShopIdIsSet

      public void setShopIdIsSet​(boolean value)
    • getStatus

      public PayoutStatus getStatus()
    • setStatus

      public Payout setStatus​(PayoutStatus status)
    • 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)
    • getCashFlowSize

      public int getCashFlowSize()
    • getCashFlowIterator

      public Iterator<dev.vality.damsel.domain.FinalCashFlowPosting> getCashFlowIterator()
    • addToCashFlow

      public void addToCashFlow​(dev.vality.damsel.domain.FinalCashFlowPosting elem)
    • getCashFlow

      public List<dev.vality.damsel.domain.FinalCashFlowPosting> getCashFlow()
    • setCashFlow

      public Payout setCashFlow​(List<dev.vality.damsel.domain.FinalCashFlowPosting> cash_flow)
    • unsetCashFlow

      public void unsetCashFlow()
    • isSetCashFlow

      public boolean isSetCashFlow()
      Returns true if field cash_flow is set (has been assigned a value) and false otherwise
    • setCashFlowIsSet

      public void setCashFlowIsSet​(boolean value)
    • getPayoutToolId

      public String getPayoutToolId()
    • setPayoutToolId

      public Payout setPayoutToolId​(String payout_tool_id)
    • unsetPayoutToolId

      public void unsetPayoutToolId()
    • isSetPayoutToolId

      public boolean isSetPayoutToolId()
      Returns true if field payout_tool_id is set (has been assigned a value) and false otherwise
    • setPayoutToolIdIsSet

      public void setPayoutToolIdIsSet​(boolean value)
    • getAmount

      public long getAmount()
    • setAmount

      public Payout setAmount​(long amount)
    • 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)
    • getFee

      public long getFee()
    • setFee

      public Payout setFee​(long fee)
    • unsetFee

      public void unsetFee()
    • isSetFee

      public boolean isSetFee()
      Returns true if field fee is set (has been assigned a value) and false otherwise
    • setFeeIsSet

      public void setFeeIsSet​(boolean value)
    • getCurrency

      public dev.vality.damsel.domain.CurrencyRef getCurrency()
    • setCurrency

      public Payout setCurrency​(dev.vality.damsel.domain.CurrencyRef 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​(Payout._Fields field, Object value)
      Specified by:
      setFieldValue in interface org.apache.thrift.TBase<Payout,​Payout._Fields>
    • getFieldValue

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

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

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

      public boolean equals​(Payout that)
    • hashCode

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

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

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

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

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