use of io.tbd.tbdex.protocol.messages.SettlementReceipt in project tbdex-protocol by TBD54566975.
the class SettlementDetailsProcessor method process.
@Override
public Message process(Message message) {
Preconditions.checkState(message.type() == MessageType.SettlementDetails);
SettlementDetails settlementDetails = getBody(message);
paymentProcessor.process(settlementDetails, message.threadID());
String messageId = UUID.randomUUID().toString();
return new Message.Builder(messageId, message.threadID(), message.to(), message.from()).build(new SettlementReceipt("receipt"));
}
Aggregations