API_SERVICE
API_SERVICE
The API service used in this class.
Class AdventureResReservationService
$httpClient : \AdventureRes\HttpClients\AdventureResHttpClientInterface
$client : \AdventureRes\AdventureResClient
$app : \AdventureRes\AdventureResApp
__construct(\AdventureRes\AdventureResApp $app, \AdventureRes\HttpClients\AdventureResHttpClientInterface|null $client = null, boolean $shouldValidateSessionIds = true)
AbstractAdventureResService constructor.
\AdventureRes\AdventureResApp | $app | The configuration app. |
\AdventureRes\HttpClients\AdventureResHttpClientInterface|null | $client | Optionally pass in a pre-configured HttpClient. |
boolean | $shouldValidateSessionIds | This should only be used for testing. |
setApp(\AdventureRes\AdventureResApp $app)
Sets the configuration app.
\AdventureRes\AdventureResApp | $app |
setHttpClient(\AdventureRes\HttpClients\AdventureResHttpClientInterface $httpClient)
Sets the HTTP client to be used in requests.
\AdventureRes\HttpClients\AdventureResHttpClientInterface | $httpClient |
getReservationPolicies(\AdventureRes\Models\Input\ItineraryInputModel $input) : array
Gets applicable policies for a reservations.
\AdventureRes\Models\Input\ItineraryInputModel | $input |
[\AdventureRes\Models\Output\ReservationPolicyModel]
getItinerary(\AdventureRes\Models\Input\ItineraryInputModel $inputModel) : array
Gets the items stored in the user's itinerary.
\AdventureRes\Models\Input\ItineraryInputModel | $inputModel |
[\AdventureRes\Models\Output\ReservationItemModel]
getCostSummary(\AdventureRes\Models\Input\ItineraryInputModel $inputModel) : \AdventureRes\Models\Output\CostSummaryModel
Gets the cost summary for an itinerary.
\AdventureRes\Models\Input\ItineraryInputModel | $inputModel |
addPayment(\AdventureRes\Models\Input\PaymentInputModel $inputModel) : \AdventureRes\Models\Output\ReservationModel
Adds a payment to the reservation.
\AdventureRes\Models\Input\PaymentInputModel | $inputModel |
getPaymentDue(\AdventureRes\Models\Input\ItineraryInputModel $inputModel) : \AdventureRes\Models\Output\PaymentDueModel
Gets the payment due for a reservation.
\AdventureRes\Models\Input\ItineraryInputModel | $inputModel |
addPromoCode(\AdventureRes\Models\Input\PromoCodeInputModel $inputModel) : \AdventureRes\Models\AbstractAdventureResModel
Adds a promo code to a reservation.
\AdventureRes\Models\Input\PromoCodeInputModel | $inputModel |
getConfirmationMessage(\AdventureRes\Models\Input\ItineraryInputModel $inputModel) : \AdventureRes\Models\AbstractAdventureResModel
Gets the confirmation message for a reservation.
\AdventureRes\Models\Input\ItineraryInputModel | $inputModel |
makeApiCall( $method, $endpoint, $params) : \AdventureRes\Http\AdventureResResponse
Generates an AdventureResRequest and sends it via the client.
$method | ||
$endpoint | ||
$params |