Skip to content

Commit cba303d

Browse files
authored
Merge pull request #1 from lidimayra/master
Update AvaTax to the latest version
2 parents 69822e9 + 8b6ac97 commit cba303d

40 files changed

+2747
-2581
lines changed

lib/avatax/client/accounts.rb

Lines changed: 83 additions & 83 deletions
Large diffs are not rendered by default.

lib/avatax/client/addresses.rb

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
module AvaTax
2-
class Client
3-
module Addresses
4-
5-
6-
# Retrieve geolocation information for a specified address
7-
#
1+
module AvaTax
2+
class Client
3+
module Addresses
4+
5+
6+
# Retrieve geolocation information for a specified address
7+
#
88
# Resolve an address against Avalara's address-validation system. If the address can be resolved, this API
99
# provides the latitude and longitude of the resolved location. The value 'resolutionQuality' can be used
1010
# to identify how closely this address can be located. If the address cannot be clearly located, use the
@@ -20,7 +20,7 @@ module Addresses
2020
# ### Security Policies
2121
#
2222
# * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
23-
# * This API depends on the following active services:*Required* (all): AutoAddress.
23+
# * This API depends on the following active services:*Required* (all): AutoAddress.
2424
# @param line1 [String] Line 1
2525
# @param line2 [String] Line 2
2626
# @param line3 [String] Line 3
@@ -29,12 +29,12 @@ module Addresses
2929
# @param postalCode [String] Postal Code / Zip Code
3030
# @param country [String] Two character ISO 3166 Country Code (see /api/v2/definitions/countries for a full list)
3131
# @param textCase [String] selectable text case for address validation (See TextCase::* for a list of allowable values)
32-
# @return [Object]
33-
def resolve_address(options={}) path = "/api/v2/addresses/resolve"
34-
get(path, options) end
35-
36-
# Retrieve geolocation information for a specified address
37-
#
32+
# @return [Object]
33+
def resolve_address(options={}) path = "/api/v2/addresses/resolve"
34+
get(path, options) end
35+
36+
# Retrieve geolocation information for a specified address
37+
#
3838
# Resolve an address against Avalara's address-validation system. If the address can be resolved, this API
3939
# provides the latitude and longitude of the resolved location. The value 'resolutionQuality' can be used
4040
# to identify how closely this address can be located. If the address cannot be clearly located, use the
@@ -45,11 +45,11 @@ def resolve_address(options={}) path = "/api/v2/addresses/resolve"
4545
# ### Security Policies
4646
#
4747
# * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
48-
# * This API depends on the following active services:*Required* (all): AutoAddress.
48+
# * This API depends on the following active services:*Required* (all): AutoAddress.
4949
# @param model [Object] The address to resolve
50-
# @return [Object]
51-
def resolve_address_post(model) path = "/api/v2/addresses/resolve"
52-
post(path, model) end
53-
end
54-
end
50+
# @return [Object]
51+
def resolve_address_post(model) path = "/api/v2/addresses/resolve"
52+
post(path, model) end
53+
end
54+
end
5555
end

lib/avatax/client/advancedrules.rb

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
1-
module AvaTax
2-
class Client
3-
module AdvancedRules
4-
5-
6-
# Create a lookup file for a company
7-
#
8-
#
1+
module AvaTax
2+
class Client
3+
module AdvancedRules
4+
5+
6+
# Create a lookup file for a company
7+
#
8+
#
99
# @param accountId [Integer] The ID of the account for the company
1010
# @param companyId [Integer] The ID of the company for which the lookup file is to be created
1111
# @param model [Object] The lookup file you wish to create
12-
# @return [Object]
13-
def create_company_lookup_file(accountId, companyId, model) path = "/api/v2/advancedrules/accounts/#{accountId}/companies/#{companyId}/lookupFiles"
14-
post(path, model) end
15-
16-
# Delete a lookup file
17-
#
18-
#
12+
# @return [Object]
13+
def create_company_lookup_file(accountId, companyId, model) path = "/api/v2/advancedrules/accounts/#{accountId}/companies/#{companyId}/lookupFiles"
14+
post(path, model) end
15+
16+
# Delete a lookup file
17+
#
18+
#
1919
# @param accountId [Integer] The ID of the account for the company the lookup file is for
2020
# @param id [String] The unique ID/GUID for the company lookup file to be deleted
21-
# @return [ErrorDetail[]]
22-
def delete_lookup_file(accountId, id) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
23-
delete(path) end
24-
25-
# Get the lookup files for a company
26-
#
27-
#
21+
# @return [ErrorDetail[]]
22+
def delete_lookup_file(accountId, id) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
23+
delete(path) end
24+
25+
# Get the lookup files for a company
26+
#
27+
#
2828
# @param accountId [Integer] The account ID for the company
2929
# @param companyId [Integer] The ID of the company for which to retrieve lookup files
30-
# @return [FetchResult]
31-
def get_company_lookup_files(accountId, companyId) path = "/api/v2/advancedrules/accounts/#{accountId}/companies/#{companyId}/lookupFiles"
32-
get(path) end
33-
34-
# Get a lookup file for an accountId and companyLookupFileId
35-
#
36-
#
30+
# @return [FetchResult]
31+
def get_company_lookup_files(accountId, companyId) path = "/api/v2/advancedrules/accounts/#{accountId}/companies/#{companyId}/lookupFiles"
32+
get(path) end
33+
34+
# Get a lookup file for an accountId and companyLookupFileId
35+
#
36+
#
3737
# @param accountId [Integer] The ID of the account for the lookup file
3838
# @param id [String] The unique ID/GUID of the company lookup file to return
39-
# @return [Object]
40-
def get_lookup_file(accountId, id) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
41-
get(path) end
42-
43-
# Update a lookup file
44-
#
45-
#
39+
# @return [Object]
40+
def get_lookup_file(accountId, id) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
41+
get(path) end
42+
43+
# Update a lookup file
44+
#
45+
#
4646
# @param accountId [Integer] The ID of the account for the company the lookup file is for
4747
# @param id [String] The unique ID/GUID of the company lookup file to be updated
4848
# @param model [Object] The new values to update the lookup file
49-
# @return [Object]
50-
def update_lookup_file(accountId, id, model) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
51-
put(path, model) end
52-
end
53-
end
49+
# @return [Object]
50+
def update_lookup_file(accountId, id, model) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
51+
put(path, model) end
52+
end
53+
end
5454
end

