public void MergeFrom(CardCaptureReportingSvcGetOpenClosedTransactionsRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.cardMerchant_ != null)
     {
         if (cardMerchant_ == null)
         {
             cardMerchant_ = new global::HOLMS.Types.Money.Cards.CardMerchantIndicator();
         }
         CardMerchant.MergeFrom(other.CardMerchant);
     }
     if (other.CardNumber.Length != 0)
     {
         CardNumber = other.CardNumber;
     }
     if (other.searchRange_ != null)
     {
         if (searchRange_ == null)
         {
             searchRange_ = new global::HOLMS.Types.Primitive.PbInterval();
         }
         SearchRange.MergeFrom(other.SearchRange);
     }
 }
 public void MergeFrom(CardCaptureReportSvcGetSettledTransactionsRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.cardMerchant_ != null)
     {
         if (cardMerchant_ == null)
         {
             cardMerchant_ = new global::HOLMS.Types.Money.Cards.CardMerchantIndicator();
         }
         CardMerchant.MergeFrom(other.CardMerchant);
     }
     if (other.dateRange_ != null)
     {
         if (dateRange_ == null)
         {
             dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveCalendarDateRange();
         }
         DateRange.MergeFrom(other.DateRange);
     }
 }
Exemplo n.º 3
0
 public void MergeFrom(Property other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.TenancyConfig.Indicators.PropertyIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.checkinTimeOfDay_ != null)
     {
         if (checkinTimeOfDay_ == null)
         {
             checkinTimeOfDay_ = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         CheckinTimeOfDay.MergeFrom(other.CheckinTimeOfDay);
     }
     if (other.checkOutTimeOfDay_ != null)
     {
         if (checkOutTimeOfDay_ == null)
         {
             checkOutTimeOfDay_ = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         CheckOutTimeOfDay.MergeFrom(other.CheckOutTimeOfDay);
     }
     if (other.rolloverTimeOfDay_ != null)
     {
         if (rolloverTimeOfDay_ == null)
         {
             rolloverTimeOfDay_ = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         RolloverTimeOfDay.MergeFrom(other.RolloverTimeOfDay);
     }
     if (other.AllowedEarlyCheckinHours != 0)
     {
         AllowedEarlyCheckinHours = other.AllowedEarlyCheckinHours;
     }
     if (other.IifDocnumPrefix.Length != 0)
     {
         IifDocnumPrefix = other.IifDocnumPrefix;
     }
     if (other.IifCustomerName.Length != 0)
     {
         IifCustomerName = other.IifCustomerName;
     }
     if (other.checkinDeposit_ != null)
     {
         if (checkinDeposit_ == null)
         {
             checkinDeposit_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         CheckinDeposit.MergeFrom(other.CheckinDeposit);
     }
     if (other.lastRevenueAccrualStart_ != null)
     {
         if (lastRevenueAccrualStart_ == null)
         {
             lastRevenueAccrualStart_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         LastRevenueAccrualStart.MergeFrom(other.LastRevenueAccrualStart);
     }
     if (other.lastDateHkRolloverRan_ != null)
     {
         if (lastDateHkRolloverRan_ == null)
         {
             lastDateHkRolloverRan_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         LastDateHkRolloverRan.MergeFrom(other.LastDateHkRolloverRan);
     }
     if (other.Address1.Length != 0)
     {
         Address1 = other.Address1;
     }
     if (other.Address2.Length != 0)
     {
         Address2 = other.Address2;
     }
     if (other.City.Length != 0)
     {
         City = other.City;
     }
     if (other.State.Length != 0)
     {
         State = other.State;
     }
     if (other.Zip.Length != 0)
     {
         Zip = other.Zip;
     }
     if (other.PhoneNumber.Length != 0)
     {
         PhoneNumber = other.PhoneNumber;
     }
     if (other.cardMerchant_ != null)
     {
         if (cardMerchant_ == null)
         {
             cardMerchant_ = new global::HOLMS.Types.Money.Cards.CardMerchantIndicator();
         }
         CardMerchant.MergeFrom(other.CardMerchant);
     }
     if (other.cancellationPolicy_ != null)
     {
         if (cancellationPolicy_ == null)
         {
             cancellationPolicy_ = new global::HOLMS.Types.Booking.Indicators.CancellationPolicyIndicator();
         }
         CancellationPolicy.MergeFrom(other.CancellationPolicy);
     }
     if (other.maximumAuthorizationAmount_ != null)
     {
         if (maximumAuthorizationAmount_ == null)
         {
             maximumAuthorizationAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         MaximumAuthorizationAmount.MergeFrom(other.MaximumAuthorizationAmount);
     }
     if (other.DefaultStayLength != 0)
     {
         DefaultStayLength = other.DefaultStayLength;
     }
     if (other.Website.Length != 0)
     {
         Website = other.Website;
     }
     if (other.ReservationEmail.Length != 0)
     {
         ReservationEmail = other.ReservationEmail;
     }
     if (other.FaxNumber.Length != 0)
     {
         FaxNumber = other.FaxNumber;
     }
     if (other.BookingPrefix.Length != 0)
     {
         BookingPrefix = other.BookingPrefix;
     }
     if (other.VoidAuthorizationsAfterDays != 0)
     {
         VoidAuthorizationsAfterDays = other.VoidAuthorizationsAfterDays;
     }
     if (other.NoShowDelayHours != 0)
     {
         NoShowDelayHours = other.NoShowDelayHours;
     }
 }