Documentation of the CarRentalAgentService

CarRentalAgentService. Method 

Retrieves the set of supported CancellationTypes.

public CancellationTypesResponse (
   CancellationTypesRequest request
);

Parameters

CancellationTypesRequest
A CancellationTypesRequest containing the nessessary request data.

Return Value

A CancellationTypesResponse containing the requested CancellationTypes.

Remarks

This method returns all available CancellationTypes for cancellation of an existing car rental reservation. In result, a CancellationType returned from this method should be used in CancelReservation.

List Of defined call-variants

parameters GetCancellationTypesP1
token required
languageCode optional


Description : This variant returns all CancellationTypes available at CarRentalAgentService in the requested language.

List Of Errors Returned

Error Code Description
E_INTERNAL_SERVICE An internal service error occured during the process.
E_TICKET_TOKEN_INVALID The provided token is invalid.

This error occurs if:

  • The token is in invalid format.
  • The token is expired.
  • The token was not found.

E_REQUEST_INVALID The performed request is invalid or malformed.

List Of Warnings Returned

Warning Code Description
W_LANGUAGE_NOT_SUPPORTED The requested language code is not supported for localization. Using default language instead.

Example

Example: Loading CancellationTypes in dutch language.

[C#]
CancellationTypesRequest rq = new CancellationTypesRequest();
rq.Ticket = this.serviceTicket;
rq.LanguageCode = "NL";

CancellationTypesResponse rs = this.service.GetCountries(rq);

foreach (CancellationType cancel_type in rs.CancellationTypeList)
{
    this.comboBoxCancellationTypes.Items.Add(cancel_type.Name + " " + cancel_type.CancellationSubType);
}

See Also

CarRentalAgentService Class | SunnyCars.Services.Osi.WsReservation Namespace