ExVerticalBooking v0.2.4 ExVerticalBooking View Source

Documentation for ExVerticalBooking.

Link to this section Summary

Functions

This method is used to update booking rule.

This method is used to update availability.

This method is used to update rates (per room prices).

This method is used for booking confirmation.

Ping message

This method is retrieve reservations for property.

Link to this section Types

Link to this type

credentials()

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

Link to this section Functions

Link to this function

ota_hotel_booking_rule_notif(params, credentials)

View Source

This method is used to update booking rule.

Link to this function

ota_hotel_inv_count_notif(params, credentials)

View Source

This method is used to update availability.

Link to this function

ota_hotel_rate_amount_notif(params, credentials)

View Source

This method is used to update rates (per room prices).

Link to this function

ota_hotel_res_notif(booking_ids, credentials)

View Source
ota_hotel_res_notif(list(), credentials()) ::
  {:ok, any(), ExVerticalBooking.Meta.t()}
  | {:error, map(), ExVerticalBooking.Meta.t()}

This method is used for booking confirmation.

Link to this function

ota_ping(credentials)

View Source
ota_ping(credentials()) ::
  {:ok, any(), ExVerticalBooking.Meta.t()}
  | {:error, map(), ExVerticalBooking.Meta.t()}

Ping message

This is a simple XML message that could be useful to test if the connection is working correctly. We suggest to implement this method first in order to be sure that the SOAP level communication is correct.

Example

ExVerticalBooking.ota_ping()

Link to this function

ota_read(params, credentials)

View Source
ota_read(%{hotel_code: String.t()}, credentials()) ::
  {:ok, any(), ExVerticalBooking.Meta.t()}
  | {:error, map(), ExVerticalBooking.Meta.t()}

This method is retrieve reservations for property.