Example #1
0
 public void MergeFrom(FolioState other)
 {
     if (other == null)
     {
         return;
     }
     chargeCredits_.Add(other.chargeCredits_);
     cardSales_.Add(other.cardSales_);
     payments_.Add(other.payments_);
     refunds_.Add(other.refunds_);
     if (other.grossPayments_ != null)
     {
         if (grossPayments_ == null)
         {
             grossPayments_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         GrossPayments.MergeFrom(other.GrossPayments);
     }
     if (other.grossRefunds_ != null)
     {
         if (grossRefunds_ == null)
         {
             grossRefunds_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         GrossRefunds.MergeFrom(other.GrossRefunds);
     }
     if (other.availablePaymentAuthorizationBalance_ != null)
     {
         if (availablePaymentAuthorizationBalance_ == null)
         {
             availablePaymentAuthorizationBalance_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         AvailablePaymentAuthorizationBalance.MergeFrom(other.AvailablePaymentAuthorizationBalance);
     }
     if (other.availableGuaranteeAuthorizationBalance_ != null)
     {
         if (availableGuaranteeAuthorizationBalance_ == null)
         {
             availableGuaranteeAuthorizationBalance_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         AvailableGuaranteeAuthorizationBalance.MergeFrom(other.AvailableGuaranteeAuthorizationBalance);
     }
     if (other.masterFolio_ != null)
     {
         if (masterFolio_ == null)
         {
             masterFolio_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         MasterFolio.MergeFrom(other.MasterFolio);
     }
     clientFolios_.Add(other.clientFolios_);
     if (other.MasterAccruesLodging != false)
     {
         MasterAccruesLodging = other.MasterAccruesLodging;
     }
     if (other.MasterAccruesIncidentals != false)
     {
         MasterAccruesIncidentals = other.MasterAccruesIncidentals;
     }
 }
 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);
     }
 }