Exemple #1
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();
 }
Exemple #2
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();
 }