public void MergeFrom(ReservationCheckOutNotification other)
 {
     if (other == null)
     {
         return;
     }
     if (other.JWToken.Length != 0)
     {
         JWToken = other.JWToken;
     }
     if (other.reservation_ != null)
     {
         if (reservation_ == null)
         {
             reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         Reservation.MergeFrom(other.Reservation);
     }
     if (other.guestId_ != null)
     {
         if (guestId_ == null)
         {
             guestId_ = new global::HOLMS.Types.CRM.Guests.GuestIndicator();
         }
         GuestId.MergeFrom(other.GuestId);
     }
     if (other.ReservationBookingNumber.Length != 0)
     {
         ReservationBookingNumber = other.ReservationBookingNumber;
     }
 }
 public void MergeFrom(ReservationCheckInNotification other)
 {
     if (other == null)
     {
         return;
     }
     if (other.JWToken.Length != 0)
     {
         JWToken = other.JWToken;
     }
     if (other.reservation_ != null)
     {
         if (reservation_ == null)
         {
             reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         Reservation.MergeFrom(other.Reservation);
     }
     if (other.checkInDate_ != null)
     {
         if (checkInDate_ == null)
         {
             checkInDate_ = new global::HOLMS.Types.Primitive.PbLocalDate();
         }
         CheckInDate.MergeFrom(other.CheckInDate);
     }
     if (other.roomId_ != null)
     {
         if (roomId_ == null)
         {
             roomId_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator();
         }
         RoomId.MergeFrom(other.RoomId);
     }
     if (other.guestId_ != null)
     {
         if (guestId_ == null)
         {
             guestId_ = new global::HOLMS.Types.CRM.Guests.GuestIndicator();
         }
         GuestId.MergeFrom(other.GuestId);
     }
     if (other.averageRate_ != null)
     {
         if (averageRate_ == null)
         {
             averageRate_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         AverageRate.MergeFrom(other.AverageRate);
     }
     if (other.ReservationBookingNumber.Length != 0)
     {
         ReservationBookingNumber = other.ReservationBookingNumber;
     }
     if (other.KeepGuaranteeRequested != false)
     {
         KeepGuaranteeRequested = other.KeepGuaranteeRequested;
     }
 }
示例#3
0
 public void MergeFrom(FolioChargePostedNotification other)
 {
     if (other == null)
     {
         return;
     }
     if (other.JWToken.Length != 0)
     {
         JWToken = other.JWToken;
     }
     if (other.opsdate_ != null)
     {
         if (opsdate_ == null)
         {
             opsdate_ = new global::HOLMS.Types.Primitive.PbLocalDate();
         }
         Opsdate.MergeFrom(other.Opsdate);
     }
     if (other.pretaxLodgingCharge_ != null)
     {
         if (pretaxLodgingCharge_ == null)
         {
             pretaxLodgingCharge_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         PretaxLodgingCharge.MergeFrom(other.PretaxLodgingCharge);
     }
     if (other.roomTypeId_ != null)
     {
         if (roomTypeId_ == null)
         {
             roomTypeId_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
         }
         RoomTypeId.MergeFrom(other.RoomTypeId);
     }
     if (other.guestId_ != null)
     {
         if (guestId_ == null)
         {
             guestId_ = new global::HOLMS.Types.CRM.Guests.GuestIndicator();
         }
         GuestId.MergeFrom(other.GuestId);
     }
     if (other.reservationId_ != null)
     {
         if (reservationId_ == null)
         {
             reservationId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         ReservationId.MergeFrom(other.ReservationId);
     }
 }
 public void MergeFrom(GuestCheckedIn other)
 {
     if (other == null)
     {
         return;
     }
     if (other.checkInDate_ != null)
     {
         if (checkInDate_ == null)
         {
             checkInDate_ = new global::HOLMS.Types.Primitive.PbLocalDate();
         }
         CheckInDate.MergeFrom(other.CheckInDate);
     }
     if (other.averageRate_ != null)
     {
         if (averageRate_ == null)
         {
             averageRate_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         AverageRate.MergeFrom(other.AverageRate);
     }
     if (other.ReservationBookingNumber.Length != 0)
     {
         ReservationBookingNumber = other.ReservationBookingNumber;
     }
     if (other.reservationId_ != null)
     {
         if (reservationId_ == null)
         {
             reservationId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         ReservationId.MergeFrom(other.ReservationId);
     }
     if (other.RoomNumber.Length != 0)
     {
         RoomNumber = other.RoomNumber;
     }
     if (other.guestId_ != null)
     {
         if (guestId_ == null)
         {
             guestId_ = new global::HOLMS.Types.CRM.Guests.GuestIndicator();
         }
         GuestId.MergeFrom(other.GuestId);
     }
     if (other.RoomType.Length != 0)
     {
         RoomType = other.RoomType;
     }
 }
示例#5
0
 public void MergeFrom(ReservationCancellationNotification other)
 {
     if (other == null)
     {
         return;
     }
     if (other.JWToken.Length != 0)
     {
         JWToken = other.JWToken;
     }
     if (other.reservation_ != null)
     {
         if (reservation_ == null)
         {
             reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         Reservation.MergeFrom(other.Reservation);
     }
     if (other.guestId_ != null)
     {
         if (guestId_ == null)
         {
             guestId_ = new global::HOLMS.Types.CRM.Guests.GuestIndicator();
         }
         GuestId.MergeFrom(other.GuestId);
     }
     if (other.penalty_ != null)
     {
         if (penalty_ == null)
         {
             penalty_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         Penalty.MergeFrom(other.Penalty);
     }
     if (other.DaysBeforeReservationStart != 0)
     {
         DaysBeforeReservationStart = other.DaysBeforeReservationStart;
     }
     if (other.RequestingParty.Length != 0)
     {
         RequestingParty = other.RequestingParty;
     }
 }
示例#6
0
 public void MergeFrom(GuestHistorySummary other)
 {
     if (other == null)
     {
         return;
     }
     if (other.guestId_ != null)
     {
         if (guestId_ == null)
         {
             guestId_ = new global::HOLMS.Types.CRM.Guests.GuestIndicator();
         }
         GuestId.MergeFrom(other.GuestId);
     }
     cancellations_.Add(other.cancellations_);
     if (other.lastCheckin_ != null)
     {
         if (lastCheckin_ == null)
         {
             lastCheckin_ = new global::HOLMS.Types.CRM.Guests.GuestCheckedIn();
         }
         LastCheckin.MergeFrom(other.LastCheckin);
     }
     if (other.TotalNightsStayed != 0)
     {
         TotalNightsStayed = other.TotalNightsStayed;
     }
     if (other.totalInvoiced_ != null)
     {
         if (totalInvoiced_ == null)
         {
             totalInvoiced_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         TotalInvoiced.MergeFrom(other.TotalInvoiced);
     }
 }