public override int GetHashCode() { int hash = 1; if (Description.Length != 0) { hash ^= Description.GetHashCode(); } if (ChargeCreditType != 0) { hash ^= ChargeCreditType.GetHashCode(); } if (untaxedAmount_ != null) { hash ^= UntaxedAmount.GetHashCode(); } if (TaxExempt != false) { hash ^= TaxExempt.GetHashCode(); } if (incidentalItem_ != null) { hash ^= IncidentalItem.GetHashCode(); } if (chargeOpsdate_ != null) { hash ^= ChargeOpsdate.GetHashCode(); } return(hash); }
public void MergeFrom(RequestedChargeCreditPosting other) { if (other == null) { return; } if (other.Description.Length != 0) { Description = other.Description; } if (other.ChargeCreditType != 0) { ChargeCreditType = other.ChargeCreditType; } if (other.untaxedAmount_ != null) { if (untaxedAmount_ == null) { untaxedAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } UntaxedAmount.MergeFrom(other.UntaxedAmount); } if (other.TaxExempt != false) { TaxExempt = other.TaxExempt; } if (other.incidentalItem_ != null) { if (incidentalItem_ == null) { incidentalItem_ = new global::HOLMS.Types.Supply.IncidentalItems.IncidentalItemIndicator(); } IncidentalItem.MergeFrom(other.IncidentalItem); } if (other.chargeOpsdate_ != null) { if (chargeOpsdate_ == null) { chargeOpsdate_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } ChargeOpsdate.MergeFrom(other.ChargeOpsdate); } }