public override int GetHashCode()
        {
            int hash = 1;

            if (groupBookingIndicator_ != null)
            {
                hash ^= GroupBookingIndicator.GetHashCode();
            }
            if (paymentId_ != null)
            {
                hash ^= PaymentId.GetHashCode();
            }
            if (PaymentDate.Length != 0)
            {
                hash ^= PaymentDate.GetHashCode();
            }
            if (PaymentReference.Length != 0)
            {
                hash ^= PaymentReference.GetHashCode();
            }
            if (PaymentType.Length != 0)
            {
                hash ^= PaymentType.GetHashCode();
            }
            if (creditAmount_ != null)
            {
                hash ^= CreditAmount.GetHashCode();
            }
            return(hash);
        }
Exemple #2
0
        public GroupBookingBuilder(GroupBookingIndicator id, GroupBookingStatus status,
                                   bool taxExempt, string taxId, bool groupPaysLodging, bool groupPaysIncidentals,
                                   string additionalNotes, string customerBookingId, InclusiveOpsdateRange bookingDates,
                                   RateScheduleIndicator rs, GroupIndicator g, Guid?groupBookingMethodId,
                                   Guid?reservationSourceId, Guid?travelAgentId, Guid?cancellationPolicy,
                                   string groupName)
        {
            _gbi                  = id;
            _gbs                  = status;
            _taxExempt            = taxExempt;
            _taxId                = taxId;
            _groupPaysLodging     = groupPaysLodging;
            _groupPaysIncidentals = groupPaysIncidentals;
            _additionalNotes      = additionalNotes;
            _customerBookingId    = customerBookingId;
            _rateSchedule         = rs;
            _group                = g;

            // Nullables
            _bookingDates         = bookingDates;
            _groupBookingMethodId = groupBookingMethodId;
            _reservationSourceId  = reservationSourceId;
            _travelAgent          = travelAgentId;
            _cancellationPolicy   = cancellationPolicy;
            _groupName            = groupName;
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (groupBookingIndicator_ != null)
            {
                hash ^= GroupBookingIndicator.GetHashCode();
            }
            if (ShowCancelled != false)
            {
                hash ^= ShowCancelled.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (groupBookingIndicator_ != null)
            {
                hash ^= GroupBookingIndicator.GetHashCode();
            }
            if (dateRange_ != null)
            {
                hash ^= DateRange.GetHashCode();
            }
            return(hash);
        }
 public void MergeFrom(GroupBookingAssociatedFoliosRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.groupBookingIndicator_ != null)
     {
         if (groupBookingIndicator_ == null)
         {
             groupBookingIndicator_ = new global::HOLMS.Types.Booking.Indicators.GroupBookingIndicator();
         }
         GroupBookingIndicator.MergeFrom(other.GroupBookingIndicator);
     }
     if (other.ShowCancelled != false)
     {
         ShowCancelled = other.ShowCancelled;
     }
 }
 public void MergeFrom(FolioPaymentReceiptRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.groupBookingIndicator_ != null)
     {
         if (groupBookingIndicator_ == null)
         {
             groupBookingIndicator_ = new global::HOLMS.Types.Booking.Indicators.GroupBookingIndicator();
         }
         GroupBookingIndicator.MergeFrom(other.GroupBookingIndicator);
     }
     if (other.paymentId_ != null)
     {
         if (paymentId_ == null)
         {
             paymentId_ = new global::HOLMS.Types.Primitive.Uuid();
         }
         PaymentId.MergeFrom(other.PaymentId);
     }
     if (other.PaymentDate.Length != 0)
     {
         PaymentDate = other.PaymentDate;
     }
     if (other.PaymentReference.Length != 0)
     {
         PaymentReference = other.PaymentReference;
     }
     if (other.PaymentType.Length != 0)
     {
         PaymentType = other.PaymentType;
     }
     if (other.creditAmount_ != null)
     {
         if (creditAmount_ == null)
         {
             creditAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         CreditAmount.MergeFrom(other.CreditAmount);
     }
 }
 public void MergeFrom(BookingStatementRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.groupBookingIndicator_ != null)
     {
         if (groupBookingIndicator_ == null)
         {
             groupBookingIndicator_ = new global::HOLMS.Types.Booking.Indicators.GroupBookingIndicator();
         }
         GroupBookingIndicator.MergeFrom(other.GroupBookingIndicator);
     }
     if (other.dateRange_ != null)
     {
         if (dateRange_ == null)
         {
             dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRange.MergeFrom(other.DateRange);
     }
 }
Exemple #8
0
 public FolioIndicator(GroupBookingIndicator gb)
 {
     GroupBooking = gb;
 }
 public GroupBookingTag(GroupBookingIndicator gbi)
 {
     Booking = gbi;
 }
 public GroupBookingTag(string[] tokens)
 {
     Booking = new GroupBookingIndicator(Guid.Parse(tokens[1]));
 }