public void MergeFrom(ReservationInvoiceMapping other) { if (other == null) { return; } if (other.invoiceId_ != null) { if (invoiceId_ == null) { invoiceId_ = new global::HOLMS.Types.Primitive.Uuid(); } InvoiceId.MergeFrom(other.InvoiceId); } if (other.reservationId_ != null) { if (reservationId_ == null) { reservationId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } ReservationId.MergeFrom(other.ReservationId); } if (other.amount_ != null) { if (amount_ == null) { amount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } Amount.MergeFrom(other.Amount); } if (other.payment_ != null) { if (payment_ == null) { payment_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } Payment.MergeFrom(other.Payment); } if (other.taxes_ != null) { if (taxes_ == null) { taxes_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } Taxes.MergeFrom(other.Taxes); } if (other.fees_ != null) { if (fees_ == null) { fees_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } Fees.MergeFrom(other.Fees); } if (other.charges_ != null) { if (charges_ == null) { charges_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } Charges.MergeFrom(other.Charges); } if (other.Voided != false) { Voided = other.Voided; } }
public void MergeFrom(FolioAtomicCharge other) { if (other == null) { return; } if (other.amount_ != null) { if (amount_ == null) { amount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } Amount.MergeFrom(other.Amount); } if (other.Narration.Length != 0) { Narration = other.Narration; } if (other.ChargeCreditType != 0) { ChargeCreditType = other.ChargeCreditType; } if (other.effectiveForOpsdate_ != null) { if (effectiveForOpsdate_ == null) { effectiveForOpsdate_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } EffectiveForOpsdate.MergeFrom(other.EffectiveForOpsdate); } if (other.effectiveAtClock_ != null) { if (effectiveAtClock_ == null) { effectiveAtClock_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } EffectiveAtClock.MergeFrom(other.EffectiveAtClock); } if (other.incidentalItem_ != null) { if (incidentalItem_ == null) { incidentalItem_ = new global::HOLMS.Types.Supply.IncidentalItems.IncidentalItemIndicator(); } IncidentalItem.MergeFrom(other.IncidentalItem); } if (other.incurredBy_ != null) { if (incurredBy_ == null) { incurredBy_ = new global::HOLMS.Types.Folio.FolioIndicator(); } IncurredBy.MergeFrom(other.IncurredBy); } if (other.IssuanceSchedule != 0) { IssuanceSchedule = other.IssuanceSchedule; } if (other.enteredBy_ != null) { if (enteredBy_ == null) { enteredBy_ = new global::HOLMS.Types.IAM.StaffMemberIndicator(); } EnteredBy.MergeFrom(other.EnteredBy); } if (other.id_ != null) { if (id_ == null) { id_ = new global::HOLMS.Types.Primitive.Uuid(); } Id.MergeFrom(other.Id); } if (other.taxes_ != null) { if (taxes_ == null) { taxes_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } Taxes.MergeFrom(other.Taxes); } if (other.fees_ != null) { if (fees_ == null) { fees_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } Fees.MergeFrom(other.Fees); } currentTaxAssessments_.Add(other.currentTaxAssessments_); }