Search in sources :

Example 1 with OfferAcceptProcessor

use of io.tbd.tbdex.pfi_mock_impl.processors.OfferAcceptProcessor in project tbdex-protocol by TBD54566975.

the class ProcessorTestModule method configure.

@Override
protected void configure() {
    MessageThreadStore threadStore = new HibernateMessageThreadStore();
    CircleClient circleClient = new MockCircleClient();
    MessageThreadProcessor processor = new MessageThreadProcessor.Builder(threadStore).registerProcessor(MessageType.Ask, new AskProcessor()).registerProcessor(MessageType.Close, new CloseProcessor()).registerProcessor(MessageType.OfferAccept, new OfferAcceptProcessor()).registerProcessor(MessageType.SettlementDetails, new SettlementDetailsProcessor(new PaymentProcessor(circleClient))).build();
    bind(MessageThreadProcessor.class).toInstance(processor);
    bind(MessageThreadStore.class).toInstance(threadStore);
    bind(CircleClient.class).toInstance(circleClient);
}
Also used : AskProcessor(io.tbd.tbdex.pfi_mock_impl.processors.AskProcessor) SettlementDetailsProcessor(io.tbd.tbdex.pfi_mock_impl.processors.SettlementDetailsProcessor) HibernateMessageThreadStore(io.tbd.tbdex.pfi_mock_impl.store.HibernateMessageThreadStore) PaymentProcessor(io.tbd.tbdex.pfi_mock_impl.payments.PaymentProcessor) MockCircleClient(io.tbd.tbdex.pfi_mock_impl.payments.circle.MockCircleClient) CircleClient(io.tbd.tbdex.pfi_mock_impl.payments.circle.CircleClient) MessageThreadProcessor(io.tbd.tbdex.protocol.core.MessageThreadProcessor) CloseProcessor(io.tbd.tbdex.pfi_mock_impl.processors.CloseProcessor) MockCircleClient(io.tbd.tbdex.pfi_mock_impl.payments.circle.MockCircleClient) HibernateMessageThreadStore(io.tbd.tbdex.pfi_mock_impl.store.HibernateMessageThreadStore) MessageThreadStore(io.tbd.tbdex.protocol.core.MessageThreadStore) OfferAcceptProcessor(io.tbd.tbdex.pfi_mock_impl.processors.OfferAcceptProcessor)

Aggregations

PaymentProcessor (io.tbd.tbdex.pfi_mock_impl.payments.PaymentProcessor)1 CircleClient (io.tbd.tbdex.pfi_mock_impl.payments.circle.CircleClient)1 MockCircleClient (io.tbd.tbdex.pfi_mock_impl.payments.circle.MockCircleClient)1 AskProcessor (io.tbd.tbdex.pfi_mock_impl.processors.AskProcessor)1 CloseProcessor (io.tbd.tbdex.pfi_mock_impl.processors.CloseProcessor)1 OfferAcceptProcessor (io.tbd.tbdex.pfi_mock_impl.processors.OfferAcceptProcessor)1 SettlementDetailsProcessor (io.tbd.tbdex.pfi_mock_impl.processors.SettlementDetailsProcessor)1 HibernateMessageThreadStore (io.tbd.tbdex.pfi_mock_impl.store.HibernateMessageThreadStore)1 MessageThreadProcessor (io.tbd.tbdex.protocol.core.MessageThreadProcessor)1 MessageThreadStore (io.tbd.tbdex.protocol.core.MessageThreadStore)1