Skip to content

Commit

Permalink
Merge branch 'master' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
dchertousov committed Mar 23, 2022
2 parents ca0521e + 30a7c38 commit 40125ab
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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": "1.12.3",
"version": "1.12.4",
"description": "Travelport Universal API",
"main": "src/",
"files": [
Expand Down
3 changes: 2 additions & 1 deletion src/Services/Air/AirErrors.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ Object.assign(AirRuntimeError, createErrorsList({
DuplicateTicketFound: 'Duplicate ticket number found. Provide PNR, UR locator',
NoPNRFoundInUR: ['No PNR found in Universal record', errorCodes.NotFound],
NoAgreement: ['There is no agreement between current pcc, and one you try to reach', errorCodes.Validation],
UnableToRetrieve: ['Unable to retrieve PNR or document. Please contact your local Travelport Helpdesk.', errorCodes.NotFound],
UnableToRetrieve: ['Unable to retrieve PNR. Please contact your local Travelport Helpdesk.', errorCodes.NotFound],
UnableToRetrieveTicket: 'Unable to retrieve ticket. Please contact your local Travelport Helpdesk.',
CouldNotRetrieveCurrency: 'We could not retrieve currency for commission from any fare in the booking. Please check fare quotes.',
TicketNotFound: 'Ticket was not found in the tickets list',
}, AirRuntimeError));
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Air/AirParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ function processUAPIError(source) {
case unableToRetreivePattern.test(uapiErrorMessage):
throw new AirRuntimeError.UnableToRetrieve(source);
case ticketRetrieveErrorPattern.test(uapiErrorMessage):
throw new AirRuntimeError.UnableToRetrieve(source);
throw new AirRuntimeError.UnableToRetrieveTicket(source);
case accessedByAnotherTransactionPattern.test(uapiErrorMessage):
throw new AirRuntimeError.AccessedByAnotherTransaction(source);
default:
Expand Down
2 changes: 1 addition & 1 deletion test/Air/AirParser.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ describe('#AirParser', () => {
parseFunction.call(uParser, json);
throw new Error('Error has not occurred');
} catch (err) {
expect(err).to.be.an.instanceof(AirRuntimeError.UnableToRetrieve);
expect(err).to.be.an.instanceof(AirRuntimeError.UnableToRetrieveTicket);
}
});

Expand Down

0 comments on commit 40125ab

Please sign in to comment.