public override decimal GetTaxRate(Commerce.Common.USState state)
        {
            decimal dOut = 0;

            //create the service
            StrikeIron.TaxDataBasic tax = new StrikeIron.TaxDataBasic();

            //user credentials
            StrikeIron.RegisteredUser user = new StrikeIron.RegisteredUser();

            user.UserID = this.ServiceLogin;

            //license holder
            StrikeIron.LicenseInfo license = new StrikeIron.LicenseInfo();

            //add the user credentials
            license.RegisteredUser = user;

            //add the license info
            tax.LicenseInfoValue = license;

            //call the service, get the rate
            try {
                //StrikeIron.TaxRateUSAData rate = tax.GetTaxRateUS(zip);
                //dOut = Convert.ToDecimal(rate.total_sales_tax);
            }
            catch {
            }

            return(dOut);
        }
Example #2
0
 public override DataSet GetTaxTable(Commerce.Common.USState state)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Example #3
0
 public override decimal GetTaxRate(Commerce.Common.USState state)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Example #4
0
 /// <summary>
 /// Returns a DataSet containing State, Zip, and Tax Rate info for a
 /// given state
 /// </summary>
 /// <param name="state"></param>
 /// <returns></returns>
 public abstract DataSet GetTaxTable(Commerce.Common.USState state);
Example #5
0
 public abstract decimal GetTaxRate(Commerce.Common.USState state);
 public override System.Data.DataSet GetTaxTable(Commerce.Common.USState state)
 {
     //talk to StrikeIron and get the rate info for a given state
     return(null);
 }
Example #7
0
 public static decimal GetUSTaxRate(Commerce.Common.USState state)
 {
     return(Instance.GetTaxRate(state));
 }