Object OrderInstructions.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • create

         final OrderInstructions create(String to, String from, String exchangeId, OrderInstructionsData data, String protocol, String externalId)

        Creates a new Order Instructions 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 payment instructions for payin and payout.
        protocol - Optional protocol version.
        externalId - Optional external identifier.
        Returns:

        The newly created Order Instructions message.

      • fromJsonString

         final OrderInstructions fromJsonString(String json)

        Parses an Order Instructions message from a JSON string.

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

        The deserialized Order Instructions message.