Package tbdex.sdk.messages
Object Quote.Companion
-
- All Implemented Interfaces:
public class Quote.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static Quote.CompanionINSTANCE
-
Method Summary
-
-
Method Detail
-
create
final Quote create(String to, String from, String exchangeId, QuoteData data, String protocol, String externalId)
Creates a new Quote message.
- Parameters:
to- The DID of the recipient (Alice).from- The DID of the sender (the PFI).exchangeId- The ID of the exchange between Alice and the PFI.data- The data containing the quote details, such as exchange rate and fees.protocol- Optional protocol version.externalId- Optional external identifier.- Returns:
The newly created Quote message.
-
fromJsonString
final Quote fromJsonString(String json)
Parses a Quote from a JSON string.
- Parameters:
json- The JSON string representing the Quote.- Returns:
The deserialized Quote message.
-
-
-
-