public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (account_ == null)
                    {
                        account_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
                    }
                    input.ReadMessage(account_);
                    break;
                }

                case 18: {
                    transactions_.AddEntriesFrom(input, _repeated_transactions_codec);
                    break;
                }

                case 26: {
                    lines_.AddEntriesFrom(input, _repeated_lines_codec);
                    break;
                }
                }
            }
        }
Exemple #2
0
 public void MergeFrom(Account other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.AccountNumber.Length != 0)
     {
         AccountNumber = other.AccountNumber;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.AccountCategory != 0)
     {
         AccountCategory = other.AccountCategory;
     }
     if (other.QuickbooksIdentifier.Length != 0)
     {
         QuickbooksIdentifier = other.QuickbooksIdentifier;
     }
     if (other.QuickbooksIncidentalIdentifier.Length != 0)
     {
         QuickbooksIncidentalIdentifier = other.QuickbooksIncidentalIdentifier;
     }
 }
 public void MergeFrom(ReservationLedger other)
 {
     if (other == null)
     {
         return;
     }
     if (other.reservation_ != null)
     {
         if (reservation_ == null)
         {
             reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         Reservation.MergeFrom(other.Reservation);
     }
     transactions_.Add(other.transactions_);
     if (other.stayAccount_ != null)
     {
         if (stayAccount_ == null)
         {
             stayAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         StayAccount.MergeFrom(other.StayAccount);
     }
     allGuests_.Add(other.allGuests_);
 }
 public void MergeFrom(AccountingTransactionLine other)
 {
     if (other == null)
     {
         return;
     }
     if (other.debitAmount_ != null)
     {
         if (debitAmount_ == null)
         {
             debitAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         DebitAmount.MergeFrom(other.DebitAmount);
     }
     if (other.creditAmount_ != null)
     {
         if (creditAmount_ == null)
         {
             creditAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         CreditAmount.MergeFrom(other.CreditAmount);
     }
     if (other.Narration.Length != 0)
     {
         Narration = other.Narration;
     }
     if (other.account_ != null)
     {
         if (account_ == null)
         {
             account_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         Account.MergeFrom(other.Account);
     }
     if (other.AccountName.Length != 0)
     {
         AccountName = other.AccountName;
     }
     if (other.AccountType != 0)
     {
         AccountType = other.AccountType;
     }
     if (other.Designation != 0)
     {
         Designation = other.Designation;
     }
     if (other.TransferIndication != 0)
     {
         TransferIndication = other.TransferIndication;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Money.Accounting.AccountingTransactionLineIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
 }
        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.Money.Accounting.AccountIndicator();
                    }
                    input.ReadMessage(entityId_);
                    break;
                }

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

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

                case 32: {
                    accountCategory_ = (global::HOLMS.Types.Money.Accounting.LedgerAccountCategory)input.ReadEnum();
                    break;
                }

                case 40: {
                    IsProgrammaticallyGenerated = input.ReadBool();
                    break;
                }

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

                case 58: {
                    QuickbooksIncidentalIdentifier = input.ReadString();
                    break;
                }
                }
            }
        }
Exemple #6
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;
                }
                }
            }
        }
 public void MergeFrom(IncidentalItem other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Supply.IncidentalItems.IncidentalItemIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.QuanityOwned != 0)
     {
         QuanityOwned = other.QuanityOwned;
     }
     if (other.price_ != null)
     {
         if (price_ == null)
         {
             price_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         Price.MergeFrom(other.Price);
     }
     if (other.IncursTaxes != false)
     {
         IncursTaxes = other.IncursTaxes;
     }
     if (other.IncursFees != false)
     {
         IncursFees = other.IncursFees;
     }
     if (other.ChargeFrequency != 0)
     {
         ChargeFrequency = other.ChargeFrequency;
     }
     if (other.revenueAccount_ != null)
     {
         if (revenueAccount_ == null)
         {
             revenueAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         RevenueAccount.MergeFrom(other.RevenueAccount);
     }
 }
 public void MergeFrom(AccountActivityLedger other)
 {
     if (other == null)
     {
         return;
     }
     if (other.account_ != null)
     {
         if (account_ == null)
         {
             account_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         Account.MergeFrom(other.Account);
     }
     transactions_.Add(other.transactions_);
     lines_.Add(other.lines_);
 }
        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: {
                    transactions_.AddEntriesFrom(input, _repeated_transactions_codec);
                    break;
                }

                case 26: {
                    if (stayAccount_ == null)
                    {
                        stayAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
                    }
                    input.ReadMessage(stayAccount_);
                    break;
                }

                case 34: {
                    allGuests_.AddEntriesFrom(input, _repeated_allGuests_codec);
                    break;
                }
                }
            }
        }
