From 65734a7b5c4ae66e2f91b76ed33747efbffc731c Mon Sep 17 00:00:00 2001 From: Oleksii Date: Wed, 7 Jun 2023 10:37:10 +0300 Subject: [PATCH 1/5] TC-3489: bookingCode availability param as array --- examples/Air/availability.js | 2 +- .../Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/Air/availability.js b/examples/Air/availability.js index 74dbfb72..3343e40c 100644 --- a/examples/Air/availability.js +++ b/examples/Air/availability.js @@ -28,7 +28,7 @@ const params = { }, permittedCarriers: ['LO'], cabins: ['Economy'], // ['Business'], - bookingCode: 'Y', + bookingCode: ['Q', 'G'], requestId: '4e2fd1f8-2221-4b6c-bb6e-cf05c367cf60', // permittedConnectionPoints: ['AMS'], // preferredConnectionPoints: ['KBP'], diff --git a/src/Services/Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js b/src/Services/Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js index 0a0e8d83..8f2590cb 100644 --- a/src/Services/Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js +++ b/src/Services/Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js @@ -73,7 +73,9 @@ module.exports = ` {{/if}} {{#if ../bookingCode}} - + {{#each ../bookingCode}} + + {{/each}} {{/if}} From a137d233c321cdb86bf87aff1e29ae2f2f51fdd4 Mon Sep 17 00:00:00 2001 From: Oleksii Date: Wed, 7 Jun 2023 10:39:48 +0300 Subject: [PATCH 2/5] TC-3489: minor version update (bookingCode string -> array) --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3d30fb3a..79bad3f5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "uapi-json", - "version": "1.16.0", + "version": "1.17.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 5be3ec61..9b413d8c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uapi-json", - "version": "1.16.0", + "version": "1.17.0", "description": "Travelport Universal API", "main": "src/", "files": [ From dfb7870c5f50be9b152f69b5767af86d8c05312d Mon Sep 17 00:00:00 2001 From: Oleksii Date: Wed, 7 Jun 2023 11:17:46 +0300 Subject: [PATCH 3/5] TC-3489: plural for booking code --- examples/Air/availability.js | 2 +- .../Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/Air/availability.js b/examples/Air/availability.js index 3343e40c..34251b45 100644 --- a/examples/Air/availability.js +++ b/examples/Air/availability.js @@ -28,7 +28,7 @@ const params = { }, permittedCarriers: ['LO'], cabins: ['Economy'], // ['Business'], - bookingCode: ['Q', 'G'], + bookingCodes: ['Q', 'G'], requestId: '4e2fd1f8-2221-4b6c-bb6e-cf05c367cf60', // permittedConnectionPoints: ['AMS'], // preferredConnectionPoints: ['KBP'], diff --git a/src/Services/Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js b/src/Services/Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js index 8f2590cb..e9a5a7c0 100644 --- a/src/Services/Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js +++ b/src/Services/Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js @@ -71,9 +71,9 @@ module.exports = ` {{/each}} {{/if}} - {{#if ../bookingCode}} + {{#if ../bookingCodes}} - {{#each ../bookingCode}} + {{#each ../bookingCodes}} {{/each}} From 415157c22e7694e5aa3a0d169e036a4c57121f81 Mon Sep 17 00:00:00 2001 From: Oleksii Date: Wed, 7 Jun 2023 15:14:03 +0300 Subject: [PATCH 4/5] TC-3489: updated patch version instead of minor --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 79bad3f5..9215cb11 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "uapi-json", - "version": "1.17.0", + "version": "1.16.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 9b413d8c..805887fd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uapi-json", - "version": "1.17.0", + "version": "1.16.1", "description": "Travelport Universal API", "main": "src/", "files": [ From c908c202a78e9c3671a812a2cb65d7f170cdfbd6 Mon Sep 17 00:00:00 2001 From: Oleksii Date: Wed, 7 Jun 2023 15:15:55 +0300 Subject: [PATCH 5/5] TC-3489: return to current non-released latest version --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9215cb11..3d30fb3a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "uapi-json", - "version": "1.16.1", + "version": "1.16.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 805887fd..5be3ec61 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uapi-json", - "version": "1.16.1", + "version": "1.16.0", "description": "Travelport Universal API", "main": "src/", "files": [