avatax 18.12.0 → 19.1.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/filings.rb +18 -0
- data/lib/avatax/request.rb +1 -1
- 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: 31d30713158075a2c20176bc9d5bbfb84a4e1a9970d84311a4a95f1ecd8f4eba
|
4
|
+
data.tar.gz: 982d0428cce5d1fe10999ae6b0231876c0c30fb1cb2e47b08de0f6893d8a4264
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8de402ff41d87efefbf48ce6d5fd6f41592f1c7f4851abfa6172eb884553b78a8277e12ba4e07e1b22f1e774162099ff9f69758fa6cadef0aaaac5cd8b628b00
|
7
|
+
data.tar.gz: 9a31d12aa47c96163e292a1d81a94583a509327e48c6656c25e4e56ee846a963e3eae84fdbd0abb7e7c27bfe36ca5c5ab0df7014cb51be02acfcc6aaf943c3ed
|
@@ -349,6 +349,24 @@ module AvaTax
|
|
349
349
|
end
|
350
350
|
|
351
351
|
|
352
|
+
# Retrieve a list of filings for the specified company in the year and month of a given filing period.
|
353
|
+
#
|
354
|
+
# This API is available by invitation only.
|
355
|
+
# A "filing period" is the year and month of the date of the latest customer transaction allowed to be reported on a filing,
|
356
|
+
# based on filing frequency of filing.
|
357
|
+
# @param companyId [Integer] The ID of the company that owns the filings.
|
358
|
+
# @param year [Integer] The year of the filing period.
|
359
|
+
# @param month [Integer] The two digit month of the filing period.
|
360
|
+
# @param country [String] The two-character ISO-3166 code for the country.
|
361
|
+
# @param region [String] The two or three character region code for the region.
|
362
|
+
# @param formCode [String] The unique code of the form.
|
363
|
+
# @return [FetchResult]
|
364
|
+
def get_tax_filings(companyId, options={})
|
365
|
+
path = "/api/v2/companies/#{companyId}/filings"
|
366
|
+
get(path, options)
|
367
|
+
end
|
368
|
+
|
369
|
+
|
352
370
|
# Rebuild a set of filings for the specified company in the given filing period.
|
353
371
|
#
|
354
372
|
# This API is available by invitation only.
|
data/lib/avatax/request.rb
CHANGED
@@ -26,7 +26,7 @@ module AvaTax
|
|
26
26
|
when :get, :delete
|
27
27
|
request.url("#{URI.encode(path)}?#{URI.encode_www_form(options)}")
|
28
28
|
when :post, :put
|
29
|
-
request.
|
29
|
+
request.url("#{URI.encode(path)}?#{URI.encode_www_form(options)}")
|
30
30
|
request.headers['Content-Type'] = 'application/json'
|
31
31
|
request.body = model.to_json unless model.empty?
|
32
32
|
end
|
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:
|
4
|
+
version: 19.1.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: 2019-
|
11
|
+
date: 2019-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|