All URIs are relative to https://api.wall.et
| Method | HTTP request | Description |
|---|---|---|
| archive_room_rate | DELETE /v2/roomRates/{id} | Archive room rate |
| create_room_rate | POST /v2/roomRates | Create room rate |
| fetch_all_room_rates | GET /v2/roomRates/all | Fetch all room rates |
| restore_room_rate | PATCH /v2/roomRates/{id} | Restore room rate |
| update_room_rate | PUT /v2/roomRates/{id} | Update room rate |
RoomRate archive_room_rate(id)
Archive room rate
import wallet
from wallet.models.room_rate import RoomRate
from wallet.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
host = "https://api.wall.et"
)
# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wallet.RoomRatesApi(api_client)
id = None # object |
try:
# Archive room rate
api_response = api_instance.archive_room_rate(id)
print("The response of RoomRatesApi->archive_room_rate:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RoomRatesApi->archive_room_rate: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | object |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RoomRate create_room_rate(wt_room_rate_create_params)
Create room rate
import wallet
from wallet.models.room_rate import RoomRate
from wallet.models.wt_room_rate_create_params import WTRoomRateCreateParams
from wallet.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
host = "https://api.wall.et"
)
# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wallet.RoomRatesApi(api_client)
wt_room_rate_create_params = wallet.WTRoomRateCreateParams() # WTRoomRateCreateParams |
try:
# Create room rate
api_response = api_instance.create_room_rate(wt_room_rate_create_params)
print("The response of RoomRatesApi->create_room_rate:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RoomRatesApi->create_room_rate: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| wt_room_rate_create_params | WTRoomRateCreateParams |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object fetch_all_room_rates(is_archive_included=is_archive_included)
Fetch all room rates
import wallet
from wallet.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
host = "https://api.wall.et"
)
# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wallet.RoomRatesApi(api_client)
is_archive_included = True # bool | (optional)
try:
# Fetch all room rates
api_response = api_instance.fetch_all_room_rates(is_archive_included=is_archive_included)
print("The response of RoomRatesApi->fetch_all_room_rates:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RoomRatesApi->fetch_all_room_rates: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| is_archive_included | bool | [optional] |
object
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RoomRate restore_room_rate(id)
Restore room rate
import wallet
from wallet.models.room_rate import RoomRate
from wallet.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
host = "https://api.wall.et"
)
# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wallet.RoomRatesApi(api_client)
id = None # object |
try:
# Restore room rate
api_response = api_instance.restore_room_rate(id)
print("The response of RoomRatesApi->restore_room_rate:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RoomRatesApi->restore_room_rate: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | object |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RoomRate update_room_rate(id, wt_room_rate_update_params)
Update room rate
import wallet
from wallet.models.room_rate import RoomRate
from wallet.models.wt_room_rate_update_params import WTRoomRateUpdateParams
from wallet.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
host = "https://api.wall.et"
)
# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wallet.RoomRatesApi(api_client)
id = None # object |
wt_room_rate_update_params = wallet.WTRoomRateUpdateParams() # WTRoomRateUpdateParams |
try:
# Update room rate
api_response = api_instance.update_room_rate(id, wt_room_rate_update_params)
print("The response of RoomRatesApi->update_room_rate:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RoomRatesApi->update_room_rate: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | object | ||
| wt_room_rate_update_params | WTRoomRateUpdateParams |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]