Exemplo n.º 1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (entityId_ == null)
                    {
                        entityId_ = new global::HOLMS.Types.Folio.TaxFeeIndicator();
                    }
                    input.ReadMessage(entityId_);
                    break;
                }

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

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

                case 32: {
                    category_ = (global::HOLMS.Types.Folio.TaxFeeCategory)input.ReadEnum();
                    break;
                }

                case 42: {
                    if (liabilityAccountId_ == null)
                    {
                        liabilityAccountId_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
                    }
                    input.ReadMessage(liabilityAccountId_);
                    break;
                }
                }
            }
        }
Exemplo n.º 2
0
 public void MergeFrom(CancellationPolicy other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Booking.Indicators.CancellationPolicyIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.NoPenaltyDays != 0)
     {
         NoPenaltyDays = other.NoPenaltyDays;
     }
     if (other.FeeCategory != 0)
     {
         FeeCategory = other.FeeCategory;
     }
     if (other.cancellationFeeAmount_ != null)
     {
         if (cancellationFeeAmount_ == null)
         {
             cancellationFeeAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         CancellationFeeAmount.MergeFrom(other.CancellationFeeAmount);
     }
     if (other.cancellationFeeRate_ != null)
     {
         if (cancellationFeeRate_ == null)
         {
             cancellationFeeRate_ = new global::HOLMS.Types.Primitive.FixedPointRatio();
         }
         CancellationFeeRate.MergeFrom(other.CancellationFeeRate);
     }
     if (other.CancellationPolicyText.Length != 0)
     {
         CancellationPolicyText = other.CancellationPolicyText;
     }
 }
Exemplo n.º 3
0
 public void MergeFrom(TaxFee other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Folio.TaxFeeIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.taxRate_ != null)
     {
         if (taxRate_ == null)
         {
             taxRate_ = new global::HOLMS.Types.Primitive.FixedPointRatio();
         }
         TaxRate.MergeFrom(other.TaxRate);
     }
     if (other.Category != 0)
     {
         Category = other.Category;
     }
     if (other.liabilityAccountId_ != null)
     {
         if (liabilityAccountId_ == null)
         {
             liabilityAccountId_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         LiabilityAccountId.MergeFrom(other.LiabilityAccountId);
     }
 }
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 (entityId_ == null)
                    {
                        entityId_ = new global::HOLMS.Types.Booking.Indicators.CancellationPolicyIndicator();
                    }
                    input.ReadMessage(entityId_);
                    break;
                }

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

                case 24: {
                    NoPenaltyDays = input.ReadInt32();
                    break;
                }

                case 32: {
                    feeCategory_ = (global::HOLMS.Types.Booking.CancellationFeeCategory)input.ReadEnum();
                    break;
                }

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

                case 50: {
                    if (cancellationFeeRate_ == null)
                    {
                        cancellationFeeRate_ = new global::HOLMS.Types.Primitive.FixedPointRatio();
                    }
                    input.ReadMessage(cancellationFeeRate_);
                    break;
                }

                case 58: {
                    CancellationPolicyText = input.ReadString();
                    break;
                }
                }
            }
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

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

                case 24: {
                    commissionType_ = (global::HOLMS.Types.Booking.Channels.CommissionType)input.ReadEnum();
                    break;
                }

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

                case 42: {
                    if (commissionPercentage_ == null)
                    {
                        commissionPercentage_ = new global::HOLMS.Types.Primitive.FixedPointRatio();
                    }
                    input.ReadMessage(commissionPercentage_);
                    break;
                }

                case 50: {
                    GivenName = input.ReadString();
                    break;
                }

                case 58: {
                    FamilyName = input.ReadString();
                    break;
                }

                case 66: {
                    BusinessAddress1 = input.ReadString();
                    break;
                }

                case 74: {
                    BusinessAddress2 = input.ReadString();
                    break;
                }

                case 82: {
                    BusinessCity = input.ReadString();
                    break;
                }

                case 90: {
                    BusinessState = input.ReadString();
                    break;
                }

                case 98: {
                    BusinessZip = input.ReadString();
                    break;
                }

                case 106: {
                    BusinessNation = input.ReadString();
                    break;
                }

                case 114: {
                    BusinessPhoneNumber = input.ReadString();
                    break;
                }

                case 122: {
                    BusinessFaxNumber = input.ReadString();
                    break;
                }

                case 130: {
                    BusinessEmailAddress = input.ReadString();
                    break;
                }
                }
            }
        }
 public void MergeFrom(TravelAgent other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Booking.Indicators.TravelAgentIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.IataId.Length != 0)
     {
         IataId = other.IataId;
     }
     if (other.CommissionType != 0)
     {
         CommissionType = other.CommissionType;
     }
     if (other.commissionAmount_ != null)
     {
         if (commissionAmount_ == null)
         {
             commissionAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         CommissionAmount.MergeFrom(other.CommissionAmount);
     }
     if (other.commissionPercentage_ != null)
     {
         if (commissionPercentage_ == null)
         {
             commissionPercentage_ = new global::HOLMS.Types.Primitive.FixedPointRatio();
         }
         CommissionPercentage.MergeFrom(other.CommissionPercentage);
     }
     if (other.GivenName.Length != 0)
     {
         GivenName = other.GivenName;
     }
     if (other.FamilyName.Length != 0)
     {
         FamilyName = other.FamilyName;
     }
     if (other.BusinessAddress1.Length != 0)
     {
         BusinessAddress1 = other.BusinessAddress1;
     }
     if (other.BusinessAddress2.Length != 0)
     {
         BusinessAddress2 = other.BusinessAddress2;
     }
     if (other.BusinessCity.Length != 0)
     {
         BusinessCity = other.BusinessCity;
     }
     if (other.BusinessState.Length != 0)
     {
         BusinessState = other.BusinessState;
     }
     if (other.BusinessZip.Length != 0)
     {
         BusinessZip = other.BusinessZip;
     }
     if (other.BusinessNation.Length != 0)
     {
         BusinessNation = other.BusinessNation;
     }
     if (other.BusinessPhoneNumber.Length != 0)
     {
         BusinessPhoneNumber = other.BusinessPhoneNumber;
     }
     if (other.BusinessFaxNumber.Length != 0)
     {
         BusinessFaxNumber = other.BusinessFaxNumber;
     }
     if (other.BusinessEmailAddress.Length != 0)
     {
         BusinessEmailAddress = other.BusinessEmailAddress;
     }
 }