Пример #1
0
 /// <summary>
 /// Initializes a new instance of the PropertyValueModel class.
 /// </summary>
 /// <param name="balance">The balance of this booking for this
 /// property</param>
 /// <param name="property">The property</param>
 /// <param name="totalGrossAmount">The total gross amount of this
 /// booking for this property</param>
 public PropertyValueModel(MonetaryValueModel balance, EmbeddedPropertyModel property, MonetaryValueModel totalGrossAmount)
 {
     Balance          = balance;
     Property         = property;
     TotalGrossAmount = totalGrossAmount;
     CustomInit();
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the Date class.
 /// </summary>
 /// <param name="serviceDate">The date the service is delivered</param>
 /// <param name="amount">The optional amount for the service; if not
 /// specified, the default service amount from the offer will be
 /// used</param>
 /// <param name="count">The number of services to book for this date.
 /// It defaults to the service offer count when not specified.</param>
 public Date(System.DateTime serviceDate, MonetaryValueModel amount = default(MonetaryValueModel), int?count = default(int?))
 {
     Amount      = amount;
     Count       = count;
     ServiceDate = serviceDate;
     CustomInit();
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the TaxDetailModel class.
 /// </summary>
 /// <param name="vatType">Possible values include: 'Null',
 /// 'VeryReduced', 'Reduced', 'Normal', 'Without', 'Special'</param>
 public TaxDetailModel(MonetaryValueModel net, MonetaryValueModel tax, VatType vatType, double?vatPercent = default(double?))
 {
     Net        = net;
     Tax        = tax;
     VatPercent = vatPercent;
     VatType    = vatType;
     CustomInit();
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the BookReservationServiceModel
 /// class.
 /// </summary>
 /// <param name="serviceId">The id of the service you want to
 /// book</param>
 /// <param name="amount">The optional amount for the service for each
 /// service date; It defaults to the service offer amount when not
 /// specified.</param>
 /// <param name="count">The number of services to book for each service
 /// date. It defaults to the service offer count when not
 /// specified.</param>
 /// <param name="dates">The optional dates you want to book the service
 /// for; if not specified the default service pattern will be used
 /// (e.g. whole stay).</param>
 public BookReservationServiceModel(string serviceId, MonetaryValueModel amount = default(MonetaryValueModel), int?count = default(int?), IList <Date> dates = default(IList <Date>))
 {
     Amount    = amount;
     Count     = count;
     Dates     = dates;
     ServiceId = serviceId;
     CustomInit();
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the ServiceOfferModel class.
 /// </summary>
 /// <param name="count">The default count of offered services. For
 /// services whose pricing unit is 'Person' it will be based on the
 /// adults and children specified, otherwise 1.</param>
 /// <param name="dates">The dates the service will be delivered with
 /// its price</param>
 /// <param name="prePaymentAmount">The amount that needs to be
 /// pre-paid.</param>
 /// <param name="service">The service</param>
 /// <param name="totalAmount">The total price</param>
 public ServiceOfferModel(int count, IList <ServiceOfferItemModel> dates, MonetaryValueModel prePaymentAmount, ServiceModel service, AmountModel totalAmount)
 {
     Count            = count;
     Dates            = dates;
     PrePaymentAmount = prePaymentAmount;
     Service          = service;
     TotalAmount      = totalAmount;
     CustomInit();
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the OfferCancellationFeeModel class.
 /// </summary>
 /// <param name="code">The code of the cancellation policy
 /// applied</param>
 /// <param name="description">The description of the cancellation
 /// policy applied</param>
 /// <param name="dueDateTime">The date and time the cancellation fee
 /// will be due. After that time this fee will
 /// be charged in case of cancellation&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="fee">The fee amount</param>
 /// <param name="name">The name of the cancellation policy
 /// applied</param>
 public OfferCancellationFeeModel(string code, string description, System.DateTime dueDateTime, MonetaryValueModel fee, string name)
 {
     Code        = code;
     Description = description;
     DueDateTime = dueDateTime;
     Fee         = fee;
     Name        = name;
     CustomInit();
 }
Пример #7
0
 /// <summary>
 /// Initializes a new instance of the ServiceModel class.
 /// </summary>
 /// <param name="code">The code for the service</param>
 /// <param name="defaultGrossPrice">The default price, used when
 /// defining rates or calculating offers</param>
 /// <param name="description">The description for the service</param>
 /// <param name="id">The service id</param>
 /// <param name="name">The name for the service</param>
 /// <param name="pricingUnit">Defines the granularity (room, person)
 /// for which this item is offered and priced. Possible values include:
 /// 'Room', 'Person'</param>
 public ServiceModel(string code, MonetaryValueModel defaultGrossPrice, string description, string id, string name, PricedUnit pricingUnit)
 {
     Code = code;
     DefaultGrossPrice = defaultGrossPrice;
     Description       = description;
     Id          = id;
     Name        = name;
     PricingUnit = pricingUnit;
     CustomInit();
 }
Пример #8
0
 /// <summary>
 /// Initializes a new instance of the OfferTimeSliceModel class.
 /// </summary>
 /// <param name="availableUnits">The number of available units for that
 /// time slice</param>
 /// <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="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 all included
 /// services' prices</param>
 /// <param name="includedServices">The breakdown for services included
 /// in the offer</param>
 public OfferTimeSliceModel(int availableUnits, AmountModel baseAmount, System.DateTime fromProperty, System.DateTime to, MonetaryValueModel totalGrossAmount, IList <OfferServiceModel> includedServices = default(IList <OfferServiceModel>))
 {
     AvailableUnits   = availableUnits;
     BaseAmount       = baseAmount;
     FromProperty     = fromProperty;
     IncludedServices = includedServices;
     To = to;
     TotalGrossAmount = totalGrossAmount;
     CustomInit();
 }
Пример #9
0
 /// <summary>
 /// Initializes a new instance of the CreateBlockModel class.
 /// </summary>
 /// <param name="blockedUnits">Number of units to block for the defined
 /// time period</param>
 /// <param name="fromProperty">Start date and time from which the
 /// inventory will be blocked&lt;br /&gt;Specify either a pure date or
 /// 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</param>
 /// <param name="groupId">ID of the group that reserved the
 /// block</param>
 /// <param name="ratePlanId">The rate plan</param>
 /// <param name="to">End date and time until which the inventory will
 /// be blocked. Cannot be more than 5 years after the start date.&lt;br
 /// /&gt;Specify either a pure date or 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>
 public CreateBlockModel(int blockedUnits, string fromProperty, MonetaryValueModel grossDailyRate, string groupId, string ratePlanId, string to)
 {
     BlockedUnits   = blockedUnits;
     FromProperty   = fromProperty;
     GrossDailyRate = grossDailyRate;
     GroupId        = groupId;
     RatePlanId     = ratePlanId;
     To             = to;
     CustomInit();
 }
Пример #10
0
 /// <summary>
 /// Initializes a new instance of the
 /// ReservationStayOfferTimeSliceModel 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="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 all included
 /// services' prices</param>
 /// <param name="unitGroup">The unit group for this time slice</param>
 /// <param name="includedServices">The breakdown for services included
 /// in the offer</param>
 public ReservationStayOfferTimeSliceModel(AmountModel baseAmount, System.DateTime fromProperty, EmbeddedRatePlanModel ratePlan, System.DateTime to, MonetaryValueModel totalGrossAmount, OfferUnitGroupModel unitGroup, IList <ReservationStayOfferServiceModel> includedServices = default(IList <ReservationStayOfferServiceModel>))
 {
     BaseAmount       = baseAmount;
     FromProperty     = fromProperty;
     IncludedServices = includedServices;
     RatePlan         = ratePlan;
     To = to;
     TotalGrossAmount = totalGrossAmount;
     UnitGroup        = unitGroup;
     CustomInit();
 }
Пример #11
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();
 }
Пример #12
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();
 }
Пример #13
0
 /// <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();
 }
Пример #14
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();
 }
Пример #15
0
 /// <summary>
 /// Initializes a new instance of the ReservationStayOfferModel class.
 /// </summary>
 /// <param name="arrival">The earliest arrival date and time for this
 /// offer&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="availableUnits">The number of available units for that
 /// offer</param>
 /// <param name="cancellationFee">Details about the cancellation fee
 /// for this offer</param>
 /// <param name="departure">The latest departure date and time for this
 /// offer&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="minGuaranteeType">The minimum guarantee type for this
 /// offer. Possible values include: 'PM6Hold', 'CreditCard',
 /// 'Prepayment', 'Company'</param>
 /// <param name="noShowFee">Details about the no-show fee for this
 /// offer</param>
 /// <param name="taxDetails">Tax breakdown, displaying net and tax
 /// amount for each VAT type</param>
 /// <param name="timeSlices">The breakdown for each time slice for this
 /// offer</param>
 /// <param name="totalGrossAmount">The price for the whole stay</param>
 /// <param name="cityTax">The amount of city tax that can be charged
 /// for this offer</param>
 /// <param name="companyId">ID of the company the offer is created
 /// for</param>
 /// <param name="corporateCode">The corporate rate code the offer is
 /// created for</param>
 /// <param name="services">The breakdown for extra services reserved
 /// for this offer</param>
 /// <param name="validationMessages">Validation rules that were applied
 /// to the offer and show the reason why the offer is not
 /// bookable</param>
 public ReservationStayOfferModel(System.DateTime arrival, int availableUnits, OfferCancellationFeeModel cancellationFee, System.DateTime departure, MinGuaranteeType minGuaranteeType, OfferNoShowFeeModel noShowFee, IList <TaxDetailModel> taxDetails, IList <ReservationStayOfferTimeSliceModel> timeSlices, MonetaryValueModel totalGrossAmount, AmountModel cityTax = default(AmountModel), string companyId = default(string), string corporateCode = default(string), IList <ServiceOfferModel> services = default(IList <ServiceOfferModel>), IList <OfferValidationMessageModel> validationMessages = default(IList <OfferValidationMessageModel>))
 {
     Arrival            = arrival;
     AvailableUnits     = availableUnits;
     CancellationFee    = cancellationFee;
     CityTax            = cityTax;
     CompanyId          = companyId;
     CorporateCode      = corporateCode;
     Departure          = departure;
     MinGuaranteeType   = minGuaranteeType;
     NoShowFee          = noShowFee;
     Services           = services;
     TaxDetails         = taxDetails;
     TimeSlices         = timeSlices;
     TotalGrossAmount   = totalGrossAmount;
     ValidationMessages = validationMessages;
     CustomInit();
 }
Пример #16
0
 /// <summary>
 /// Initializes a new instance of the OfferModel class.
 /// </summary>
 /// <param name="arrival">The earliest arrival date and time for this
 /// offer&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="availableUnits">The number of available units for that
 /// offer</param>
 /// <param name="cancellationFee">Details about the cancellation fee
 /// for this offer</param>
 /// <param name="departure">The latest departure date and time for this
 /// offer&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="minGuaranteeType">The minimum guarantee type for this
 /// offer. Possible values include: 'PM6Hold', 'CreditCard',
 /// 'Prepayment', 'Company'</param>
 /// <param name="noShowFee">Details about the no-show fee for this
 /// offer</param>
 /// <param name="prePaymentAmount">The amount that needs to be
 /// pre-paid.</param>
 /// <param name="ratePlan">The rate plan for this offer</param>
 /// <param name="taxDetails">Tax breakdown, displaying net and tax
 /// amount for each VAT type</param>
 /// <param name="timeSlices">The breakdown for each time slice for this
 /// offer</param>
 /// <param name="totalGrossAmount">The price for the whole stay</param>
 /// <param name="unitGroup">The unit group for which the following
 /// offers apply</param>
 /// <param name="cityTax">The amount of city tax that can be charged
 /// for this offer</param>
 /// <param name="companyId">ID of the company the offer is created
 /// for</param>
 /// <param name="corporateCode">The corporate rate code the offer is
 /// created for</param>
 /// <param name="isCorporate">Whether the offer is for a corporate rate
 /// plan</param>
 /// <param name="validationMessages">Validation rules that were applied
 /// to the offer and show the reason why the offer is not
 /// bookable</param>
 public OfferModel(System.DateTime arrival, int availableUnits, OfferCancellationFeeModel cancellationFee, System.DateTime departure, MinGuaranteeType minGuaranteeType, OfferNoShowFeeModel noShowFee, MonetaryValueModel prePaymentAmount, EmbeddedRatePlanModel ratePlan, IList <TaxDetailModel> taxDetails, IList <OfferTimeSliceModel> timeSlices, MonetaryValueModel totalGrossAmount, OfferUnitGroupModel unitGroup, AmountModel cityTax = default(AmountModel), string companyId = default(string), string corporateCode = default(string), bool?isCorporate = default(bool?), IList <OfferValidationMessageModel> validationMessages = default(IList <OfferValidationMessageModel>))
 {
     Arrival            = arrival;
     AvailableUnits     = availableUnits;
     CancellationFee    = cancellationFee;
     CityTax            = cityTax;
     CompanyId          = companyId;
     CorporateCode      = corporateCode;
     Departure          = departure;
     IsCorporate        = isCorporate;
     MinGuaranteeType   = minGuaranteeType;
     NoShowFee          = noShowFee;
     PrePaymentAmount   = prePaymentAmount;
     RatePlan           = ratePlan;
     TaxDetails         = taxDetails;
     TimeSlices         = timeSlices;
     TotalGrossAmount   = totalGrossAmount;
     UnitGroup          = unitGroup;
     ValidationMessages = validationMessages;
     CustomInit();
 }
Пример #17
0
 /// <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();
 }
