ProductOccupancy

Structure

FieldTypeRequiredDescription
idIntegertrueUnique identifier for the Policy.
productProducttrueRelated Product.
adultIntegertrueNumber of adults.
juniorIntegertrueNumber of junior.
childIntegertrueNumber of child.
infantIntegertrueNumber of infant.
rateProductOccupancySetList<RateProductOccupancySet>falseList of RateProductOccupancy

JSON representation

{
	"id": 1,
	"product": {
    	"id": 1,
    	"code": "DBL",
    	"name": "Double Room",
    	"productType": {
        	"code": "ACC",
        	"name": "Accomodation"
    	}
	},
	"adult": 2,
	"junior": 0,
	"child": 0,
	"infant": 0,
	"rateProductOccupancySet": [
                    {
                        "id": 1,
                        "rateId": 2,
                        "productOccupancyId": 1,
                        "rateProductOccupancyAvailabilitySet": [
                            {
                                "id": 50,
                                "rateProductOccupancyId": 1,
                                "date": "2023-08-19",
                                "amountAfterTax": 172.000000,
                                "closed": false,
                                "minStay": 0,
                                "maxStay": 0,
                                "closedToArrival": false,
                                "closedToDeparture": false,
                                "percentDiscount": null,
                                "amountDiscount": null
                            }...
					}
	]
}