Table of Contents |
---|
New Booking
Tag / Keyword | Secondary Tag / Keyword | Java Script |
---|---|---|
New | New booking | if (((UserPnrData.DataType=="new")||(UserPnrData.DataType == "purchase_hold")||(UserPnrData.DataType=="change" && UserPnrData.UserBooking.HasAirBookingAdded == "true")) && (UserPnrData.UserBooking.AirBooking.BookingProvider=="SWABIZ")) { out.print("Line Number: 300 \n"); var wnrloc = UserPnrData.UserBooking.AirBooking.FlightLeg[0].FlightSegment[0].RecordLocator.Locator; var time = UserPnrData.User.Timestamp; out.print("5R$NEW SOUTHWEST RECLOC " + wnrloc + " " + time + "\n"); |
Printing a Ticket Number
Tag / Keyword | Secondary Tag / Keyword | Java Script |
---|---|---|
Print ticket number | var ticket = UserPnrData.UserBooking.ExistingTicketsInfo.ExistingTickets.TicketInfo.TicketNumber; |
Printing Fare Per Leg and Total Fare
Tag / Keyword | Secondary Tag / Keyword | Java Script |
---|---|---|
Print fare per leg and total fare | var i=0; { out.print("5R$TOTAL FARE " + UserPnrData.UserBooking.AirBooking.AirFare.FareInfo.TotalFare + "\n"); |
Printing Base Fare and Total Tax
Tag / Keyword | Secondary Tag / Keyword | Java Script |
---|---|---|
Print base fare and total tax | out.print("5R$BASE FARE " + UserPnrData.UserBooking.AirBooking.AirFare.FareInfo.BaseFare + "\n"); |
Printing all Unused Ticket Details Applied with Any Add Collect or Residual Value
Tag / Keyword | Secondary Tag / Keyword | Java Script |
---|---|---|
Print unused ticket details / add collect / residual value | if (UserPnrData.UserBooking.UnusedTicketUsage.length() > 0) { if (UserPnrData.UserBooking.UnusedTicketUsage[numTicks-1].TotalRemainingValue > 0) { out.print("5R$RESIDUAL OF " + UserPnrData.UserBooking.UnusedTicketUsage[numTicks-1].TotalRemainingValue + " PLACED IN UNUSED TICKET BANK" + "\n"); } else if (UserPnrData.UserBooking.UnusedTicketUsage[numTicks-1].AdditionalCollection > 0) { out.print("5R$ADD COLLECT AMOUNT " + UserPnrData.UserBooking.UnusedTicketUsage[numTicks-1].AdditionalCollection + "\n"); } else { out.print("5R$EVEN EXCHANGE" + "\n"); } } } | |
Cancelling a Booking
Tag / Keyword | Secondary Tag / Keyword | Java Script |
---|---|---|
Cancel | Cancelling a booking | if ( ( (UserPnrData.DataType=="cancel")) && (UserPnrData.UserBooking.AirBooking.BookingProvider=="SWABIZ") ) |
...
Tag / Keyword | Secondary Tag / Keyword | Java Script |
---|---|---|
Cancel | Printing the Ticket Numberticket number | var ticket = UserPnrData.UserBooking.ExistingTicketsInfo.ExistingTickets.TicketInfo.TicketNumber; |
...
Tag / Keyword | Secondary Tag / Keyword | Java Script | |
---|---|---|---|
Cancel | Printing Amount Refunded amount refunded / Residual residual for Unused Ticketunused ticket | if (UserPnrData.UserBooking.AirRemainingFunds.RefundAmount > 0 && UserPnrData.UserBooking.AirRemainingFunds.Retrieve == "success") Code Block | if (UserPnrData.UserBooking.AirRemainingFunds.NonRefundAmount > 0 && UserPnrData.UserBooking.AirRemainingFunds.Retrieve == "success") { if (UserPnrData.UserBooking.AirRemainingFunds.TicketNumber!="") { out.print("5R$UNUSED TICKET " + UserPnrData.UserBooking.AirRemainingFunds.TicketNumber + " PLACED IN UNUSE |
...
UNUSE |
Changing a Booking
Tag / Keyword | Secondary Tag / Keyword | Java Script |
---|---|---|
Change | Changing a booking | if ( ( (UserPnrData.DataType=="change")) && (UserPnrData.UserBooking.AirBooking.BookingProvider=="SWABIZ") && (UserPnrData.UserBooking.HasAirBookingChanged=="true") ) |
Printing Ticket Number
Tag / Keyword | Secondary Tag / Keyword | Java Script |
---|---|---|
Print ticket number | var ticket = UserPnrData.UserBooking.ExistingTicketsInfo.ExistingTickets.TicketInfo.TicketNumber; // PRINTING FARE PER LEG IF AVAILABLE AND TOTAL FARE DestinationAirportCode + " " + FareInfo.TotalFare + " " + FareInfo.FareBasisCode + "\n"); |
Printing Fare Per Leg if Available and Total Fare
Tag / Keyword | Secondary Tag / Keyword | Java Script |
---|---|---|
Print fare per leg | var i=0; |
Printing Base Fare and Total Tax
Tag / Keyword | Secondary Tag / Keyword | Jave Script |
---|---|---|
Print base fare / total tax | out.print("5R$BASE FARE " + UserPnrData.UserBooking.AirBooking.AirFare.FareInfo.BaseFare + "\n"); |
Printing Original Fare
Tag / Keyword | Secondary Tag / Keyword | Java Script | ||
---|---|---|---|---|
Cancel | Ticket Bank | Print original fare | out.print("5R$ORIGINAL FARE " + UserPnrData.UserBooking.PreviousAirBooking.AirFare.FareInfo.TotalFare + "\n"); |
Printing all Unused Ticket Details applied with any Add Collect or Refund and / Or Residual Value. Check Added for Retrieve = Success.
Tag / Keyword | Secondary Tag / Keyword | Java Script | |
---|---|---|---|
Print unused ticket details / add collect or refund / residual value | var numTicks=UserPnrData.UserBooking.UnusedTicketUsage.length(); } Code Block | | |
|
Held Booking
Held Booking
Tag / Keyword | Secondary / Tag Keyword | Java Script |
---|---|---|
Held | Held booking | if ( ( UserPnrData.DataType=="hold") && (UserPnrData.UserBooking.AirBooking.BookingProvider=="SWABIZ") ) out.print("Line Number: 306 \n"); var wnrloc = UserPnrData.UserBooking.AirBooking.FlightLeg[0].FlightSegment[0].RecordLocator.Locator; var time = UserPnrData.User.Timestamp; out.print("5R$SOUTHWEST BOOKING PUT ON HOLD "+ time + "\n"); out.print("5R$SOUTHWEST RECLOC " + wnrloc + "\n"); |
Printing Fare Per Leg and Total Fare
Tag / Keyword | Secondary / Tag Keyword | Java Script |
---|---|---|
Print fare per leg and total fare | var i=0; out.print("5R$TOTAL FARE " + UserPnrData.UserBooking.AirBooking.AirFare.FareInfo.TotalFare + "\n"); // PRINTING BASE FARE AND TOTAL TAX out.print("5R$BASE FARE " + UserPnrData.UserBooking.AirBooking.AirFare.FareInfo.BaseFare + "\n"); | |