Exemple #10
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);
     }
 }
 public virtual AsyncUnaryCall <global::HOLMS.Types.Money.Accounting.AccountActivityLedger> GetLedgerForAccountAsync(global::HOLMS.Types.Money.Accounting.AccountIndicator request, Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(GetLedgerForAccountAsync(request, new CallOptions(headers, deadline, cancellationToken)));
 }
Exemple #12
0
 public virtual grpc::AsyncUnaryCall <global::HOLMS.Types.Money.Accounting.Account> GetByIdAsync(global::HOLMS.Types.Money.Accounting.AccountIndicator request, grpc::CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_GetById, null, options, request));
 }
Exemple #13
0
 public void MergeFrom(AccountAssignments other)
 {
     if (other == null)
     {
         return;
     }
     if (other.cashAssetAccount_ != null)
     {
         if (cashAssetAccount_ == null)
         {
             cashAssetAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         CashAssetAccount.MergeFrom(other.CashAssetAccount);
     }
     if (other.checkAssetAccount_ != null)
     {
         if (checkAssetAccount_ == null)
         {
             checkAssetAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         CheckAssetAccount.MergeFrom(other.CheckAssetAccount);
     }
     if (other.travelersCheckAssetAccount_ != null)
     {
         if (travelersCheckAssetAccount_ == null)
         {
             travelersCheckAssetAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         TravelersCheckAssetAccount.MergeFrom(other.TravelersCheckAssetAccount);
     }
     if (other.amexReceivableAccount_ != null)
     {
         if (amexReceivableAccount_ == null)
         {
             amexReceivableAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         AmexReceivableAccount.MergeFrom(other.AmexReceivableAccount);
     }
     if (other.discoverReceivableAccount_ != null)
     {
         if (discoverReceivableAccount_ == null)
         {
             discoverReceivableAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         DiscoverReceivableAccount.MergeFrom(other.DiscoverReceivableAccount);
     }
     if (other.visaReceivableAccount_ != null)
     {
         if (visaReceivableAccount_ == null)
         {
             visaReceivableAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         VisaReceivableAccount.MergeFrom(other.VisaReceivableAccount);
     }
     if (other.mastercardReceivableAccount_ != null)
     {
         if (mastercardReceivableAccount_ == null)
         {
             mastercardReceivableAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         MastercardReceivableAccount.MergeFrom(other.MastercardReceivableAccount);
     }
     if (other.dinersClubReceivableAccount_ != null)
     {
         if (dinersClubReceivableAccount_ == null)
         {
             dinersClubReceivableAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         DinersClubReceivableAccount.MergeFrom(other.DinersClubReceivableAccount);
     }
     if (other.groupLodgingRevenueAccount_ != null)
     {
         if (groupLodgingRevenueAccount_ == null)
         {
             groupLodgingRevenueAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         GroupLodgingRevenueAccount.MergeFrom(other.GroupLodgingRevenueAccount);
     }
     if (other.lodgingRevenueAccount_ != null)
     {
         if (lodgingRevenueAccount_ == null)
         {
             lodgingRevenueAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         LodgingRevenueAccount.MergeFrom(other.LodgingRevenueAccount);
     }
     if (other.roomCallRevenueAccount_ != null)
     {
         if (roomCallRevenueAccount_ == null)
         {
             roomCallRevenueAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         RoomCallRevenueAccount.MergeFrom(other.RoomCallRevenueAccount);
     }
     if (other.miscellaneousRevenueAccount_ != null)
     {
         if (miscellaneousRevenueAccount_ == null)
         {
             miscellaneousRevenueAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         MiscellaneousRevenueAccount.MergeFrom(other.MiscellaneousRevenueAccount);
     }
 }
Exemple #14
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (cashAssetAccount_ == null)
                    {
                        cashAssetAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
                    }
                    input.ReadMessage(cashAssetAccount_);
                    break;
                }

                case 18: {
                    if (checkAssetAccount_ == null)
                    {
                        checkAssetAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
                    }
                    input.ReadMessage(checkAssetAccount_);
                    break;
                }

                case 26: {
                    if (travelersCheckAssetAccount_ == null)
                    {
                        travelersCheckAssetAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
                    }
                    input.ReadMessage(travelersCheckAssetAccount_);
                    break;
                }

                case 34: {
                    if (amexReceivableAccount_ == null)
                    {
                        amexReceivableAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
                    }
                    input.ReadMessage(amexReceivableAccount_);
                    break;
                }

                case 42: {
                    if (discoverReceivableAccount_ == null)
                    {
                        discoverReceivableAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
                    }
                    input.ReadMessage(discoverReceivableAccount_);
                    break;
                }

                case 50: {
                    if (visaReceivableAccount_ == null)
                    {
                        visaReceivableAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
                    }
                    input.ReadMessage(visaReceivableAccount_);
                    break;
                }

                case 58: {
                    if (mastercardReceivableAccount_ == null)
                    {
                        mastercardReceivableAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
                    }
                    input.ReadMessage(mastercardReceivableAccount_);
                    break;
                }

                case 66: {
                    if (dinersClubReceivableAccount_ == null)
                    {
                        dinersClubReceivableAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
                    }
                    input.ReadMessage(dinersClubReceivableAccount_);
                    break;
                }

                case 74: {
                    if (groupLodgingRevenueAccount_ == null)
                    {
                        groupLodgingRevenueAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
                    }
                    input.ReadMessage(groupLodgingRevenueAccount_);
                    break;
                }

                case 82: {
                    if (lodgingRevenueAccount_ == null)
                    {
                        lodgingRevenueAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
                    }
                    input.ReadMessage(lodgingRevenueAccount_);
                    break;
                }

                case 90: {
                    if (roomCallRevenueAccount_ == null)
                    {
                        roomCallRevenueAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
                    }
                    input.ReadMessage(roomCallRevenueAccount_);
                    break;
                }

                case 98: {
                    if (miscellaneousRevenueAccount_ == null)
                    {
                        miscellaneousRevenueAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
                    }
                    input.ReadMessage(miscellaneousRevenueAccount_);
                    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.Supply.IncidentalItems.IncidentalItemIndicator();
                    }
                    input.ReadMessage(entityId_);
                    break;
                }

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

                case 24: {
                    QuanityOwned = input.ReadUInt32();
                    break;
                }

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

                case 40: {
                    IncursTaxes = input.ReadBool();
                    break;
                }

                case 48: {
                    IncursFees = input.ReadBool();
                    break;
                }

                case 56: {
                    chargeFrequency_ = (global::HOLMS.Types.Supply.IncidentalItems.ItemChargeFrequency)input.ReadEnum();
                    break;
                }

                case 66: {
                    if (revenueAccount_ == null)
                    {
                        revenueAccount_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
                    }
                    input.ReadMessage(revenueAccount_);
                    break;
                }
                }
            }
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

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

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

                case 34: {
                    if (account_ == null)
                    {
                        account_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
                    }
                    input.ReadMessage(account_);
                    break;
                }

                case 42: {
                    AccountName = input.ReadString();
                    break;
                }

                case 48: {
                    accountType_ = (global::HOLMS.Types.Money.Accounting.LedgerAccountCategory)input.ReadEnum();
                    break;
                }

                case 58: {
                    if (entityId_ == null)
                    {
                        entityId_ = new global::HOLMS.Types.Money.Accounting.AccountingTransactionLineIndicator();
                    }
                    input.ReadMessage(entityId_);
                    break;
                }
                }
            }
        }
 public virtual global::HOLMS.Types.Money.Accounting.Account GetById(global::HOLMS.Types.Money.Accounting.AccountIndicator request, Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(GetById(request, new CallOptions(headers, deadline, cancellationToken)));
 }
 public virtual global::System.Threading.Tasks.Task <global::HOLMS.Types.Money.Accounting.Account> GetById(global::HOLMS.Types.Money.Accounting.AccountIndicator request, ServerCallContext context)
 {
     throw new RpcException(new Status(StatusCode.Unimplemented, ""));
 }
 public virtual AsyncUnaryCall <global::HOLMS.Types.Money.Accounting.AccountActivityLedger> GetLedgerForAccountAsync(global::HOLMS.Types.Money.Accounting.AccountIndicator request, CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_GetLedgerForAccount, null, options, request));
 }
Exemple #20
0
 public virtual grpc::AsyncUnaryCall <global::HOLMS.Types.Money.Accounting.Account> GetByIdAsync(global::HOLMS.Types.Money.Accounting.AccountIndicator request, grpc::Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(GetByIdAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)));
 }
 public virtual global::HOLMS.Types.Money.Accounting.Account GetById(global::HOLMS.Types.Money.Accounting.AccountIndicator request, CallOptions options)
 {
     return(CallInvoker.BlockingUnaryCall(__Method_GetById, null, options, request));
 }