Versions Compared

Key

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

Structure

Excerpt


FieldTypeRequiredDescription
idIntegertrueUnique identifier for the ReservationGroupRoomBlock.
productOccupancyProductOccupancytrueRelated product with its occupancy (adults, junior, child, infant).

reservationGroupRoomBlockDailyList

List of ReservationGroupRoomBlockDaily.trueDaily detail of this room block.



JSON representation

Code Block
languagepowershell
themeDJango
{
	"id": 1,
	"productOccupancy": {
		"id": 3,
		"product": {
			"id": 677,
			"code": "DBL",
			"name": "Double",
			"productType": {
				"id": 1,
				"code": "ACC",
				"name": "Accommodation",
				"nameI18n": "Accommodation"
			}
		},
		"adult": 2,
		"junior": 0,
		"child": 0,
		"infant": 0
	},
	"reservationGroupRoomBlockDailyList": [{
			"id": 1,
			"date": "2020-05-30",
			"quantity": 4,
			"price": 50.000000,
			"quantityConsumed": 0,
			"quantityAvailable": 4
		},
		{
			"id": 2,
			"date": "2020-05-31",
			"quantity": 0,
			"price": 0.000000,
			"quantityConsumed": 0,
			"quantityAvailable": 0
		}
	]
}