Exemplo n.º 1
0
 public void MergeFrom(TaxAssessmentSvcHypotheticalReservationFolioAdjustment other)
 {
     if (other == null)
     {
         return;
     }
     if (other.reservation_ != null)
     {
         if (reservation_ == null)
         {
             reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         Reservation.MergeFrom(other.Reservation);
     }
     if (other.amountTendered_ != null)
     {
         if (amountTendered_ == null)
         {
             amountTendered_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         AmountTendered.MergeFrom(other.AmountTendered);
     }
     if (other.Type != 0)
     {
         Type = other.Type;
     }
 }
Exemplo n.º 2
0
 public void MergeFrom(TaxAssessmentSvcHypotheticalGroupBookingFolioAdjustment other)
 {
     if (other == null)
     {
         return;
     }
     if (other.groupBooking_ != null)
     {
         if (groupBooking_ == null)
         {
             groupBooking_ = new global::HOLMS.Types.Booking.Indicators.GroupBookingIndicator();
         }
         GroupBooking.MergeFrom(other.GroupBooking);
     }
     if (other.amountTendered_ != null)
     {
         if (amountTendered_ == null)
         {
             amountTendered_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         AmountTendered.MergeFrom(other.AmountTendered);
     }
     if (other.Type != 0)
     {
         Type = other.Type;
     }
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    Description = input.ReadString();
                    break;
                }

                case 16: {
                    chargeCreditType_ = (global::HOLMS.Types.Folio.ChargeCreditType)input.ReadEnum();
                    break;
                }

                case 26: {
                    if (untaxedAmount_ == null)
                    {
                        untaxedAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
                    }
                    input.ReadMessage(untaxedAmount_);
                    break;
                }

                case 32: {
                    TaxExempt = input.ReadBool();
                    break;
                }

                case 42: {
                    if (incidentalItem_ == null)
                    {
                        incidentalItem_ = new global::HOLMS.Types.Supply.IncidentalItems.IncidentalItemIndicator();
                    }
                    input.ReadMessage(incidentalItem_);
                    break;
                }

                case 50: {
                    if (chargeOpsdate_ == null)
                    {
                        chargeOpsdate_ = new global::HOLMS.Types.Primitive.PbLocalDate();
                    }
                    input.ReadMessage(chargeOpsdate_);
                    break;
                }
                }
            }
        }
Exemplo n.º 4
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (reservation_ == null)
                    {
                        reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
                    }
                    input.ReadMessage(reservation_);
                    break;
                }

                case 18: {
                    if (amountTendered_ == null)
                    {
                        amountTendered_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
                    }
                    input.ReadMessage(amountTendered_);
                    break;
                }

                case 24: {
                    type_ = (global::HOLMS.Types.Folio.ChargeCreditType)input.ReadEnum();
                    break;
                }
                }
            }
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (amount_ == null)
                    {
                        amount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
                    }
                    input.ReadMessage(amount_);
                    break;
                }

                case 18: {
                    Narration = input.ReadString();
                    break;
                }

                case 24: {
                    chargeCreditType_ = (global::HOLMS.Types.Folio.ChargeCreditType)input.ReadEnum();
                    break;
                }

                case 34: {
                    if (effectiveForOpsdate_ == null)
                    {
                        effectiveForOpsdate_ = new global::HOLMS.Types.Primitive.PbLocalDate();
                    }
                    input.ReadMessage(effectiveForOpsdate_);
                    break;
                }

                case 42: {
                    if (effectiveAtClock_ == null)
                    {
                        effectiveAtClock_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(effectiveAtClock_);
                    break;
                }

                case 50: {
                    if (incidentalItem_ == null)
                    {
                        incidentalItem_ = new global::HOLMS.Types.Supply.IncidentalItems.IncidentalItemIndicator();
                    }
                    input.ReadMessage(incidentalItem_);
                    break;
                }

                case 58: {
                    if (incurredBy_ == null)
                    {
                        incurredBy_ = new global::HOLMS.Types.Folio.FolioIndicator();
                    }
                    input.ReadMessage(incurredBy_);
                    break;
                }

                case 64: {
                    issuanceSchedule_ = (global::HOLMS.Types.Folio.FolioAtomicChargeIssuanceSchedule)input.ReadEnum();
                    break;
                }

                case 74: {
                    if (enteredBy_ == null)
                    {
                        enteredBy_ = new global::HOLMS.Types.IAM.StaffMemberIndicator();
                    }
                    input.ReadMessage(enteredBy_);
                    break;
                }

                case 82: {
                    if (id_ == null)
                    {
                        id_ = new global::HOLMS.Types.Primitive.Uuid();
                    }
                    input.ReadMessage(id_);
                    break;
                }

                case 90: {
                    if (taxes_ == null)
                    {
                        taxes_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
                    }
                    input.ReadMessage(taxes_);
                    break;
                }

                case 98: {
                    if (fees_ == null)
                    {
                        fees_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
                    }
                    input.ReadMessage(fees_);
                    break;
                }

                case 106: {
                    currentTaxAssessments_.AddEntriesFrom(input, _repeated_currentTaxAssessments_codec);
                    break;
                }
                }
            }
        }