Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the CreateBookingModel class.
 /// </summary>
 /// <param name="booker">The person creating the booking</param>
 /// <param name="reservations">List of reservations to create</param>
 /// <param name="bookerComment">Additional information and comments by
 /// the booker</param>
 /// <param name="comment">Additional information and comments</param>
 /// <param name="paymentAccount">Payment information</param>
 public CreateBookingModel(BookerModel booker, IList <CreateReservationModel> reservations, string bookerComment = default(string), string comment = default(string), CreatePaymentAccountModel paymentAccount = default(CreatePaymentAccountModel))
 {
     Booker         = booker;
     BookerComment  = bookerComment;
     Comment        = comment;
     PaymentAccount = paymentAccount;
     Reservations   = reservations;
     CustomInit();
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the CreateGroupModel class.
 /// </summary>
 /// <param name="booker">The person requesting the group
 /// booking</param>
 /// <param name="name">Name of the group</param>
 /// <param name="propertyIds">List of property ids the group booking
 /// belongs to</param>
 /// <param name="bookerComment">Additional information and comment by
 /// the booker</param>
 /// <param name="comment">Additional information and comments</param>
 /// <param name="paymentAccount">Payment information</param>
 public CreateGroupModel(BookerModel booker, string name, IList <string> propertyIds, string bookerComment = default(string), string comment = default(string), CreatePaymentAccountModel paymentAccount = default(CreatePaymentAccountModel))
 {
     Booker         = booker;
     BookerComment  = bookerComment;
     Comment        = comment;
     Name           = name;
     PaymentAccount = paymentAccount;
     PropertyIds    = propertyIds;
     CustomInit();
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the BookingItemModel class.
 /// </summary>
 /// <param name="booker">The person creating the booking.</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="id">Booking 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="bookerComment">Additional information and comment by
 /// the booker</param>
 /// <param name="comment">Additional information and comments</param>
 /// <param name="groupId">Group id</param>
 /// <param name="paymentAccount">Payment information</param>
 /// <param name="reservations">Reservations within this booking</param>
 public BookingItemModel(BookerModel booker, System.DateTime created, string id, System.DateTime modified, string bookerComment = default(string), string comment = default(string), string groupId = default(string), PaymentAccountModel paymentAccount = default(PaymentAccountModel), IList <BookingReservationModel> reservations = default(IList <BookingReservationModel>))
 {
     Booker         = booker;
     BookerComment  = bookerComment;
     Comment        = comment;
     Created        = created;
     GroupId        = groupId;
     Id             = id;
     Modified       = modified;
     PaymentAccount = paymentAccount;
     Reservations   = reservations;
     CustomInit();
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the GroupItemModel class.
 /// </summary>
 /// <param name="booker">The person requesting the group
 /// booking</param>
 /// <param name="id">Group id</param>
 /// <param name="name">Name of the group</param>
 /// <param name="propertyIds">The list of property ids this group
 /// belongs to</param>
 /// <param name="actions">The list of actions for this group</param>
 /// <param name="blocks">Blocks within this group</param>
 /// <param name="bookerComment">Additional information and comment by
 /// the booker</param>
 /// <param name="comment">Additional information and comments</param>
 /// <param name="fromProperty">Start date and time of the earliest
 /// block for this group&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 account that can be used to
 /// pay all picked up reservations</param>
 /// <param name="to">End date and time of the latest block for this
 /// group&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>
 public GroupItemModel(BookerModel booker, string id, string name, IList <string> propertyIds, IList <ActionModelGroupActionNotAllowedGroupActionReason> actions = default(IList <ActionModelGroupActionNotAllowedGroupActionReason>), IList <GroupBlockModel> blocks = default(IList <GroupBlockModel>), string bookerComment = default(string), string comment = default(string), System.DateTime?fromProperty = default(System.DateTime?), PaymentAccountModel paymentAccount = default(PaymentAccountModel), System.DateTime?to = default(System.DateTime?))
 {
     Actions        = actions;
     Blocks         = blocks;
     Booker         = booker;
     BookerComment  = bookerComment;
     Comment        = comment;
     FromProperty   = fromProperty;
     Id             = id;
     Name           = name;
     PaymentAccount = paymentAccount;
     PropertyIds    = propertyIds;
     To             = to;
     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();
 }