rabbit_mq_ex v1.0.0-0.0.2 Bookings.MessageProcessors.CancelBookingMessageProcessor

Link to this section Summary

Functions

Processes *.cancel_booking messages from the airline_request exchange. Calls a 3rd party API to cancel a booking, removes the booking from Bookings.Store.

Link to this section Types

Link to this type

error()

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

Link to this section Functions

Link to this function

process_message(payload, meta)

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

Processes *.cancel_booking messages from the airline_request exchange. Calls a 3rd party API to cancel a booking, removes the booking from Bookings.Store.