Package tbdex.sdk.messages
Object Rfq.Companion
-
- All Implemented Interfaces:
public class Rfq.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static Rfq.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final Rfqcreate(String to, String from, CreateRfqData createRfqData, String protocol, String externalId)Creates a new RFQ message. final RfqfromJsonString(String json)Parses an RFQ from a JSON string. -
-
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.
-
-
-
-