Process BTR alerts Process collected emails btr_alerts btr_confirm@bublik.weandcat.te.ua btr_confirm@wicked.weandcat.te.ua btr_confirm@bublik.ssft.net Update online database with changed VIP data Query online for last_vip_id and email options web last_id Set last_vip_id from data received var_read
data
Update email options opt_email
Gateway options
Prepare updated data in VIP comment VIP Initialization sql call vip.sync_upl_init(#last_id#)
data
VIP Post Code Selection sql call vip.sync_upl_post_code()
Post Code
VIP Country List selection sql call vip.sync_upl_country_ref()
Country
VIP Country To Account bindings selection sql call vip.sync_upl_country_account()
Account Country
Driver List selection sql call vip.sync_upl_driver()
Driver
Allowed Field Values selection sql call vip.sync_upl_booking_field_value()
Field Allowed Values
Booker List selection sql call vip.sync_upl_booker()
Booker
Passenger List selection sql call vip.sync_upl_passenger()
Passenger
Passenger To Account bindings selection sql call vip.sync_upl_passenger_account()
Account Passenger
Place List selection sql call vip.sync_upl_place_ref()
Place
Booking selection sql call vip.sync_upl_booking()
Booking
Booking passenger selection sql call vip.sync_upl_booking_passenger()
Booking Passenger
Booking place selection sql call vip.sync_upl_booking_place()
Booking Place
Booking fields selection sql call vip.sync_upl_booking_fields()
Booking Additional Fields
___create confirm section___ sql select 'ok' as result;
confirm
Send collected data to online web update_data Parse received sections comment Check confirm section section_check
confirm
Check return code for Post Codes section_check
Post Code
Check return code for Country section_check
Country
Check return code for Country-Account section_check
Account Country
Check return code for Driver section_check
Driver
Check return code for Field Allowed Values section_check
Field Allowed Values
Check return code for Field Allowed Values section_check
Field Allowed Values
Update external IDs on Booker section_sql
Booker
call vip.sync_uplc_booker(#vip_id#, #online_id#)
Update external IDs on Passenger section_sql
Passenger
call vip.sync_uplc_passenger(#vip_id#, #online_id#)
Update external IDs on Place section_sql
Place
call vip.sync_uplc_place_ref(#vip_id#, #online_id#)
Update external IDs on Booking section_sql
Booking
call vip.sync_uplc_booking(#vip_id#, #online_id#)
Check return code for Booking passengers section_check
Booking Passenger
Check return code for Booking places section_check
Booking Place
Check return code for Booking fields section_check
Booking Additional Fields
VIP Deinitialization sql call vip.sync_upl_deinit()
Update VIP database with changed online data get last online_id from VIP sql call vip.sync_dnl_init()
data
___create confirm section___ sql select 'ok' as result;
confirm
Send last online id to online web get_data clear Clear DataOut 1 Check confirm section section_check
confirm
Get last_online_id from data received var_read
data
Update bookers section_sql
Booker
call vip.sync_dnl_booker( #id#, #vip_booker_id#, #account_id#, #name#, #password#, #phone#, #email#, #fax#, #enabled#)
Update passengers section_sql
Passenger
call vip.sync_dnl_passenger( #id#, #vip_passenger_id#, #booker_id#, #pin#, #mobile_phone#, #title#, #given_name#, #surname#, #enabled#)
Update passengers-to-accounts bindings section_sql
Account Passenger
call vip.sync_dnl_passenger_account_xref(#passenger_id#, #account_id#, #del#)
Update places section_sql
Place
call vip.sync_dnl_place_ref( #id#, #vip_place_id#, #name#, #num#, #street#, #locality#, #town#, #post#, #sub_post_code#, #type_id#, #country#, #enabled#)
Preparing for booking download sql
call vip.sync_dnl_booking_clear()
Update bookings section_sql
Booking
call vip.sync_dnl_booking( #id#, #vip_booking_id#, #captured_dz#, #vehicle_id#, #country_id#, #total_psg#, #job_date_time#, #status#, #comment_text#, #account_id#, #booker_id#, #chauffeur_id#, #reference_num#)
Update booking passengers section_sql
Booking Passenger
call vip.sync_dnl_booking_psg( #booking_id#, #passenger_id#, #principal_ind#)
Update booking places section_sql
Booking Place
call vip.sync_dnl_booking_pl( #booking_id#, #place_id#, #seq_num#, #house_flight_no#)
Update booking fields section_sql
Booking Additional Fields
call vip.sync_dnl_booking_fld( #booking_id#, #field_id#, #field_value#)
Perform actual booking import sql
call vip.sync_dnl_booking_import();
Clearing booking temporary data sql
call vip.sync_dnl_booking_clear()
store last online_id from site sql call vip.sync_dnl_deinit(#last_id#)
Send confirmation on bookers data sql
Booker
call vip.sync_dnlc_booker()
Send confirmation on passengers data sql
Passenger
call vip.sync_dnlc_passenger()
Send confirmation on passengers-to-accounts data sql
Account Passenger
select 'ok' as result;
Send confirmation on places data sql
Place
call vip.sync_dnlc_place_ref()
Send confirmation on bookings sql
Booking
call vip.sync_dnlc_booking()
Send confirmation on booking passengers sql
Booking Passenger
select 'ok' as result;
Send confirmation on booking places sql
Booking Place
select 'ok' as result;
Send confirmation on booking fields sql
Booking Additional Fields
select 'ok' as result;
___create confirm section___ sql select 'ok' as result;
confirm
Send confirmation data to online web confirmation