Ejemplo n.º 1
0
 public void MergeFrom(AccountingTransactionWithGuest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.postedTime_ != null)
     {
         if (postedTime_ == null)
         {
             postedTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         PostedTime.MergeFrom(other.PostedTime);
     }
     if (other.Narration.Length != 0)
     {
         Narration = other.Narration;
     }
     lines_.Add(other.lines_);
     if (other.assignedGuest_ != null)
     {
         if (assignedGuest_ == null)
         {
             assignedGuest_ = new global::HOLMS.Types.CRM.Guests.Guest();
         }
         AssignedGuest.MergeFrom(other.AssignedGuest);
     }
     if (other.EnteredByUserId.Length != 0)
     {
         EnteredByUserId = other.EnteredByUserId;
     }
     if (other.IsManualEntry != false)
     {
         IsManualEntry = other.IsManualEntry;
     }
     if (other.id_ != null)
     {
         if (id_ == null)
         {
             id_ = new global::HOLMS.Types.Primitive.Uuid();
         }
         Id.MergeFrom(other.Id);
     }
 }
Ejemplo n.º 2
0
 public void MergeFrom(AccountingTransaction other)
 {
     if (other == null)
     {
         return;
     }
     if (other.postedTime_ != null)
     {
         if (postedTime_ == null)
         {
             postedTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         PostedTime.MergeFrom(other.PostedTime);
     }
     if (other.Narration.Length != 0)
     {
         Narration = other.Narration;
     }
     lines_.Add(other.lines_);
     if (other.id_ != null)
     {
         if (id_ == null)
         {
             id_ = new global::HOLMS.Types.Primitive.Uuid();
         }
         Id.MergeFrom(other.Id);
     }
     if (other.WasManuallyEntered != false)
     {
         WasManuallyEntered = other.WasManuallyEntered;
     }
     if (other.enteredBy_ != null)
     {
         if (enteredBy_ == null)
         {
             enteredBy_ = new global::HOLMS.Types.IAM.StaffMemberIndicator();
         }
         EnteredBy.MergeFrom(other.EnteredBy);
     }
 }
Ejemplo n.º 3
0
 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_);
 }