@@ -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" ),
0 commit comments