Package tbdex.sdk.messages
Class Order
-
- All Implemented Interfaces:
-
tbdex.sdk.http.WalletUpdateMessage,tbdex.sdk.messages.Message
public final class Order implements Message, WalletUpdateMessage
Represents an Order message in the tbDEX protocol.
An Order message is sent by Alice to a PFI to execute a transaction based on a previously provided quote.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classOrder.Companion
-
Field Summary
Fields Modifier and Type Field Description private final MessageMetadatametadataprivate final Stringsignaturepublic final static Order.CompanionCompanion
-
Method Summary
Modifier and Type Method Description final MessageMetadatagetMetadata()Metadata about the message, including sender, recipient, and protocol information. final StringgetSignature()The signature verifying the authenticity and integrity of the Order message. final StringtoJsonString()Serializes the Order to a JSON string. final Unitsign(BearerDid bearerDid)Signs the Order using the provided Bearer DID. final Unitverify()Verifies the Order's signature and validity. -
-
Method Detail
-
getMetadata
final MessageMetadata getMetadata()
Metadata about the message, including sender, recipient, and protocol information.
-
getSignature
final String getSignature()
The signature verifying the authenticity and integrity of the Order message.
-
toJsonString
final String toJsonString()
Serializes the Order to a JSON string.
- Returns:
The serialized JSON string of the Order.
-
sign
final Unit sign(BearerDid bearerDid)
Signs the Order using the provided Bearer DID.
- Parameters:
bearerDid- The Bearer DID used to sign the Order.
-
-
-
-