ExVerticalBooking v0.2.4 ExVerticalBooking.Request.OtaHotelResNotif View Source

Link to this section Summary

Link to this section Types

Link to this type

credentials()

View Source
credentials() :: %{user: String.t(), password: String.t(), endpoint: String.t()}
Link to this type

t()

View Source
t() :: %{
  hotel_reservations: [
    %{
      unique_id: %{type: String.t(), id_context: String.t(), id: String.t()},
      res_global_info: %{
        hotel_reservation_ids: [
          %{
            res_id_type: String.t(),
            res_id_value: String.t(),
            res_id_source: String.t(),
            res_id_source_context: String.t()
          }
        ]
      }
    }
  ]
}

Link to this section Functions

Link to this function

build_hotel_res_notif(payload, meta)

View Source
build_hotel_res_notif(t(), ExVerticalBooking.Meta.t()) ::
  {{atom(), map() | nil, list() | nil}, ExVerticalBooking.Meta.t()}
Link to this function

build_res_global_info(map)

View Source
Link to this function

execute(params, credentials, meta)

View Source

This method is used to update availability.