lib/avatax/client/taxcontent.rb in avatax-22.3.0 vs lib/avatax/client/taxcontent.rb in avatax-22.5.0
- old
+ new
@@ -35,11 +35,11 @@
# * This API depends on the following active services:*Required* (all): AvaTaxPro.
# Swagger Name: AvaTaxClient
# @param model [Object] Parameters about the desired file format and report format, specifying which company, locations and TaxCodes to include.
# @return [Object]
def build_tax_content_file(model) path = "/api/v2/pointofsaledata/build"
- post(path, model, {}, "22.3.0") end
+ post(path, model, {}, "22.5.0") end
# Build a tax content file for a single location
#
# Builds a tax content file containing information useful for a retail point-of-sale solution.
#
@@ -76,11 +76,11 @@
# @param format [String] The format of the file (JSON by default) (See PointOfSaleFileType::* for a list of allowable values)
# @param partnerId [String] If specified, requests a custom partner-formatted version of the file. (See PointOfSalePartnerId::* for a list of allowable values)
# @param includeJurisCodes [Boolean] When true, the file will include jurisdiction codes in the result.
# @return [Object]
def build_tax_content_file_for_location(companyId, id, options={}) path = "/api/v2/companies/#{companyId}/locations/#{id}/pointofsaledata"
- get(path, options, "22.3.0") end
+ get(path, options, "22.5.0") end
# Download a file listing tax rates by postal code
#
# Download a CSV file containing all five digit postal codes in the United States and their sales
# and use tax rates for tangible personal property.
@@ -129,11 +129,11 @@
# Swagger Name: AvaTaxClient
# @param date [DateTime] The date for which point-of-sale data would be calculated (today by default). Example input: 2016-12-31
# @param region [String] A two character region code which limits results to a specific region.
# @return [Object]
def download_tax_rates_by_zip_code(date, options={}) path = "/api/v2/taxratesbyzipcode/download/#{date}"
- get(path, options, "22.3.0") end
+ get(path, options, "22.5.0") end
# Sales tax rates for a specified address
#
# Usage of this API is subject to rate limits. Users who exceed the rate limit will receive HTTP
# response code 429 - `Too Many Requests`.
@@ -163,11 +163,11 @@
# @param region [String] Name or ISO 3166 code identifying the region within the country. This field supports many different region identifiers: * Two and three character ISO 3166 region codes * Fully spelled out names of the region in ISO supported languages * Common alternative spellings for many regions For a full list of all supported codes and names, please see the Definitions API `ListRegions`.
# @param postalCode [String] The postal code of the location.
# @param country [String] Name or ISO 3166 code identifying the country. This field supports many different country identifiers: * Two character ISO 3166 codes * Three character ISO 3166 codes * Fully spelled out names of the country in ISO supported languages * Common alternative spellings for many countries For a full list of all supported codes and names, please see the Definitions API `ListCountries`.
# @return [Object]
def tax_rates_by_address(options={}) path = "/api/v2/taxrates/byaddress"
- get(path, options, "22.3.0") end
+ get(path, options, "22.5.0") end
# Sales tax rates for a specified country and postal code. This API is only available for US postal codes.
#
# This API is only available for a US postal codes.
#
@@ -194,9 +194,9 @@
# Swagger Name: AvaTaxClient
# @param country [String] Name or ISO 3166 code identifying the country. This field supports many different country identifiers: * Two character ISO 3166 codes * Three character ISO 3166 codes * Fully spelled out names of the country in ISO supported languages * Common alternative spellings for many countries For a full list of all supported codes and names, please see the Definitions API `ListCountries`.
# @param postalCode [String] The postal code of the location.
# @return [Object]
def tax_rates_by_postal_code(options={}) path = "/api/v2/taxrates/bypostalcode"
- get(path, options, "22.3.0") end
+ get(path, options, "22.5.0") end
end
end
end
\ No newline at end of file