Skip to content

Commit 48dc5df

Browse files
authored
Merge pull request #25 from cloudbeds/feat/v1.5.2
feat: v1.5.2
2 parents 7c3372a + 0c21b38 commit 48dc5df

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
The `cloudbeds_pms_v1_3` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: v1.3
7-
- Package version: 1.5.1
7+
- Package version: 1.5.2
88
- Generator version: 7.11.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.5.1
1+
1.5.2

cloudbeds_pms_v1_3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "1.5.1"
17+
__version__ = "1.5.2"
1818

1919
# import apis into sdk package
2020
from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi

cloudbeds_pms_v1_3/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
self.default_headers[header_name] = header_value
9191
self.cookie = cookie
9292
# Set default User-Agent.
93-
self.user_agent = 'OpenAPI-Generator/1.5.1/python'
93+
self.user_agent = 'OpenAPI-Generator/1.5.2/python'
9494
self.client_side_validation = configuration.client_side_validation
9595

9696
def __enter__(self):

cloudbeds_pms_v1_3/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ def to_debug_report(self) -> str:
532532
"OS: {env}\n"\
533533
"Python Version: {pyversion}\n"\
534534
"Version of the API: v1.3\n"\
535-
"SDK Package Version: 1.5.1".\
535+
"SDK Package Version: 1.5.2".\
536536
format(env=sys.platform, pyversion=sys.version)
537537

538538
def get_host_settings(self) -> List[HostSetting]:

cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
88
**success** | **bool** | Returns if the request could be completed | [optional]
99
**property_id** | **str** | Property ID | [optional]
1010
**room_block_id** | **str** | Room block ID | [optional]
11-
**courtesy_hold** | **str** | roomBlockType Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold. | [optional]
11+
**room_block_type** | **str** | Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold. | [optional]
1212
**room_block_reason** | **str** | Room block reason | [optional]
1313
**start_date** | **date** | Room block start date | [optional]
1414
**end_date** | **date** | Room block end date | [optional]

cloudbeds_pms_v1_3/models/put_room_block_response.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,22 @@ class PutRoomBlockResponse(BaseModel):
3131
success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed")
3232
property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID")
3333
room_block_id: Optional[StrictStr] = Field(default=None, description="Room block ID", alias="roomBlockID")
34-
courtesy_hold: Optional[StrictStr] = Field(default=None, description="roomBlockType Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold.", alias=""courtesy_hold"}")
34+
room_block_type: Optional[StrictStr] = Field(default=None, description="Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold.", alias="roomBlockType")
3535
room_block_reason: Optional[StrictStr] = Field(default=None, description="Room block reason", alias="roomBlockReason")
3636
start_date: Optional[date] = Field(default=None, description="Room block start date", alias="startDate")
3737
end_date: Optional[date] = Field(default=None, description="Room block end date", alias="endDate")
3838
rooms: Optional[List[PostRoomBlockResponseRoomsInner]] = Field(default=None, description="All rooms for room block")
3939
message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.")
40-
__properties: ClassVar[List[str]] = ["success", "propertyID", "roomBlockID", ""courtesy_hold"}", "roomBlockReason", "startDate", "endDate", "rooms", "message"]
40+
__properties: ClassVar[List[str]] = ["success", "propertyID", "roomBlockID", "roomBlockType", "roomBlockReason", "startDate", "endDate", "rooms", "message"]
4141

42-
@field_validator('courtesy_hold')
43-
def courtesy_hold_validate_enum(cls, value):
42+
@field_validator('room_block_type')
43+
def room_block_type_validate_enum(cls, value):
4444
"""Validates the enum"""
4545
if value is None:
4646
return value
4747

48-
if value not in set(['blocked', 'out_of_service']):
49-
raise ValueError("must be one of enum values ('blocked', 'out_of_service')")
48+
if value not in set(['blocked', 'out_of_service', 'courtesy_hold']):
49+
raise ValueError("must be one of enum values ('blocked', 'out_of_service', 'courtesy_hold')")
5050
return value
5151

5252
model_config = ConfigDict(
@@ -110,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
110110
"success": obj.get("success"),
111111
"propertyID": obj.get("propertyID"),
112112
"roomBlockID": obj.get("roomBlockID"),
113-
""courtesy_hold"}": obj.get(""courtesy_hold"}"),
113+
"roomBlockType": obj.get("roomBlockType"),
114114
"roomBlockReason": obj.get("roomBlockReason"),
115115
"startDate": obj.get("startDate"),
116116
"endDate": obj.get("endDate"),

openapitools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"additionalProperties": {
1010
"packageName": "cloudbeds_pms_v1_3",
1111
"projectName": "Cloudbeds PMS V1.3",
12-
"packageVersion": "1.5.1",
12+
"packageVersion": "1.5.2",
1313
"packageDescription": "OpenAPI client for Cloudbeds PMS v1.3 API.",
1414
"generateSourceCodeOnly": true,
1515
"packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1"

0 commit comments

Comments
 (0)