com.sabre.redapp.example3.web.end.pnr.validator Sample
The com.sabre.redapp.example3.web.end.pnr.validator sample includes the following functionality:
-
This sample shows how to use beforeEndCommand and beforeReservationModify extension points in the Sabre Red 360
-
The sample uses 2 extension points:`
-
BeforeEndCommandExtension
-
BeforeReservationModifyExtension
-
-
The sample is triggered in specific conditions described in the table below:
Extension point | Action & trigger condition | Expected Result | |
---|---|---|---|
Before End Command |
BeforeHotelShoppingExtension |
Run ER or ET on a reservation that is missing OSI or Passport documents |
EndPnrValidatorBeforeEnd should ask user about missing data and display a modal where missing Emergency Contact/Passport information can be added |
Before Reservation Modify |
BeforeReservationModifyExtension |
Triggered after the modal for reservation modify is submitted |
ReservationModifyBeforeSave should check for Emergency Contact in ReservationModifyRq and if they are present add them also as OSI |
Step by step:
-
When you make any changes to a new or existing reservation and hit save (E, ER, ET, etc.) then the beforeEndCommand ext point will be triggered
-
In beforeEndCommand the sample checks if the reservation is missing security docs
-
IF yes, then the modal prompting to add data will be shown
-
IF you fill the security docs on the modal and hit “Add to PNR” on this modal then the beforeReservationModify gets triggered
-
In the beforeReservationModify ext point the sample checks if Emergency Contact in ReservationModifyRq and if they are present add them also as OSI. (this will happen in the background, nothing visible on the modal for the user)