/// <summary> /// Initializes a new instance of the <see cref="TaxCalculationApi"/> class /// using Configuration object /// </summary> /// <param name="configuration">An instance of Configuration</param> /// <returns></returns> public TaxCalculationApi(avalara.comms.rest.v2.Client.Configuration configuration = null) { if (configuration == null) // use the default one in Configuration { this.Configuration = avalara.comms.rest.v2.Client.Configuration.Default; } else { this.Configuration = configuration; } ExceptionFactory = avalara.comms.rest.v2.Client.Configuration.DefaultExceptionFactory; }
/// <summary> /// Initializes a new instance of the <see cref="LookupsApi"/> class /// using Configuration object /// </summary> /// <param name="configuration">An instance of Configuration</param> /// <returns></returns> public LookupsApi(avalara.comms.rest.v2.Client.Configuration configuration) { if (configuration == null) { throw new ArgumentNullException("configuration"); } this.Configuration = avalara.comms.rest.v2.Client.Configuration.MergeConfigurations( avalara.comms.rest.v2.Client.GlobalConfiguration.Instance, configuration ); this.Client = new avalara.comms.rest.v2.Client.ApiClient(this.Configuration.BasePath); this.AsynchronousClient = new avalara.comms.rest.v2.Client.ApiClient(this.Configuration.BasePath); ExceptionFactory = avalara.comms.rest.v2.Client.Configuration.DefaultExceptionFactory; }