lib/avatax/client/taxcontent.rb in avatax-20.7.0 vs lib/avatax/client/taxcontent.rb in avatax-20.7.1

- old
+ new

@@ -33,16 +33,13 @@ # # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. # * This API depends on the following active services<br />*Required* (all): AvaTaxPro. # @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) - end + def build_tax_content_file(model) path = "/api/v2/pointofsaledata/build" + post(path, model) 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. # # Since tax rates may change based on decisions made by a variety of tax authorities, we recommend @@ -76,16 +73,13 @@ # @param date [DateTime] The date for which point-of-sale data would be calculated (today by default) # @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) - end + def build_tax_content_file_for_location(companyId, id, options={}) path = "/api/v2/companies/#{companyId}/locations/#{id}/pointofsaledata" + get(path, options) 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. # @@ -131,13 +125,10 @@ # # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. # @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) - end - + def download_tax_rates_by_zip_code(date, options={}) path = "/api/v2/taxratesbyzipcode/download/#{date}" + get(path, options) end end end end \ No newline at end of file