public static TaxAuthority CreateTaxAuthority(string dataAreaId, string taxAuthorityCode, decimal roundOff, decimal longitude, decimal latitude)
        {
            TaxAuthority taxAuthority = new TaxAuthority();

            taxAuthority.dataAreaId       = dataAreaId;
            taxAuthority.TaxAuthorityCode = taxAuthorityCode;
            taxAuthority.RoundOff         = roundOff;
            taxAuthority.Longitude        = longitude;
            taxAuthority.Latitude         = latitude;
            return(taxAuthority);
        }
Exemplo n.º 2
0
        /// <summary>
        ///     Updates the tax authority.
        /// </summary>
        /// <param name="tax_authority_id">The tax_authority_id.</param>
        /// <param name="update_tax_authoriry_info">The update_tax_authoriry_info.</param>
        /// <returns>TaxAuthority.</returns>
        public TaxAuthority UpdateTaxAuthority(string tax_authority_id, TaxAuthority update_tax_authoriry_info)
        {
            var url        = baseAddress + "/taxauthorities/" + tax_authority_id;
            var json       = JsonConvert.SerializeObject(update_tax_authoriry_info);
            var jsonParams = new Dictionary <object, object>();

            jsonParams.Add("JSONString", json);
            var response = ZohoHttpClient.put(url, getQueryParameters(jsonParams));

            return(SettingsParser.getTaxAuthority(response));
        }
Exemplo n.º 3
0
        internal static TaxAuthority getTaxAuthority(HttpResponseMessage response)
        {
            var taxAuthority = new TaxAuthority();
            var jsonObj      = JsonConvert.DeserializeObject <Dictionary <string, object> >(response.Content.ReadAsStringAsync().Result);

            if (jsonObj.ContainsKey("tax_authority"))
            {
                taxAuthority = JsonConvert.DeserializeObject <TaxAuthority>(jsonObj["tax_authority"].ToString());
            }
            return(taxAuthority);
        }
Exemplo n.º 4
0
        internal static TaxAuthorityList getTaxAuthorityList(HttpResponseMessage response)
        {
            var taxAuthorityList = new TaxAuthorityList();
            var jsonObj          = JsonConvert.DeserializeObject <Dictionary <string, object> >(response.Content.ReadAsStringAsync().Result);

            if (jsonObj.ContainsKey("tax_authorities"))
            {
                var taxAuthorityArray = JsonConvert.DeserializeObject <List <object> >(jsonObj["tax_authorities"].ToString());
                foreach (var taxAuthorityObj in taxAuthorityArray)
                {
                    var taxAuthority = new TaxAuthority();
                    taxAuthority = JsonConvert.DeserializeObject <TaxAuthority>(taxAuthorityObj.ToString());
                    taxAuthorityList.Add(taxAuthority);
                }
            }
            return(taxAuthorityList);
        }
        /// <summary>
        /// Saves the agentof deduction information.
        /// </summary>
        /// <param name="agentOfDeductionView">The agent of deduction view.</param>
        /// <returns></returns>
        /// <exception cref="ArgumentNullException">agentOfDeductionView</exception>
        public string saveTaxAuthorityInfo(ITaxAuthorityView taxAuthorityView, int registrationId)
        {
            if (taxAuthorityView == null)
            {
                throw new ArgumentNullException(nameof(taxAuthorityView));
            }

            var result    = string.Empty;
            var newRecord = new TaxAuthority
            {
                DateCreated = DateTime.Now,


                UserRegistrationId = registrationId,
                Description        = taxAuthorityView.Description,
                InlandRevenueId    = taxAuthorityView.InlandRevenueId,
                JurisdictionId     = taxAuthorityView.JurisdictionId,
                IsActive           = true
            };

            try
            {
                using (
                    var dbContext = (PitalyticsEntities)dbContextFactory.GetDbContext())
                {
                    dbContext.TaxAuthorities.Add(newRecord);
                    dbContext.SaveChanges();
                }
            }
            catch (Exception e)
            {
                throw new Exception($"Save Tax Authority - {e.Message} , {(e.InnerException != null ? e.InnerException.Message : "")}");
            }



            return(result);

            ;
        }
