Package tbdex.sdk.messages
Object Close.Companion
-
- All Implemented Interfaces:
public class Close.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static Close.CompanionINSTANCE
-
Method Summary
-
-
Method Detail
-
create
final Close create(String to, String from, String exchangeId, CloseData data, String protocol, String externalId)
Creates a new Close 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 reason for closure and success status.protocol- Optional protocol version.externalId- Optional external identifier.- Returns:
The newly created Close message.
-
fromJsonString
final Close fromJsonString(String json)
Parses a Close message from a JSON string.
- Parameters:
json- The JSON string representing the Close message.- Returns:
The deserialized Close message.
-
-
-
-