Object Cancel.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Cancel create(String to, String from, String exchangeId, CancelData data, String protocol, String externalId) Creates a new Cancel message.
      final Cancel fromJsonString(String json) Parses a Cancel message from a JSON string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.