Skip to content

Commit

Permalink
Merge pull request #90 from TourCMS/release/4.7.0
Browse files Browse the repository at this point in the history
release/4.7.0
  • Loading branch information
paulslugocki committed Mar 26, 2024
2 parents 6601e4b + 2c3c25b commit 64824f2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/TourCMS.php
Expand Up @@ -22,7 +22,7 @@
*/

# TourCMS: PHP wrapper class for TourCMS Rest API
# Version: 4.6.0
# Version: 4.7.0

namespace TourCMS\Utils;

Expand All @@ -43,6 +43,7 @@ class TourCMS {
const PATH_API_TOUR_FACETS_GET = "/api/tours/importer/get_tour_facets.xml";
const PATH_API_LIST_TOURS_GET = "/api/tours/importer/get_tour_list.xml";
const PATH_API_IMPORT_TOURS_STATUS = "/api/tours/importer/get_import_tours_status.xml";
const PATH_API_LIST_TOUR_BOOKINGS_RESTRICTIONS = "/api/tours/restrictions/list_tour_bookings_restrictions.xml";

// HTTP VERBS CONST
const HTTP_VERB_POST = 'POST';
Expand Down Expand Up @@ -868,6 +869,12 @@ public function get_import_tours_status($channel, $codes)
return $this->request(self::PATH_API_IMPORT_TOURS_STATUS, $channel, self::HTTP_VERB_POST, $codes);
}

public function list_tour_booking_restrictions($channel, $query_string)
{
$query_string = $this->validateParams($query_string);
return $this->request(self::PATH_API_LIST_TOUR_BOOKINGS_RESTRICTIONS.$query_string, $channel, self::HTTP_VERB_GET);
}

// Internal Functions

protected function validateParams($params)
Expand Down

0 comments on commit 64824f2

Please sign in to comment.