Class: UltracartClient::TaxApi
- Inherits:
-
Object
- Object
- UltracartClient::TaxApi
- Defined in:
- lib/ultracart_api/api/tax_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Class Method Summary collapse
Instance Method Summary collapse
-
#delete_tax_provider_self_city(city, tax_city, opts = {}) ⇒ nil
Deletes a Self tax provider city Deletes a Self tax provider city.
-
#delete_tax_provider_self_city_with_http_info(city, tax_city, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Deletes a Self tax provider city Deletes a Self tax provider city.
-
#delete_tax_provider_self_country(country_code, tax_country, opts = {}) ⇒ nil
Deletes a Self tax provider country Deletes a Self tax provider country.
-
#delete_tax_provider_self_country_with_http_info(country_code, tax_country, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Deletes a Self tax provider country Deletes a Self tax provider country.
-
#delete_tax_provider_self_county(county, tax_county, opts = {}) ⇒ nil
Deletes a Self tax provider county Deletes a Self tax provider county.
-
#delete_tax_provider_self_county_with_http_info(county, tax_county, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Deletes a Self tax provider county Deletes a Self tax provider county.
-
#delete_tax_provider_self_postal_code(postal_code, tax_postal_code, opts = {}) ⇒ nil
Deletes a Self tax provider postalCode Deletes a Self tax provider postalCode.
-
#delete_tax_provider_self_postal_code_with_http_info(postal_code, tax_postal_code, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Deletes a Self tax provider postalCode Deletes a Self tax provider postalCode.
-
#delete_tax_provider_self_state(state_code, tax_state, opts = {}) ⇒ nil
Deletes a Self tax provider state Deletes a Self tax provider state.
-
#delete_tax_provider_self_state_with_http_info(state_code, tax_state, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Deletes a Self tax provider state Deletes a Self tax provider state.
-
#get_tax_provider_avalara(opts = {}) ⇒ TaxProviderAvalara
Retrieve the Avalara tax provider Retrieves the Avalara tax provider.
-
#get_tax_provider_avalara_companies(tax_provider_avalara, opts = {}) ⇒ TaxProviderAvalaraCompaniesResult
Returns Avalara Tax companies configured by the merchant Returns Avalara Tax companies configured by the merchant.
-
#get_tax_provider_avalara_companies_with_http_info(tax_provider_avalara, opts = {}) ⇒ Array<(TaxProviderAvalaraCompaniesResult, Integer, Hash)>
Returns Avalara Tax companies configured by the merchant Returns Avalara Tax companies configured by the merchant.
-
#get_tax_provider_avalara_test(opts = {}) ⇒ TaxProviderTestResult
Attempts to connect to Avalara and returns back the response Attempts to connect to Avalara and returns back the response.
-
#get_tax_provider_avalara_test_with_http_info(opts = {}) ⇒ Array<(TaxProviderTestResult, Integer, Hash)>
Attempts to connect to Avalara and returns back the response Attempts to connect to Avalara and returns back the response.
-
#get_tax_provider_avalara_with_http_info(opts = {}) ⇒ Array<(TaxProviderAvalara, Integer, Hash)>
Retrieve the Avalara tax provider Retrieves the Avalara tax provider.
-
#get_tax_provider_self(opts = {}) ⇒ TaxProviderSelf
Retrieve the Self tax provider Retrieves the Self tax provider.
-
#get_tax_provider_self_countries(opts = {}) ⇒ TaxProviderSelfCountriesResponse
Retrieve the Self tax provider countries Retrieves the Self tax provider countries.
-
#get_tax_provider_self_countries_with_http_info(opts = {}) ⇒ Array<(TaxProviderSelfCountriesResponse, Integer, Hash)>
Retrieve the Self tax provider countries Retrieves the Self tax provider countries.
-
#get_tax_provider_self_regions_by_country_code(country_code, opts = {}) ⇒ TaxProviderSelfRegionsResponse
Retrieve the Self tax provider regions for a given country code Retrieves the Self tax provider regions for a given country code.
-
#get_tax_provider_self_regions_by_country_code_with_http_info(country_code, opts = {}) ⇒ Array<(TaxProviderSelfRegionsResponse, Integer, Hash)>
Retrieve the Self tax provider regions for a given country code Retrieves the Self tax provider regions for a given country code.
-
#get_tax_provider_self_with_http_info(opts = {}) ⇒ Array<(TaxProviderSelf, Integer, Hash)>
Retrieve the Self tax provider Retrieves the Self tax provider.
-
#get_tax_provider_sovos(opts = {}) ⇒ TaxProviderSovos
Retrieve the Sovos tax provider Retrieves the Sovos tax provider.
-
#get_tax_provider_sovos_test(opts = {}) ⇒ TaxProviderTestResult
Attempts to connect to Sovos and returns back the response Attempts to connect to Sovos and returns back the response.
-
#get_tax_provider_sovos_test_with_http_info(opts = {}) ⇒ Array<(TaxProviderTestResult, Integer, Hash)>
Attempts to connect to Sovos and returns back the response Attempts to connect to Sovos and returns back the response.
-
#get_tax_provider_sovos_with_http_info(opts = {}) ⇒ Array<(TaxProviderSovos, Integer, Hash)>
Retrieve the Sovos tax provider Retrieves the Sovos tax provider.
-
#get_tax_provider_tax_jar(opts = {}) ⇒ TaxProviderTaxJar
Retrieve the TaxJar tax provider Retrieves the TaxJar tax provider.
-
#get_tax_provider_tax_jar_test(opts = {}) ⇒ TaxProviderTestResult
Attempts to connect to TaxJar and returns back the response Attempts to connect to TaxJar and returns back the response.
-
#get_tax_provider_tax_jar_test_with_http_info(opts = {}) ⇒ Array<(TaxProviderTestResult, Integer, Hash)>
Attempts to connect to TaxJar and returns back the response Attempts to connect to TaxJar and returns back the response.
-
#get_tax_provider_tax_jar_with_http_info(opts = {}) ⇒ Array<(TaxProviderTaxJar, Integer, Hash)>
Retrieve the TaxJar tax provider Retrieves the TaxJar tax provider.
-
#get_tax_provider_ultra_cart(opts = {}) ⇒ TaxProviderUltraCart
Retrieve the UltraCart tax provider Retrieves the UltraCart tax provider.
-
#get_tax_provider_ultra_cart_with_http_info(opts = {}) ⇒ Array<(TaxProviderUltraCart, Integer, Hash)>
Retrieve the UltraCart tax provider Retrieves the UltraCart tax provider.
-
#get_tax_providers(opts = {}) ⇒ TaxProvidersResponse
Retrieve tax methods Retrieves tax methods for this account.
-
#get_tax_providers_with_http_info(opts = {}) ⇒ Array<(TaxProvidersResponse, Integer, Hash)>
Retrieve tax methods Retrieves tax methods for this account.
-
#initialize(api_client = ApiClient.default) ⇒ TaxApi
constructor
A new instance of TaxApi.
-
#set_active_tax_provider(provider_name, opts = {}) ⇒ TaxProviderActivateResult
Toggle a tax provider to active Toggle a tax provider to active.
-
#set_active_tax_provider_with_http_info(provider_name, opts = {}) ⇒ Array<(TaxProviderActivateResult, Integer, Hash)>
Toggle a tax provider to active Toggle a tax provider to active.
-
#update_tax_provider_avalara(tax_provider_avalara, opts = {}) ⇒ TaxProviderAvalara
Update the Avalara tax provider Update the Avalara tax provider.
-
#update_tax_provider_avalara_with_http_info(tax_provider_avalara, opts = {}) ⇒ Array<(TaxProviderAvalara, Integer, Hash)>
Update the Avalara tax provider Update the Avalara tax provider.
-
#update_tax_provider_self(tax_provider_self, opts = {}) ⇒ TaxProviderSelf
Update the Self tax provider Update the Self tax provider.
-
#update_tax_provider_self_city(city, tax_city, opts = {}) ⇒ TaxCity
Updates a Self tax provider city Updates a Self tax provider city.
-
#update_tax_provider_self_city_with_http_info(city, tax_city, opts = {}) ⇒ Array<(TaxCity, Integer, Hash)>
Updates a Self tax provider city Updates a Self tax provider city.
-
#update_tax_provider_self_country(country_code, tax_country, opts = {}) ⇒ TaxCountry
Updates a Self tax provider country Updates a Self tax provider country.
-
#update_tax_provider_self_country_with_http_info(country_code, tax_country, opts = {}) ⇒ Array<(TaxCountry, Integer, Hash)>
Updates a Self tax provider country Updates a Self tax provider country.
-
#update_tax_provider_self_county(county, tax_county, opts = {}) ⇒ TaxCounty
Updates a Self tax provider county Updates a Self tax provider county.
-
#update_tax_provider_self_county_with_http_info(county, tax_county, opts = {}) ⇒ Array<(TaxCounty, Integer, Hash)>
Updates a Self tax provider county Updates a Self tax provider county.
-
#update_tax_provider_self_postal_code(postal_code, tax_postal_code, opts = {}) ⇒ TaxPostalCode
Updates a Self tax provider postalCode Updates a Self tax provider postalCode.
-
#update_tax_provider_self_postal_code_with_http_info(postal_code, tax_postal_code, opts = {}) ⇒ Array<(TaxPostalCode, Integer, Hash)>
Updates a Self tax provider postalCode Updates a Self tax provider postalCode.
-
#update_tax_provider_self_state(state_code, tax_state, opts = {}) ⇒ TaxState
Updates a Self tax provider state Updates a Self tax provider state.
-
#update_tax_provider_self_state_with_http_info(state_code, tax_state, opts = {}) ⇒ Array<(TaxState, Integer, Hash)>
Updates a Self tax provider state Updates a Self tax provider state.
-
#update_tax_provider_self_with_http_info(tax_provider_self, opts = {}) ⇒ Array<(TaxProviderSelf, Integer, Hash)>
Update the Self tax provider Update the Self tax provider.
-
#update_tax_provider_sovos(tax_provider_sovos, opts = {}) ⇒ TaxProviderSovos
Update the Sovos tax provider Update the Sovos tax provider.
-
#update_tax_provider_sovos_with_http_info(tax_provider_sovos, opts = {}) ⇒ Array<(TaxProviderSovos, Integer, Hash)>
Update the Sovos tax provider Update the Sovos tax provider.
-
#update_tax_provider_tax_jar(tax_provider_tax_jar, opts = {}) ⇒ TaxProviderTaxJar
Update the TaxJar tax provider Update the TaxJar tax provider.
-
#update_tax_provider_tax_jar_with_http_info(tax_provider_tax_jar, opts = {}) ⇒ Array<(TaxProviderTaxJar, Integer, Hash)>
Update the TaxJar tax provider Update the TaxJar tax provider.
-
#update_tax_provider_ultra_cart(tax_provider_ultracart, opts = {}) ⇒ TaxProviderUltraCart
Update the UltraCart tax provider Update the UltraCart tax provider.
-
#update_tax_provider_ultra_cart_with_http_info(tax_provider_ultracart, opts = {}) ⇒ Array<(TaxProviderUltraCart, Integer, Hash)>
Update the UltraCart tax provider Update the UltraCart tax provider.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/ultracart_api/api/tax_api.rb', line 17 def api_client @api_client end |
Class Method Details
.new_using_api_key(simple_key, verify_ssl = true, debugging = false) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/ultracart_api/api/tax_api.rb', line 23 def self.new_using_api_key(simple_key, verify_ssl = true, debugging = false) api_config = Configuration.new api_config.api_key_prefix['x-ultracart-simple-key'] = simple_key api_config.api_version = '2017-03-01' api_config.verify_ssl = verify_ssl api_client = ApiClient.new(api_config) api_client.config.debugging = debugging UltracartClient::TaxApi.new(api_client) end |
Instance Method Details
#delete_tax_provider_self_city(city, tax_city, opts = {}) ⇒ nil
Deletes a Self tax provider city Deletes a Self tax provider city.
41 42 43 44 |
# File 'lib/ultracart_api/api/tax_api.rb', line 41 def delete_tax_provider_self_city(city, tax_city, opts = {}) delete_tax_provider_self_city_with_http_info(city, tax_city, opts) nil end |
#delete_tax_provider_self_city_with_http_info(city, tax_city, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Deletes a Self tax provider city Deletes a Self tax provider city.
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/ultracart_api/api/tax_api.rb', line 52 def delete_tax_provider_self_city_with_http_info(city, tax_city, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.delete_tax_provider_self_city ...' end # verify the required parameter 'city' is set if @api_client.config.client_side_validation && city.nil? fail ArgumentError, "Missing the required parameter 'city' when calling TaxApi.delete_tax_provider_self_city" end # verify the required parameter 'tax_city' is set if @api_client.config.client_side_validation && tax_city.nil? fail ArgumentError, "Missing the required parameter 'tax_city' when calling TaxApi.delete_tax_provider_self_city" end # resource path local_var_path = '/tax/providers/self/city/{city}'.sub('{' + 'city' + '}', CGI.escape(city.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(tax_city) # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.delete_tax_provider_self_city", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#delete_tax_provider_self_city\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_tax_provider_self_country(country_code, tax_country, opts = {}) ⇒ nil
Deletes a Self tax provider country Deletes a Self tax provider country.
116 117 118 119 |
# File 'lib/ultracart_api/api/tax_api.rb', line 116 def delete_tax_provider_self_country(country_code, tax_country, opts = {}) delete_tax_provider_self_country_with_http_info(country_code, tax_country, opts) nil end |
#delete_tax_provider_self_country_with_http_info(country_code, tax_country, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Deletes a Self tax provider country Deletes a Self tax provider country.
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 |
# File 'lib/ultracart_api/api/tax_api.rb', line 127 def delete_tax_provider_self_country_with_http_info(country_code, tax_country, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.delete_tax_provider_self_country ...' end # verify the required parameter 'country_code' is set if @api_client.config.client_side_validation && country_code.nil? fail ArgumentError, "Missing the required parameter 'country_code' when calling TaxApi.delete_tax_provider_self_country" end # verify the required parameter 'tax_country' is set if @api_client.config.client_side_validation && tax_country.nil? fail ArgumentError, "Missing the required parameter 'tax_country' when calling TaxApi.delete_tax_provider_self_country" end # resource path local_var_path = '/tax/providers/self/country/{countryCode}'.sub('{' + 'countryCode' + '}', CGI.escape(country_code.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(tax_country) # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.delete_tax_provider_self_country", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#delete_tax_provider_self_country\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_tax_provider_self_county(county, tax_county, opts = {}) ⇒ nil
Deletes a Self tax provider county Deletes a Self tax provider county.
191 192 193 194 |
# File 'lib/ultracart_api/api/tax_api.rb', line 191 def delete_tax_provider_self_county(county, tax_county, opts = {}) delete_tax_provider_self_county_with_http_info(county, tax_county, opts) nil end |
#delete_tax_provider_self_county_with_http_info(county, tax_county, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Deletes a Self tax provider county Deletes a Self tax provider county.
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 |
# File 'lib/ultracart_api/api/tax_api.rb', line 202 def delete_tax_provider_self_county_with_http_info(county, tax_county, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.delete_tax_provider_self_county ...' end # verify the required parameter 'county' is set if @api_client.config.client_side_validation && county.nil? fail ArgumentError, "Missing the required parameter 'county' when calling TaxApi.delete_tax_provider_self_county" end # verify the required parameter 'tax_county' is set if @api_client.config.client_side_validation && tax_county.nil? fail ArgumentError, "Missing the required parameter 'tax_county' when calling TaxApi.delete_tax_provider_self_county" end # resource path local_var_path = '/tax/providers/self/county/{county}'.sub('{' + 'county' + '}', CGI.escape(county.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(tax_county) # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.delete_tax_provider_self_county", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#delete_tax_provider_self_county\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_tax_provider_self_postal_code(postal_code, tax_postal_code, opts = {}) ⇒ nil
Deletes a Self tax provider postalCode Deletes a Self tax provider postalCode.
266 267 268 269 |
# File 'lib/ultracart_api/api/tax_api.rb', line 266 def delete_tax_provider_self_postal_code(postal_code, tax_postal_code, opts = {}) delete_tax_provider_self_postal_code_with_http_info(postal_code, tax_postal_code, opts) nil end |
#delete_tax_provider_self_postal_code_with_http_info(postal_code, tax_postal_code, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Deletes a Self tax provider postalCode Deletes a Self tax provider postalCode.
277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 |
# File 'lib/ultracart_api/api/tax_api.rb', line 277 def delete_tax_provider_self_postal_code_with_http_info(postal_code, tax_postal_code, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.delete_tax_provider_self_postal_code ...' end # verify the required parameter 'postal_code' is set if @api_client.config.client_side_validation && postal_code.nil? fail ArgumentError, "Missing the required parameter 'postal_code' when calling TaxApi.delete_tax_provider_self_postal_code" end # verify the required parameter 'tax_postal_code' is set if @api_client.config.client_side_validation && tax_postal_code.nil? fail ArgumentError, "Missing the required parameter 'tax_postal_code' when calling TaxApi.delete_tax_provider_self_postal_code" end # resource path local_var_path = '/tax/providers/self/postalCode/{postal_code}'.sub('{' + 'postal_code' + '}', CGI.escape(postal_code.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(tax_postal_code) # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.delete_tax_provider_self_postal_code", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#delete_tax_provider_self_postal_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_tax_provider_self_state(state_code, tax_state, opts = {}) ⇒ nil
Deletes a Self tax provider state Deletes a Self tax provider state.
341 342 343 344 |
# File 'lib/ultracart_api/api/tax_api.rb', line 341 def delete_tax_provider_self_state(state_code, tax_state, opts = {}) delete_tax_provider_self_state_with_http_info(state_code, tax_state, opts) nil end |
#delete_tax_provider_self_state_with_http_info(state_code, tax_state, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Deletes a Self tax provider state Deletes a Self tax provider state.
352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 |
# File 'lib/ultracart_api/api/tax_api.rb', line 352 def delete_tax_provider_self_state_with_http_info(state_code, tax_state, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.delete_tax_provider_self_state ...' end # verify the required parameter 'state_code' is set if @api_client.config.client_side_validation && state_code.nil? fail ArgumentError, "Missing the required parameter 'state_code' when calling TaxApi.delete_tax_provider_self_state" end # verify the required parameter 'tax_state' is set if @api_client.config.client_side_validation && tax_state.nil? fail ArgumentError, "Missing the required parameter 'tax_state' when calling TaxApi.delete_tax_provider_self_state" end # resource path local_var_path = '/tax/providers/self/state/{stateCode}'.sub('{' + 'stateCode' + '}', CGI.escape(state_code.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(tax_state) # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.delete_tax_provider_self_state", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#delete_tax_provider_self_state\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_tax_provider_avalara(opts = {}) ⇒ TaxProviderAvalara
Retrieve the Avalara tax provider Retrieves the Avalara tax provider.
414 415 416 417 |
# File 'lib/ultracart_api/api/tax_api.rb', line 414 def get_tax_provider_avalara(opts = {}) data, _status_code, _headers = get_tax_provider_avalara_with_http_info(opts) data end |
#get_tax_provider_avalara_companies(tax_provider_avalara, opts = {}) ⇒ TaxProviderAvalaraCompaniesResult
Returns Avalara Tax companies configured by the merchant Returns Avalara Tax companies configured by the merchant
473 474 475 476 |
# File 'lib/ultracart_api/api/tax_api.rb', line 473 def get_tax_provider_avalara_companies(tax_provider_avalara, opts = {}) data, _status_code, _headers = get_tax_provider_avalara_companies_with_http_info(tax_provider_avalara, opts) data end |
#get_tax_provider_avalara_companies_with_http_info(tax_provider_avalara, opts = {}) ⇒ Array<(TaxProviderAvalaraCompaniesResult, Integer, Hash)>
Returns Avalara Tax companies configured by the merchant Returns Avalara Tax companies configured by the merchant
483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 |
# File 'lib/ultracart_api/api/tax_api.rb', line 483 def get_tax_provider_avalara_companies_with_http_info(tax_provider_avalara, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.get_tax_provider_avalara_companies ...' end # verify the required parameter 'tax_provider_avalara' is set if @api_client.config.client_side_validation && tax_provider_avalara.nil? fail ArgumentError, "Missing the required parameter 'tax_provider_avalara' when calling TaxApi.get_tax_provider_avalara_companies" end # resource path local_var_path = '/tax/providers/avalara/companies' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(tax_provider_avalara) # return_type return_type = opts[:debug_return_type] || 'TaxProviderAvalaraCompaniesResult' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.get_tax_provider_avalara_companies", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#get_tax_provider_avalara_companies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_tax_provider_avalara_test(opts = {}) ⇒ TaxProviderTestResult
Attempts to connect to Avalara and returns back the response Attempts to connect to Avalara and returns back the response.
541 542 543 544 |
# File 'lib/ultracart_api/api/tax_api.rb', line 541 def get_tax_provider_avalara_test(opts = {}) data, _status_code, _headers = get_tax_provider_avalara_test_with_http_info(opts) data end |
#get_tax_provider_avalara_test_with_http_info(opts = {}) ⇒ Array<(TaxProviderTestResult, Integer, Hash)>
Attempts to connect to Avalara and returns back the response Attempts to connect to Avalara and returns back the response.
550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 |
# File 'lib/ultracart_api/api/tax_api.rb', line 550 def get_tax_provider_avalara_test_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.get_tax_provider_avalara_test ...' end # resource path local_var_path = '/tax/providers/avalara/test' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'TaxProviderTestResult' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.get_tax_provider_avalara_test", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#get_tax_provider_avalara_test\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_tax_provider_avalara_with_http_info(opts = {}) ⇒ Array<(TaxProviderAvalara, Integer, Hash)>
Retrieve the Avalara tax provider Retrieves the Avalara tax provider.
423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 |
# File 'lib/ultracart_api/api/tax_api.rb', line 423 def get_tax_provider_avalara_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.get_tax_provider_avalara ...' end # resource path local_var_path = '/tax/providers/avalara' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'TaxProviderAvalara' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.get_tax_provider_avalara", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#get_tax_provider_avalara\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_tax_provider_self(opts = {}) ⇒ TaxProviderSelf
Retrieve the Self tax provider Retrieves the Self tax provider.
599 600 601 602 |
# File 'lib/ultracart_api/api/tax_api.rb', line 599 def get_tax_provider_self(opts = {}) data, _status_code, _headers = get_tax_provider_self_with_http_info(opts) data end |
#get_tax_provider_self_countries(opts = {}) ⇒ TaxProviderSelfCountriesResponse
Retrieve the Self tax provider countries Retrieves the Self tax provider countries.
657 658 659 660 |
# File 'lib/ultracart_api/api/tax_api.rb', line 657 def get_tax_provider_self_countries(opts = {}) data, _status_code, _headers = get_tax_provider_self_countries_with_http_info(opts) data end |
#get_tax_provider_self_countries_with_http_info(opts = {}) ⇒ Array<(TaxProviderSelfCountriesResponse, Integer, Hash)>
Retrieve the Self tax provider countries Retrieves the Self tax provider countries.
666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 |
# File 'lib/ultracart_api/api/tax_api.rb', line 666 def get_tax_provider_self_countries_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.get_tax_provider_self_countries ...' end # resource path local_var_path = '/tax/providers/self/countries' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'TaxProviderSelfCountriesResponse' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.get_tax_provider_self_countries", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#get_tax_provider_self_countries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_tax_provider_self_regions_by_country_code(country_code, opts = {}) ⇒ TaxProviderSelfRegionsResponse
Retrieve the Self tax provider regions for a given country code Retrieves the Self tax provider regions for a given country code.
716 717 718 719 |
# File 'lib/ultracart_api/api/tax_api.rb', line 716 def get_tax_provider_self_regions_by_country_code(country_code, opts = {}) data, _status_code, _headers = get_tax_provider_self_regions_by_country_code_with_http_info(country_code, opts) data end |
#get_tax_provider_self_regions_by_country_code_with_http_info(country_code, opts = {}) ⇒ Array<(TaxProviderSelfRegionsResponse, Integer, Hash)>
Retrieve the Self tax provider regions for a given country code Retrieves the Self tax provider regions for a given country code.
726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 |
# File 'lib/ultracart_api/api/tax_api.rb', line 726 def get_tax_provider_self_regions_by_country_code_with_http_info(country_code, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.get_tax_provider_self_regions_by_country_code ...' end # verify the required parameter 'country_code' is set if @api_client.config.client_side_validation && country_code.nil? fail ArgumentError, "Missing the required parameter 'country_code' when calling TaxApi.get_tax_provider_self_regions_by_country_code" end # resource path local_var_path = '/tax/providers/self/regions/{countryCode}'.sub('{' + 'countryCode' + '}', CGI.escape(country_code.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'TaxProviderSelfRegionsResponse' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.get_tax_provider_self_regions_by_country_code", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#get_tax_provider_self_regions_by_country_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_tax_provider_self_with_http_info(opts = {}) ⇒ Array<(TaxProviderSelf, Integer, Hash)>
Retrieve the Self tax provider Retrieves the Self tax provider.
608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 |
# File 'lib/ultracart_api/api/tax_api.rb', line 608 def get_tax_provider_self_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.get_tax_provider_self ...' end # resource path local_var_path = '/tax/providers/self' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'TaxProviderSelf' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.get_tax_provider_self", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#get_tax_provider_self\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_tax_provider_sovos(opts = {}) ⇒ TaxProviderSovos
Retrieve the Sovos tax provider Retrieves the Sovos tax provider.
779 780 781 782 |
# File 'lib/ultracart_api/api/tax_api.rb', line 779 def get_tax_provider_sovos(opts = {}) data, _status_code, _headers = get_tax_provider_sovos_with_http_info(opts) data end |
#get_tax_provider_sovos_test(opts = {}) ⇒ TaxProviderTestResult
Attempts to connect to Sovos and returns back the response Attempts to connect to Sovos and returns back the response.
837 838 839 840 |
# File 'lib/ultracart_api/api/tax_api.rb', line 837 def get_tax_provider_sovos_test(opts = {}) data, _status_code, _headers = get_tax_provider_sovos_test_with_http_info(opts) data end |
#get_tax_provider_sovos_test_with_http_info(opts = {}) ⇒ Array<(TaxProviderTestResult, Integer, Hash)>
Attempts to connect to Sovos and returns back the response Attempts to connect to Sovos and returns back the response.
846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 |
# File 'lib/ultracart_api/api/tax_api.rb', line 846 def get_tax_provider_sovos_test_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.get_tax_provider_sovos_test ...' end # resource path local_var_path = '/tax/providers/sovos/test' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'TaxProviderTestResult' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.get_tax_provider_sovos_test", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#get_tax_provider_sovos_test\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_tax_provider_sovos_with_http_info(opts = {}) ⇒ Array<(TaxProviderSovos, Integer, Hash)>
Retrieve the Sovos tax provider Retrieves the Sovos tax provider.
788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 |
# File 'lib/ultracart_api/api/tax_api.rb', line 788 def get_tax_provider_sovos_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.get_tax_provider_sovos ...' end # resource path local_var_path = '/tax/providers/sovos' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'TaxProviderSovos' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.get_tax_provider_sovos", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#get_tax_provider_sovos\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_tax_provider_tax_jar(opts = {}) ⇒ TaxProviderTaxJar
Retrieve the TaxJar tax provider Retrieves the TaxJar tax provider.
895 896 897 898 |
# File 'lib/ultracart_api/api/tax_api.rb', line 895 def get_tax_provider_tax_jar(opts = {}) data, _status_code, _headers = get_tax_provider_tax_jar_with_http_info(opts) data end |
#get_tax_provider_tax_jar_test(opts = {}) ⇒ TaxProviderTestResult
Attempts to connect to TaxJar and returns back the response Attempts to connect to TaxJar and returns back the response.
953 954 955 956 |
# File 'lib/ultracart_api/api/tax_api.rb', line 953 def get_tax_provider_tax_jar_test(opts = {}) data, _status_code, _headers = get_tax_provider_tax_jar_test_with_http_info(opts) data end |
#get_tax_provider_tax_jar_test_with_http_info(opts = {}) ⇒ Array<(TaxProviderTestResult, Integer, Hash)>
Attempts to connect to TaxJar and returns back the response Attempts to connect to TaxJar and returns back the response.
962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 |
# File 'lib/ultracart_api/api/tax_api.rb', line 962 def get_tax_provider_tax_jar_test_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.get_tax_provider_tax_jar_test ...' end # resource path local_var_path = '/tax/providers/taxjar/test' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'TaxProviderTestResult' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.get_tax_provider_tax_jar_test", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#get_tax_provider_tax_jar_test\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_tax_provider_tax_jar_with_http_info(opts = {}) ⇒ Array<(TaxProviderTaxJar, Integer, Hash)>
Retrieve the TaxJar tax provider Retrieves the TaxJar tax provider.
904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 |
# File 'lib/ultracart_api/api/tax_api.rb', line 904 def get_tax_provider_tax_jar_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.get_tax_provider_tax_jar ...' end # resource path local_var_path = '/tax/providers/taxjar' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'TaxProviderTaxJar' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.get_tax_provider_tax_jar", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#get_tax_provider_tax_jar\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_tax_provider_ultra_cart(opts = {}) ⇒ TaxProviderUltraCart
Retrieve the UltraCart tax provider Retrieves the UltraCart tax provider.
1011 1012 1013 1014 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1011 def get_tax_provider_ultra_cart(opts = {}) data, _status_code, _headers = get_tax_provider_ultra_cart_with_http_info(opts) data end |
#get_tax_provider_ultra_cart_with_http_info(opts = {}) ⇒ Array<(TaxProviderUltraCart, Integer, Hash)>
Retrieve the UltraCart tax provider Retrieves the UltraCart tax provider.
1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1020 def get_tax_provider_ultra_cart_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.get_tax_provider_ultra_cart ...' end # resource path local_var_path = '/tax/providers/ultracart' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'TaxProviderUltraCart' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.get_tax_provider_ultra_cart", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#get_tax_provider_ultra_cart\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_tax_providers(opts = {}) ⇒ TaxProvidersResponse
Retrieve tax methods Retrieves tax methods for this account.
1072 1073 1074 1075 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1072 def get_tax_providers(opts = {}) data, _status_code, _headers = get_tax_providers_with_http_info(opts) data end |
#get_tax_providers_with_http_info(opts = {}) ⇒ Array<(TaxProvidersResponse, Integer, Hash)>
Retrieve tax methods Retrieves tax methods for this account.
1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1084 def get_tax_providers_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.get_tax_providers ...' end # resource path local_var_path = '/tax/providers' # query parameters query_params = opts[:query_params] || {} query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil? query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil? query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil? # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'TaxProvidersResponse' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.get_tax_providers", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#get_tax_providers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#set_active_tax_provider(provider_name, opts = {}) ⇒ TaxProviderActivateResult
Toggle a tax provider to active Toggle a tax provider to active.
1137 1138 1139 1140 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1137 def set_active_tax_provider(provider_name, opts = {}) data, _status_code, _headers = set_active_tax_provider_with_http_info(provider_name, opts) data end |
#set_active_tax_provider_with_http_info(provider_name, opts = {}) ⇒ Array<(TaxProviderActivateResult, Integer, Hash)>
Toggle a tax provider to active Toggle a tax provider to active.
1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1147 def set_active_tax_provider_with_http_info(provider_name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.set_active_tax_provider ...' end # verify the required parameter 'provider_name' is set if @api_client.config.client_side_validation && provider_name.nil? fail ArgumentError, "Missing the required parameter 'provider_name' when calling TaxApi.set_active_tax_provider" end # resource path local_var_path = '/tax/providers/setActive/{providerName}'.sub('{' + 'providerName' + '}', CGI.escape(provider_name.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'TaxProviderActivateResult' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.set_active_tax_provider", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#set_active_tax_provider\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_tax_provider_avalara(tax_provider_avalara, opts = {}) ⇒ TaxProviderAvalara
Update the Avalara tax provider Update the Avalara tax provider.
1201 1202 1203 1204 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1201 def update_tax_provider_avalara(tax_provider_avalara, opts = {}) data, _status_code, _headers = update_tax_provider_avalara_with_http_info(tax_provider_avalara, opts) data end |
#update_tax_provider_avalara_with_http_info(tax_provider_avalara, opts = {}) ⇒ Array<(TaxProviderAvalara, Integer, Hash)>
Update the Avalara tax provider Update the Avalara tax provider.
1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1211 def update_tax_provider_avalara_with_http_info(tax_provider_avalara, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.update_tax_provider_avalara ...' end # verify the required parameter 'tax_provider_avalara' is set if @api_client.config.client_side_validation && tax_provider_avalara.nil? fail ArgumentError, "Missing the required parameter 'tax_provider_avalara' when calling TaxApi.update_tax_provider_avalara" end # resource path local_var_path = '/tax/providers/avalara' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(tax_provider_avalara) # return_type return_type = opts[:debug_return_type] || 'TaxProviderAvalara' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.update_tax_provider_avalara", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#update_tax_provider_avalara\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_tax_provider_self(tax_provider_self, opts = {}) ⇒ TaxProviderSelf
Update the Self tax provider Update the Self tax provider.
1270 1271 1272 1273 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1270 def update_tax_provider_self(tax_provider_self, opts = {}) data, _status_code, _headers = update_tax_provider_self_with_http_info(tax_provider_self, opts) data end |
#update_tax_provider_self_city(city, tax_city, opts = {}) ⇒ TaxCity
Updates a Self tax provider city Updates a Self tax provider city.
1340 1341 1342 1343 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1340 def update_tax_provider_self_city(city, tax_city, opts = {}) data, _status_code, _headers = update_tax_provider_self_city_with_http_info(city, tax_city, opts) data end |
#update_tax_provider_self_city_with_http_info(city, tax_city, opts = {}) ⇒ Array<(TaxCity, Integer, Hash)>
Updates a Self tax provider city Updates a Self tax provider city.
1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1351 def update_tax_provider_self_city_with_http_info(city, tax_city, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.update_tax_provider_self_city ...' end # verify the required parameter 'city' is set if @api_client.config.client_side_validation && city.nil? fail ArgumentError, "Missing the required parameter 'city' when calling TaxApi.update_tax_provider_self_city" end # verify the required parameter 'tax_city' is set if @api_client.config.client_side_validation && tax_city.nil? fail ArgumentError, "Missing the required parameter 'tax_city' when calling TaxApi.update_tax_provider_self_city" end # resource path local_var_path = '/tax/providers/self/city/{city}'.sub('{' + 'city' + '}', CGI.escape(city.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(tax_city) # return_type return_type = opts[:debug_return_type] || 'TaxCity' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.update_tax_provider_self_city", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#update_tax_provider_self_city\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_tax_provider_self_country(country_code, tax_country, opts = {}) ⇒ TaxCountry
Updates a Self tax provider country Updates a Self tax provider country.
1415 1416 1417 1418 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1415 def update_tax_provider_self_country(country_code, tax_country, opts = {}) data, _status_code, _headers = update_tax_provider_self_country_with_http_info(country_code, tax_country, opts) data end |
#update_tax_provider_self_country_with_http_info(country_code, tax_country, opts = {}) ⇒ Array<(TaxCountry, Integer, Hash)>
Updates a Self tax provider country Updates a Self tax provider country.
1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1426 def update_tax_provider_self_country_with_http_info(country_code, tax_country, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.update_tax_provider_self_country ...' end # verify the required parameter 'country_code' is set if @api_client.config.client_side_validation && country_code.nil? fail ArgumentError, "Missing the required parameter 'country_code' when calling TaxApi.update_tax_provider_self_country" end # verify the required parameter 'tax_country' is set if @api_client.config.client_side_validation && tax_country.nil? fail ArgumentError, "Missing the required parameter 'tax_country' when calling TaxApi.update_tax_provider_self_country" end # resource path local_var_path = '/tax/providers/self/country/{countryCode}'.sub('{' + 'countryCode' + '}', CGI.escape(country_code.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(tax_country) # return_type return_type = opts[:debug_return_type] || 'TaxCountry' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.update_tax_provider_self_country", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#update_tax_provider_self_country\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_tax_provider_self_county(county, tax_county, opts = {}) ⇒ TaxCounty
Updates a Self tax provider county Updates a Self tax provider county.
1490 1491 1492 1493 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1490 def update_tax_provider_self_county(county, tax_county, opts = {}) data, _status_code, _headers = update_tax_provider_self_county_with_http_info(county, tax_county, opts) data end |
#update_tax_provider_self_county_with_http_info(county, tax_county, opts = {}) ⇒ Array<(TaxCounty, Integer, Hash)>
Updates a Self tax provider county Updates a Self tax provider county.
1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1501 def update_tax_provider_self_county_with_http_info(county, tax_county, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.update_tax_provider_self_county ...' end # verify the required parameter 'county' is set if @api_client.config.client_side_validation && county.nil? fail ArgumentError, "Missing the required parameter 'county' when calling TaxApi.update_tax_provider_self_county" end # verify the required parameter 'tax_county' is set if @api_client.config.client_side_validation && tax_county.nil? fail ArgumentError, "Missing the required parameter 'tax_county' when calling TaxApi.update_tax_provider_self_county" end # resource path local_var_path = '/tax/providers/self/county/{county}'.sub('{' + 'county' + '}', CGI.escape(county.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(tax_county) # return_type return_type = opts[:debug_return_type] || 'TaxCounty' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.update_tax_provider_self_county", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#update_tax_provider_self_county\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_tax_provider_self_postal_code(postal_code, tax_postal_code, opts = {}) ⇒ TaxPostalCode
Updates a Self tax provider postalCode Updates a Self tax provider postalCode.
1565 1566 1567 1568 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1565 def update_tax_provider_self_postal_code(postal_code, tax_postal_code, opts = {}) data, _status_code, _headers = update_tax_provider_self_postal_code_with_http_info(postal_code, tax_postal_code, opts) data end |
#update_tax_provider_self_postal_code_with_http_info(postal_code, tax_postal_code, opts = {}) ⇒ Array<(TaxPostalCode, Integer, Hash)>
Updates a Self tax provider postalCode Updates a Self tax provider postalCode.
1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1576 def update_tax_provider_self_postal_code_with_http_info(postal_code, tax_postal_code, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.update_tax_provider_self_postal_code ...' end # verify the required parameter 'postal_code' is set if @api_client.config.client_side_validation && postal_code.nil? fail ArgumentError, "Missing the required parameter 'postal_code' when calling TaxApi.update_tax_provider_self_postal_code" end # verify the required parameter 'tax_postal_code' is set if @api_client.config.client_side_validation && tax_postal_code.nil? fail ArgumentError, "Missing the required parameter 'tax_postal_code' when calling TaxApi.update_tax_provider_self_postal_code" end # resource path local_var_path = '/tax/providers/self/postalCode/{postal_code}'.sub('{' + 'postal_code' + '}', CGI.escape(postal_code.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(tax_postal_code) # return_type return_type = opts[:debug_return_type] || 'TaxPostalCode' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.update_tax_provider_self_postal_code", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#update_tax_provider_self_postal_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_tax_provider_self_state(state_code, tax_state, opts = {}) ⇒ TaxState
Updates a Self tax provider state Updates a Self tax provider state.
1640 1641 1642 1643 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1640 def update_tax_provider_self_state(state_code, tax_state, opts = {}) data, _status_code, _headers = update_tax_provider_self_state_with_http_info(state_code, tax_state, opts) data end |
#update_tax_provider_self_state_with_http_info(state_code, tax_state, opts = {}) ⇒ Array<(TaxState, Integer, Hash)>
Updates a Self tax provider state Updates a Self tax provider state.
1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1651 def update_tax_provider_self_state_with_http_info(state_code, tax_state, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.update_tax_provider_self_state ...' end # verify the required parameter 'state_code' is set if @api_client.config.client_side_validation && state_code.nil? fail ArgumentError, "Missing the required parameter 'state_code' when calling TaxApi.update_tax_provider_self_state" end # verify the required parameter 'tax_state' is set if @api_client.config.client_side_validation && tax_state.nil? fail ArgumentError, "Missing the required parameter 'tax_state' when calling TaxApi.update_tax_provider_self_state" end # resource path local_var_path = '/tax/providers/self/state/{stateCode}'.sub('{' + 'stateCode' + '}', CGI.escape(state_code.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(tax_state) # return_type return_type = opts[:debug_return_type] || 'TaxState' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.update_tax_provider_self_state", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#update_tax_provider_self_state\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_tax_provider_self_with_http_info(tax_provider_self, opts = {}) ⇒ Array<(TaxProviderSelf, Integer, Hash)>
Update the Self tax provider Update the Self tax provider.
1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1280 def update_tax_provider_self_with_http_info(tax_provider_self, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.update_tax_provider_self ...' end # verify the required parameter 'tax_provider_self' is set if @api_client.config.client_side_validation && tax_provider_self.nil? fail ArgumentError, "Missing the required parameter 'tax_provider_self' when calling TaxApi.update_tax_provider_self" end # resource path local_var_path = '/tax/providers/self' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(tax_provider_self) # return_type return_type = opts[:debug_return_type] || 'TaxProviderSelf' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.update_tax_provider_self", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#update_tax_provider_self\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_tax_provider_sovos(tax_provider_sovos, opts = {}) ⇒ TaxProviderSovos
Update the Sovos tax provider Update the Sovos tax provider.
1714 1715 1716 1717 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1714 def update_tax_provider_sovos(tax_provider_sovos, opts = {}) data, _status_code, _headers = update_tax_provider_sovos_with_http_info(tax_provider_sovos, opts) data end |
#update_tax_provider_sovos_with_http_info(tax_provider_sovos, opts = {}) ⇒ Array<(TaxProviderSovos, Integer, Hash)>
Update the Sovos tax provider Update the Sovos tax provider.
1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1724 def update_tax_provider_sovos_with_http_info(tax_provider_sovos, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.update_tax_provider_sovos ...' end # verify the required parameter 'tax_provider_sovos' is set if @api_client.config.client_side_validation && tax_provider_sovos.nil? fail ArgumentError, "Missing the required parameter 'tax_provider_sovos' when calling TaxApi.update_tax_provider_sovos" end # resource path local_var_path = '/tax/providers/sovos' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(tax_provider_sovos) # return_type return_type = opts[:debug_return_type] || 'TaxProviderSovos' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.update_tax_provider_sovos", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#update_tax_provider_sovos\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_tax_provider_tax_jar(tax_provider_tax_jar, opts = {}) ⇒ TaxProviderTaxJar
Update the TaxJar tax provider Update the TaxJar tax provider.
1783 1784 1785 1786 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1783 def update_tax_provider_tax_jar(tax_provider_tax_jar, opts = {}) data, _status_code, _headers = update_tax_provider_tax_jar_with_http_info(tax_provider_tax_jar, opts) data end |
#update_tax_provider_tax_jar_with_http_info(tax_provider_tax_jar, opts = {}) ⇒ Array<(TaxProviderTaxJar, Integer, Hash)>
Update the TaxJar tax provider Update the TaxJar tax provider.
1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1793 def update_tax_provider_tax_jar_with_http_info(tax_provider_tax_jar, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.update_tax_provider_tax_jar ...' end # verify the required parameter 'tax_provider_tax_jar' is set if @api_client.config.client_side_validation && tax_provider_tax_jar.nil? fail ArgumentError, "Missing the required parameter 'tax_provider_tax_jar' when calling TaxApi.update_tax_provider_tax_jar" end # resource path local_var_path = '/tax/providers/taxjar' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(tax_provider_tax_jar) # return_type return_type = opts[:debug_return_type] || 'TaxProviderTaxJar' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.update_tax_provider_tax_jar", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#update_tax_provider_tax_jar\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_tax_provider_ultra_cart(tax_provider_ultracart, opts = {}) ⇒ TaxProviderUltraCart
Update the UltraCart tax provider Update the UltraCart tax provider.
1852 1853 1854 1855 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1852 def update_tax_provider_ultra_cart(tax_provider_ultracart, opts = {}) data, _status_code, _headers = update_tax_provider_ultra_cart_with_http_info(tax_provider_ultracart, opts) data end |
#update_tax_provider_ultra_cart_with_http_info(tax_provider_ultracart, opts = {}) ⇒ Array<(TaxProviderUltraCart, Integer, Hash)>
Update the UltraCart tax provider Update the UltraCart tax provider.
1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 |
# File 'lib/ultracart_api/api/tax_api.rb', line 1862 def update_tax_provider_ultra_cart_with_http_info(tax_provider_ultracart, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaxApi.update_tax_provider_ultra_cart ...' end # verify the required parameter 'tax_provider_ultracart' is set if @api_client.config.client_side_validation && tax_provider_ultracart.nil? fail ArgumentError, "Missing the required parameter 'tax_provider_ultracart' when calling TaxApi.update_tax_provider_ultra_cart" end # resource path local_var_path = '/tax/providers/ultracart' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(tax_provider_ultracart) # return_type return_type = opts[:debug_return_type] || 'TaxProviderUltraCart' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"TaxApi.update_tax_provider_ultra_cart", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaxApi#update_tax_provider_ultra_cart\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |