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

        Creates a new Order 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.
        protocol - Optional protocol version.
        externalId - Optional external identifier.
        Returns:

        The newly created Order message.

      • fromJsonString

         final Order fromJsonString(String json)

        Parses an Order message from a JSON string.

        Parameters:
        json - The JSON string representing the Order.
        Returns:

        The deserialized Order message.