Package org.symbol.sdk.symbol.models
Class Receipt
java.lang.Object
org.symbol.sdk.CatbufferType
org.symbol.sdk.symbol.models.Receipt
- All Implemented Interfaces:
Serializer
- Direct Known Subclasses:
HarvestFeeReceipt,InflationReceipt,LockHashCompletedFeeReceipt,LockHashCreatedFeeReceipt,LockHashExpiredFeeReceipt,LockSecretCompletedFeeReceipt,LockSecretCreatedFeeReceipt,LockSecretExpiredFeeReceipt,MosaicExpiredReceipt,MosaicRentalFeeReceipt,NamespaceDeletedReceipt,NamespaceExpiredReceipt,NamespaceRentalFeeReceipt
public sealed class Receipt
extends CatbufferType
permits HarvestFeeReceipt, InflationReceipt, LockHashCompletedFeeReceipt, LockHashCreatedFeeReceipt, LockHashExpiredFeeReceipt, LockSecretCompletedFeeReceipt, LockSecretCreatedFeeReceipt, LockSecretExpiredFeeReceipt, MosaicExpiredReceipt, MosaicRentalFeeReceipt, NamespaceDeletedReceipt, NamespaceExpiredReceipt, NamespaceRentalFeeReceipt
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReads a named field.getType()Gets the type field.intGets the version field.protected voidserializeInto(Writer buffer) Writes this object's fields into the supplied buffer.voidSets a named field.voidsetType(ReceiptType value) Sets the type field.voidsetVersion(int value) Sets the version field.intsize()Calculates the size of the object.toJson()Converts this object to a JSON-serializable representation.toString()Returns a string representation of this object.Returns the type-hint map driving the rule-based descriptor pipeline.Methods inherited from class org.symbol.sdk.CatbufferType
asByteArray, asBytes, asInt, asList, asLong, serialize, sort, toJsonString
-
Field Details
-
version
protected int version -
type
-
TYPE_HINTS
-
-
Constructor Details
-
Receipt
public Receipt()Creates a new Receipt.
-
-
Method Details
-
typeHints
- Receipt.typeHints
- Returns the type-hint map driving the rule-based descriptor pipeline.
- Overrides:
typeHintsin classCatbufferType- Returns:
- Field-name → rule-key map.
-
setField
- Receipt.setField
- Sets a named field. Used by the rule-based descriptor pipeline.
- Overrides:
setFieldin classCatbufferType- Parameters:
name- Field name (descriptor key).value- Value to assign.
-
getField
- Receipt.getField
- Reads a named field. Used by the facade-level entity inspection helpers.
- Overrides:
getFieldin classCatbufferType- Parameters:
name- Field name.- Returns:
- Field value.
-
getVersion
public int getVersion()- Receipt.getVersion
- Gets the version field.
- Returns:
- The version field.
-
setVersion
public void setVersion(int value) - Receipt.setVersion
- Sets the version field.
- Parameters:
value- New version value.
-
getType
- Receipt.getType
- Gets the type field.
- Returns:
- The type field.
-
setType
- Receipt.setType
- Sets the type field.
- Parameters:
value- New type value.
-
size
public int size()- Receipt.size
- Calculates the size of the object.
- Returns:
- Size of this object in bytes.
-
serializeInto
- Receipt.serializeInto
- Writes this object's fields into the supplied buffer.
- Specified by:
serializeIntoin classCatbufferType- Parameters:
buffer- Output writer.
-
toString
- Receipt.toString
- Returns a string representation of this object.
-
toJson
- Receipt.toJson
- Converts this object to a JSON-serializable representation.
- Specified by:
toJsonin classCatbufferType- Returns:
- JSON-serializable representation of this object.
-