Package dev.vality.damsel.domain
Class Invoice
java.lang.Object
dev.vality.damsel.domain.Invoice
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Invoice>,org.apache.thrift.TBase<Invoice,Invoice._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
date="2022-10-25")
public class Invoice
extends Object
implements org.apache.thrift.TBase<Invoice,Invoice._Fields>, Serializable, Cloneable, Comparable<Invoice>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInvoice._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
Fields Modifier and Type Field Description AllocationallocationInvoiceClientInfoclient_infoContentcontextCashcostStringcreated_atInvoiceDetailsdetailsStringdueStringexternal_idStringidstatic Map<Invoice._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapStringowner_idlongparty_revisionStringshop_idInvoiceStatusstatusStringtemplate_id -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidclear()intcompareTo(Invoice other)InvoicedeepCopy()booleanequals(Invoice that)booleanequals(Object that)Invoice._FieldsfieldForId(int fieldId)AllocationgetAllocation()InvoiceClientInfogetClientInfo()ContentgetContext()CashgetCost()StringgetCreatedAt()InvoiceDetailsgetDetails()StringgetDue()StringgetExternalId()Map<Invoice._Fields,org.apache.thrift.meta_data.FieldMetaData>getFieldMetaData()Invoice._Fields[]getFields()ObjectgetFieldValue(Invoice._Fields field)StringgetId()StringgetOwnerId()longgetPartyRevision()StringgetShopId()InvoiceStatusgetStatus()StringgetTemplateId()inthashCode()booleanisSet(Invoice._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetAllocation()Returns true if field allocation is set (has been assigned a value) and false otherwisebooleanisSetClientInfo()Returns true if field client_info is set (has been assigned a value) and false otherwisebooleanisSetContext()Returns true if field context is set (has been assigned a value) and false otherwisebooleanisSetCost()Returns true if field cost 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 otherwisebooleanisSetDetails()Returns true if field details is set (has been assigned a value) and false otherwisebooleanisSetDue()Returns true if field due is set (has been assigned a value) and false otherwisebooleanisSetExternalId()Returns true if field external_id is set (has been assigned a value) and false otherwisebooleanisSetId()Returns true if field id is set (has been assigned a value) and false otherwisebooleanisSetOwnerId()Returns true if field owner_id is set (has been assigned a value) and false otherwisebooleanisSetPartyRevision()Returns true if field party_revision 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 otherwisebooleanisSetTemplateId()Returns true if field template_id is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)InvoicesetAllocation(Allocation allocation)voidsetAllocationIsSet(boolean value)InvoicesetClientInfo(InvoiceClientInfo client_info)voidsetClientInfoIsSet(boolean value)InvoicesetContext(Content context)voidsetContextIsSet(boolean value)InvoicesetCost(Cash cost)voidsetCostIsSet(boolean value)InvoicesetCreatedAt(String created_at)voidsetCreatedAtIsSet(boolean value)InvoicesetDetails(InvoiceDetails details)voidsetDetailsIsSet(boolean value)InvoicesetDue(String due)voidsetDueIsSet(boolean value)InvoicesetExternalId(String external_id)voidsetExternalIdIsSet(boolean value)voidsetFieldValue(Invoice._Fields field, Object value)InvoicesetId(String id)voidsetIdIsSet(boolean value)InvoicesetOwnerId(String owner_id)voidsetOwnerIdIsSet(boolean value)InvoicesetPartyRevision(long party_revision)voidsetPartyRevisionIsSet(boolean value)InvoicesetShopId(String shop_id)voidsetShopIdIsSet(boolean value)InvoicesetStatus(InvoiceStatus status)voidsetStatusIsSet(boolean value)InvoicesetTemplateId(String template_id)voidsetTemplateIdIsSet(boolean value)StringtoString()voidunsetAllocation()voidunsetClientInfo()voidunsetContext()voidunsetCost()voidunsetCreatedAt()voidunsetDetails()voidunsetDue()voidunsetExternalId()voidunsetId()voidunsetOwnerId()voidunsetPartyRevision()voidunsetShopId()voidunsetStatus()voidunsetTemplateId()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
id
-
owner_id
-
party_revision
public long party_revision -
shop_id
-
created_at
-
status
-
details
-
due
-
cost
-
context
-
template_id
-
external_id
-
client_info
-
allocation
-
metaDataMap
-
-
Constructor Details
-
Invoice
public Invoice() -
Invoice
public Invoice(String id, String owner_id, String shop_id, String created_at, InvoiceStatus status, InvoiceDetails details, String due, Cash cost) -
Invoice
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<Invoice,Invoice._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<Invoice,Invoice._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) -
getOwnerId
-
setOwnerId
-
unsetOwnerId
public void unsetOwnerId() -
isSetOwnerId
public boolean isSetOwnerId()Returns true if field owner_id is set (has been assigned a value) and false otherwise -
setOwnerIdIsSet
public void setOwnerIdIsSet(boolean value) -
getPartyRevision
public long getPartyRevision() -
setPartyRevision
-
unsetPartyRevision
public void unsetPartyRevision() -
isSetPartyRevision
public boolean isSetPartyRevision()Returns true if field party_revision is set (has been assigned a value) and false otherwise -
setPartyRevisionIsSet
public void setPartyRevisionIsSet(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) -
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) -
getDetails
-
setDetails
-
unsetDetails
public void unsetDetails() -
isSetDetails
public boolean isSetDetails()Returns true if field details is set (has been assigned a value) and false otherwise -
setDetailsIsSet
public void setDetailsIsSet(boolean value) -
getDue
-
setDue
-
unsetDue
public void unsetDue() -
isSetDue
public boolean isSetDue()Returns true if field due is set (has been assigned a value) and false otherwise -
setDueIsSet
public void setDueIsSet(boolean value) -
getCost
-
setCost
-
unsetCost
public void unsetCost() -
isSetCost
public boolean isSetCost()Returns true if field cost is set (has been assigned a value) and false otherwise -
setCostIsSet
public void setCostIsSet(boolean value) -
getContext
-
setContext
-
unsetContext
public void unsetContext() -
isSetContext
public boolean isSetContext()Returns true if field context is set (has been assigned a value) and false otherwise -
setContextIsSet
public void setContextIsSet(boolean value) -
getTemplateId
-
setTemplateId
-
unsetTemplateId
public void unsetTemplateId() -
isSetTemplateId
public boolean isSetTemplateId()Returns true if field template_id is set (has been assigned a value) and false otherwise -
setTemplateIdIsSet
public void setTemplateIdIsSet(boolean value) -
getExternalId
-
setExternalId
-
unsetExternalId
public void unsetExternalId() -
isSetExternalId
public boolean isSetExternalId()Returns true if field external_id is set (has been assigned a value) and false otherwise -
setExternalIdIsSet
public void setExternalIdIsSet(boolean value) -
getClientInfo
-
setClientInfo
-
unsetClientInfo
public void unsetClientInfo() -
isSetClientInfo
public boolean isSetClientInfo()Returns true if field client_info is set (has been assigned a value) and false otherwise -
setClientInfoIsSet
public void setClientInfoIsSet(boolean value) -
getAllocation
-
setAllocation
-
unsetAllocation
public void unsetAllocation() -
isSetAllocation
public boolean isSetAllocation()Returns true if field allocation is set (has been assigned a value) and false otherwise -
setAllocationIsSet
public void setAllocationIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<Invoice,Invoice._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<Invoice,Invoice._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<Invoice,Invoice._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<Invoice>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<Invoice,Invoice._Fields>
-
getFields
- Specified by:
getFieldsin interfaceorg.apache.thrift.TBase<Invoice,Invoice._Fields>
-
getFieldMetaData
- Specified by:
getFieldMetaDatain interfaceorg.apache.thrift.TBase<Invoice,Invoice._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
-