avatax 21.9.0 → 22.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +55 -55
- data/.rspec +1 -1
- data/.travis.yml +18 -18
- data/.vs/VSWorkspaceState.json +5 -5
- data/.yardopts +4 -4
- data/Gemfile +2 -2
- data/LICENSE +201 -201
- data/README.md +98 -98
- data/Rakefile +9 -9
- data/avatax.gemspec +38 -38
- data/example/avatax.rb +47 -47
- data/example/credentials.example.yaml +5 -5
- data/lib/avatax/api.rb +27 -27
- data/lib/avatax/client/accounts.rb +22 -11
- data/lib/avatax/client/addresses.rb +4 -2
- data/lib/avatax/client/advancedrules.rb +10 -5
- data/lib/avatax/client/ageverification.rb +29 -0
- data/lib/avatax/client/avafileforms.rb +10 -5
- data/lib/avatax/client/batches.rb +16 -8
- data/lib/avatax/client/certexpressinvites.rb +6 -3
- data/lib/avatax/client/certificates.rb +30 -15
- data/lib/avatax/client/companies.rb +61 -21
- data/lib/avatax/client/compliance.rb +25 -14
- data/lib/avatax/client/contacts.rb +12 -6
- data/lib/avatax/client/customers.rb +26 -13
- data/lib/avatax/client/datasources.rb +12 -6
- data/lib/avatax/client/definitions.rb +140 -70
- data/lib/avatax/client/distancethresholds.rb +12 -6
- data/lib/avatax/client/ecms.rb +73 -73
- data/lib/avatax/client/ecommercetoken.rb +4 -2
- data/lib/avatax/client/errortransactions.rb +61 -61
- data/lib/avatax/client/filingcalendars.rb +9 -4
- data/lib/avatax/client/filings.rb +6 -2
- data/lib/avatax/client/firmclientlinkages.rb +18 -9
- data/lib/avatax/client/free.rb +2 -1
- data/lib/avatax/client/fundingrequests.rb +4 -2
- data/lib/avatax/client/items.rb +50 -25
- data/lib/avatax/client/jurisdictionoverrides.rb +12 -6
- data/lib/avatax/client/locations.rb +24 -12
- data/lib/avatax/client/multidocument.rb +20 -10
- data/lib/avatax/client/nexus.rb +30 -15
- data/lib/avatax/client/notices.rb +8 -4
- data/lib/avatax/client/notifications.rb +6 -3
- data/lib/avatax/client/onboarding.rb +55 -55
- data/lib/avatax/client/pointofsale.rb +21 -21
- data/lib/avatax/client/provisioning.rb +4 -2
- data/lib/avatax/client/registrar.rb +22 -11
- data/lib/avatax/client/reports.rb +8 -4
- data/lib/avatax/client/settings.rb +12 -6
- data/lib/avatax/client/shippingverification.rb +66 -0
- data/lib/avatax/client/subscriptions.rb +6 -3
- data/lib/avatax/client/taxcodes.rb +12 -6
- data/lib/avatax/client/taxcontent.rb +10 -5
- data/lib/avatax/client/taxprofiles.rb +42 -42
- data/lib/avatax/client/taxrules.rb +12 -6
- data/lib/avatax/client/transactions.rb +42 -21
- data/lib/avatax/client/upcs.rb +12 -6
- data/lib/avatax/client/userdefinedfields.rb +52 -0
- data/lib/avatax/client/users.rb +16 -8
- data/lib/avatax/client/utilities.rb +6 -3
- data/lib/avatax/client.rb +37 -35
- data/lib/avatax/configuration.rb +76 -76
- data/lib/avatax/connection.rb +49 -49
- data/lib/avatax/request.rb +51 -42
- data/lib/avatax/version.rb +3 -3
- data/lib/avatax.rb +26 -26
- data/spec/avatax/client/accounts_spec.rb +13 -13
- data/spec/avatax/client/transactions_spec.rb +80 -80
- data/spec/avatax/request_spec.rb +25 -25
- data/spec/avatax_spec.rb +45 -45
- data/spec/credentials.yaml.example +4 -4
- data/spec/fixtures/accounts.json +15 -15
- data/spec/spec_helper.rb +27 -27
- metadata +9 -13
@@ -11,11 +11,12 @@ module AvaTax
|
|
11
11
|
#
|
12
12
|
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
13
13
|
# * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.
|
14
|
+
# Swagger Name: AvaTaxClient
|
14
15
|
# @param companyId [Integer] The id of the company you which to create the datasources
|
15
16
|
# @param model [DataSourceModel[]]
|
16
17
|
# @return [DataSourceModel[]]
|
17
18
|
def create_data_sources(companyId, model) path = "/api/v2/companies/#{companyId}/datasources"
|
18
|
-
post(path, model) end
|
19
|
+
post(path, model, {}, "22.2.0") end
|
19
20
|
|
20
21
|
# Delete a datasource by datasource id for a company.
|
21
22
|
#
|
@@ -25,11 +26,12 @@ module AvaTax
|
|
25
26
|
#
|
26
27
|
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
27
28
|
# * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.
|
29
|
+
# Swagger Name: AvaTaxClient
|
28
30
|
# @param companyId [Integer] The id of the company the datasource belongs to.
|
29
31
|
# @param id [Integer] The id of the datasource you wish to delete.
|
30
32
|
# @return [ErrorDetail[]]
|
31
33
|
def delete_data_source(companyId, id) path = "/api/v2/companies/#{companyId}/datasources/#{id}"
|
32
|
-
delete(path) end
|
34
|
+
delete(path, {}, "22.2.0") end
|
33
35
|
|
34
36
|
# Get data source by data source id
|
35
37
|
#
|
@@ -39,11 +41,12 @@ module AvaTax
|
|
39
41
|
#
|
40
42
|
# * 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.
|
41
43
|
# * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.
|
44
|
+
# Swagger Name: AvaTaxClient
|
42
45
|
# @param companyId [Integer]
|
43
46
|
# @param id [Integer] data source id
|
44
47
|
# @return [Object]
|
45
48
|
def get_data_source_by_id(companyId, id) path = "/api/v2/companies/#{companyId}/datasources/#{id}"
|
46
|
-
get(path) end
|
49
|
+
get(path, {}, "22.2.0") end
|
47
50
|
|
48
51
|
# Retrieve all datasources for this company
|
49
52
|
#
|
@@ -53,6 +56,7 @@ module AvaTax
|
|
53
56
|
#
|
54
57
|
# * 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.
|
55
58
|
# * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.
|
59
|
+
# Swagger Name: AvaTaxClient
|
56
60
|
# @param companyId [Integer] The id of the company you wish to retrieve the datasources.
|
57
61
|
# @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:* isEnabled, isSynced, isAuthorized, name, externalState
|
58
62
|
# @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.
|
@@ -60,7 +64,7 @@ module AvaTax
|
|
60
64
|
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
61
65
|
# @return [FetchResult]
|
62
66
|
def list_data_sources(companyId, options={}) path = "/api/v2/companies/#{companyId}/datasources"
|
63
|
-
get(path, options) end
|
67
|
+
get(path, options, "22.2.0") end
|
64
68
|
|
65
69
|
# Retrieve all datasources
|
66
70
|
#
|
@@ -73,13 +77,14 @@ module AvaTax
|
|
73
77
|
#
|
74
78
|
# * 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.
|
75
79
|
# * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.
|
80
|
+
# Swagger Name: AvaTaxClient
|
76
81
|
# @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:* isEnabled, isSynced, isAuthorized, name, externalState
|
77
82
|
# @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.
|
78
83
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
79
84
|
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
80
85
|
# @return [FetchResult]
|
81
86
|
def query_data_sources(options={}) path = "/api/v2/datasources"
|
82
|
-
get(path, options) end
|
87
|
+
get(path, options, "22.2.0") end
|
83
88
|
|
84
89
|
# Update a datasource identified by id for a company
|
85
90
|
#
|
@@ -89,12 +94,13 @@ module AvaTax
|
|
89
94
|
#
|
90
95
|
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
91
96
|
# * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.
|
97
|
+
# Swagger Name: AvaTaxClient
|
92
98
|
# @param companyId [Integer] The id of the company the datasource belongs to.
|
93
99
|
# @param id [Integer] The id of the datasource you wish to delete.
|
94
100
|
# @param model [Object]
|
95
101
|
# @return [Object]
|
96
102
|
def update_data_source(companyId, id, model) path = "/api/v2/companies/#{companyId}/datasources/#{id}"
|
97
|
-
put(path, model) end
|
103
|
+
put(path, model, {}, "22.2.0") end
|
98
104
|
end
|
99
105
|
end
|
100
106
|
end
|