Example #1
0
 /// <summary>
 /// Initializes a new instance of the TimeSliceOfferItemModel class.
 /// </summary>
 /// <param name="available">The number of available units for the
 /// offer</param>
 /// <param name="unitGroup">The unit group for which the offer
 /// applies</param>
 /// <param name="maxAdvance">The maximum advance booking period</param>
 /// <param name="minAdvance">The minimum advance booking period</param>
 /// <param name="minGuaranteeType">The minimum guarantee type for the
 /// offer. Possible values include: 'PM6Hold', 'CreditCard',
 /// 'Prepayment', 'Company', 'Ota'</param>
 /// <param name="prices">The prices for this offer</param>
 /// <param name="restrictions">The restrictions set for this
 /// offer</param>
 public TimeSliceOfferItemModel(int available, EmbeddedUnitGroupModel unitGroup, PeriodModel maxAdvance = default(PeriodModel), PeriodModel minAdvance = default(PeriodModel), string minGuaranteeType = default(string), IList <PerOccupancyPriceItemModel> prices = default(IList <PerOccupancyPriceItemModel>), RateRestrictionsModel restrictions = default(RateRestrictionsModel))
 {
     Available        = available;
     MaxAdvance       = maxAdvance;
     MinAdvance       = minAdvance;
     MinGuaranteeType = minGuaranteeType;
     Prices           = prices;
     Restrictions     = restrictions;
     UnitGroup        = unitGroup;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the AvailableUnitItemModel class.
 /// </summary>
 /// <param name="description">The description for the unit</param>
 /// <param name="id">The unit id</param>
 /// <param name="maxPersons">Maximum number of persons for the
 /// unit</param>
 /// <param name="name">The name for the unit</param>
 /// <param name="property">The property to which the unit belongs
 /// to</param>
 /// <param name="status">The current status of the unit</param>
 /// <param name="unitGroup">The unit group</param>
 public AvailableUnitItemModel(string description, string id, int maxPersons, string name, EmbeddedPropertyModel property, AvailableUnitItemStatusModel status, EmbeddedUnitGroupModel unitGroup = default(EmbeddedUnitGroupModel))
 {
     Description = description;
     Id          = id;
     MaxPersons  = maxPersons;
     Name        = name;
     Property    = property;
     Status      = status;
     UnitGroup   = unitGroup;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the UnitGroupAvailabilityItemModel
 /// class.
 /// </summary>
 /// <param name="availableCount">The number of units still available.
 /// This is the house count excluding the out of order units minus
 /// the already sold units.</param>
 /// <param name="houseCount">The number of units physically existing
 /// excluding the ones which are out of inventory</param>
 /// <param name="occupancy">The percent value indicating the
 /// occupancy</param>
 /// <param name="physicalCount">The number of units physically existing
 /// on the property</param>
 /// <param name="sellableCount">The number of units available for
 /// selling. This is the minimum of the sellable units on property
 /// level
 /// and the available units of this unit group. If there are only 3
 /// units available on the property level
 /// but 5 units available for this unit group, the sellable count will
 /// be 3. This situation can occur if
 /// another category or the whole house is overbooked.</param>
 /// <param name="soldCount">The number of sold units including units
 /// picked up from blocks</param>
 /// <param name="unitGroup">The unit group</param>
 public UnitGroupAvailabilityItemModel(int availableCount, BlockUnitsModel block, int houseCount, MaintenanceModel maintenance, double occupancy, int physicalCount, int sellableCount, int soldCount, EmbeddedUnitGroupModel unitGroup)
 {
     AvailableCount = availableCount;
     Block          = block;
     HouseCount     = houseCount;
     Maintenance    = maintenance;
     Occupancy      = occupancy;
     PhysicalCount  = physicalCount;
     SellableCount  = sellableCount;
     SoldCount      = soldCount;
     UnitGroup      = unitGroup;
     CustomInit();
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the GroupBlockModel class.
 /// </summary>
 /// <param name="blockedUnits">Number of units blocked</param>
 /// <param name="fromProperty">Start date and time from which the
 /// inventory will be blocked&lt;br /&gt;Specify a date and time
 /// (without fractional second part) in UTC or with UTC offset as
 /// defined in &lt;a
 /// href="https://en.wikipedia.org/wiki/ISO_8601"&gt;ISO8601:2004&lt;/a&gt;</param>
 /// <param name="grossDailyRate">Gross daily rate including VAT and
 /// included service fees for single occupancy. Per person
 /// surcharges will be added to this price based on the configured
 /// surcharges of the rate plan</param>
 /// <param name="id">Block id</param>
 /// <param name="pickedReservations">Number of reservations already
 /// picked from this block</param>
 /// <param name="property">The property</param>
 /// <param name="ratePlan">The rate plan</param>
 /// <param name="status">Status of the block. Possible values include:
 /// 'Tentative', 'Definite', 'Canceled'</param>
 /// <param name="to">End date and time until which the inventory will
 /// be blocked&lt;br /&gt;Specify a date and time (without fractional
 /// second part) in UTC or with UTC offset as defined in &lt;a
 /// href="https://en.wikipedia.org/wiki/ISO_8601"&gt;ISO8601:2004&lt;/a&gt;</param>
 /// <param name="unitGroup">The unit group</param>
 public GroupBlockModel(int blockedUnits, System.DateTime fromProperty, MonetaryValueModel grossDailyRate, string id, int pickedReservations, EmbeddedPropertyModel property, EmbeddedRatePlanModel ratePlan, BlockStatus status, System.DateTime to, EmbeddedUnitGroupModel unitGroup)
 {
     BlockedUnits       = blockedUnits;
     FromProperty       = fromProperty;
     GrossDailyRate     = grossDailyRate;
     Id                 = id;
     PickedReservations = pickedReservations;
     Property           = property;
     RatePlan           = ratePlan;
     Status             = status;
     To                 = to;
     UnitGroup          = unitGroup;
     CustomInit();
 }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the TimeSliceModel class.
 /// </summary>
 /// <param name="baseAmount">The price for this time slice without
 /// included services</param>
 /// <param name="fromProperty">The start date and time for this time
 /// slice&lt;br /&gt;Specify a date and time (without fractional second
 /// part) in UTC or with UTC offset as defined in &lt;a
 /// href="https://en.wikipedia.org/wiki/ISO_8601"&gt;ISO8601:2004&lt;/a&gt;</param>
 /// <param name="ratePlan">The rate plan for this time slice</param>
 /// <param name="serviceDate">The service date for this time
 /// slice</param>
 /// <param name="to">The end date and time for this time slice&lt;br
 /// /&gt;Specify a date and time (without fractional second part) in
 /// UTC or with UTC offset as defined in &lt;a
 /// href="https://en.wikipedia.org/wiki/ISO_8601"&gt;ISO8601:2004&lt;/a&gt;</param>
 /// <param name="totalGrossAmount">The total gross price for this time
 /// slice, which is comprised by the base price and the all included
 /// services' prices</param>
 /// <param name="unitGroup">The unit group for this time slice</param>
 /// <param name="actions">The list of actions allowed for this time
 /// slice</param>
 /// <param name="includedServices">The list of services included in the
 /// rate plan (package elements)</param>
 /// <param name="unit">The assigned unit for this time slice</param>
 public TimeSliceModel(AmountModel baseAmount, System.DateTime fromProperty, EmbeddedRatePlanModel ratePlan, System.DateTime serviceDate, System.DateTime to, MonetaryValueModel totalGrossAmount, EmbeddedUnitGroupModel unitGroup, IList <ActionModelReservationTimeSliceActionNotAllowedReservationTimeSliceActionReason> actions = default(IList <ActionModelReservationTimeSliceActionNotAllowedReservationTimeSliceActionReason>), IList <ReservationServiceModel> includedServices = default(IList <ReservationServiceModel>), EmbeddedUnitModel unit = default(EmbeddedUnitModel))
 {
     Actions          = actions;
     BaseAmount       = baseAmount;
     FromProperty     = fromProperty;
     IncludedServices = includedServices;
     RatePlan         = ratePlan;
     ServiceDate      = serviceDate;
     To = to;
     TotalGrossAmount = totalGrossAmount;
     Unit             = unit;
     UnitGroup        = unitGroup;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the ReservationItemModel class.
 /// </summary>
 /// <param name="adults">Number of adults</param>
 /// <param name="arrival">Date of arrival&lt;br /&gt;Specify a date and
 /// time (without fractional second part) in UTC or with UTC offset as
 /// defined in &lt;a
 /// href="https://en.wikipedia.org/wiki/ISO_8601"&gt;ISO8601:2004&lt;/a&gt;</param>
 /// <param name="balance">The balance of this reservation.</param>
 /// <param name="bookingId">Booking id</param>
 /// <param name="cancellationFee">Details about the cancellation fee
 /// for this reservation</param>
 /// <param name="channelCode">Channel code. Possible values include:
 /// 'Direct', 'BookingCom', 'Ibe', 'ChannelManager', 'Expedia'</param>
 /// <param name="created">Date of creation&lt;br /&gt;Specify a date
 /// and time (without fractional second part) in UTC or with UTC offset
 /// as defined in &lt;a
 /// href="https://en.wikipedia.org/wiki/ISO_8601"&gt;ISO8601:2004&lt;/a&gt;</param>
 /// <param name="departure">Date of departure&lt;br /&gt;Specify a date
 /// and time (without fractional second part) in UTC or with UTC offset
 /// as defined in &lt;a
 /// href="https://en.wikipedia.org/wiki/ISO_8601"&gt;ISO8601:2004&lt;/a&gt;</param>
 /// <param name="guaranteeType">The strongest guarantee for the rate
 /// plans booked in this reservation. Possible values include:
 /// 'PM6Hold', 'CreditCard', 'Prepayment', 'Company', 'Ota'</param>
 /// <param name="hasCityTax">Whether the city tax has already been
 /// added to the reservation. Set to false, if the property does not
 /// have city tax configured</param>
 /// <param name="id">Reservation id</param>
 /// <param name="modified">Date of last modification&lt;br /&gt;Specify
 /// a date and time (without fractional second part) in UTC or with UTC
 /// offset as defined in &lt;a
 /// href="https://en.wikipedia.org/wiki/ISO_8601"&gt;ISO8601:2004&lt;/a&gt;</param>
 /// <param name="noShowFee">Details about the no-show fee for this
 /// reservation</param>
 /// <param name="primaryGuest">The primary guest of the
 /// reservation</param>
 /// <param name="property">The property</param>
 /// <param name="ratePlan">The rate plan</param>
 /// <param name="status">Status of the reservation. Possible values
 /// include: 'Confirmed', 'InHouse', 'CheckedOut', 'Canceled',
 /// 'NoShow'</param>
 /// <param name="totalGrossAmount">Total amount</param>
 /// <param name="unitGroup">The unit group</param>
 /// <param name="actions">The list of actions for this
 /// reservation</param>
 /// <param name="additionalGuests">Additional guests of the
 /// reservation.</param>
 /// <param name="allFoliosHaveInvoice">Whether all folios of a
 /// reservation have an invoice</param>
 /// <param name="assignedUnits">The list of units assigned to this
 /// reservation</param>
 /// <param name="blockId">Block id</param>
 /// <param name="booker">The person who made the booking</param>
 /// <param name="cancellationTime">Time of cancellation, if the
 /// reservation was canceled&lt;br /&gt;Specify a date and time
 /// (without fractional second part) in UTC or with UTC offset as
 /// defined in &lt;a
 /// href="https://en.wikipedia.org/wiki/ISO_8601"&gt;ISO8601:2004&lt;/a&gt;</param>
 /// <param name="checkInTime">Time of check-in&lt;br /&gt;Specify a
 /// date and time (without fractional second part) in UTC or with UTC
 /// offset as defined in &lt;a
 /// href="https://en.wikipedia.org/wiki/ISO_8601"&gt;ISO8601:2004&lt;/a&gt;</param>
 /// <param name="checkOutTime">Time of check-out&lt;br /&gt;Specify a
 /// date and time (without fractional second part) in UTC or with UTC
 /// offset as defined in &lt;a
 /// href="https://en.wikipedia.org/wiki/ISO_8601"&gt;ISO8601:2004&lt;/a&gt;</param>
 /// <param name="childrenAges">The ages of the children</param>
 /// <param name="cityTax">The amount of city tax that can be charged
 /// for this reservation</param>
 /// <param name="comment">Additional information and comments</param>
 /// <param name="commission">The information about the OTA
 /// commission.</param>
 /// <param name="company">Company for this reservation.</param>
 /// <param name="corporateCode">Corporate code provided during
 /// creation. Used to find offers during amend.</param>
 /// <param name="externalCode">Code in external system</param>
 /// <param name="guestComment">Additional information and comment by
 /// the guest</param>
 /// <param name="noShowTime">Time of setting no-show reservation
 /// status&lt;br /&gt;Specify a date and time (without fractional
 /// second part) in UTC or with UTC offset as defined in &lt;a
 /// href="https://en.wikipedia.org/wiki/ISO_8601"&gt;ISO8601:2004&lt;/a&gt;</param>
 /// <param name="paymentAccount">Payment information</param>
 /// <param name="services">The list of additional services (extras,
 /// add-ons) reserved for the stay</param>
 /// <param name="source">Source of the reservation (e.g Hotels.com,
 /// Orbitz, etc.)</param>
 /// <param name="timeSlices">The list of time slices with the reserved
 /// units / unit groups for the stay</param>
 /// <param name="travelPurpose">The purpose of the trip, leisure or
 /// business. Possible values include: 'Business', 'Leisure'</param>
 /// <param name="unit">The unit</param>
 /// <param name="validationMessages">Validation rules are applied to
 /// reservations during their lifetime.
 /// For example a reservation that was created while the house or unit
 /// group is already fully booked.
 /// Whenever a rule was or is currently violated, a validation message
 /// will be added to this list.
 /// They can be deleted whenever the hotel staff worked them
 /// off.</param>
 public ReservationItemModel(int adults, System.DateTime arrival, MonetaryValueModel balance, string bookingId, ReservationCancellationFeeModel cancellationFee, ChannelCode channelCode, System.DateTime created, System.DateTime departure, GuaranteeType guaranteeType, bool hasCityTax, string id, System.DateTime modified, ReservationNoShowFeeModel noShowFee, GuestModel primaryGuest, EmbeddedPropertyModel property, EmbeddedRatePlanModel ratePlan, ReservationStatus status, MonetaryValueModel totalGrossAmount, EmbeddedUnitGroupModel unitGroup, IList <ActionModelReservationActionNotAllowedReservationActionReason> actions = default(IList <ActionModelReservationActionNotAllowedReservationActionReason>), IList <GuestModel> additionalGuests = default(IList <GuestModel>), bool?allFoliosHaveInvoice = default(bool?), IList <ReservationAssignedUnitModel> assignedUnits = default(IList <ReservationAssignedUnitModel>), string blockId = default(string), BookerModel booker = default(BookerModel), System.DateTime?cancellationTime = default(System.DateTime?), System.DateTime?checkInTime = default(System.DateTime?), System.DateTime?checkOutTime = default(System.DateTime?), IList <int?> childrenAges = default(IList <int?>), AmountModel cityTax = default(AmountModel), string comment = default(string), CommissionModel commission = default(CommissionModel), EmbeddedCompanyModel company = default(EmbeddedCompanyModel), string corporateCode = default(string), string externalCode = default(string), string guestComment = default(string), System.DateTime?noShowTime = default(System.DateTime?), PaymentAccountModel paymentAccount = default(PaymentAccountModel), IList <ReservationServiceItemModel> services = default(IList <ReservationServiceItemModel>), string source = default(string), IList <TimeSliceModel> timeSlices = default(IList <TimeSliceModel>), string travelPurpose = default(string), EmbeddedUnitModel unit = default(EmbeddedUnitModel), IList <ReservationValidationMessageModel> validationMessages = default(IList <ReservationValidationMessageModel>))
 {
     Actions              = actions;
     AdditionalGuests     = additionalGuests;
     Adults               = adults;
     AllFoliosHaveInvoice = allFoliosHaveInvoice;
     Arrival              = arrival;
     AssignedUnits        = assignedUnits;
     Balance              = balance;
     BlockId              = blockId;
     Booker               = booker;
     BookingId            = bookingId;
     CancellationFee      = cancellationFee;
     CancellationTime     = cancellationTime;
     ChannelCode          = channelCode;
     CheckInTime          = checkInTime;
     CheckOutTime         = checkOutTime;
     ChildrenAges         = childrenAges;
     CityTax              = cityTax;
     Comment              = comment;
     Commission           = commission;
     Company              = company;
     CorporateCode        = corporateCode;
     Created              = created;
     Departure            = departure;
     ExternalCode         = externalCode;
     GuaranteeType        = guaranteeType;
     GuestComment         = guestComment;
     HasCityTax           = hasCityTax;
     Id                 = id;
     Modified           = modified;
     NoShowFee          = noShowFee;
     NoShowTime         = noShowTime;
     PaymentAccount     = paymentAccount;
     PrimaryGuest       = primaryGuest;
     Property           = property;
     RatePlan           = ratePlan;
     Services           = services;
     Source             = source;
     Status             = status;
     TimeSlices         = timeSlices;
     TotalGrossAmount   = totalGrossAmount;
     TravelPurpose      = travelPurpose;
     Unit               = unit;
     UnitGroup          = unitGroup;
     ValidationMessages = validationMessages;
     CustomInit();
 }
Example #7
0
 /// <summary>
 /// Initializes a new instance of the BlockModel class.
 /// </summary>
 /// <param name="blockedUnits">Number of units blocked</param>
 /// <param name="fromProperty">Start date and time from which the
 /// inventory will be blocked&lt;br /&gt;Specify a date and time
 /// (without fractional second part) in UTC or with UTC offset as
 /// defined in &lt;a
 /// href="https://en.wikipedia.org/wiki/ISO_8601"&gt;ISO8601:2004&lt;/a&gt;</param>
 /// <param name="grossDailyRate">Gross daily rate including VAT and
 /// included service fees for single occupancy. Per person
 /// surcharges will be added to this price based on the configured
 /// surcharges of the rate plan</param>
 /// <param name="group">The group this block is attached to</param>
 /// <param name="id">Block id</param>
 /// <param name="pickedReservations">Number of reservations already
 /// picked from this block</param>
 /// <param name="property">The property</param>
 /// <param name="ratePlan">The rate plan</param>
 /// <param name="status">Status of the block. Tentative will just mark
 /// inventory as requested, but still allows to sell it
 /// through other channels. Definite will block the inventory for
 /// selling through other channels. Possible values include:
 /// 'Tentative', 'Definite', 'Canceled'</param>
 /// <param name="to">End date and time until which the inventory will
 /// be blocked&lt;br /&gt;Specify a date and time (without fractional
 /// second part) in UTC or with UTC offset as defined in &lt;a
 /// href="https://en.wikipedia.org/wiki/ISO_8601"&gt;ISO8601:2004&lt;/a&gt;</param>
 /// <param name="unitGroup">The unit group</param>
 /// <param name="actions">The list of actions for this block</param>
 public BlockModel(int blockedUnits, System.DateTime fromProperty, MonetaryValueModel grossDailyRate, EmbeddedGroupModel group, string id, int pickedReservations, EmbeddedPropertyModel property, EmbeddedRatePlanModel ratePlan, BlockStatus status, System.DateTime to, EmbeddedUnitGroupModel unitGroup, IList <ActionModelBlockActionNotAllowedBlockActionReason> actions = default(IList <ActionModelBlockActionNotAllowedBlockActionReason>))
 {
     Actions            = actions;
     BlockedUnits       = blockedUnits;
     FromProperty       = fromProperty;
     GrossDailyRate     = grossDailyRate;
     Group              = group;
     Id                 = id;
     PickedReservations = pickedReservations;
     Property           = property;
     RatePlan           = ratePlan;
     Status             = status;
     To                 = to;
     UnitGroup          = unitGroup;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the BookingReservationModel class.
 /// </summary>
 /// <param name="adults">Number of adults</param>
 /// <param name="arrival">Date of arrival&lt;br /&gt;Specify a date and
 /// time (without fractional second part) in UTC or with UTC offset as
 /// defined in &lt;a
 /// href="https://en.wikipedia.org/wiki/ISO_8601"&gt;ISO8601:2004&lt;/a&gt;</param>
 /// <param name="cancellationFee">Details about the cancellation fee
 /// for this reservation</param>
 /// <param name="channelCode">Channel code. Possible values include:
 /// 'Direct', 'BookingCom', 'Ibe', 'ChannelManager', 'Expedia'</param>
 /// <param name="departure">Date of departure&lt;br /&gt;Specify a date
 /// and time (without fractional second part) in UTC or with UTC offset
 /// as defined in &lt;a
 /// href="https://en.wikipedia.org/wiki/ISO_8601"&gt;ISO8601:2004&lt;/a&gt;</param>
 /// <param name="id">Reservation id</param>
 /// <param name="property">The property</param>
 /// <param name="ratePlan">The currently active rate plan</param>
 /// <param name="status">Status of the reservation. Possible values
 /// include: 'Confirmed', 'InHouse', 'CheckedOut', 'Canceled',
 /// 'NoShow'</param>
 /// <param name="totalGrossAmount">Total amount</param>
 /// <param name="unitGroup">The currently active unit group</param>
 /// <param name="childrenAges">The ages of the children</param>
 /// <param name="company">Company for this reservation.</param>
 /// <param name="externalCode">Code in external system</param>
 /// <param name="guestComment">Additional information and comment by
 /// the guest</param>
 /// <param name="paymentAccount">Payment information</param>
 /// <param name="services">The list of additional services (extras,
 /// add-ons) reserved for the stay</param>
 /// <param name="source">Source of the reservation (e.g Hotels.com,
 /// Orbitz, etc.)</param>
 public BookingReservationModel(int adults, System.DateTime arrival, ReservationCancellationFeeModel cancellationFee, ChannelCode channelCode, System.DateTime departure, string id, EmbeddedPropertyModel property, EmbeddedRatePlanModel ratePlan, ReservationStatus status, MonetaryValueModel totalGrossAmount, EmbeddedUnitGroupModel unitGroup, IList <int?> childrenAges = default(IList <int?>), EmbeddedCompanyModel company = default(EmbeddedCompanyModel), string externalCode = default(string), string guestComment = default(string), PaymentAccountModel paymentAccount = default(PaymentAccountModel), IList <ReservationServiceItemModel> services = default(IList <ReservationServiceItemModel>), string source = default(string))
 {
     Adults          = adults;
     Arrival         = arrival;
     CancellationFee = cancellationFee;
     ChannelCode     = channelCode;
     ChildrenAges    = childrenAges;
     Company         = company;
     Departure       = departure;
     ExternalCode    = externalCode;
     GuestComment    = guestComment;
     Id               = id;
     PaymentAccount   = paymentAccount;
     Property         = property;
     RatePlan         = ratePlan;
     Services         = services;
     Source           = source;
     Status           = status;
     TotalGrossAmount = totalGrossAmount;
     UnitGroup        = unitGroup;
     CustomInit();
 }