rabbit_mq_ex v1.0.0-0.0.2 Bookings.MessageProcessors.PlaceBookingMessageProcessor

Link to this section Summary

Functions

Processes *.place_booking messages from the airline_request exchange. Calls a 3rd party API to place a booking, saves the booking into Bookings.Store.

Link to this section Types

Link to this type

error()

error() :: :invalid_payload | Jason.DecodeError | :invalid_format

Link to this section Functions

Link to this function

process_message(payload, meta)

process_message(String.t(), map()) :: :ok | {:error, error()}

Processes *.place_booking messages from the airline_request exchange. Calls a 3rd party API to place a booking, saves the booking into Bookings.Store.