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