Class Payout
java.lang.Object
dev.vality.damsel.payout_processing.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-10-25")
public class Payout
extends Object
implements org.apache.thrift.TBase<Payout,Payout._Fields>, Serializable, Cloneable, Comparable<Payout>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPayout._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
Fields Modifier and Type Field Description longamountStringcontract_idStringcreated_atCurrencyRefcurrencylongfeeStringidMap<String,Value>metadatastatic Map<Payout._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapStringparty_idList<FinalCashFlowPosting>payout_flowStringshop_idPayoutStatusstatusList<PayoutSummaryItem>summaryPayoutTypetype -
Constructor Summary
Constructors Constructor Description Payout()Payout(Payout other)Performs a deep copy on other.Payout(String id, String party_id, String shop_id, String contract_id, String created_at, PayoutStatus status, long amount, long fee, CurrencyRef currency, List<FinalCashFlowPosting> payout_flow, PayoutType type) -
Method Summary
Modifier and Type Method Description voidaddToPayoutFlow(FinalCashFlowPosting elem)voidaddToSummary(PayoutSummaryItem elem)voidclear()intcompareTo(Payout other)PayoutdeepCopy()booleanequals(Payout that)booleanequals(Object that)Payout._FieldsfieldForId(int fieldId)longgetAmount()StringgetContractId()StringgetCreatedAt()CurrencyRefgetCurrency()longgetFee()Map<Payout._Fields,org.apache.thrift.meta_data.FieldMetaData>getFieldMetaData()Payout._Fields[]getFields()ObjectgetFieldValue(Payout._Fields field)StringgetId()Map<String,Value>getMetadata()intgetMetadataSize()StringgetPartyId()List<FinalCashFlowPosting>getPayoutFlow()Iterator<FinalCashFlowPosting>getPayoutFlowIterator()intgetPayoutFlowSize()StringgetShopId()PayoutStatusgetStatus()List<PayoutSummaryItem>getSummary()Iterator<PayoutSummaryItem>getSummaryIterator()intgetSummarySize()PayoutTypegetType()inthashCode()booleanisSet(Payout._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetAmount()Returns true if field amount is set (has been assigned a value) and false otherwisebooleanisSetContractId()Returns true if field contract_id is set (has been assigned a value) and false otherwisebooleanisSetCreatedAt()Returns true if field created_at is set (has been assigned a value) and false otherwisebooleanisSetCurrency()Returns true if field currency is set (has been assigned a value) and false otherwisebooleanisSetFee()Returns true if field fee is set (has been assigned a value) and false otherwisebooleanisSetId()Returns true if field id is set (has been assigned a value) and false otherwisebooleanisSetMetadata()Returns true if field metadata is set (has been assigned a value) and false otherwisebooleanisSetPartyId()Returns true if field party_id is set (has been assigned a value) and false otherwisebooleanisSetPayoutFlow()Returns true if field payout_flow is set (has been assigned a value) and false otherwisebooleanisSetShopId()Returns true if field shop_id is set (has been assigned a value) and false otherwisebooleanisSetStatus()Returns true if field status is set (has been assigned a value) and false otherwisebooleanisSetSummary()Returns true if field summary is set (has been assigned a value) and false otherwisebooleanisSetType()Returns true if field type is set (has been assigned a value) and false otherwisevoidputToMetadata(String key, Value val)voidread(org.apache.thrift.protocol.TProtocol iprot)PayoutsetAmount(long amount)voidsetAmountIsSet(boolean value)PayoutsetContractId(String contract_id)voidsetContractIdIsSet(boolean value)PayoutsetCreatedAt(String created_at)voidsetCreatedAtIsSet(boolean value)PayoutsetCurrency(CurrencyRef currency)voidsetCurrencyIsSet(boolean value)PayoutsetFee(long fee)voidsetFeeIsSet(boolean value)voidsetFieldValue(Payout._Fields field, Object value)PayoutsetId(String id)voidsetIdIsSet(boolean value)PayoutsetMetadata(Map<String,Value> metadata)voidsetMetadataIsSet(boolean value)PayoutsetPartyId(String party_id)voidsetPartyIdIsSet(boolean value)PayoutsetPayoutFlow(List<FinalCashFlowPosting> payout_flow)voidsetPayoutFlowIsSet(boolean value)PayoutsetShopId(String shop_id)voidsetShopIdIsSet(boolean value)PayoutsetStatus(PayoutStatus status)voidsetStatusIsSet(boolean value)PayoutsetSummary(List<PayoutSummaryItem> summary)voidsetSummaryIsSet(boolean value)PayoutsetType(PayoutType type)voidsetTypeIsSet(boolean value)StringtoString()voidunsetAmount()voidunsetContractId()voidunsetCreatedAt()voidunsetCurrency()voidunsetFee()voidunsetId()voidunsetMetadata()voidunsetPartyId()voidunsetPayoutFlow()voidunsetShopId()voidunsetStatus()voidunsetSummary()voidunsetType()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
id
-
party_id
-
shop_id
-
contract_id
-
created_at
-
status
-
amount
public long amount -
fee
public long fee -
currency
-
payout_flow
-
type
-
summary
-
metadata
-
metaDataMap
-
-
Constructor Details
-
Payout
public Payout() -
Payout
public Payout(String id, String party_id, String shop_id, String contract_id, String created_at, PayoutStatus status, long amount, long fee, CurrencyRef currency, List<FinalCashFlowPosting> payout_flow, PayoutType type) -
Payout
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<Payout,Payout._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<Payout,Payout._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) -
getPartyId
-
setPartyId
-
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
-
setShopId
-
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) -
getContractId
-
setContractId
-
unsetContractId
public void unsetContractId() -
isSetContractId
public boolean isSetContractId()Returns true if field contract_id is set (has been assigned a value) and false otherwise -
setContractIdIsSet
public void setContractIdIsSet(boolean value) -
getCreatedAt
-
setCreatedAt
-
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) -
getStatus
-
setStatus
-
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) -
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) -
getFee
public long getFee() -
setFee
-
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
-
setCurrency
-
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) -
getPayoutFlowSize
public int getPayoutFlowSize() -
getPayoutFlowIterator
-
addToPayoutFlow
-
getPayoutFlow
-
setPayoutFlow
-
unsetPayoutFlow
public void unsetPayoutFlow() -
isSetPayoutFlow
public boolean isSetPayoutFlow()Returns true if field payout_flow is set (has been assigned a value) and false otherwise -
setPayoutFlowIsSet
public void setPayoutFlowIsSet(boolean value) -
getType
-
setType
-
unsetType
public void unsetType() -
isSetType
public boolean isSetType()Returns true if field type is set (has been assigned a value) and false otherwise -
setTypeIsSet
public void setTypeIsSet(boolean value) -
getSummarySize
public int getSummarySize() -
getSummaryIterator
-
addToSummary
-
getSummary
-
setSummary
-
unsetSummary
public void unsetSummary() -
isSetSummary
public boolean isSetSummary()Returns true if field summary is set (has been assigned a value) and false otherwise -
setSummaryIsSet
public void setSummaryIsSet(boolean value) -
getMetadataSize
public int getMetadataSize() -
putToMetadata
-
getMetadata
-
setMetadata
-
unsetMetadata
public void unsetMetadata() -
isSetMetadata
public boolean isSetMetadata()Returns true if field metadata is set (has been assigned a value) and false otherwise -
setMetadataIsSet
public void setMetadataIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<Payout,Payout._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<Payout,Payout._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<Payout,Payout._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<Payout>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<Payout,Payout._Fields>
-
getFields
- Specified by:
getFieldsin interfaceorg.apache.thrift.TBase<Payout,Payout._Fields>
-
getFieldMetaData
- Specified by:
getFieldMetaDatain interfaceorg.apache.thrift.TBase<Payout,Payout._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
-