Object Close.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 Close create(String to, String from, String exchangeId, CloseData data, String protocol, String externalId) Creates a new Close message.
      final Close fromJsonString(String json) Parses a Close 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 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.