Package tbdex.sdk.messages
Object Order.Companion
-
- All Implemented Interfaces:
public class Order.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static Order.CompanionINSTANCE
-
Method Summary
-
-
Method Detail
-
create
final Order create(String to, String from, String exchangeId, String protocol, String externalId)
Creates a new Order message.
- Parameters:
to- The DID of the recipient (the PFI).from- The DID of the sender (Alice).exchangeId- The exchange ID shared between Alice and the PFI.protocol- Optional protocol version.externalId- Optional external identifier.- Returns:
The newly created Order message.
-
fromJsonString
final Order fromJsonString(String json)
Parses an Order message from a JSON string.
- Parameters:
json- The JSON string representing the Order.- Returns:
The deserialized Order message.
-
-
-
-