avatax 20.5.0 → 20.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.vs/slnx.sqlite +0 -0
- data/avatax.gemspec +0 -1
- data/lib/avatax/client/accounts.rb +83 -83
- data/lib/avatax/client/addresses.rb +21 -21
- data/lib/avatax/client/advancedrules.rb +51 -41
- data/lib/avatax/client/avafileforms.rb +41 -41
- data/lib/avatax/client/batches.rb +101 -48
- data/lib/avatax/client/certexpressinvites.rb +39 -39
- data/lib/avatax/client/certificates.rb +163 -163
- data/lib/avatax/client/companies.rb +226 -121
- data/lib/avatax/client/compliance.rb +13 -13
- data/lib/avatax/client/contacts.rb +48 -48
- data/lib/avatax/client/customers.rb +145 -145
- data/lib/avatax/client/datasources.rb +48 -48
- data/lib/avatax/client/definitions.rb +422 -420
- data/lib/avatax/client/distancethresholds.rb +48 -48
- data/lib/avatax/client/ecms.rb +26 -31
- data/lib/avatax/client/ecommercetoken.rb +37 -0
- data/lib/avatax/client/errortransactions.rb +27 -15
- data/lib/avatax/client/filingcalendars.rb +28 -13
- data/lib/avatax/client/filings.rb +25 -14
- data/lib/avatax/client/firmclientlinkages.rb +69 -69
- data/lib/avatax/client/free.rb +27 -27
- data/lib/avatax/client/fundingrequests.rb +20 -20
- data/lib/avatax/client/items.rb +139 -139
- data/lib/avatax/client/jurisdictionoverrides.rb +48 -48
- data/lib/avatax/client/locations.rb +168 -57
- data/lib/avatax/client/multidocument.rb +98 -78
- data/lib/avatax/client/nexus.rb +104 -104
- data/lib/avatax/client/notices.rb +47 -139
- data/lib/avatax/client/notifications.rb +27 -27
- data/lib/avatax/client/provisioning.rb +20 -20
- data/lib/avatax/client/registrar.rb +76 -76
- data/lib/avatax/client/reports.rb +34 -34
- data/lib/avatax/client/settings.rb +48 -48
- data/lib/avatax/client/subscriptions.rb +27 -27
- data/lib/avatax/client/taxcodes.rb +48 -48
- data/lib/avatax/client/taxcontent.rb +27 -27
- data/lib/avatax/client/taxprofiles.rb +14 -10
- data/lib/avatax/client/taxrules.rb +48 -48
- data/lib/avatax/client/transactions.rb +185 -155
- data/lib/avatax/client/upcs.rb +48 -48
- data/lib/avatax/client/users.rb +62 -62
- data/lib/avatax/client/utilities.rb +27 -27
- data/lib/avatax/connection.rb +2 -2
- data/lib/avatax/version.rb +1 -1
- metadata +3 -16
@@ -1,10 +1,10 @@
|
|
1
|
-
module AvaTax
|
2
|
-
class Client
|
3
|
-
module DistanceThresholds
|
4
|
-
|
5
|
-
|
6
|
-
# Create one or more DistanceThreshold objects
|
7
|
-
#
|
1
|
+
module AvaTax
|
2
|
+
class Client
|
3
|
+
module DistanceThresholds
|
4
|
+
|
5
|
+
|
6
|
+
# Create one or more DistanceThreshold objects
|
7
|
+
#
|
8
8
|
# Create one or more DistanceThreshold objects for this company.
|
9
9
|
#
|
10
10
|
# A company-distance-threshold model indicates the distance between a company
|
@@ -13,15 +13,15 @@ module AvaTax
|
|
13
13
|
#
|
14
14
|
# ### Security Policies
|
15
15
|
#
|
16
|
-
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
16
|
+
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
17
17
|
# @param companyId [Integer] The unique ID number of the company that owns this DistanceThreshold
|
18
18
|
# @param model [CompanyDistanceThresholdModel[]] The DistanceThreshold object or objects you wish to create.
|
19
|
-
# @return [CompanyDistanceThresholdModel[]]
|
20
|
-
def create_distance_threshold(companyId, model) path = "/api/v2/companies/#{companyId}/distancethresholds"
|
21
|
-
post(path, model) end
|
22
|
-
|
23
|
-
# Delete a single DistanceThreshold object
|
24
|
-
#
|
19
|
+
# @return [CompanyDistanceThresholdModel[]]
|
20
|
+
def create_distance_threshold(companyId, model) path = "/api/v2/companies/#{companyId}/distancethresholds"
|
21
|
+
post(path, model) end
|
22
|
+
|
23
|
+
# Delete a single DistanceThreshold object
|
24
|
+
#
|
25
25
|
# Marks the DistanceThreshold object identified by this URL as deleted.
|
26
26
|
#
|
27
27
|
# A company-distance-threshold model indicates the distance between a company
|
@@ -30,15 +30,15 @@ module AvaTax
|
|
30
30
|
#
|
31
31
|
# ### Security Policies
|
32
32
|
#
|
33
|
-
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
33
|
+
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
34
34
|
# @param companyId [Integer] The unique ID number of the company that owns this DistanceThreshold
|
35
35
|
# @param id [Integer] The unique ID number of the DistanceThreshold object you wish to delete.
|
36
|
-
# @return [ErrorDetail[]]
|
37
|
-
def delete_distance_threshold(companyId, id) path = "/api/v2/companies/#{companyId}/distancethresholds/#{id}"
|
38
|
-
delete(path) end
|
39
|
-
|
40
|
-
# Retrieve a single DistanceThreshold
|
41
|
-
#
|
36
|
+
# @return [ErrorDetail[]]
|
37
|
+
def delete_distance_threshold(companyId, id) path = "/api/v2/companies/#{companyId}/distancethresholds/#{id}"
|
38
|
+
delete(path) end
|
39
|
+
|
40
|
+
# Retrieve a single DistanceThreshold
|
41
|
+
#
|
42
42
|
# Retrieves a single DistanceThreshold object defined by this URL.
|
43
43
|
#
|
44
44
|
# A company-distance-threshold model indicates the distance between a company
|
@@ -47,15 +47,15 @@ module AvaTax
|
|
47
47
|
#
|
48
48
|
# ### Security Policies
|
49
49
|
#
|
50
|
-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
50
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
51
51
|
# @param companyId [Integer] The ID of the company that owns this DistanceThreshold object
|
52
52
|
# @param id [Integer] The unique ID number referring to this DistanceThreshold object
|
53
|
-
# @return [Object]
|
54
|
-
def get_distance_threshold(companyId, id) path = "/api/v2/companies/#{companyId}/distancethresholds/#{id}"
|
55
|
-
get(path) end
|
56
|
-
|
57
|
-
# Retrieve all DistanceThresholds for this company.
|
58
|
-
#
|
53
|
+
# @return [Object]
|
54
|
+
def get_distance_threshold(companyId, id) path = "/api/v2/companies/#{companyId}/distancethresholds/#{id}"
|
55
|
+
get(path) end
|
56
|
+
|
57
|
+
# Retrieve all DistanceThresholds for this company.
|
58
|
+
#
|
59
59
|
# Lists all DistanceThreshold objects that belong to this company.
|
60
60
|
#
|
61
61
|
# A company-distance-threshold model indicates the distance between a company
|
@@ -64,19 +64,19 @@ module AvaTax
|
|
64
64
|
#
|
65
65
|
# ### Security Policies
|
66
66
|
#
|
67
|
-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
67
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
68
68
|
# @param companyId [Integer] The ID of the company whose DistanceThreshold objects you wish to list.
|
69
69
|
# @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/).
|
70
70
|
# @param include [String] A comma separated list of additional data to retrieve.
|
71
71
|
# @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.
|
72
72
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
73
73
|
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
74
|
-
# @return [FetchResult]
|
75
|
-
def list_distance_thresholds(companyId, options={}) path = "/api/v2/companies/#{companyId}/distancethresholds"
|
76
|
-
get(path, options) end
|
77
|
-
|
78
|
-
# Retrieve all DistanceThreshold objects
|
79
|
-
#
|
74
|
+
# @return [FetchResult]
|
75
|
+
def list_distance_thresholds(companyId, options={}) path = "/api/v2/companies/#{companyId}/distancethresholds"
|
76
|
+
get(path, options) end
|
77
|
+
|
78
|
+
# Retrieve all DistanceThreshold objects
|
79
|
+
#
|
80
80
|
# Lists all DistanceThreshold objects that belong to this account.
|
81
81
|
#
|
82
82
|
# A company-distance-threshold model indicates the distance between a company
|
@@ -88,18 +88,18 @@ module AvaTax
|
|
88
88
|
#
|
89
89
|
# ### Security Policies
|
90
90
|
#
|
91
|
-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
91
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
92
92
|
# @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/).
|
93
93
|
# @param include [String] A comma separated list of additional data to retrieve.
|
94
94
|
# @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.
|
95
95
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
96
96
|
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
97
|
-
# @return [FetchResult]
|
98
|
-
def query_distance_thresholds(options={}) path = "/api/v2/distancethresholds"
|
99
|
-
get(path, options) end
|
100
|
-
|
101
|
-
# Update a DistanceThreshold object
|
102
|
-
#
|
97
|
+
# @return [FetchResult]
|
98
|
+
def query_distance_thresholds(options={}) path = "/api/v2/distancethresholds"
|
99
|
+
get(path, options) end
|
100
|
+
|
101
|
+
# Update a DistanceThreshold object
|
102
|
+
#
|
103
103
|
# Replace the existing DistanceThreshold object at this URL with an updated object.
|
104
104
|
#
|
105
105
|
# A company-distance-threshold model indicates the distance between a company
|
@@ -111,13 +111,13 @@ module AvaTax
|
|
111
111
|
#
|
112
112
|
# ### Security Policies
|
113
113
|
#
|
114
|
-
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
114
|
+
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
115
115
|
# @param companyId [Integer] The unique ID number of the company that owns this DistanceThreshold object.
|
116
116
|
# @param id [Integer] The unique ID number of the DistanceThreshold object to replace.
|
117
117
|
# @param model [Object] The new DistanceThreshold object to store.
|
118
|
-
# @return [Object]
|
119
|
-
def update_distance_threshold(companyId, id, model) path = "/api/v2/companies/#{companyId}/distancethresholds/#{id}"
|
120
|
-
put(path, model) end
|
121
|
-
end
|
122
|
-
end
|
118
|
+
# @return [Object]
|
119
|
+
def update_distance_threshold(companyId, id, model) path = "/api/v2/companies/#{companyId}/distancethresholds/#{id}"
|
120
|
+
put(path, model) end
|
121
|
+
end
|
122
|
+
end
|
123
123
|
end
|
data/lib/avatax/client/ecms.rb
CHANGED
@@ -1,17 +1,6 @@
|
|
1
1
|
module AvaTax
|
2
2
|
class Client
|
3
|
-
module
|
4
|
-
|
5
|
-
|
6
|
-
# Bridge API for integration of validated certificates
|
7
|
-
#
|
8
|
-
# This API is for use by invitation only.
|
9
|
-
# @param model [EcmsModel[]] Either a single exempt certificate or an array of certificates to create
|
10
|
-
# @return [EcmsModel[]]
|
11
|
-
def cert_capture_bridge(model)
|
12
|
-
path = "/api/v2/certcapturebridge"
|
13
|
-
post(path, model)
|
14
|
-
end
|
3
|
+
module Ecms
|
15
4
|
|
16
5
|
|
17
6
|
# Get an ECMS identified by company id and ECMS id
|
@@ -22,15 +11,17 @@ module AvaTax
|
|
22
11
|
# You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:
|
23
12
|
#
|
24
13
|
# * Details
|
14
|
+
#
|
15
|
+
# ### Security Policies
|
16
|
+
#
|
17
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
18
|
+
# * This API depends on the following active services<br />*Required* (all): AvaCert.
|
25
19
|
# @param companyId [Integer] company to retrieve exempt certificate for
|
26
20
|
# @param ecmsId [Integer] exempt certificate Id
|
27
21
|
# @param include [String]
|
28
22
|
# @return [Object]
|
29
|
-
def get_e_c_m_s_by_id(companyId, ecmsId, options={})
|
30
|
-
path
|
31
|
-
get(path, options)
|
32
|
-
end
|
33
|
-
|
23
|
+
def get_e_c_m_s_by_id(companyId, ecmsId, options={}) path = "/api/v2/companies/#{companyId}/ecms/#{ecmsId}"
|
24
|
+
get(path, options) end
|
34
25
|
|
35
26
|
# Get list of ECMS data for this company
|
36
27
|
#
|
@@ -40,18 +31,20 @@ module AvaTax
|
|
40
31
|
# You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:
|
41
32
|
#
|
42
33
|
# * Details
|
34
|
+
#
|
35
|
+
# ### Security Policies
|
36
|
+
#
|
37
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
38
|
+
# * This API depends on the following active services<br />*Required* (all): AvaCert.
|
43
39
|
# @param companyId [Integer] which company to retrieve certificates from
|
44
|
-
# @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/)
|
40
|
+
# @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:* details
|
45
41
|
# @param include [String]
|
46
42
|
# @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.
|
47
43
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
48
44
|
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
49
|
-
# @return [
|
50
|
-
def list_e_c_m_s_by_company(companyId, options={})
|
51
|
-
path
|
52
|
-
get(path, options)
|
53
|
-
end
|
54
|
-
|
45
|
+
# @return [FetchResult]
|
46
|
+
def list_e_c_m_s_by_company(companyId, options={}) path = "/api/v2/companies/#{companyId}/ecms"
|
47
|
+
get(path, options) end
|
55
48
|
|
56
49
|
# Get all exempt certificates
|
57
50
|
#
|
@@ -63,17 +56,19 @@ module AvaTax
|
|
63
56
|
# You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:
|
64
57
|
#
|
65
58
|
# * Details
|
66
|
-
#
|
59
|
+
#
|
60
|
+
# ### Security Policies
|
61
|
+
#
|
62
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
63
|
+
# * This API depends on the following active services<br />*Required* (all): AvaCert.
|
64
|
+
# @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:* details
|
67
65
|
# @param include [String]
|
68
66
|
# @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.
|
69
67
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
70
68
|
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
71
|
-
# @return [
|
72
|
-
def query_e_c_m_s(options={})
|
73
|
-
path
|
74
|
-
get(path, options)
|
75
|
-
end
|
76
|
-
|
69
|
+
# @return [FetchResult]
|
70
|
+
def query_e_c_m_s(options={}) path = "/api/v2/ecms"
|
71
|
+
get(path, options) end
|
77
72
|
end
|
78
73
|
end
|
79
74
|
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module AvaTax
|
2
|
+
class Client
|
3
|
+
module ECommerceToken
|
4
|
+
|
5
|
+
|
6
|
+
# Create a new eCommerce token.
|
7
|
+
#
|
8
|
+
# Creates a new eCommerce token.
|
9
|
+
#
|
10
|
+
# This API is used to create a new eCommerce token. An eCommerce token is required in order to launch the CertCapture eCommerce plugin. Create a token for each of your CertCapture customers.
|
11
|
+
#
|
12
|
+
# ### Security Policies
|
13
|
+
#
|
14
|
+
# * 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.
|
15
|
+
# @param companyId [Integer] The company ID that will be issued this certificate.
|
16
|
+
# @param model [Object]
|
17
|
+
# @return [Object]
|
18
|
+
def create_e_commerce_token(companyId, model) path = "/api/v2/companies/#{companyId}/ecommercetokens"
|
19
|
+
post(path, model) end
|
20
|
+
|
21
|
+
# Refresh an eCommerce token.
|
22
|
+
#
|
23
|
+
# Refresh an eCommerce token.
|
24
|
+
#
|
25
|
+
# CertCapture eCommerce tokens expire after one hour. This API is used to refresh an eCommerce token that is about to expire. This API can only be used with active tokens. If your token has expired, you must generate a new one.
|
26
|
+
#
|
27
|
+
# ### Security Policies
|
28
|
+
#
|
29
|
+
# * 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.
|
30
|
+
# @param companyId [Integer] The company ID that the refreshed certificate belongs to.
|
31
|
+
# @param model [Object]
|
32
|
+
# @return [FetchResult]
|
33
|
+
def refresh_e_commerce_token(companyId, model) path = "/api/v2/companies/#{companyId}/ecommercetokens"
|
34
|
+
put(path, model) end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -12,20 +12,35 @@ module AvaTax
|
|
12
12
|
# ### Security Policies
|
13
13
|
#
|
14
14
|
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
15
|
-
# * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
|
15
|
+
# * This API depends on the following active services<br />*Required* (all): AvaTaxPro, BasicReturns.
|
16
|
+
# @param companyId [Integer] ID number of the company to delete error transactions from.
|
16
17
|
# @param model [Object] The request that contains error transactions to be deleted
|
17
18
|
# @return [Object]
|
18
|
-
def delete_error_transactions(model)
|
19
|
-
path
|
20
|
-
delete(path, model)
|
21
|
-
end
|
19
|
+
def delete_error_transactions(companyId, model) path = "/api/v2/companies/#{companyId}/errortransactions"
|
20
|
+
delete(path, model) end
|
22
21
|
|
22
|
+
# Get a list of error transactions' error codes and its counts
|
23
|
+
#
|
24
|
+
# Get a list of error transactions' error codes and their counts
|
25
|
+
# When you try to create or adjust a transaction with a datasource for a company and for any reason that call fails with an error,
|
26
|
+
# those errors with their count can be retrieved by this API.
|
27
|
+
#
|
28
|
+
# ### Security Policies
|
29
|
+
#
|
30
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
31
|
+
# * This API depends on the following active services<br />*Required* (all): AvaTaxPro, BasicReturns.
|
32
|
+
# @param companyId [Integer] ID number of the company to query from.
|
33
|
+
# @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.
|
34
|
+
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
35
|
+
# @return [CappedFetchResult]
|
36
|
+
def list_error_codes(companyId, options={}) path = "/api/v2/companies/#{companyId}/errortransactions/errorcodes"
|
37
|
+
get(path, options) end
|
23
38
|
|
24
39
|
# Retrieve list of error transactions
|
25
40
|
#
|
26
41
|
# List error transactions attached to this company. Results are dependent on `$filter` if provided.
|
27
42
|
#
|
28
|
-
# This endpoint is limited to returning
|
43
|
+
# This endpoint is limited to returning 1000 error transactions at a time maximum.
|
29
44
|
#
|
30
45
|
# 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/) .
|
31
46
|
# Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
|
@@ -33,18 +48,15 @@ module AvaTax
|
|
33
48
|
# ### Security Policies
|
34
49
|
#
|
35
50
|
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
36
|
-
# * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
|
37
|
-
# @param
|
38
|
-
# @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:* companyId, avataxErrorJson, avataxCreateTransactionJson
|
51
|
+
# * This API depends on the following active services<br />*Required* (all): AvaTaxPro, BasicReturns.
|
52
|
+
# @param companyId [Integer] The company ID to filter error transactions on.
|
53
|
+
# @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:* companyId, avataxErrorJson, avataxCreateTransactionJson, expiresAt
|
39
54
|
# @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.
|
40
55
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
41
56
|
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
42
|
-
# @return [
|
43
|
-
def list_error_transactions(options={})
|
44
|
-
path
|
45
|
-
get(path, options)
|
46
|
-
end
|
47
|
-
|
57
|
+
# @return [CappedFetchResult]
|
58
|
+
def list_error_transactions(companyId, options={}) path = "/api/v2/companies/#{companyId}/errortransactions"
|
59
|
+
get(path, options) end
|
48
60
|
end
|
49
61
|
end
|
50
62
|
end
|
@@ -1,21 +1,36 @@
|
|
1
|
-
module AvaTax
|
2
|
-
class Client
|
3
|
-
module FilingCalendars
|
4
|
-
|
5
|
-
|
6
|
-
#
|
7
|
-
#
|
1
|
+
module AvaTax
|
2
|
+
class Client
|
3
|
+
module FilingCalendars
|
4
|
+
|
5
|
+
|
6
|
+
# Add or Edit options
|
7
|
+
#
|
8
|
+
# Returns a list of options for adding tax forms for the company and tax form code specified.
|
9
|
+
# Returns edit options when modifying a filing calendar.
|
10
|
+
# This API is available by invitation only.
|
11
|
+
#
|
12
|
+
# ### Security Policies
|
13
|
+
#
|
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.
|
15
|
+
# @param companyId [Integer] The unique ID of the company that owns the filing calendar object
|
16
|
+
# @param model [Object] Cycle Safe Options Request
|
17
|
+
# @return [Object]
|
18
|
+
def cycle_safe_options(companyId, model) path = "/api/v2/companies/#{companyId}/filingcalendars/edit/cycleSafeOptions"
|
19
|
+
post(path, model) end
|
20
|
+
|
21
|
+
# Delete a company return setting
|
22
|
+
#
|
8
23
|
# This API is available by invitation only and only available for users with Compliance access
|
9
24
|
#
|
10
25
|
# ### Security Policies
|
11
26
|
#
|
12
|
-
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPTester, FirmAdmin, FirmUser, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
27
|
+
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPTester, FirmAdmin, FirmUser, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
13
28
|
# @param companyId [Integer] The unique ID of the company
|
14
29
|
# @param filingCalendarId [Integer] The unique ID of the filing calendar that will remove setting
|
15
30
|
# @param companyReturnSettingId [Integer] The unique ID of the company return setting that will be deleted from the filing calendar
|
16
|
-
# @return [CompanyReturnSettingModel[]]
|
17
|
-
def delete_company_return_settings(companyId, filingCalendarId, companyReturnSettingId) path = "/api/v2/companies/#{companyId}/filingcalendars/#{filingCalendarId}/setting/#{companyReturnSettingId}"
|
18
|
-
delete(path) end
|
19
|
-
end
|
20
|
-
end
|
31
|
+
# @return [CompanyReturnSettingModel[]]
|
32
|
+
def delete_company_return_settings(companyId, filingCalendarId, companyReturnSettingId) path = "/api/v2/companies/#{companyId}/filingcalendars/#{filingCalendarId}/setting/#{companyReturnSettingId}"
|
33
|
+
delete(path) end
|
34
|
+
end
|
35
|
+
end
|
21
36
|
end
|
@@ -1,15 +1,26 @@
|
|
1
|
-
module AvaTax
|
2
|
-
class Client
|
3
|
-
module Filings
|
4
|
-
|
5
|
-
|
6
|
-
# Retrieve a
|
7
|
-
#
|
1
|
+
module AvaTax
|
2
|
+
class Client
|
3
|
+
module Filings
|
4
|
+
|
5
|
+
|
6
|
+
# Retrieve a filing containing the return and all its accrual returns.
|
7
|
+
#
|
8
|
+
# ### Security Policies
|
9
|
+
#
|
10
|
+
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPTester, FirmAdmin, FirmUser, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
11
|
+
# @param companyId [Integer] The ID of the company that owns these returns
|
12
|
+
# @param filingReturnId [Integer] The ID of the filing return
|
13
|
+
# @return [FetchResult]
|
14
|
+
def get_accrual_filings(companyId, filingReturnId) path = "/api/v2/companies/#{companyId}/filings/accrual/#{filingReturnId}"
|
15
|
+
get(path) end
|
16
|
+
|
17
|
+
# Retrieve a list of filed returns for the specified company in the year and month of a given filing period.
|
18
|
+
#
|
8
19
|
# ### Security Policies
|
9
20
|
#
|
10
21
|
# * 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.
|
11
|
-
# * This API is available by invitation only
|
12
|
-
# * This API depends on the following active services
|
22
|
+
# * This API is available by invitation only.*Exempt security roles*: ComplianceRootUser, ComplianceAdmin, ComplianceUser, TechnicalSupportAdmin, TechnicalSupportUser, CompanyUser, AccountUser, CompanyAdmin, AccountAdmin.
|
23
|
+
# * 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.
|
13
24
|
# @param companyId [Integer] The ID of the company that owns these batches
|
14
25
|
# @param endPeriodMonth [Integer] The month of the period you are trying to retrieve
|
15
26
|
# @param endPeriodYear [Integer] The year of the period you are trying to retrieve
|
@@ -19,9 +30,9 @@ module AvaTax
|
|
19
30
|
# @param region [String] The region of the return(s) you are trying to retrieve
|
20
31
|
# @param filingCalendarId [Integer] The filing calendar id of the return you are trying to retrieve
|
21
32
|
# @param taxformCode [String] The unique tax form code of the form.
|
22
|
-
# @return [FetchResult]
|
23
|
-
def get_filed_returns(companyId, options={}) path = "/api/v2/companies/#{companyId}/filings/returns/filed"
|
24
|
-
get(path, options) end
|
25
|
-
end
|
26
|
-
end
|
33
|
+
# @return [FetchResult]
|
34
|
+
def get_filed_returns(companyId, options={}) path = "/api/v2/companies/#{companyId}/filings/returns/filed"
|
35
|
+
get(path, options) end
|
36
|
+
end
|
37
|
+
end
|
27
38
|
end
|