Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Structure

Excerpt


FieldTypeRequiredDescription
idIntegertrueUnique identifier for the ReservationGroupRoomBlock.
productOccupancyproductAccomodationProductOccupancyProducttrueRelated product with its occupancy (adults, junior, child, infant).
adultIntegerfalse
juniorIntegerfalse
childIntegerfalse
infantIntegerfalse

reservationGroupRoomBlockDailyList

List of ReservationGroupRoomBlockDaily.trueDaily detail of this room block.



JSON representation

Code Block
languagepowershell
themeDJango
	{
	            "id": 1,
	"productOccupancy
            "productAccommodation": {
		
                "id": 3722,
		"product": {
			"id": 677,
			"code": "DBL",
			"name                "chainProductId": 49,
                "code": "DBL",
                "name": "Double",
                "nameI18n": "Double",
			
                "productType": {
				
                    "id": 1,
				
                    "code": "ACC",
				
                    "name": "Accommodation",
				
                    "nameI18n": "Accommodation"
			}
		},
		
                }
            },
            "propertyRoomSubType": null,
            "adult": 2,
		
            "junior": 0,
		
            "child": 0,
		
            "infant": 0
	},
	,
            "reservationGroupRoomBlockDailyList": [
                {
			
                    "id": 1,
			                    "date": "2024-01-02",
                    "quantity": 1,
                    "price": 800.000000,
                    "quantityConsumed": 1,
                    "quantityAvailable": 0
                },
                {
                    "id": 3,
                    "date": "20202024-0501-3003",
			"quantity": 4,
			
                    "quantity": 0,
                    "price": 0.000000,
                    "quantityConsumed": 0,
                    "quantityAvailable": 0
                },
                {
                    "id": 4,
                    "date": "2024-01-04",
                    "quantity": 0,
                    "price": 500.000000,
			
                    "quantityConsumed": 0,
			
                    "quantityAvailable": 4
		},
		{
			 0
                },
                {
                    "id": 2,
			5,
                    "date": "20202024-01-05-31",
			
                    "quantity": 0,
			
                    "price": 0.000000,
			
                    "quantityConsumed": 0,
			
                    "quantityAvailable": 0
		}
	]
                }
            ]
        }