/// <summary> /// Initializes a new instance of the ReservationServiceModel class. /// </summary> /// <param name="amount">The total price for all booked /// services</param> /// <param name="bookedAsExtra">Whether this service is already booked /// as extra</param> /// <param name="count">The count of booked services</param> /// <param name="service">The reserved service</param> /// <param name="serviceDate">The date this service is /// delivered</param> public ReservationServiceModel(AmountModel amount, bool bookedAsExtra, int count, EmbeddedServiceModel service, System.DateTime serviceDate) { Amount = amount; BookedAsExtra = bookedAsExtra; Count = count; Service = service; ServiceDate = serviceDate; CustomInit(); }
/// <summary> /// Initializes a new instance of the OfferServiceModel class. /// </summary> /// <param name="amount">The total price</param> /// <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="pricingMode">Whether the service price is included in /// or added to the base rate. Possible values include: 'Included', /// 'Additional'</param> /// <param name="service">The service</param> /// <param name="serviceDate">The date this service is /// delivered</param> public OfferServiceModel(AmountModel amount, int count, PricingMode pricingMode, EmbeddedServiceModel service, System.DateTime serviceDate) { Amount = amount; Count = count; PricingMode = pricingMode; Service = service; ServiceDate = serviceDate; CustomInit(); }