mts-booking-library 1.2.15 → 1.2.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -231,8 +231,9 @@ var Booking = /** @class */ (function () {
231
231
  }
232
232
  _e.label = 5;
233
233
  case 5:
234
- url = "".concat(this.config.API_ENDPOINT, "/sellers/").concat(this.sellerId, "/gateways?");
235
- return [2 /*return*/, this.callGetApi(url).then(function (response) {
234
+ url = "".concat(this.config.API_ENDPOINT, "/sellers/").concat(this.sellerId, "/gateways?language=").concat(this.language);
235
+ // We use directly makeGet because we don't want to add sellerId to the query string (it is already present in the url)
236
+ return [2 /*return*/, (0, apiCall_1.makeGet)(url).then(function (response) {
236
237
  return (0, ErrorResponse_1.objectIsMTSErrorResponse)(response) ? response : response;
237
238
  })];
238
239
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mts-booking-library",
3
- "version": "1.2.15",
3
+ "version": "1.2.16",
4
4
  "description": "Library for use MyTicketSolution Booking API",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",