public override int GetHashCode() { int hash = 1; if (Description.Length != 0) { hash ^= Description.GetHashCode(); } if (preTaxFeeSubtotal_ != null) { hash ^= PreTaxFeeSubtotal.GetHashCode(); } hash ^= taxesFees_.GetHashCode(); if (postedTime_ != null) { hash ^= PostedTime.GetHashCode(); } hash ^= taxes_.GetHashCode(); hash ^= fees_.GetHashCode(); if (parentLine_ != null) { hash ^= ParentLine.GetHashCode(); } hash ^= folioSwaps_.GetHashCode(); return(hash); }
public void MergeFrom(PostedChargeCredit other) { if (other == null) { return; } if (other.Description.Length != 0) { Description = other.Description; } if (other.preTaxFeeSubtotal_ != null) { if (preTaxFeeSubtotal_ == null) { preTaxFeeSubtotal_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } PreTaxFeeSubtotal.MergeFrom(other.PreTaxFeeSubtotal); } taxesFees_.Add(other.taxesFees_); if (other.postedTime_ != null) { if (postedTime_ == null) { postedTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } PostedTime.MergeFrom(other.PostedTime); } taxes_.Add(other.taxes_); fees_.Add(other.fees_); if (other.parentLine_ != null) { if (parentLine_ == null) { parentLine_ = new global::HOLMS.Types.Money.Accounting.AccountingTransactionLineIndicator(); } ParentLine.MergeFrom(other.ParentLine); } folioSwaps_.Add(other.folioSwaps_); }