Package tbdex.sdk.messages
Object OrderInstructions.Companion
-
- All Implemented Interfaces:
public class OrderInstructions.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static OrderInstructions.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final OrderInstructionscreate(String to, String from, String exchangeId, OrderInstructionsData data, String protocol, String externalId)Creates a new Order Instructions message. final OrderInstructionsfromJsonString(String json)Parses an Order Instructions message from a JSON string. -
-
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.
-
-
-
-