public void MergeFrom(OTAChannelProvider other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Booking.Channels.OTAChannelProviderIndicator(); } EntityId.MergeFrom(other.EntityId); } if (other.ProviderName.Length != 0) { ProviderName = other.ProviderName; } if (other.ProviderCode.Length != 0) { ProviderCode = other.ProviderCode; } if (other.DisableGuestCorrespondence != false) { DisableGuestCorrespondence = other.DisableGuestCorrespondence; } if (other.DisableCorrespondenceRateTable != false) { DisableCorrespondenceRateTable = other.DisableCorrespondenceRateTable; } if (other.cancellationPolicy_ != null) { if (cancellationPolicy_ == null) { cancellationPolicy_ = new global::HOLMS.Types.Booking.Indicators.CancellationPolicyIndicator(); } CancellationPolicy.MergeFrom(other.CancellationPolicy); } if (other.VirtualCardIdentifier.Length != 0) { VirtualCardIdentifier = other.VirtualCardIdentifier; } requestRoomType_.Add(other.requestRoomType_); }
public void MergeFrom(CancelledReservation other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } EntityId.MergeFrom(other.EntityId); } if (other.BookingId.Length != 0) { BookingId = other.BookingId; } if (other.State != 0) { State = other.State; } if (other.guest_ != null) { if (guest_ == null) { guest_ = new global::HOLMS.Types.CRM.Guests.Guest(); } Guest.MergeFrom(other.Guest); } if (other.dateRange_ != null) { if (dateRange_ == null) { dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange(); } DateRange.MergeFrom(other.DateRange); } if (other.NumberAdults != 0) { NumberAdults = other.NumberAdults; } if (other.NumberChildren != 0) { NumberChildren = other.NumberChildren; } if (other.roomType_ != null) { if (roomType_ == null) { roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType(); } RoomType.MergeFrom(other.RoomType); } additionalGuests_.Add(other.additionalGuests_); if (other.TaxExempt != false) { TaxExempt = other.TaxExempt; } if (other.cancellationPenaltyApplied_ != null) { if (cancellationPenaltyApplied_ == null) { cancellationPenaltyApplied_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } CancellationPenaltyApplied.MergeFrom(other.CancellationPenaltyApplied); } if (other.CancellationReason.Length != 0) { CancellationReason = other.CancellationReason; } if (other.cancellationPolicy_ != null) { if (cancellationPolicy_ == null) { cancellationPolicy_ = new global::HOLMS.Types.Booking.CancellationPolicy(); } CancellationPolicy.MergeFrom(other.CancellationPolicy); } if (other.RequestingParty.Length != 0) { RequestingParty = other.RequestingParty; } if (other.cancellationDate_ != null) { if (cancellationDate_ == null) { cancellationDate_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } CancellationDate.MergeFrom(other.CancellationDate); } if (other.CancellationNumber != 0L) { CancellationNumber = other.CancellationNumber; } activeTags_.Add(other.activeTags_); }
public void MergeFrom(GroupBooking other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Booking.Indicators.GroupBookingIndicator(); } EntityId.MergeFrom(other.EntityId); } if (other.Status != 0) { Status = other.Status; } if (other.TaxExempt != false) { TaxExempt = other.TaxExempt; } if (other.TaxId.Length != 0) { TaxId = other.TaxId; } if (other.GroupPaysLodging != false) { GroupPaysLodging = other.GroupPaysLodging; } if (other.GroupPaysIncidentals != false) { GroupPaysIncidentals = other.GroupPaysIncidentals; } if (other.AdditionalNotes.Length != 0) { AdditionalNotes = other.AdditionalNotes; } if (other.CustomerBookingId.Length != 0) { CustomerBookingId = other.CustomerBookingId; } if (other.dateRange_ != null) { if (dateRange_ == null) { dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange(); } DateRange.MergeFrom(other.DateRange); } if (other.rateSchedule_ != null) { if (rateSchedule_ == null) { rateSchedule_ = new global::HOLMS.Types.Supply.RateScheduleIndicator(); } RateSchedule.MergeFrom(other.RateSchedule); } if (other.group_ != null) { if (group_ == null) { group_ = new global::HOLMS.Types.CRM.Groups.GroupIndicator(); } Group.MergeFrom(other.Group); } if (other.confirmationTemplateId_ != null) { if (confirmationTemplateId_ == null) { confirmationTemplateId_ = new global::HOLMS.Types.Primitive.Uuid(); } ConfirmationTemplateId.MergeFrom(other.ConfirmationTemplateId); } if (other.bookingMethod_ != null) { if (bookingMethod_ == null) { bookingMethod_ = new global::HOLMS.Types.TenancyConfig.Indicators.GroupBookingMethodIndicator(); } BookingMethod.MergeFrom(other.BookingMethod); } if (other.arrivalTemplateId_ != null) { if (arrivalTemplateId_ == null) { arrivalTemplateId_ = new global::HOLMS.Types.Primitive.Uuid(); } ArrivalTemplateId.MergeFrom(other.ArrivalTemplateId); } if (other.reservationSourceId_ != null) { if (reservationSourceId_ == null) { reservationSourceId_ = new global::HOLMS.Types.Primitive.Uuid(); } ReservationSourceId.MergeFrom(other.ReservationSourceId); } if (other.travelAgent_ != null) { if (travelAgent_ == null) { travelAgent_ = new global::HOLMS.Types.Booking.Indicators.TravelAgentIndicator(); } TravelAgent.MergeFrom(other.TravelAgent); } if (other.cancellationPolicy_ != null) { if (cancellationPolicy_ == null) { cancellationPolicy_ = new global::HOLMS.Types.Booking.Indicators.CancellationPolicyIndicator(); } CancellationPolicy.MergeFrom(other.CancellationPolicy); } if (other.GroupName.Length != 0) { GroupName = other.GroupName; } }
public void MergeFrom(ReservationSummary other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } EntityId.MergeFrom(other.EntityId); } if (other.BookingId.Length != 0) { BookingId = other.BookingId; } if (other.State != 0) { State = other.State; } if (other.guest_ != null) { if (guest_ == null) { guest_ = new global::HOLMS.Types.CRM.Guests.Guest(); } Guest.MergeFrom(other.Guest); } if (other.dateRange_ != null) { if (dateRange_ == null) { dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange(); } DateRange.MergeFrom(other.DateRange); } if (other.roomType_ != null) { if (roomType_ == null) { roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType(); } RoomType.MergeFrom(other.RoomType); } if (other.GuaranteeStatus != 0) { GuaranteeStatus = other.GuaranteeStatus; } if (other.tenancy_ != null) { if (tenancy_ == null) { tenancy_ = new global::HOLMS.Types.IAM.TenancyIndicator(); } Tenancy.MergeFrom(other.Tenancy); } if (other.property_ != null) { if (property_ == null) { property_ = new global::HOLMS.Types.TenancyConfig.Indicators.PropertyIndicator(); } Property.MergeFrom(other.Property); } if (other.Channel != 0) { Channel = other.Channel; } if (other.VehiclePlateInformation.Length != 0) { VehiclePlateInformation = other.VehiclePlateInformation; } if (other.CurrentOccupiedRoomNumber.Length != 0) { CurrentOccupiedRoomNumber = other.CurrentOccupiedRoomNumber; } if (other.currentOccupiedRoom_ != null) { if (currentOccupiedRoom_ == null) { currentOccupiedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } CurrentOccupiedRoom.MergeFrom(other.CurrentOccupiedRoom); } if (other.TerminalOccupiedRoomNumber.Length != 0) { TerminalOccupiedRoomNumber = other.TerminalOccupiedRoomNumber; } if (other.terminalOccupiedRoom_ != null) { if (terminalOccupiedRoom_ == null) { terminalOccupiedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } TerminalOccupiedRoom.MergeFrom(other.TerminalOccupiedRoom); } if (other.NumberAdults != 0) { NumberAdults = other.NumberAdults; } if (other.NumberChildren != 0) { NumberChildren = other.NumberChildren; } activeTags_.Add(other.activeTags_); if (other.cancellationPolicy_ != null) { if (cancellationPolicy_ == null) { cancellationPolicy_ = new global::HOLMS.Types.Booking.Indicators.CancellationPolicyIndicator(); } CancellationPolicy.MergeFrom(other.CancellationPolicy); } if (other.hkTimePreference_ != null) { if (hkTimePreference_ == null) { hkTimePreference_ = new global::HOLMS.Types.Operations.Housekeeping.HousekeepingTime(); } HkTimePreference.MergeFrom(other.HkTimePreference); } if (other.createdAt_ != null) { if (createdAt_ == null) { createdAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreatedAt.MergeFrom(other.CreatedAt); } if (other.OutstandingIssuedRoomKeys != 0) { OutstandingIssuedRoomKeys = other.OutstandingIssuedRoomKeys; } if (other.OptaRoomStayIndex != 0) { OptaRoomStayIndex = other.OptaRoomStayIndex; } if (other.ReservationIdFromChannel.Length != 0) { ReservationIdFromChannel = other.ReservationIdFromChannel; } }
public void MergeFrom(CompleteOpenReservation other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } EntityId.MergeFrom(other.EntityId); } if (other.BookingId.Length != 0) { BookingId = other.BookingId; } if (other.State != 0) { State = other.State; } if (other.guest_ != null) { if (guest_ == null) { guest_ = new global::HOLMS.Types.CRM.Guests.Guest(); } Guest.MergeFrom(other.Guest); } if (other.dateRange_ != null) { if (dateRange_ == null) { dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange(); } DateRange.MergeFrom(other.DateRange); } if (other.NumberAdults != 0) { NumberAdults = other.NumberAdults; } if (other.NumberChildren != 0) { NumberChildren = other.NumberChildren; } if (other.roomType_ != null) { if (roomType_ == null) { roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType(); } RoomType.MergeFrom(other.RoomType); } additionalGuests_.Add(other.additionalGuests_); if (other.TaxExempt != false) { TaxExempt = other.TaxExempt; } if (other.hkTimePreference_ != null) { if (hkTimePreference_ == null) { hkTimePreference_ = new global::HOLMS.Types.Operations.Housekeeping.HousekeepingTime(); } HkTimePreference.MergeFrom(other.HkTimePreference); } if (other.VehiclePlateInformation.Length != 0) { VehiclePlateInformation = other.VehiclePlateInformation; } if (other.CurrentOccupiedRoomNumber.Length != 0) { CurrentOccupiedRoomNumber = other.CurrentOccupiedRoomNumber; } if (other.currentOccupiedRoom_ != null) { if (currentOccupiedRoom_ == null) { currentOccupiedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } CurrentOccupiedRoom.MergeFrom(other.CurrentOccupiedRoom); } if (other.TerminalOccupiedRoomNumber.Length != 0) { TerminalOccupiedRoomNumber = other.TerminalOccupiedRoomNumber; } if (other.terminalOccupiedRoom_ != null) { if (terminalOccupiedRoom_ == null) { terminalOccupiedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } TerminalOccupiedRoom.MergeFrom(other.TerminalOccupiedRoom); } if (other.FirstNightAssignedRoom.Length != 0) { FirstNightAssignedRoom = other.FirstNightAssignedRoom; } activeTags_.Add(other.activeTags_); if (other.ChannelManagerId.Length != 0) { ChannelManagerId = other.ChannelManagerId; } if (other.SourceChannelId.Length != 0) { SourceChannelId = other.SourceChannelId; } if (other.cancellationPolicy_ != null) { if (cancellationPolicy_ == null) { cancellationPolicy_ = new global::HOLMS.Types.Booking.Indicators.CancellationPolicyIndicator(); } CancellationPolicy.MergeFrom(other.CancellationPolicy); } if (other.ReservationIdFromChannel.Length != 0) { ReservationIdFromChannel = other.ReservationIdFromChannel; } if (other.RushReservationIdFromChannel.Length != 0) { RushReservationIdFromChannel = other.RushReservationIdFromChannel; } if (other.SourceIndirectChannel.Length != 0) { SourceIndirectChannel = other.SourceIndirectChannel; } if (other.reservationSource_ != null) { if (reservationSource_ == null) { reservationSource_ = new global::HOLMS.Types.TenancyConfig.ReservationSource(); } ReservationSource.MergeFrom(other.ReservationSource); } }
public void MergeFrom(Property other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.TenancyConfig.Indicators.PropertyIndicator(); } EntityId.MergeFrom(other.EntityId); } if (other.Description.Length != 0) { Description = other.Description; } if (other.checkinTimeOfDay_ != null) { if (checkinTimeOfDay_ == null) { checkinTimeOfDay_ = new global::Google.Protobuf.WellKnownTypes.Duration(); } CheckinTimeOfDay.MergeFrom(other.CheckinTimeOfDay); } if (other.checkOutTimeOfDay_ != null) { if (checkOutTimeOfDay_ == null) { checkOutTimeOfDay_ = new global::Google.Protobuf.WellKnownTypes.Duration(); } CheckOutTimeOfDay.MergeFrom(other.CheckOutTimeOfDay); } if (other.rolloverTimeOfDay_ != null) { if (rolloverTimeOfDay_ == null) { rolloverTimeOfDay_ = new global::Google.Protobuf.WellKnownTypes.Duration(); } RolloverTimeOfDay.MergeFrom(other.RolloverTimeOfDay); } if (other.AllowedEarlyCheckinHours != 0) { AllowedEarlyCheckinHours = other.AllowedEarlyCheckinHours; } if (other.IifDocnumPrefix.Length != 0) { IifDocnumPrefix = other.IifDocnumPrefix; } if (other.IifCustomerName.Length != 0) { IifCustomerName = other.IifCustomerName; } if (other.checkinDeposit_ != null) { if (checkinDeposit_ == null) { checkinDeposit_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } CheckinDeposit.MergeFrom(other.CheckinDeposit); } if (other.lastRevenueAccrualStart_ != null) { if (lastRevenueAccrualStart_ == null) { lastRevenueAccrualStart_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } LastRevenueAccrualStart.MergeFrom(other.LastRevenueAccrualStart); } if (other.lastDateHkRolloverRan_ != null) { if (lastDateHkRolloverRan_ == null) { lastDateHkRolloverRan_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } LastDateHkRolloverRan.MergeFrom(other.LastDateHkRolloverRan); } if (other.Address1.Length != 0) { Address1 = other.Address1; } if (other.Address2.Length != 0) { Address2 = other.Address2; } if (other.City.Length != 0) { City = other.City; } if (other.State.Length != 0) { State = other.State; } if (other.Zip.Length != 0) { Zip = other.Zip; } if (other.PhoneNumber.Length != 0) { PhoneNumber = other.PhoneNumber; } if (other.cardMerchant_ != null) { if (cardMerchant_ == null) { cardMerchant_ = new global::HOLMS.Types.Money.Cards.CardMerchantIndicator(); } CardMerchant.MergeFrom(other.CardMerchant); } if (other.cancellationPolicy_ != null) { if (cancellationPolicy_ == null) { cancellationPolicy_ = new global::HOLMS.Types.Booking.Indicators.CancellationPolicyIndicator(); } CancellationPolicy.MergeFrom(other.CancellationPolicy); } if (other.maximumAuthorizationAmount_ != null) { if (maximumAuthorizationAmount_ == null) { maximumAuthorizationAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } MaximumAuthorizationAmount.MergeFrom(other.MaximumAuthorizationAmount); } if (other.DefaultStayLength != 0) { DefaultStayLength = other.DefaultStayLength; } if (other.Website.Length != 0) { Website = other.Website; } if (other.ReservationEmail.Length != 0) { ReservationEmail = other.ReservationEmail; } if (other.FaxNumber.Length != 0) { FaxNumber = other.FaxNumber; } if (other.BookingPrefix.Length != 0) { BookingPrefix = other.BookingPrefix; } if (other.VoidAuthorizationsAfterDays != 0) { VoidAuthorizationsAfterDays = other.VoidAuthorizationsAfterDays; } if (other.NoShowDelayHours != 0) { NoShowDelayHours = other.NoShowDelayHours; } }