Package Fare Validation
Please consider below points for clarification:
In Block Response:
Two nodes will be provided "IsPackageDetailsMandatory": true and "IsPackageFare": true.
If "IsPackageDetailsMandatory" is true then "IsPackageFare" will always be received true.
But if "IsPackageFare" is true then "IsPackageDetailsMandatory" can be true or false.
In Book Request:
In case you receive "IsPackageFare": true in Block response then you need to pass same in Book Request.
Additionally if you get IsPackageDetailsMandatory": true in Block Response then following details need to be passed in Book request.
"ArrivalTransport":
{
"ArrivalTransportType": 0, (Flight = 0, surface = 1)
"TransportInfoId": "Ab 777",
"Time": "2019-05-21T18:18:00"
},
In case you receive "DepartureDetailsMandatory": true in Block response then you need to pass below details in Book Request.
"DepartureTransport":
{
"DepartureTransportType": 0, (Enum: Flight = 0, surface = 1)
"TransportInfoId": "Ab 777"
"Time": "2023-10-21T12:43:45"
},
The above transport details are not static, it should be pass according to the client and the specific booking.
For Example:
If the client is reaching the hotel by flight then pass "ArrivalTransportType": 0, in "TransportInfoId" pass the flight number and in "Time" pass the time of the flight & vice versa for the surface details.