Search in sources :

Example 1 with SettlementRequest

use of io.tbd.tbdex.protocol.messages.SettlementRequest in project tbdex-protocol by TBD54566975.

the class OfferAcceptProcessor method process.

@Override
public Message process(Message message) {
    String messageId = UUID.randomUUID().toString();
    // TODO: send real schema
    SettlementRequest settlementRequest = new SettlementRequest("schema");
    return new Message.Builder(messageId, message.threadID(), message.to(), message.from()).build(settlementRequest);
}
Also used : Message(io.tbd.tbdex.protocol.core.Message) SettlementRequest(io.tbd.tbdex.protocol.messages.SettlementRequest)

Aggregations

Message (io.tbd.tbdex.protocol.core.Message)1 SettlementRequest (io.tbd.tbdex.protocol.messages.SettlementRequest)1