All URIs are relative to https://api.wall.et, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
archiveRoomRate() | DELETE /v2/roomRates/{id} | Archive room rate |
createRoomRate() | POST /v2/roomRates | Create room rate |
fetchAllRoomRates() | GET /v2/roomRates/all | Fetch all room rates |
restoreRoomRate() | PATCH /v2/roomRates/{id} | Restore room rate |
updateRoomRate() | PUT /v2/roomRates/{id} | Update room rate |
archiveRoomRate($id): \OpenAPI\Client\Model\RoomRate
Archive room rate
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\RoomRatesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$id = NULL; // mixed
try {
$result = $apiInstance->archiveRoomRate($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoomRatesApi->archiveRoomRate: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | mixed |
\OpenAPI\Client\Model\RoomRate
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
createRoomRate($wt_room_rate_create_params): \OpenAPI\Client\Model\RoomRate
Create room rate
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\RoomRatesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$wt_room_rate_create_params = new \OpenAPI\Client\Model\WTRoomRateCreateParams(); // \OpenAPI\Client\Model\WTRoomRateCreateParams
try {
$result = $apiInstance->createRoomRate($wt_room_rate_create_params);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoomRatesApi->createRoomRate: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
wt_room_rate_create_params | \OpenAPI\Client\Model\WTRoomRateCreateParams |
\OpenAPI\Client\Model\RoomRate
No authorization required
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
fetchAllRoomRates($is_archive_included): mixed
Fetch all room rates
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\RoomRatesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$is_archive_included = True; // bool
try {
$result = $apiInstance->fetchAllRoomRates($is_archive_included);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoomRatesApi->fetchAllRoomRates: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
is_archive_included | bool | [optional] |
mixed
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
restoreRoomRate($id): \OpenAPI\Client\Model\RoomRate
Restore room rate
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\RoomRatesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$id = NULL; // mixed
try {
$result = $apiInstance->restoreRoomRate($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoomRatesApi->restoreRoomRate: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | mixed |
\OpenAPI\Client\Model\RoomRate
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateRoomRate($id, $wt_room_rate_update_params): \OpenAPI\Client\Model\RoomRate
Update room rate
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\RoomRatesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$id = NULL; // mixed
$wt_room_rate_update_params = new \OpenAPI\Client\Model\WTRoomRateUpdateParams(); // \OpenAPI\Client\Model\WTRoomRateUpdateParams
try {
$result = $apiInstance->updateRoomRate($id, $wt_room_rate_update_params);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoomRatesApi->updateRoomRate: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | mixed | ||
wt_room_rate_update_params | \OpenAPI\Client\Model\WTRoomRateUpdateParams |
\OpenAPI\Client\Model\RoomRate
No authorization required
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]