Custom PNR Editor Script Samples for Mobile

On this page:

Overview

These scripts are for our TMC partners to use for obtaining data on mobile transactions from Deem.  

Sabre PNR script samples

Note: Text marked in BOLD should be updated.

Function

Script

Trip Origin for Mobile

//Trip Origin for Mobile

if(((UserPnrData.DataType=="new")||(UserPnrData.DataType=="hold"))&&(UserPnrData.TripOrigin=="handheld"))
{out.print("5H-**MOBILE BOOKING**");} 

Trip Change on Mobile


//Trip Change on Mobile
 if((UserPnrData.DataType=="change")&&(UserPnrData.TripOrigin=="handheld"))
{out.print("5H-**CHANGED ON MOBILE**");}  
 
Trip Cancel on Mobile
//Trip Cancel on Mobile
if((UserPnrData.DataType=="cancel")&&(UserPnrData.TripOrigin=="handheld"))
{out.print("5H-**CANCELLED ON MOBILE**");}  
Mobile Booking

//returns 'true' if user is accessing from mobile


if(((UserPnrData.ClientDevicetype =="MOBILE")

{out.print("5H-**MOBILE BOOKING**”);}


Apollo PNR script samples

Note: Text marked in BOLD should be updated.

Function

Script

Trip Origin for Mobile

//Trip Origin for Mobile

if(((UserPnrData.DataType=="new")||(UserPnrData.DataType=="hold"))&&(UserPnrData.TripOrigin=="handheld"))
{out.print("@:5A-**MOBILE BOOKING**");} 
 

Trip Change on Mobile


//Trip Change on Mobile 
if((UserPnrData.DataType=="change")&&(UserPnrData.TripOrigin=="handheld"))
{out.print("@:5A-**CHANGED ON MOBILE**");}  
 
Trip Cancel on Mobile
//Trip Cancel on Mobile
if((UserPnrData.DataType=="cancel")&&(UserPnrData.TripOrigin=="handheld"))
{out.print("@:5A-**CANCELLED ON MOBILE**");}  
Mobile Booking

//returns 'true' if user is accessing from mobile


if(((UserPnrData.ClientDevicetype =="MOBILE")

{out.print("@:5A-**MOBILE BOOKING**”);}

Worldspan PNR script samples

Note: Text marked in BOLD should be updated.

Function

Script

Trip Origin for Mobile

//Trip Origin for Mobile

if(((UserPnrData.DataType=="new")||(UserPnrData.DataType=="hold"))&&(UserPnrData.TripOrigin=="handheld"))
{out.print("5.0-**MOBILE BOOKING**");} 

Trip Change on Mobile


//Trip Change on Mobile

 if((UserPnrData.DataType=="change")&&(UserPnrData.TripOrigin=="handheld"))
{out.print("5.0--**CHANGED ON MOBILE**");}  
Trip Cancel on Mobile
//Trip Cancel on Mobile
if((UserPnrData.DataType=="cancel")&&(UserPnrData.TripOrigin=="handheld"))
{out.print("5.0--**CANCELLED ON MOBILE**");}  
Mobile Booking

//returns 'true' if user is accessing from mobile


if(((UserPnrData.ClientDevicetype =="MOBILE")

{out.print("5.0--**MOBILE BOOKING**”);}