Skip Navigation

PnrPublicService

PNRPublicService exposes a methods to obtain PNR details

Acquiring PnrPublicService

In order to obtain service, you need to import and then obtain it:

import {PnrPublicService} from 'sabre-ngv-app/app/services/impl/PnrPublicService';

const pnrPublicService: PnrPublicService = getService(PnrPublicService);

Available methods

getRecordLocator
getRecordLocator(): string;

Gets record locator from PNR if PNR is available, undefined otherwise.

displayGraphicalPnr
displayGraphicalPnr(section?: PnrSectionType): void;

Gets Graphical PNR if PNR is available, undefined otherwise.

Type Parameteres:
section? - pnr section to display

refreshData
refreshData(): void;

Sends command to refresh current PNR state

See com.sabre.redapp.example3.web.graphicalpnr sample for implementation.