Пример #18
0
 /// <summary>
 /// Initializes a new instance of the CreateReservationModel class.
 /// </summary>
 /// <param name="adults">Number of adults</param>
 /// <param name="arrival">Date and optional time of arrival&lt;br
 /// /&gt;Specify either a pure date or 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="channelCode">Channel code. Possible values include:
 /// 'Direct', 'BookingCom', 'Ibe', 'ChannelManager', 'Expedia'</param>
 /// <param name="departure">Date and optional time of departure. Cannot
 /// be more than 5 years after arrival.&lt;br /&gt;Specify either a
 /// pure date or 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="timeSlices">Gross prices including services and taxes
 /// for each time slice. They will be applied to the reservation
 /// timeslices
 /// in the order specified from arrival to departure</param>
 /// <param name="additionalGuests">Additional guests of the
 /// reservation.</param>
 /// <param name="childrenAges">Ages of the children</param>
 /// <param name="comment">Additional information and comments</param>
 /// <param name="commission">The information about the OTA
 /// commission.</param>
 /// <param name="companyId">Set this if this reservation belongs to a
 /// company</param>
 /// <param name="corporateCode">Corporate code provided during
 /// creation. Used to find offers during amend.</param>
 /// <param name="externalCode">Code in some system</param>
 /// <param name="guaranteeType">The guarantee that has to be applied
 /// for this reservation. It has to be the same or stronger than
 /// the minimum guarantee required by the selected rate plan. Possible
 /// values include: 'PM6Hold', 'CreditCard', 'Prepayment',
 /// 'Company'</param>
 /// <param name="guestComment">Additional information and comments by
 /// the guest</param>
 /// <param name="prePaymentAmount">The amount that needs to be
 /// pre-paid.</param>
 /// <param name="primaryGuest">The primary guest of the reservation.
 /// If no guest is set, the booker is used.</param>
 /// <param name="services">Additional services (extras, add-ons) that
 /// should be added to the reservation</param>
 /// <param name="source">Source of the reservation</param>
 /// <param name="travelPurpose">Purpose of the trip, leisure or
 /// business. Possible values include: 'Business', 'Leisure'</param>
 public CreateReservationModel(int adults, string arrival, string channelCode, string departure, IList <CreateReservationTimeSliceModel> timeSlices, IList <GuestModel> additionalGuests = default(IList <GuestModel>), IList <int?> childrenAges = default(IList <int?>), string comment = default(string), CommissionModel commission = default(CommissionModel), string companyId = default(string), string corporateCode = default(string), string externalCode = default(string), string guaranteeType = default(string), string guestComment = default(string), MonetaryValueModel prePaymentAmount = default(MonetaryValueModel), GuestModel primaryGuest = default(GuestModel), IList <BookReservationServiceModel> services = default(IList <BookReservationServiceModel>), string source = default(string), string travelPurpose = default(string))
 {
     AdditionalGuests = additionalGuests;
     Adults           = adults;
     Arrival          = arrival;
     ChannelCode      = channelCode;
     ChildrenAges     = childrenAges;
     Comment          = comment;
     Commission       = commission;
     CompanyId        = companyId;
     CorporateCode    = corporateCode;
     Departure        = departure;
     ExternalCode     = externalCode;
     GuaranteeType    = guaranteeType;
     GuestComment     = guestComment;
     PrePaymentAmount = prePaymentAmount;
     PrimaryGuest     = primaryGuest;
     Services         = services;
     Source           = source;
     TimeSlices       = timeSlices;
     TravelPurpose    = travelPurpose;
     CustomInit();
 }
