Documentation of the CarRentalAgentService

RegionsRequest.Levels Property

Gets or sets how much levels the operation should descent, starting by ParentId.

public  Levels {get; set;}

Remarks

This property is optional.

Attention: This property is obsolete and only covered in this Version of CarRentalAgentService for compatibility reasons. The property may be deleted without explicit warnings.

This property provides the ability to specify the hierachy level of the Regions to be returned in RegionsResponse.

Example

A RegionsRequest for a Top-Level-Region like ParentId=56(USA) with Levels = 1 will deliver the federal states like Alaska only, which means that there will be only Regions in the RegionsResponse that are directly linked with the requested one.

A RegionsRequest for ParentId=56(USA) with Levels = 2 will deliver the federal states like Alaska and the cities linked to these federal states directly.

The major problem is, that there are Top-Level-Regions having a level like the USA has(federal states) and Top-Level-Regions that do not. Therefore this functionality is hardly to be used to fill Tree-Views in your web-frontend, so please check if the different variants of GetRegionsWithLocations - Method or GetRegionsTree - Method meet your demands.

See Also

RegionsRequest Class | SunnyCars.Schema.Osi.WsReservation.V4 Namespace