ExWubook v0.1.1 ExWubook View Source
Wubook API implementation
Link to this section Summary
Functions
Get new token from Wubook
Add Pricing Plan
Add Virtual Pricing Plan
Cancel reservation
Convert to daily plan
Remove Pricing plan
Remove Room or Virtual Room
Remove periods
Fetch booking by code
Fetch booking codes
Fetch new bookings
Fetch plan prices
Fetch Rooms
Fetch room values
Get fount symbols
Get Pricing Plans
Check token health
Mark bookings as received
Update Room
Update Virtual Room
Modify Virtual Pricing plans
Create reservation
Create Room
Create Virtual Room
Get information about provider
Setup push callback url
WuBook can send a notification if rooms values are changed, for instance when a user updates the availability of his rooms on WuBook Extranet. The push_update_activation() method is used to setup an URL to which the notifications will be sent
Get push update URL
Get push callback url
Release token
Get list of room images
Add Restriction Plan
Remove Restriction Plan
Get Restriction Plan Values
Rename Restriction Plan
Get Restriction Plans
Update Restriction Plan Rules
Update Restriction Plan Values
Update Availability Range
Update Pricing plan name
Update plan periods
Update Pricing plan prices
Update Pricing plan default values
Update Sparse Availability
Link to this section Functions
acquire_token(user, password, provider_key, lcode) View Source
Get new token from Wubook
add_pricing_plan(token, name, daily \\ 1) View Source
Add Pricing Plan
add_vplan(token, name, pid, dtype, value) View Source
Add Virtual Pricing Plan
balance_details(token, transaction_id) View Source
balance_transactions(token) View Source
bcom_confirm_activation(token, chid) View Source
bcom_get_advance_booking(token, self, ip, ses, chid) View Source
bcom_init_channel(token, chid, currency) View Source
bcom_notify_invalid_cc(token, rcode) View Source
bcom_notify_noshow(token, rcode) View Source
bcom_read_allotments(token, chid, dfrom, days) View Source
bcom_rooms_rates(token, chid) View Source
bcom_set_advanced_booking(token, ip, ses, chid, advanced_res) View Source
bcom_set_rate_mapping(token, chid, rmap) View Source
bcom_set_room_mapping(token, chid, rmap, singlemap \\ nil) View Source
bcom_start_procedure(token, chid, bhid) View Source
cancel_reservation(token, rcode, reason \\ nil) View Source
Cancel reservation
convert_to_daily_plan(token, pid) View Source
Convert to daily plan
corporate_balance_details(token, transaction_id) View Source
corporate_balance_transactions(token) View Source
corporate_fetch_accounts(token, acode \\ nil) View Source
corporate_fetch_channels(token) View Source
corporate_fetchable_properties(token) View Source
corporate_get_channels(token, filters) View Source
corporate_get_providers_info(token, acodes \\ nil) View Source
corporate_new_account_and_property(token, lodg, woodoo_only, account) View Source
corporate_new_property(token, lodg, woodoo_only, acode) View Source
corporate_renew_booking(token, months, pretend \\ 1) View Source
corporate_renew_channels(token, channels, pretend \\ 1) View Source
corporate_set_autorenew_wb(token, set_autorenew) View Source
corporate_set_autorenew_wo(token, lchans, set_autorenew) View Source
corporate_set_autorenew_zak(token, set_autorenew) View Source
del_opportunity(token, oid) View Source
del_plan(token, pid) View Source
Remove Pricing plan
del_policy(token, pid) View Source
del_room(token, rid) View Source
Remove Room or Virtual Room
del_soffer(token, sid) View Source
delete_periods(token, pid, periods) View Source
Remove periods
detach_balance(token, balance_ids) View Source
exp_init_channel(token, chid, currency, fee, vat_taxes) View Source
exp_rooms_rates(token, chid) View Source
exp_set_preferences(token, chid, hct, minstay_error_behaviour, minstay_type, last_rate \\ nil) View Source
exp_set_rate_mapping(token, chid, rmap) View Source
exp_set_room_mapping(token, chid, rmap, allots \\ nil) View Source
exp_start_procedure(token, chid, ehid) View Source
exp_vat_models(token) View Source
fetch_booking(token, rcode, ancillary \\ 0) View Source
Fetch booking by code
fetch_bookings(token, dfrom \\ nil, dto \\ nil, on_created \\ 0, ancillary \\ 1) View Source
Fetch bookings
fetch_bookings_codes(token, dfrom, dto, on_created \\ 1) View Source
Fetch booking codes
fetch_new_bookings(token, ancillary \\ 0, mark \\ 1) View Source
Fetch new bookings
fetch_opportunities(token, dfrom \\ nil, dto \\ nil, ancillary \\ 0) View Source
fetch_plan_prices(token, pid, dfrom, dto, rooms \\ []) View Source
Fetch plan prices
fetch_policies(token, ancillary \\ 0) View Source
fetch_policy_calendar(token, dfrom, dto) View Source
fetch_rooms(token, ancillary \\ 0) View Source
Fetch Rooms
fetch_rooms_values(token, dfrom, dto, rooms \\ []) View Source
Fetch room values
fetch_rsrv_errors(token) View Source
fetch_soffers(token, drom \\ nil, dto \\ nil, ancillary \\ 0) View Source
get_balance(token, status) View Source
get_channels_info(token) View Source
get_crp_balance(token, status) View Source
get_fount_symbols(token) View Source
Get fount symbols
get_otas(token) View Source
get_pricing_plans(token) View Source
Get Pricing Plans
is_token_valid(token) View Source
Check token health
last_room_channels(token, up_channels \\ nil) View Source
mark_bookings(token, reservation_codes) View Source
Mark bookings as received
mod_opportunity(token, oid, args) View Source
mod_policy(token, pid, args) View Source
mod_room(token, args) View Source
Update Room
mod_soffer(token, sid, args) View Source
mod_virtual_room(token, args) View Source
Update Virtual Room
mod_vplans(token, plans) View Source
Modify Virtual Pricing plans
new_opportunity(token, args) View Source
new_ota(token, ctype, tag \\ nil) View Source
new_policy(token, args) View Source
new_reservation(token, args) View Source
Create reservation
new_room(token, args) View Source
Create Room
new_soffer(token, args) View Source
new_virtual_room(token, args) View Source
Create Virtual Room
ota_running(token, chid) View Source
pay_balance(token, balance_ids) View Source
pay_balance_with_credit(token, balance_ids) View Source
provider_info(token) View Source
Get information about provider
push_activation(token, url, test \\ 0) View Source
Setup push callback url
push_update_activation(token, url) View Source
WuBook can send a notification if rooms values are changed, for instance when a user updates the availability of his rooms on WuBook Extranet. The push_update_activation() method is used to setup an URL to which the notifications will be sent.
push_update_url(token) View Source
Get push update URL
push_url(token) View Source
Get push callback url
release_token(token) View Source
Release token
room_images(token, rid) View Source
Get list of room images
rplan_add_rplan(token, name, compact) View Source
Add Restriction Plan
rplan_del_rplan(token, rpid) View Source
Remove Restriction Plan
rplan_get_rplan_values(token, dfrom, dto, rpids \\ []) View Source
Get Restriction Plan Values
rplan_rename_rplan(token, rpid, name) View Source
Rename Restriction Plan
rplan_rplans(token) View Source
Get Restriction Plans
rplan_update_rplan_rules(token, rpid, rules) View Source
Update Restriction Plan Rules
rplan_update_rplan_values(token, rpid, dfrom, values) View Source
Update Restriction Plan Values
set_policy_calendar(token, pid, dfrom, dto) View Source
tag_ota(token, chid, tag) View Source
update_avail(token, dfrom, rooms) View Source
Update Availability Range
update_plan_name(token, pid, name) View Source
Update Pricing plan name
update_plan_periods(token, pid, periods) View Source
Update plan periods
update_plan_prices(token, pid, dfrom, prices) View Source
Update Pricing plan prices
update_plan_rack(token, pid, rack) View Source
Update Pricing plan default values
update_sparse_avail(token, rooms) View Source
Update Sparse Availability