avatax 18.4.1 → 18.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/avatax/client/advancedrules.rb +28 -0
- data/lib/avatax/client/batches.rb +10 -1
- data/lib/avatax/client/companies.rb +7 -2
- data/lib/avatax/client/definitions.rb +0 -4
- data/lib/avatax/client/filingcalendars.rb +2 -0
- data/lib/avatax/client/free.rb +7 -9
- data/lib/avatax/client/notices.rb +33 -0
- data/lib/avatax/client/registrar.rb +1 -1
- data/lib/avatax/client/taxcontent.rb +17 -0
- data/lib/avatax/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a76fdb83a5c471fa9773fd14b692eedc72dcfcc40d0b5a64b4a702bfc2888bc
|
4
|
+
data.tar.gz: 2756b24bd169058892928ffb36c949523558326f3f558558f4d1686ee22bd589
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 182a5ae62e391f7d0501c6be42626a05815c26c5e3fe7e288ffdceeeca5083034ee9200077b58fbe73a51f677b4850f95dd18cd0759970104bbb421559d224fe
|
7
|
+
data.tar.gz: b12f298325080c3188ec59148f7ca2dea3376559f2b555a600482b21f1d20a004cbce4bda0e4ee6a75f4c1a7249f596938b21b4a7a971621d179463b9a5c6a42
|
@@ -76,6 +76,34 @@ module AvaTax
|
|
76
76
|
end
|
77
77
|
|
78
78
|
|
79
|
+
# Disable an advanced rule so that it cannot be run.
|
80
|
+
#
|
81
|
+
# This API is available by invite only and implementation support is required.
|
82
|
+
# Please contact your Customer Account Manager if you are interested in using
|
83
|
+
# Advanced Rules in your AvaTax integration. ///
|
84
|
+
# @param accountId [Integer]
|
85
|
+
# @param scriptType [String] The script transform type: Request or Response. (See AdvancedRuleScriptType::* for a list of allowable values)
|
86
|
+
# @return [Object]
|
87
|
+
def disable_advanced_rule_script(accountId, scriptType)
|
88
|
+
path = "/api/v2/accounts/#{accountId}/advancedrulescripts/#{scriptType}/disable"
|
89
|
+
post(path)
|
90
|
+
end
|
91
|
+
|
92
|
+
|
93
|
+
# Enable an approved advanced rule so that it can be run.
|
94
|
+
#
|
95
|
+
# This API is available by invite only and implementation support is required.
|
96
|
+
# Please contact your Customer Account Manager if you are interested in using
|
97
|
+
# Advanced Rules in your AvaTax integration.
|
98
|
+
# @param accountId [Integer]
|
99
|
+
# @param scriptType [String] The script transform type: Request or Response. (See AdvancedRuleScriptType::* for a list of allowable values)
|
100
|
+
# @return [Object]
|
101
|
+
def enable_advanced_rule_script(accountId, scriptType)
|
102
|
+
path = "/api/v2/accounts/#{accountId}/advancedrulescripts/#{scriptType}/enable"
|
103
|
+
post(path)
|
104
|
+
end
|
105
|
+
|
106
|
+
|
79
107
|
# Get an account's advanced rule script.
|
80
108
|
#
|
81
109
|
# This API is available by invite only and implementation support is required.
|
@@ -30,7 +30,16 @@ module AvaTax
|
|
30
30
|
|
31
31
|
# Delete a single batch
|
32
32
|
#
|
33
|
-
#
|
33
|
+
# Marks the batch identified by this URL as deleted.
|
34
|
+
#
|
35
|
+
# If you attempt to delete a batch that is being processed, you will receive an error message.
|
36
|
+
# Deleting a batch does not delete any transactions that were created by importing the batch.
|
37
|
+
#
|
38
|
+
# Because the batch system processes with a degree of concurrency, and
|
39
|
+
# because of batch sizes in the queue vary, AvaTax API is unable to accurately
|
40
|
+
# predict when a batch will complete. If high performance processing is
|
41
|
+
# required, please use the
|
42
|
+
# [CreateTransaction API](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Transactions/CreateTransaction/).
|
34
43
|
# @param companyId [Integer] The ID of the company that owns this batch.
|
35
44
|
# @param id [Integer] The ID of the batch to delete.
|
36
45
|
# @return [ErrorDetail[]]
|
@@ -271,9 +271,14 @@ module AvaTax
|
|
271
271
|
# Update a single company
|
272
272
|
#
|
273
273
|
# Replace the existing company object at this URL with an updated object.
|
274
|
-
#
|
274
|
+
#
|
275
|
+
# A `CompanyModel` represents a single corporation or individual that is registered to handle transactional taxes.
|
275
276
|
# All data from the existing object will be replaced with data in the object you PUT.
|
276
|
-
#
|
277
|
+
#
|
278
|
+
# When calling `UpdateCompany`, you are permitted to update the company itself. Updates to the nested objects
|
279
|
+
# such as contacts, locations, or settings are not permitted. To update the nested objects
|
280
|
+
#
|
281
|
+
# To set a field's value to `null`, you may either set its value to `null` or omit that field from the object you PUT.
|
277
282
|
# @param id [Integer] The ID of the company you wish to update.
|
278
283
|
# @param model [Object] The company object you wish to update.
|
279
284
|
# @return [Object]
|
@@ -648,10 +648,8 @@ module AvaTax
|
|
648
648
|
#
|
649
649
|
# Returns the full list of Avalara-supported permission types.
|
650
650
|
# This API is intended to be useful to identify the capabilities of a particular user logon.
|
651
|
-
# @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/) .
|
652
651
|
# @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
|
653
652
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
|
654
|
-
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
655
653
|
# @return [FetchResult]
|
656
654
|
def list_permissions(options={})
|
657
655
|
path = "/api/v2/definitions/permissions"
|
@@ -862,10 +860,8 @@ module AvaTax
|
|
862
860
|
# Returns the full list of recognized tax code types.
|
863
861
|
# A 'Tax Code Type' represents a broad category of tax codes, and is less detailed than a single TaxCode.
|
864
862
|
# This API is intended to be useful for broadly searching for tax codes by tax code type.
|
865
|
-
# @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/) .
|
866
863
|
# @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
|
867
864
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
|
868
|
-
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
869
865
|
# @return [Object]
|
870
866
|
def list_tax_code_types(options={})
|
871
867
|
path = "/api/v2/definitions/taxcodetypes"
|
@@ -176,6 +176,7 @@ module AvaTax
|
|
176
176
|
# A "filing request" represents a request to change an existing filing calendar. Filing requests
|
177
177
|
# are reviewed and validated by Avalara Compliance before being implemented.
|
178
178
|
# @param companyId [Integer] The ID of the company that owns these batches
|
179
|
+
# @param filingCalendarId [Integer] Specific filing calendar id for the request
|
179
180
|
# @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/) .
|
180
181
|
# @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
|
181
182
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
|
@@ -238,6 +239,7 @@ module AvaTax
|
|
238
239
|
#
|
239
240
|
# 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/) .
|
240
241
|
# Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
|
242
|
+
# @param filingCalendarId [Integer] Specific filing calendar id for the request
|
241
243
|
# @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/) .
|
242
244
|
# @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
|
243
245
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
|
data/lib/avatax/client/free.rb
CHANGED
@@ -5,18 +5,16 @@ module AvaTax
|
|
5
5
|
|
6
6
|
# FREE API - Request a free trial of AvaTax
|
7
7
|
#
|
8
|
-
# Call this API to obtain a free AvaTax
|
8
|
+
# Call this API to obtain a free AvaTax account.
|
9
9
|
#
|
10
|
-
# This API is free to use. No authentication credentials are required to call this API. You must read and
|
11
|
-
#
|
12
|
-
#
|
10
|
+
# This API is free to use. No authentication credentials are required to call this API. You must read and
|
11
|
+
# accept [Avalara's terms and conditions](https://www1.avalara.com/us/en/legal/terms.html) for the account to be
|
12
|
+
# created.
|
13
13
|
#
|
14
|
-
#
|
14
|
+
# If all conditions are met, this API will grant a free trial version of AvaTax. For a list of functionality
|
15
|
+
# available in the free trial and its limitations, please see the [AvaTax Developer Website Free Trial page](https://developer.avalara.com/avatax/signup/).
|
15
16
|
#
|
16
|
-
#
|
17
|
-
# * The free trial account does not expire.
|
18
|
-
# * Includes a limited time free trial of AvaTaxPro; after that date, the free TaxRates API will continue to work.
|
19
|
-
# * Each free trial account must have its own valid email address.
|
17
|
+
# After your free trial concludes, you will still be able to use the [Free AvaTax API Suite](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Free/).
|
20
18
|
# @param model [Object] Required information to provision a free trial account.
|
21
19
|
# @return [Object]
|
22
20
|
def request_free_trial(model)
|
@@ -3,6 +3,22 @@ module AvaTax
|
|
3
3
|
module Notices
|
4
4
|
|
5
5
|
|
6
|
+
# Delete a single notice.
|
7
|
+
#
|
8
|
+
# This API is available by invitation only.
|
9
|
+
# 'Notice comments' are updates by the notice team on the work to be done and that has been done so far on a notice.
|
10
|
+
# A 'notice' represents a letter sent to a business by a tax authority regarding tax filing issues. Avalara
|
11
|
+
# Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
|
12
|
+
# @param companyId [Integer] The ID of the company that owns this notice.
|
13
|
+
# @param id [Integer] The ID of the notice you wish to delete the finance detail from.
|
14
|
+
# @param commentDetailsId [Integer] The ID of the comment you wish to delete.
|
15
|
+
# @return [ErrorDetail[]]
|
16
|
+
def comment_details_delete(companyId, id, commentDetailsId)
|
17
|
+
path = "/api/v2/companies/#{companyId}/notices/#{id}/commentdetails/#{commentdetailsid}"
|
18
|
+
delete(path)
|
19
|
+
end
|
20
|
+
|
21
|
+
|
6
22
|
# Create a new notice comment.
|
7
23
|
#
|
8
24
|
# This API is available by invitation only.
|
@@ -143,6 +159,23 @@ module AvaTax
|
|
143
159
|
end
|
144
160
|
|
145
161
|
|
162
|
+
# Delete a single notice.
|
163
|
+
#
|
164
|
+
# This API is available by invitation only.
|
165
|
+
# 'Notice finance details' is the categorical breakdown of the total charge levied by the tax authority on our customer,
|
166
|
+
# as broken down in our "notice log" found in Workflow. Main examples of the categories are 'Tax Due', 'Interest', 'Penalty', 'Total Abated'.
|
167
|
+
# A 'notice' represents a letter sent to a business by a tax authority regarding tax filing issues. Avalara
|
168
|
+
# Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
|
169
|
+
# @param companyId [Integer] The ID of the company that owns this notice.
|
170
|
+
# @param id [Integer] The ID of the notice you wish to delete the finance detail from.
|
171
|
+
# @param financeDetailsId [Integer] The ID of the finance detail you wish to delete.
|
172
|
+
# @return [ErrorDetail[]]
|
173
|
+
def financedetailsdelete(companyId, id, financeDetailsId)
|
174
|
+
path = "/api/v2/companies/#{companyId}/notices/#{id}/financedetails/#{financedetailsid}"
|
175
|
+
delete(path)
|
176
|
+
end
|
177
|
+
|
178
|
+
|
146
179
|
# Retrieve a single notice.
|
147
180
|
#
|
148
181
|
# This API is available by invitation only.
|
@@ -27,7 +27,7 @@ module AvaTax
|
|
27
27
|
# Create a single new account object.
|
28
28
|
# When creating an account object you may attach subscriptions and users as part of the 'Create' call.
|
29
29
|
# @param model [Object] The account you wish to create.
|
30
|
-
# @return [
|
30
|
+
# @return [AccountModel[]]
|
31
31
|
def create_account(model)
|
32
32
|
path = "/api/v2/accounts"
|
33
33
|
post(path, model)
|
@@ -72,6 +72,23 @@ module AvaTax
|
|
72
72
|
# to reconcile the actual transaction and determine the difference between the estimated general tax
|
73
73
|
# rate and the final transaction tax.
|
74
74
|
#
|
75
|
+
# The file provided by this API is in CSV format with the following columns:
|
76
|
+
#
|
77
|
+
# * ZIP_CODE - The five digit zip code for this record.
|
78
|
+
# * STATE_ABBREV - A valid two character US state abbreviation for this record. Zip codes may span multiple states.
|
79
|
+
# * COUNTY_NAME - A valid county name for this record. Zip codes may span multiple counties.
|
80
|
+
# * CITY_NAME - A valid city name for this record. Zip codes may span multiple cities.
|
81
|
+
# * STATE_SALES_TAX - The state component of the sales tax rate.
|
82
|
+
# * STATE_USE_TAX - The state component of the use tax rate.
|
83
|
+
# * COUNTY_SALES_TAX - The county component of the sales tax rate.
|
84
|
+
# * COUNTY_USE_TAX - The county component of the use tax rate.
|
85
|
+
# * CITY_SALES_TAX - The city component of the sales tax rate.
|
86
|
+
# * CITY_USE_TAX - The city component of the use tax rate.
|
87
|
+
# * TOTAL_SALES_TAX - The total tax rate for sales tax for this postal code. This value may not equal the sum of the state/county/city due to special tax jurisdiction rules.
|
88
|
+
# * TOTAL_USE_TAX - The total tax rate for use tax for this postal code. This value may not equal the sum of the state/county/city due to special tax jurisdiction rules.
|
89
|
+
# * TAX_SHIPPING_ALONE - This column contains 'Y' if shipping is taxable.
|
90
|
+
# * TAX_SHIPPING_AND_HANDLING_TOGETHER - This column contains 'Y' if shipping and handling are taxable when sent together.
|
91
|
+
#
|
75
92
|
# For more detailed tax content, please use the `BuildTaxContentFile` API which allows usage of exact items and exact locations.
|
76
93
|
# @param date [DateTime] The date for which point-of-sale data would be calculated (today by default). Example input: 2016-12-31
|
77
94
|
# @param region [String] If the region is provided, this API is going to generate the tax rate per zipcode for only the region specified.
|
data/lib/avatax/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avatax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 18.
|
4
|
+
version: 18.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcus Vorwaller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|