MODELS - rentit/RentIT-WebAPI-Docs Wiki

 Public Class Currency  
    Public Property Code As String  
    Public Property Name As String  
 End Class 

 Public Class Language
    Public Property Code As String  
    Public Property Name As String  
    Public Property Culture As String  
 End Class  

 Public Class PhoneCode  
    Public Property ISOAlpha2 As String  
    Public Property Name As String  
    Public Property PhoneCode As String  
 End Class  

 Public Class Country  
    Public Property ISOAlpha2 As String  
    Public Property Name As String  
    Public Property ID As Integer  
    Public Property OriginalName As String  
    Public Property IsUECountry As Boolean  
    Public Property LocationCount As Integer  
 End Class   

 Public Class Location  
    Public Property ID As String  
    Public Property Name As String  
    Public Property City As String  
    Public Property IATA As String  
    Public Property MapUrl As String  
    Public Property Country As New Country  
    Public Property Type As New LocationType  
    Public Property GeoCoordinates As New GeoCoordinatesClass  
 End Class  

 Public Class LocationType  
    Public Property Code As LocationCode  
    Public Property Name As String  
    Public Property SortOrder As Integer  
 End Class  

 Public Enum LocationCode  
    Unknown = 0  
    Airport = 1  
    RailwayStation = 2  
    Port = 3  
    City = 4  
 End Enum  

 Public Class GeoCoordinatesClass  
    Public Property Latitude As Double  
    Public Property Longitude As Double  
 End Class  

 Public Class QuoteReference  
    Public Property RateID As String  
    Public Property RateTS As String  
    Public Property RequestID As String  
    Public Property HasErrors As Boolean  
    Public Property ErrorsList As List(Of QuoteError)  
 End Class  

 Public Class QuoteError  
     Public Property Code As Integer  
     Public Property Message As String  
 End Class  

 Public Class ClientConfig  
    Public Property ID As Integer  
    Public Property Name As String  
    Public Property InsuranceMandatory As Boolean  
    Public Property ShowBrand As Boolean  
    Public Property ShowCoupon As Boolean  
    Public Property NewsletterSubscribe As Boolean  
    Public Property PaymentGatewayPreferred As PaymentGateway  
    Public Property DelayedPayment As Boolean  
 End Class  

 Public Class Quote  
     Public Property Status As QuoteStatus  
     Public Property Currency As String  
     Public Property Language As String  
     Public Property LengthOfRental As Integer  
     Public Property TimeTaken As Double  
     Public Property VehicleCategory As Integer (Value of VehicleKind)  
     Public Property Reference As QuoteReference  
     Public Property ClientConfig As ClientConfig  
     Public Property Driver As QuoteDriver  
     Public Property PickUpDate As DateTime  
     Public Property DropOffDate As DateTime  
     Public Property PickUpLocation As Location  
     Public Property DropOffLocation As Location  
     Public Property Rates As List(Of Rate)  
     Public Property ErrorsList As List(Of QuoteError)  
 End Class  

 Public Enum QuoteStatus  
    Unknown = 0  
    Error = 1  
    Success = 2  
 End Enum  

 Public Class QuoteDriver  
    Public Property Age As Integer  
    Public Property CountryCode As String  
    Public Property CountryName As String  
    Public Property ConsumerIP As String  
 End Class

 Public Class Rate  
    Public Property Status As RateStatus  
    Public Property Timestamp As DateTime
    Public Property BookingEngine As String  
    Public Property OneWay As ViaggioALasciare  
    Public Property OutOfHour As Boolean  
    Public Property YoungDriverPolicy As YoungDriverPolicy  
    Public Property Reference As QuoteReference  
    Public Property BookUrl As String  
    Public Property XmlUrl As String  
    Public Property ApiUrl As String  
    Public Property TermsUrl As String  
    Public Property TermsUrlHtml As String  
    Public Property PickUpOffice As Office  
    Public Property Vehicle As VehicleClass  
    Public Property TotalRate As TotalRateClass  
    Public Property Supplier As SupplierClass  
    Public Property Offers As List(Of String)  
    Public Property VehicleCharges As List(Of VehicleCharge)  
    Public Property Insurances As List(Of Insurance)  
    Public Property Optionals As List(Of Optional)  
 End Class  

 Public Enum RateStatus  
    Unknown = 0  
    Available = 1  
    OnRequest = 2  
    Unavailable = 3  
 End Enum  

 Public Enum ViaggioALasciare  //OneWay  
    NonApplicabile = 0  //not applicable  
    Incluso = 1  //Included  
    NonIncluso = 2  //Not Included  
    NonDeterminato = 3  //Unknown  
 End Enum  

 Public Enum YoungDriverPolicy  
    Unknown = 0  
    Included = 1  
    NotIncluded = 2  
    NotApplicable = 3  
 End Enum  

 Public Class Office  
    Public Property OfficeType As UfficioIndirizzoTipo  
    Public Property OfficeTypeName As String  
    Public Property Name As String  
    Public Property Info As String  
    Public Property Code As String  
    Public Property Phone As String  
    Public Property Mobile As String  
    Public Property Email As String  
    Public Property AtAirport As Boolean  
 End Class  

 Public Enum UfficioIndirizzoTipo  //OfficeType
    IndirizzoEsatto = 0  //  Desk in Terminal (if location at airport)  
    RaggiungibileAPiedi = 1  //External office, within walking distance
    RaggiungibileConNavetta = 2  //External office, reacheable by shuttle bus
    ConsegnaSuPrenotazione = 3  //Meet and greet  
    RaggiungibileConNavettaAPagamento = 4  //Office reachable by shuttle bus with fee
 End Enum  

 Public Class VehicleClass
    Public Property Acriss As String  
    Public Property Type As String  
    Public Property Automatic As Boolean  
    Public Property AC As Boolean  
    Public Property Passengers As Integer  
    Public Property Luggages As Integer  
    Public Property WinterTyresIncluded As Boolean  
    Public Property SnowChainsIncluded As Boolean  
    Public Property RoadTaxIncluded As Boolean  
    Public Property UnlimitedMileage As Boolean  
    Public Property KmsIncluded As Integer  
    Public Property FuelPolicy As FuelPolicy  
    Public Property Vehicles As String  
    Public Property PhotoUrl As String  
    Public Property AcrissGroup As List(Of AcrissFamily)  
    Public Property SampleVehicles As List(Of SampleVehicle)  
 End Class  

 Public Enum FuelPolicy  
    Unknown = 0  
    FullToFull = 1  
    FullToEmpty = 2  
    EmptyToEmpty = 3  
    HalfToEmpty = 4  
    QuarterToEmpty = 5  
    HalfToHalf = 6  
    QuarterToQuarter = 7  
    PrepaidFullToFull = 8  
    PrepaidFullToEmpty = 9  
 End Enum  

 Public Class AcrissFamily  
    Public Property ID As Integet  
    Public Property Name As String  
 End Class

 Public Class SampleVehicle  
    Public Property ID As Integer  
    Public Property Name As String  
    Public Property Description As String  
 End Class  

 Public Class AmountClass  
    Public Property Currency As String  
    Public Property Amount As Double  
 End Class  

 Public Class TotalRateClass  
    Public Property TotalAmount As AmountClass  
    Public Property CreditCardCharge As AmountClass  
    Public Property Deposit As AmountClass  
    Public Property ExcessCDW As AmountClass  
    Public Property ExcessTPW As AmountClass  
    Public Property Prepaid As Boolean  
    Public Property NetRate As AmountClass  
 End Class  

 Public Class SupplierClass  
    Public Property ID As Integer  
    Public Property Code As String  
    Public Property Name As String  
    Public Property PrepaidCardEnabled As Boolean  
    Public Property PrepaidCardAccepted As Boolean  
    Public Property LogoUrl As String  
    Public Property Reviews As Reviews  
    Public Property AcceptedPaymentType As List(Of PaymentType)
    Public Property CheckInAvailable As Boolean  
    Public Property CheckInUrl As String  
 End Class  

 Public Class Reviews  
    Public Property NumReviews As Integer  
    Public Property OverallReview As Double  
    Public Property IsTotal As Boolean  
    Public Property LocationID As Integer  
 End Class  

 Public Class VehicleCharge  
    Public Property Purpose As String  
    Public Property Description As String  
    Public Property TaxInclusive As Boolean  
    Public Property IncludedInRate As Boolean  
 End Class  

 Public Class Insurance  
    Public Property Engine As InsuranceEngine  
    Public Property SupplierCode As String  
    Public Property EquipmentTypeID As Long  
    Public Property AccountID As Integer  
    Public Property Seller As String  
    Public Property SellerName As String  
    Public Property Name As String  
    Public Property IsInsurance As Boolean  
    Public Property IsWithExcess As Boolean  
    Public Property IsReducedExcess As Boolean  
    Public Property IsCanceledExcess As Boolean  
    Public Property IsWithoutExcludedParts As Boolean  
    Public Property TermsUrl As String  
    Public Property InfoUrl As String  
    Public Property Description As String  
    Public Property AmountBase As AmountClass  
    Public Property AmountCommission As AmountClass  
    Public Property AmountTotal As AmountClass  
    Public Property AmountTax As AmountClass  
 End Class  

 Public Enum InsuranceEngine  
    Unknown = 0  
    Insurer = 1  
    Renter = 2  
 End Enum  

 Public Class Optional  
    Public Property SupplierCode As String  
    Public Property EquipmentTypeID As Long  
    Public Property Name As String  
    Public Property IsInsurance As Boolean  
    Public Property MaxElement As Integer  
    Public Property Description As String  
    Public Property AmountBase As AmountClass  
    Public Property AmountCommission As AmountClass  
    Public Property AmountTotal As AmountClass  
 End Class  

 Public Class Company  
    Public Property Id As Integer  
    Public Property Name As String  
    Public Property UrlLogo As String  
    Public Property NumReviews As Integer  
    Public Property OverallRating As Double  
    Public Property LocationId As Integer  
    Public Property Answers As List(Of Answer)  
 End Class  

 Public Class Answer  
    Public Property QueryId As Integer  
    Public Property Rating As Double  
    Public Property InquiryId As Integer  
    Public Property Text As String  
 End Class  

 Public Class User
    Public Property ID As Integer  
    Public Property UniqueID As String  
    Public Property Email As String  
    Public Property FirstName As String  
    Public Property LastName As String  
    Public Property Address As String  
    Public Property City As String  
    Public Property ZIP As String  
    Public Property CountryCode As String  
    Public Property Language As String  
    Public Property FiscalCode As String  
    Public Property VAT As String  
    Public Property Phone As String  
    Public Property Active As Boolean  
    Public Property Type As AccountType  
    Public Property UserCreateSetPassword As Boolean  
    Public Property UserCreatePassword As String  
    Public Property EmailPEC As String  
    Public Property SDIAccountCode As String  
    Public Property AuthData as AuthData
 End Class  

 Public Enum AccountType
    Unknown = 0
    Personal = 1
    Company = 2
    SoleProprietorship = 3  //Only for Italy
 End Enum

 Public Class Driver
    Public Property ID As Integer  
    Public Property UserID As Integer  
    Public Property LastName As String  
    Public Property FirstName As String  
    Public Property BirthPlace As String  
    Public Property BirthDate As Date  
    Public Property CountryCode As String  
    Public Property Language As String  
    Public Property Phone As String  
 End Class  

 Public Enum ReservationStatus  
    Unknown = 0  
    Confirmed = 1  
    Unconfirmed = 2  
    Cancelled = 3  
    NoShow = 4  
    Deleted = 5  
    ConfirmedButNotPaid = 6  
    UnconfirmedAndNotPaid = 7  
 End Enum  

 Public Class BookingList
    Public Property BookingID As Int32  
    Public Property BookingCheckCode As String  
    Public Property BookingEngine As String  
    Public Property BookingStatus As ReservationStatus  
    Public Property ConfirmationNumber As String  
    Public Property BookingDate As Date  
    Public Property PickUpOfficeName As String  
    Public Property PickUpDate As Date  
    Public Property DropOffOfficeName As String  
    Public Property DropOffDate As Date  
    Public Property SupplierName As String  
    Public Property InsuranceRequired As Boolean  
    Public Property VehicleKind As VehicleKind  
 End Class

 Public Class BookingRequest  
    Public Property Reference As QuoteReference  
    Public Property ClientID As Int32  
    Public Property Language As String  
    Public Property UserID As Int32  
    Public Property DriverID As Int32  
    Public Property InsuranceRequired As Boolean  
    Public Property UserNotes As String  
    Public Property FlightNumber As String  
    Public Property CouponCode As String  
    Public Property Equipments As List(Of String)  //List of Optional.SupplierCode
    Public Property ConsumerIP As String  
    Public Property LengthOfRental As Int32  
    Public Property VLogWebSessionID As String //Rent.it internal use  
    Public Property SystemNotes As String //Rent.it internal use  
 End Class  

 Public Class BookingResponse  
    Public Property Reference As QuoteReference  
    Public Property BookingID As Int32  
    Public Property BookingCheckCode As String  
    Public Property BookingEngine As String  
    Public Property BookingStatus As ReservationStatus  
    Public Property CreditCardCharge As AmountClass  
    Public Property ConfirmationNumber As String  
    Public Property BookingDate As Date  
    Public Property PickUpDate As Date  
    Public Property DropOffDate As Date  
    Public Property InsuranceRequired As Boolean  
    Public Property ClientConfig As ClientConfig  
    Public Property Language As String  
    Public Property LengthOfRental As Int32  
    Public Property CreditCardPaymentURL As String  
    Public Property AxervePaymentURL As String  
    Public Property PaypalPaymentURL As String  
    Public Property StripePaymentURL As String  
    Public Property InsuranceRate As InsuranceRate  
    Public Property AdditionalInfo As BookingAdditionalInfo  
 End Class  

 Public Class InsuranceRate  
    Public Property AccountID As Int64  
    Public Property AgentGUID As String  
    Public Property TerritoryID As Int32  
    Public Property ProductID As Int32  
    Public Property GrossPremium As Double  
    Public Property Tax As Double  
    Public Property InsuranceAgentCommission As Double  
    Public Property ISOCurrency As String  
    Public Property ISOCountry As String  
    Public Property Drivers As Int32  
    Public Property QuoteRef As Int32  
    Public Property InsurerType As Insurer  
    Public ReadOnly Property TotalCost As Double  
 End Class  

 Public Enum Insurer  
    Unknown = 0  
    Questor = 1  
    Allianz = 2  
    RentalCover = 3  
 End Enum  

 Public Class BookingAdditionalInfo
    Public Property CountryCode As String  
    Public Property FlightNumber As String  
    Public Property UserID As Int32  
    Public Property DriverID As Int32  
    Public Property DriverAge As Int32  
    Public Property DriverCountry As String  
    Public Property PickUpOffice As Office  
    Public Property DropOffOffice As Office  
    Public Property Supplier As SupplierClass  
    Public Property Vehicle As VehicleClass  
    Public Property InsurancePurchased As Boolean  
    Public Property TotalRate As TotalRateClass  
    Public Property OptionalsNotIncludedInPrice As Boolean  
    Public Property TermsURL As String  
    Public Property VoucherURL As String  
    Public Property OriginalStatus As RateStatus  
    Public Property SystemCreditCardCharge As AmountClass  
    Public Property Invoices As List(Of Invoice)  
    Public Property InsuranceCertificateUrl As String  
    Public Property OutOfHour As Boolean  
 End Class  

 Public Class PaymentType  
    Public Property Code As String  
    Public Property Name As String  
    Public Property IsDefault As Boolean  
    Public Property Group As PaymentTypeGroup  
    Public Property Active As Boolean  
    Public Property SupplierID As Int32  
    Public Property InsuranceRequired As Boolean  
 End Class  

 Public Enum PaymentTypeGroup  
    Unknown = 0  
    CreditCard = 1  
    DebitCard = 2  
    ElectronicCard = 3  
    Cash = 4  
    Cheque = 5  
    Bancomat = 6  
 End Enum  

 Public Class Invoice  
    Public Property Currency As String  
    Public Property Amount As Double  
    Public Property ID As Integer  
    Public Property UniqueID As String  
    Public Property Date As DateTime  
    Public Property Number As String  
    Public Property InvoiceUrl As String  
 End Class  

 Public Class AuthRequest  
    Public Property Username As String  
    Public Property Password As String  
    Public Property DeviceID As String  
 End Class  

 Public Class AuthData  
    Public Property UserID As Integer  
    Public Property AuthToken As String  
    Public Property DeviceID As String  
 End Class  

 Public Enum PaymentGateway  
    Unknown = 0  
    Axerve = 1  
    Paypal = 2  
    Stripe = 3  
 End Enum  

 Public Enum VehicleKind  
    Unknown = 0  
    Car = 1 '1 CarSedan in OTA VEC VehicleCategory  
    Motorcycle = 2 '6 Motorcycle in OTA VEC VehicleCategory  
    Campervan = 3 '10 Motorhome in OTA VEC VehicleCategory  
    CommercialVanTruck = 4 '23 CommercialVanTruck in OTA VEC VehicleCategory  
    LongTermRental = 5 '24 Other in OTA VEC VehicleCategory  
 End Enum  

REMOVED

 Public Class RatingAziendaFull  
    Public Property idAzienda As Integer  
    Public Property idLocation As Integer  
    Public Property NumReviews As Integer  
    Public Property OverallReview As Double  
    Public Property Answers As List(Of QuestionResponse)  
 End Class  

REMOVED

 Public Class QuestionResponse  
    Public Property Id As Integer  
    Public Property Text As String  
    Public Property SurveyId As Integer  
    Public Property AverageRating As Double  
 End Class