Exemplo n.º 6
0
        /// <summary>
        /// Get the details of a tax authority.
        /// </summary>
        /// <param name="newItem">The details of the new tax authority.</param>
        /// <returns>A response with the new tax authority details after it passes through the Zoho service.</returns>
        public async Task <TaxAuthority> CreateTaxAuthorityAsync(TaxAuthority newItem)
        {
            var response = await PostDataAsync <TaxAuthority, ZohoBooksResponse <TaxAuthority> >("settings/taxauthorities", newItem, OrganizationIdFilter);

            return(response.Resource);
        }
Exemplo n.º 7
0
        public static ClientOrder GetSampleOrder()
        {
            ClientOrder client_order = new ClientOrder();

            ReportConfig report_config = new ReportConfig();

            report_config.disclaimer   = "We have made every effort to ensure the accuracy of this tax information.  However, due to the frequency with which municipalities revise their fees and other specifications, we cannot assume liability for any discrepancy in the taxes.  In the event that tax amounts have changed, please notify us so we can update our records.  Possible revenue bond charges for sewer and water pursuant to state statutes and local ordinances when connection to the system is made by the owner.  The exact current and continuing charges depend on all the facts.  Contact local officials for details.  This report is based on best available information at the time.  This is for informational purposes only and will not appear on title policy.\r\nPatent Pending ";
            client_order.report_config = report_config;

            ClientConfig client_config = new ClientConfig();

            client_config.base_path    = @"D:\Programming\0_crap\";
            client_config.report_name  = "Tax_Research.xlsx";
            client_config.logo         = @"D:\Programming\0_crap\logo.jpg";
            client_order.client_config = client_config;

            ParcelInformation parcel = new ParcelInformation();

            parcel.client_po_number   = "U NTN-ARS-12345";
            parcel.researcher         = "erice";
            parcel.owner_1            = "Buddy Rice";
            parcel.owner_2            = "Ashley Gonzalez";
            parcel.address            = "427 8th Ave N";
            parcel.city               = "Saint Petersburg";
            parcel.state              = "FL";
            parcel.zip_code           = "33701";
            parcel.county             = "PINELLAS";
            parcel.searched_address   = "427 8th Ave N";
            parcel.searched_city      = "Saint Petersburg";
            parcel.searched_state     = "FL";
            parcel.searched_zip_code  = "33701";
            parcel.assessed_owner_1   = "Buddy Rice";
            parcel.assessed_owner_2   = "Ashley Gonzalez";
            parcel.parcel_number      = "18-31-17-77814-001-0060";
            parcel.effective_date     = DateTime.Parse("2018-05-01");
            parcel.legal_desc         = "SAFFORD'S ADD REVISED BLK 1, E 75FT OF LOTS 6 AND 7";
            parcel.class_code         = "Apartments (10 units to 49 units)";
            parcel.assessed_valuation = 408980.00M;

            TaxAuthorityPaymentRecord payment_record = new TaxAuthorityPaymentRecord();

            payment_record.tax_type        = "County";
            payment_record.additional_data = "";
            payment_record.research_notes  = "";
            payment_record.lump_sum        = 1;
            payment_record.ex_homestead    = 0;
            payment_record.ex_disabled     = 0;
            payment_record.ex_veteran      = 1;
            payment_record.ex_mortgage     = 0;
            payment_record.ex_star         = 0;
            payment_record.ex_elderly      = 0;
            payment_record.ex_other        = string.Empty;
            payment_record.assessed_value  = 408980.00M;
            payment_record.land_value      = 225600.00M;
            payment_record.improved_value  = 45100.00M;
            payment_record.unincorporated  = 0;
            payment_record.lawsuit         = string.Empty;
            payment_record.lawsuit_case    = string.Empty;

            TaxAuthority tax_authority = new TaxAuthority();

            tax_authority.name               = "Pinellas County Tax Collector";
            tax_authority.payment_name       = "Pinellas County Tax Collector";
            tax_authority.current_tax_year   = "2018";
            tax_authority.discounts          = "N/A";
            tax_authority.duplicate_bill_fee = 5.00M;
            tax_authority.fiscal_year        = "2018";
            tax_authority.payment_address_1  = "1800 66th Street North";
            tax_authority.payment_address_2  = "suite ABC";
            tax_authority.payment_city       = "St.Petersburg";
            tax_authority.payment_state      = "FL";
            tax_authority.payment_zip        = "33710";
            tax_authority.payment_phone      = "(727)123-4567";
            tax_authority.payment_ext        = "9876";
            tax_authority.schedule           = "Annually";
            tax_authority.ta_other_notes     = "Pinellas County is the only taxing authority for this property.\n\nPinellas County collects annually due by 7/15 with an option to pay in installments due by 7/15, 10/15, 1/15 & 4/15.\n\nThere is a 10 day grace period for installment 1 only.\n\nPINELLAS COUNTY DOES NOT PROVIDE PAID DATES; PAYMENTS ARE PROCESSED AS PAID TIMELY BY THE DUE DATE.";
            payment_record.tax_authority     = tax_authority;

            TaxInformation tax_info = new TaxInformation();

            tax_info.jurisdiction_name = "Pinellas County Tax Collector";
            tax_info.jurisdiction_type = "County";
            tax_info.tax_rate          = 0.00M;
            tax_info.exemptions        = "Veterine Exemption";
            tax_info.milage_rate       = 22.0150M;
            tax_info.milage_next_due   = DateTime.Parse("2018-12-01");

            PaymentInstallment install_1 = new PaymentInstallment();

            install_1.amount_due        = 0.00M;
            install_1.paid              = 2459.89M;
            install_1.base_amount       = 2459.89M;
            install_1.date_due          = DateTime.Parse("2017-12-31");
            install_1.date_good_thru    = DateTime.Parse("2018-02-28");
            install_1.date_paid         = DateTime.Parse("2018-02-01");
            install_1.delinquent_amount = 0.00M;
            install_1.install           = 1;
            install_1.is_delinquent     = 0;
            install_1.is_estimate       = 0;
            install_1.is_exempt         = 0;
            install_1.is_partial        = 0;
            install_1.one_month         = 0.00M;
            install_1.two_month         = 0.00M;
            payment_record.installments.Add(install_1);

            PaymentInstallment install_2 = new PaymentInstallment();

            install_2.amount_due        = 0.00M;
            install_2.paid              = 2459.89M;
            install_2.base_amount       = 2459.89M;
            install_2.date_due          = DateTime.Parse("2017-12-31");
            install_2.date_good_thru    = DateTime.Parse("2018-02-01");
            install_2.date_paid         = DateTime.Parse("2018-02-01");
            install_2.delinquent_amount = 0.00M;
            install_2.install           = 2;
            install_2.is_delinquent     = 0;
            install_2.is_estimate       = 0;
            install_2.is_exempt         = 0;
            install_2.is_partial        = 0;
            install_2.one_month         = 0.00M;
            install_2.two_month         = 0.00M;
            payment_record.installments.Add(install_2);

            PaymentInstallment install_3 = new PaymentInstallment();

            install_3.amount_due        = 0.00M;
            install_3.paid              = 2459.89M;
            install_3.base_amount       = 2459.89M;
            install_3.date_due          = DateTime.Parse("2017-12-31");
            install_3.date_good_thru    = DateTime.Parse("2018-02-01");
            install_3.date_paid         = DateTime.Parse("2018-02-01");
            install_3.delinquent_amount = 0.00M;
            install_3.install           = 3;
            install_3.is_delinquent     = 0;
            install_3.is_estimate       = 0;
            install_3.is_exempt         = 0;
            install_3.is_partial        = 0;
            install_3.one_month         = 0.00M;
            install_3.two_month         = 0.00M;
            payment_record.installments.Add(install_3);

            PaymentInstallment install_4 = new PaymentInstallment();

            install_4.amount_due        = 2459.89M;
            install_4.base_amount       = 2459.89M;
            install_4.date_due          = DateTime.Parse("2017-12-31");
            install_4.date_good_thru    = DateTime.Parse("2018-02-01");
            install_4.date_paid         = DateTime.MinValue;
            install_4.delinquent_amount = 0.00M;
            install_4.install           = 4;
            install_4.is_delinquent     = 1;
            install_4.is_estimate       = 0;
            install_4.is_exempt         = 0;
            install_4.is_partial        = 0;
            install_4.one_month         = 0.00M;
            install_4.two_month         = 0.00M;
            payment_record.installments.Add(install_4);

            payment_record.tax_information = tax_info;
            parcel.payment_records.Add(payment_record);
            client_order.Parcels.Add(parcel);

            return(client_order);
        }