ti2-ventrata 1.0.42 → 1.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -4
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -677,7 +677,7 @@ class Plugin {
|
|
|
677
677
|
},
|
|
678
678
|
payload: {
|
|
679
679
|
bookingId,
|
|
680
|
-
|
|
680
|
+
reference,
|
|
681
681
|
supplierBookingId,
|
|
682
682
|
travelDateStart,
|
|
683
683
|
travelDateEnd,
|
|
@@ -690,7 +690,7 @@ class Plugin {
|
|
|
690
690
|
}) {
|
|
691
691
|
assert(
|
|
692
692
|
!isNilOrEmpty(bookingId)
|
|
693
|
-
|| !isNilOrEmpty(
|
|
693
|
+
|| !isNilOrEmpty(reference)
|
|
694
694
|
|| !isNilOrEmpty(supplierBookingId)
|
|
695
695
|
|| !(
|
|
696
696
|
isNilOrEmpty(travelDateStart) && isNilOrEmpty(travelDateEnd) && isNilOrEmpty(dateFormat)
|
|
@@ -724,8 +724,8 @@ class Plugin {
|
|
|
724
724
|
searchByUrl(`${endpoint || this.endpoint}/bookings?supplierReference=${bookingId}`),
|
|
725
725
|
]);
|
|
726
726
|
}
|
|
727
|
-
if (!isNilOrEmpty(
|
|
728
|
-
url = `${endpoint || this.endpoint}/bookings?resellerReference=${
|
|
727
|
+
if (!isNilOrEmpty(reference)) {
|
|
728
|
+
url = `${endpoint || this.endpoint}/bookings?resellerReference=${reference}`;
|
|
729
729
|
return R.path(['data'], await axios({
|
|
730
730
|
method: 'get',
|
|
731
731
|
url,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ti2-ventrata",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.45",
|
|
4
4
|
"description": "Ventrata's TI2 Plugin",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -46,6 +46,6 @@
|
|
|
46
46
|
"jest-diff": "^27.4.2",
|
|
47
47
|
"jest-environment-node": "27.4",
|
|
48
48
|
"jest-util": "27.4",
|
|
49
|
-
"ti2": "
|
|
49
|
+
"ti2": "file:../ti2"
|
|
50
50
|
}
|
|
51
51
|
}
|