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