Click or drag to resize

BookingAuthenticateWcfServiceBooking Method

Performs a booking on a specific rental object for a specific date interval. All prices and additional purchased articles will be recalculated and a finished OrderWeb is returned if successful.

Namespace:  Tse.EasyBook.Server.WcfContracts.WebClient
Assembly:  Tse.EasyBook.Server.WcfContracts (in Tse.EasyBook.Server.WcfContracts.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public OrderWeb Booking(
	BookingCriteria criteria
)

Parameters

criteria
Type: Tse.EasyBook.Server.DataContractsBookingCriteria
BookingCriteria criteria object

Return Value

Type: OrderWeb
OrderWeb object if the booking was possible.

Implements

IBookingAuthenticateWcfServiceBooking(BookingCriteria)
Exceptions
ExceptionCondition
FaultExceptionAuthorizationFault

The provided username and password is not authorized to call this service method

Fault may contain the following values:

ErrorCode.Error: An unspecified error happened in the server

ErrorCode.BookingInvalidArrivalDepartureDate: The provided arrival or departure date is invalid

ErrorCode.BookingRentalObjectNotVacant: The rental object can not be booked because it is not vacant in the provided period

ErrorCode.InvalidRentalObjectNo: The provided rental object number is invalid

ErrorCode.InvalidCurrencyIsoCode: The provided currency ISO code is invalid

ErrorCode.InvalidCountryIsoCode: The provided country ISO code is invalid

ErrorCode.InvalidArticle: The article "ArticleNo" cannot be added to the order

ErrorCode.RentalAccessoryNotAvailable: The requested number of items are not available for rental accessory: {0}

ErrorCode.BookingAdultsZero: The number of adults must be greater than zero

ErrorCode.BookingPetsExceededMax: The number of pets provided is higher than the maximum allowed number of pets for the rental object

ErrorCode.BookingPersonsExceededMax: The number of persons provided is higher than the maximum allowed number of persons for the rental object

ErrorCode.InvalidCustomerPerson: The Customer person contaning details about the customer is either null or missing nescessary information

ErrorCode.InvalidCustomerCompany: The Customer company contaning details about the customer is either null or missing nescessary information

ErrorCode.InvalidPhoneNumber: A phonenumber failed validation. It may only contain digits or white spaces. Atleast 1 digit is required

ErrorCode.InvalidEanNumber: The provided EAN number is invalid

ErrorCode.InvalidBankInfo: The bank info could not be validated

ErrorCode.BookingInvalidMediaCode: The provided media code ID is either invalid or does not exist

ErrorCode.InvalidChangeFromCompanyToPerson: An existing company customer cannot be changed to a person customer

ErrorCode.InvalidChangeFromPersonToCompany: An existing customer of type person cannot be changed to a company customer

See Also