ExVerticalBooking v0.2.4 ExVerticalBooking.Request.OtaHotelInvCountNotif 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_code: String.t(),
  inventories: [
    %{
      status_application_control: %{
        start: String.t(),
        end: String.t(),
        inv_type_code: String.t()
      },
      inv_counts: [%{count_type: String.t(), count: String.t()}]
    }
  ]
}

Link to this section Functions

Link to this function

build_hotel_inv_count_notif(payload, meta)

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

execute(params, credentials, meta)

View Source

This method is used to update availability.