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

        Creates a new RFQ message.

        Parameters:
        to - The DID of the recipient (the PFI).
        from - The DID of the sender (Alice).
        createRfqData - The data needed to create the RFQ, such as payin and payout methods.
        protocol - Optional protocol version.
        externalId - Optional external identifier.
        Returns:

        The newly created RFQ message.

      • fromJsonString

         final Rfq fromJsonString(String json)

        Parses an RFQ from a JSON string.

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

        The deserialized RFQ message.