lib/avatax/client/avafileforms.rb

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,79 @@
1-
module AvaTax
2-
class Client
3-
module AvaFileForms
4-
5-
6-
# Create a new AvaFileForm
7-
#
1+
module AvaTax
2+
class Client
3+
module AvaFileForms
4+
5+
6+
# Create a new AvaFileForm
7+
#
88
# Create one or more AvaFileForms
99
# A 'AvaFileForm' represents a form supported by our returns team
1010
#
1111
# ### Security Policies
1212
#
1313
# * This API requires the user role Compliance Root User.
14-
# * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
14+
# * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
1515
# @param model [AvaFileFormModel[]] The AvaFileForm you wish to create.
16-
# @return [AvaFileFormModel[]]
17-
def create_ava_file_forms(model) path = "/api/v2/avafileforms"
18-
post(path, model) end
19-
20-
# Delete a single AvaFileForm
21-
#
16+
# @return [AvaFileFormModel[]]
17+
def create_ava_file_forms(model) path = "/api/v2/avafileforms"
18+
post(path, model) end
19+
20+
# Delete a single AvaFileForm
21+
#
2222
# Marks the existing AvaFileForm object at this URL as deleted.
2323
#
2424
# ### Security Policies
2525
#
2626
# * This API requires one of the following user roles: Compliance Root User, ComplianceUser, FirmAdmin.
27-
# * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
27+
# * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
2828
# @param id [Integer] The ID of the AvaFileForm you wish to delete.
29-
# @return [ErrorDetail[]]
30-
def delete_ava_file_form(id) path = "/api/v2/avafileforms/#{id}"
31-
delete(path) end
32-
33-
# Retrieve a single AvaFileForm
34-
#
29+
# @return [ErrorDetail[]]
30+
def delete_ava_file_form(id) path = "/api/v2/avafileforms/#{id}"
31+
delete(path) end
32+
33+
# Retrieve a single AvaFileForm
34+
#
3535
# Get the AvaFileForm object identified by this URL.
3636
#
3737
# ### Security Policies
3838
#
3939
# * This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CompanyUser, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, FirmAdmin, FirmUser, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin.
40-
# * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
40+
# * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
4141
# @param id [Integer] The primary key of this AvaFileForm
42-
# @return [Object]
43-
def get_ava_file_form(id) path = "/api/v2/avafileforms/#{id}"
44-
get(path) end
45-
46-
# Retrieve all AvaFileForms
47-
#
42+
# @return [Object]
43+
def get_ava_file_form(id) path = "/api/v2/avafileforms/#{id}"
44+
get(path) end
45+
46+
# Retrieve all AvaFileForms
47+
#
4848
# Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
4949
# Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
5050
#
5151
# ### Security Policies
5252
#
5353
# * This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CompanyUser, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, FirmAdmin, FirmUser, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin.
54-
# * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
54+
# * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
5555
# @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).<br />*Not filterable:* outletTypeId
5656
# @param top [Integer] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
5757
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
5858
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
59-
# @return [FetchResult]
60-
def query_ava_file_forms(options={}) path = "/api/v2/avafileforms"
61-
get(path, options) end
62-
63-
# Update a AvaFileForm
64-
#
59+
# @return [FetchResult]
60+
def query_ava_file_forms(options={}) path = "/api/v2/avafileforms"
61+
get(path, options) end
62+
63+
# Update a AvaFileForm
64+
#
6565
# All data from the existing object will be replaced with data in the object you PUT.
6666
# To set a field's value to null, you may either set its value to null or omit that field from the object you post.
6767
#
6868
# ### Security Policies
6969
#
7070
# * This API requires the user role Compliance Root User.
71-
# * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
71+
# * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
7272
# @param id [Integer] The ID of the AvaFileForm you wish to update
7373
# @param model [Object] The AvaFileForm model you wish to update.
74-
# @return [Object]
75-
def update_ava_file_form(id, model) path = "/api/v2/avafileforms/#{id}"
76-
put(path, model) end
77-
end
78-
end
74+
# @return [Object]
75+
def update_ava_file_form(id, model) path = "/api/v2/avafileforms/#{id}"
76+
put(path, model) end
77+
end
78+
end
7979
end

0 commit comments

Comments
 (0)