Skip to content

Commit

Permalink
Merge pull request #635 from Travelport-Ukraine/master
Browse files Browse the repository at this point in the history
1.16.0 Release
  • Loading branch information
dchertousov authored Jun 7, 2023
2 parents 6683f47 + 9196581 commit 3ba750a
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 22 deletions.
9 changes: 5 additions & 4 deletions examples/Air/availability.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ const AirService = uAPI.createAirService(
const params = {
legs: [
{
from: 'IEV',
to: 'NYC',
departureDate: '2018-11-10',
from: 'WAW',
to: 'AMS',
departureDate: '2023-11-10',
},
],
passengers: {
Expand All @@ -26,8 +26,9 @@ const params = {
INS: 1, //infant with a seat
*/
},
permittedCarriers: ['KL'],
permittedCarriers: ['LO'],
cabins: ['Economy'], // ['Business'],
bookingCodes: ['Q', 'G'],
requestId: '4e2fd1f8-2221-4b6c-bb6e-cf05c367cf60',
// permittedConnectionPoints: ['AMS'],
// preferredConnectionPoints: ['KBP'],
Expand Down
25 changes: 11 additions & 14 deletions examples/Utils/referenceData.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
const uAPI = require('../../index');
const config = require('../../test/testconfig');
const uuid = require('uuid');

const UtilService = uAPI.createUtilsService( {
auth: config,
debug: 2,
production: false,
}
);
const UtilService = uAPI.createUtilsService({
auth: config,
debug: 2,
production: true,
});

const params = {
dataType: "HotelAmenities",
TraceId: uuid()
dataType: 'HotelAmenities',
TraceId: 'some-unique-trace-id',
};

UtilService.referenceData(params)
.then(
res => console.log(res),
err => console.log(err)
);

.then(
res => console.log(res),
err => console.log(err)
);
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.15.1",
"version": "1.16.0",
"description": "Travelport Universal API",
"main": "src/",
"files": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ module.exports = `
{{/each}}
</air:PreferredCabins>
{{/if}}
{{#if ../bookingCodes}}
<air:PermittedBookingCodes>
{{#each ../bookingCodes}}
<air:BookingCode Code="{{this}}"/>
{{/each}}
</air:PermittedBookingCodes>
{{/if}}
</air:AirLegModifiers>
</air:SearchAirLeg>
{{/legs}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = `
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:util="http://www.travelport.com/schema/util_v47_0" xmlns:com="http://www.travelport.com/schema/common_v52_0">
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:util="http://www.travelport.com/schema/util_v52_0" xmlns:com="http://www.travelport.com/schema/common_v52_0">
<soapenv:Body>
<util:CurrencyConversionReq TargetBranch="{{TargetBranch}}">
<com:BillingPointOfSaleInfo OriginApplication="UAPI" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = `
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<ReferenceDataRetrieveReq TraceId="{{TraceId}}" AuthorizedBy="user" TargetBranch="{{TargetBranch}}" TypeCode="{{dataType}}" xmlns="http://www.travelport.com/schema/util_v47_0">
<ReferenceDataRetrieveReq TraceId="{{TraceId}}" AuthorizedBy="user" TargetBranch="{{TargetBranch}}" TypeCode="{{dataType}}" xmlns="http://www.travelport.com/schema/util_v52_0">
<BillingPointOfSaleInfo OriginApplication="UAPI" xmlns="http://www.travelport.com/schema/common_v52_0"/>
<ReferenceDataSearchModifiers MaxResults="20000" ProviderCode="1V"/>
</ReferenceDataRetrieveReq>
Expand Down

0 comments on commit 3ba750a

Please sign in to comment.