mts-booking-library 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -194,7 +194,7 @@ var SubscriptionBooking = /** @class */ (function (_super) {
|
|
194
194
|
return __awaiter(this, void 0, void 0, function () {
|
195
195
|
var url;
|
196
196
|
return __generator(this, function (_a) {
|
197
|
-
url = "".concat(this.config.API_ENDPOINT, "/booking/subscriptions/
|
197
|
+
url = "".concat(this.config.API_ENDPOINT, "/booking/subscriptions/availabilities?").concat(new URLSearchParams(__assign(__assign({}, (this.sellerId && { sellerId: this.sellerId.toString() })), { outboundRouteId: request.outboundRouteId.toString(), returnRouteId: request.returnRouteId.toString(), outboundDeparturePhysicalAgencyStopId: request.outboundDeparturePhysicalAgencyStopId.toString(), outboundDestinationPhysicalAgencyStopId: request.outboundDestinationPhysicalAgencyStopId.toString(), returnDeparturePhysicalAgencyStopId: request.returnDeparturePhysicalAgencyStopId.toString(), returnDestinationPhysicalAgencyStopId: request.returnDestinationPhysicalAgencyStopId.toString(), numberOfPassengers: request.numberOfPassengers.toString(), validityType: request.validityType })));
|
198
198
|
return [2 /*return*/, (0, apiCall_1.makeGet)(url)];
|
199
199
|
});
|
200
200
|
});
|