Пример #19
0
 /// <summary>
 /// Initializes a new instance of the DesiredTimeSliceModel class.
 /// </summary>
 /// <param name="ratePlanId">The rate plan id for this time
 /// slice</param>
 /// <param name="totalGrossAmount">The total amount for this time slice
 /// including taxes and fees for included services and including the
 /// surcharges for all persons. If no price is given and the rate plan
 /// for an already booked time slice
 /// is not changed only the per person surcharge will be recalculated.
 /// If the rate plan for an already booked
 /// time slice is changed or it is a newly added time slice the price
 /// from the offer will be taken</param>
 public DesiredTimeSliceModel(string ratePlanId, MonetaryValueModel totalGrossAmount = default(MonetaryValueModel))
 {
     RatePlanId       = ratePlanId;
     TotalGrossAmount = totalGrossAmount;
     CustomInit();
 }
Пример #20
0
 /// <summary>
 /// Initializes a new instance of the ReservationNoShowFeeModel class.
 /// </summary>
 /// <param name="code">The code of the no-show policy applied</param>
 /// <param name="fee">The fee amount</param>
 public ReservationNoShowFeeModel(string code, MonetaryValueModel fee)
 {
     Code = code;
     Fee  = fee;
     CustomInit();
 }
Пример #21
0
 /// <summary>
 /// Initializes a new instance of the OfferNoShowFeeModel class.
 /// </summary>
 /// <param name="code">The code of the no-show policy applied</param>
 /// <param name="fee">The fee amount</param>
 public OfferNoShowFeeModel(string code, MonetaryValueModel fee)
 {
     Code = code;
     Fee  = fee;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the CreateReservationTimeSliceModel
 /// class.
 /// </summary>
 /// <param name="ratePlanId">The rate plan id for this time
 /// slice</param>
 /// <param name="totalAmount">The total amount for this time slice
 /// including taxes and fees for included services.
 /// Although the currency is required, it's ignored since it's not yet
 /// supported.</param>
 public CreateReservationTimeSliceModel(string ratePlanId, MonetaryValueModel totalAmount = default(MonetaryValueModel))
 {
     RatePlanId  = ratePlanId;
     TotalAmount = totalAmount;
     CustomInit();
 }
Пример #23
0
 /// <summary>
 /// Initializes a new instance of the CommissionModel class.
 /// </summary>
 /// <param name="commissionAmount">The amount of the OTA
 /// commision</param>
 /// <param name="beforeCommissionAmount">The amount of the reservation
 /// without the OTA commision</param>
 public CommissionModel(MonetaryValueModel commissionAmount, MonetaryValueModel beforeCommissionAmount = default(MonetaryValueModel))
 {
     BeforeCommissionAmount = beforeCommissionAmount;
     CommissionAmount       = commissionAmount;
     CustomInit();
 }