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); }
public override DataSet GetTaxTable(Commerce.Common.USState state) { throw new Exception("The method or operation is not implemented."); }
public override decimal GetTaxRate(Commerce.Common.USState state) { throw new Exception("The method or operation is not implemented."); }
/// <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);
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); }
public static decimal GetUSTaxRate(Commerce.Common.USState state) { return(Instance.GetTaxRate(state)); }