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 override int GetHashCode()
        {
            int hash = 1;

            if (reservationId_ != null)
            {
                hash ^= ReservationId.GetHashCode();
            }
            if (MasterFolioStatus != 0)
            {
                hash ^= MasterFolioStatus.GetHashCode();
            }
            if (masterFolio_ != null)
            {
                hash ^= MasterFolio.GetHashCode();
            }
            hash ^= clientFolios_.GetHashCode();
            if (GuaranteeStatus != 0)
            {
                hash ^= GuaranteeStatus.GetHashCode();
            }
            if (guaranteeDueOn_ != null)
            {
                hash ^= GuaranteeDueOn.GetHashCode();
            }
            if (hostProperty_ != null)
            {
                hash ^= HostProperty.GetHashCode();
            }
            if (MasterFolioState != 0)
            {
                hash ^= MasterFolioState.GetHashCode();
            }
            hash ^= clientFolioReservations_.GetHashCode();
            if (masterDateRange_ != null)
            {
                hash ^= MasterDateRange.GetHashCode();
            }
            return(hash);
        }
Example #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            hash ^= chargeCredits_.GetHashCode();
            hash ^= cardSales_.GetHashCode();
            hash ^= payments_.GetHashCode();
            hash ^= refunds_.GetHashCode();
            if (grossPayments_ != null)
            {
                hash ^= GrossPayments.GetHashCode();
            }
            if (grossRefunds_ != null)
            {
                hash ^= GrossRefunds.GetHashCode();
            }
            if (availablePaymentAuthorizationBalance_ != null)
            {
                hash ^= AvailablePaymentAuthorizationBalance.GetHashCode();
            }
            if (availableGuaranteeAuthorizationBalance_ != null)
            {
                hash ^= AvailableGuaranteeAuthorizationBalance.GetHashCode();
            }
            if (masterFolio_ != null)
            {
                hash ^= MasterFolio.GetHashCode();
            }
            hash ^= clientFolios_.GetHashCode();
            if (MasterAccruesLodging != false)
            {
                hash ^= MasterAccruesLodging.GetHashCode();
            }
            if (MasterAccruesIncidentals != false)
            {
                hash ^= MasterAccruesIncidentals.GetHashCode();
            }
            return(hash);
        }
 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);
     }
 }