Versions Compared

Key

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

Structure

Excerpt


FieldTypeRequiredDescription
idIntegerfalseId of the rateProductOccupancy.
rateIdIntegerfalseId of the rate.
productOccupancyIdIntegerfalseId of the productOccupancyId.
rateProductOccupancyAvailabilitySetList<RateProductOccupancyAvailability>List<RateProductOccupancyAvailability>falseList of entities RateProductOccupancyAvailability.



JSON representation

Code Block
languagepowershell
themeDJango
{
        "chainProductId": 47,
        "chainProductCode": "SGL",
        "productName": "Single",
        "productId": 692,
        "productOccupancySet": [
            {
                "id": 1,
                "product": {
                    "id": 692,
                    "chainProductId": 47,
                    "code": "SGL",
                    "name": "Single",
                    "nameI18n": "Single",
                    "productType": {
                        "id": 1,
                        "code": "ACC",
                        "name": "Accommodation",
                        "nameI18n": "Accommodation"
                    }
                },
                "adult": 1,                 "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
	                            }...
					}
				]
		}
}