Skip to content

Commit

Permalink
Merge pull request #16 from Travelport-Ukraine/supplier-locator
Browse files Browse the repository at this point in the history
Supplier locator
  • Loading branch information
shmuga authored Sep 23, 2016
2 parents bb26486 + a44b28c commit 71f8b58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uapi-json",
"version": "0.2.3",
"version": "0.2.4",
"description": "Travelport Universal API",
"main": "build/",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions src/Air/AirParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,11 +430,14 @@ function extractBookings(obj) {
travellers
);

const supplierLocator = booking['common_' + this.uapi_version + ':SupplierLocator'] || {};

const newBooking = {
type: 'uAPI',
pnr: providerInfo.LocatorCode,
// pcc: this.env.pcc, //TODO remove search PCC from format?
uapi_pnr_locator: booking.LocatorCode,
uapi_airline_locator: supplierLocator.SupplierLocatorCode || null,
pnrList: [providerInfo.LocatorCode],
platingCarrier: platingCarriers,
createdAt: providerInfo.CreateDate,
Expand Down

0 comments on commit 71f8b58

Please sign in to comment.