Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            hash ^= effectiveCharges_.GetHashCode();
            hash ^= cardRefunds_.GetHashCode();
            hash ^= cardSales_.GetHashCode();
            hash ^= checkCashPayments_.GetHashCode();
            hash ^= currentTaxAssessments_.GetHashCode();
            hash ^= anticipatedEndingTaxAssessment_.GetHashCode();
            hash ^= nativeCharges_.GetHashCode();
            hash ^= exportedToOtherFolioCharges_.GetHashCode();
            hash ^= importedFromOtherFolioCharges_.GetHashCode();
            if (currentCharges_ != null)
            {
                hash ^= CurrentCharges.GetHashCode();
            }
            if (anticipatedCharges_ != null)
            {
                hash ^= AnticipatedCharges.GetHashCode();
            }
            if (postedPayments_ != null)
            {
                hash ^= PostedPayments.GetHashCode();
            }
            if (postedRefunds_ != null)
            {
                hash ^= PostedRefunds.GetHashCode();
            }
            if (unusedPaymentAuthorizations_ != null)
            {
                hash ^= UnusedPaymentAuthorizations.GetHashCode();
            }
            if (currentDueFromGroup_ != null)
            {
                hash ^= CurrentDueFromGroup.GetHashCode();
            }
            if (anticipatedSettlementDueFromGroup_ != null)
            {
                hash ^= AnticipatedSettlementDueFromGroup.GetHashCode();
            }
            hash ^= clientFolios_.GetHashCode();
            hash ^= reservationTaxAssess_.GetHashCode();
            if (maxRefund_ != null)
            {
                hash ^= MaxRefund.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
 public void MergeFrom(GroupBookingFolioState other)
 {
     if (other == null)
     {
         return;
     }
     effectiveCharges_.Add(other.effectiveCharges_);
     cardRefunds_.Add(other.cardRefunds_);
     cardSales_.Add(other.cardSales_);
     checkCashPayments_.Add(other.checkCashPayments_);
     currentTaxAssessments_.Add(other.currentTaxAssessments_);
     anticipatedEndingTaxAssessment_.Add(other.anticipatedEndingTaxAssessment_);
     nativeCharges_.Add(other.nativeCharges_);
     exportedToOtherFolioCharges_.Add(other.exportedToOtherFolioCharges_);
     importedFromOtherFolioCharges_.Add(other.importedFromOtherFolioCharges_);
     if (other.currentCharges_ != null)
     {
         if (currentCharges_ == null)
         {
             currentCharges_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         CurrentCharges.MergeFrom(other.CurrentCharges);
     }
     if (other.anticipatedCharges_ != null)
     {
         if (anticipatedCharges_ == null)
         {
             anticipatedCharges_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         AnticipatedCharges.MergeFrom(other.AnticipatedCharges);
     }
     if (other.postedPayments_ != null)
     {
         if (postedPayments_ == null)
         {
             postedPayments_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         PostedPayments.MergeFrom(other.PostedPayments);
     }
     if (other.postedRefunds_ != null)
     {
         if (postedRefunds_ == null)
         {
             postedRefunds_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         PostedRefunds.MergeFrom(other.PostedRefunds);
     }
     if (other.unusedPaymentAuthorizations_ != null)
     {
         if (unusedPaymentAuthorizations_ == null)
         {
             unusedPaymentAuthorizations_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         UnusedPaymentAuthorizations.MergeFrom(other.UnusedPaymentAuthorizations);
     }
     if (other.currentDueFromGroup_ != null)
     {
         if (currentDueFromGroup_ == null)
         {
             currentDueFromGroup_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         CurrentDueFromGroup.MergeFrom(other.CurrentDueFromGroup);
     }
     if (other.anticipatedSettlementDueFromGroup_ != null)
     {
         if (anticipatedSettlementDueFromGroup_ == null)
         {
             anticipatedSettlementDueFromGroup_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         AnticipatedSettlementDueFromGroup.MergeFrom(other.AnticipatedSettlementDueFromGroup);
     }
     clientFolios_.Add(other.clientFolios_);
     reservationTaxAssess_.Add(other.reservationTaxAssess_);
     if (other.maxRefund_ != null)
     {
         if (maxRefund_ == null)
         {
             maxRefund_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         MaxRefund.MergeFrom(other.MaxRefund);
     }
 }