public void MergeFrom(GuestCancelledReservation other)
 {
     if (other == null)
     {
         return;
     }
     if (other.PenaltyApplied != false)
     {
         PenaltyApplied = other.PenaltyApplied;
     }
     if (other.DaysBeforeReservationStart != 0)
     {
         DaysBeforeReservationStart = other.DaysBeforeReservationStart;
     }
     if (other.reservationId_ != null)
     {
         if (reservationId_ == null)
         {
             reservationId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         ReservationId.MergeFrom(other.ReservationId);
     }
     if (other.guestId_ != null)
     {
         if (guestId_ == null)
         {
             guestId_ = new global::HOLMS.Types.CRM.Guests.GuestIndicator();
         }
         GuestId.MergeFrom(other.GuestId);
     }
 }
コード例 #2
0
 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;
     }
 }
コード例 #3
0
 public void MergeFrom(PaymentReservationMapping other)
 {
     if (other == null)
     {
         return;
     }
     if (other.groupBookingId_ != null)
     {
         if (groupBookingId_ == null)
         {
             groupBookingId_ = new global::HOLMS.Types.Booking.Indicators.GroupBookingIndicator();
         }
         GroupBookingId.MergeFrom(other.GroupBookingId);
     }
     if (other.paymentId_ != null)
     {
         if (paymentId_ == null)
         {
             paymentId_ = new global::HOLMS.Types.Primitive.Uuid();
         }
         PaymentId.MergeFrom(other.PaymentId);
     }
     if (other.reservationId_ != null)
     {
         if (reservationId_ == null)
         {
             reservationId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         ReservationId.MergeFrom(other.ReservationId);
     }
     if (other.amount_ != null)
     {
         if (amount_ == null)
         {
             amount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         Amount.MergeFrom(other.Amount);
     }
     if (other.State != 0)
     {
         State = other.State;
     }
 }
コード例 #4
0
 public void MergeFrom(ReservationInvoiceMapping other)
 {
     if (other == null)
     {
         return;
     }
     if (other.invoiceId_ != null)
     {
         if (invoiceId_ == null)
         {
             invoiceId_ = new global::HOLMS.Types.Primitive.Uuid();
         }
         InvoiceId.MergeFrom(other.InvoiceId);
     }
     if (other.reservationId_ != null)
     {
         if (reservationId_ == null)
         {
             reservationId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         ReservationId.MergeFrom(other.ReservationId);
     }
     if (other.amount_ != null)
     {
         if (amount_ == null)
         {
             amount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         Amount.MergeFrom(other.Amount);
     }
     if (other.payment_ != null)
     {
         if (payment_ == null)
         {
             payment_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         Payment.MergeFrom(other.Payment);
     }
     if (other.taxes_ != null)
     {
         if (taxes_ == null)
         {
             taxes_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         Taxes.MergeFrom(other.Taxes);
     }
     if (other.fees_ != null)
     {
         if (fees_ == null)
         {
             fees_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         Fees.MergeFrom(other.Fees);
     }
     if (other.charges_ != null)
     {
         if (charges_ == null)
         {
             charges_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         Charges.MergeFrom(other.Charges);
     }
     if (other.Voided != false)
     {
         Voided = other.Voided;
     }
 }
 public void MergeFrom(ReservationFolioSummary other)
 {
     if (other == null)
     {
         return;
     }
     if (other.reservationId_ != null)
     {
         if (reservationId_ == null)
         {
             reservationId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         ReservationId.MergeFrom(other.ReservationId);
     }
     if (other.MasterFolioStatus != 0)
     {
         MasterFolioStatus = other.MasterFolioStatus;
     }
     if (other.masterFolio_ != null)
     {
         if (masterFolio_ == null)
         {
             masterFolio_ = new global::HOLMS.Types.Folio.FolioIndicator();
         }
         MasterFolio.MergeFrom(other.MasterFolio);
     }
     clientFolios_.Add(other.clientFolios_);
     if (other.GuaranteeStatus != 0)
     {
         GuaranteeStatus = other.GuaranteeStatus;
     }
     if (other.guaranteeDueOn_ != null)
     {
         if (guaranteeDueOn_ == null)
         {
             guaranteeDueOn_ = new global::HOLMS.Types.Primitive.PbLocalDate();
         }
         GuaranteeDueOn.MergeFrom(other.GuaranteeDueOn);
     }
     if (other.hostProperty_ != null)
     {
         if (hostProperty_ == null)
         {
             hostProperty_ = new global::HOLMS.Types.TenancyConfig.Indicators.PropertyIndicator();
         }
         HostProperty.MergeFrom(other.HostProperty);
     }
     if (other.MasterFolioState != 0)
     {
         MasterFolioState = other.MasterFolioState;
     }
     clientFolioReservations_.Add(other.clientFolioReservations_);
     if (other.masterDateRange_ != null)
     {
         if (masterDateRange_ == null)
         {
             masterDateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         MasterDateRange.MergeFrom(other.MasterDateRange);
     }
 }