/// <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<br />Specify a date and time (without fractional second /// part) in UTC or with UTC offset as defined in <a /// href="https://en.wikipedia.org/wiki/ISO_8601">ISO8601:2004</a></param> /// <param name="ratePlan">The rate plan for this time slice</param> /// <param name="to">The end date and time for this time slice<br /// />Specify a date and time (without fractional second part) in /// UTC or with UTC offset as defined in <a /// href="https://en.wikipedia.org/wiki/ISO_8601">ISO8601:2004</a></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(); }
/// <summary> /// Initializes a new instance of the OfferModel class. /// </summary> /// <param name="arrival">The earliest arrival date and time for this /// offer<br />Specify a date and time (without fractional second /// part) in UTC or with UTC offset as defined in <a /// href="https://en.wikipedia.org/wiki/ISO_8601">ISO8601:2004</a></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<br />Specify a date and time (without fractional second /// part) in UTC or with UTC offset as defined in <a /// href="https://en.wikipedia.org/wiki/ISO_8601">ISO8601:2004</a></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(); }