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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 132060abc63d39b7ecf6c2fc8f095a13968cebb10f54ada77b56dc4385a1ed70
4
- data.tar.gz: ccb1b50a25333bba9b97734548605cabbf936c0922bbe1e7587faa189ffa0eb3
3
+ metadata.gz: 31d30713158075a2c20176bc9d5bbfb84a4e1a9970d84311a4a95f1ecd8f4eba
4
+ data.tar.gz: 982d0428cce5d1fe10999ae6b0231876c0c30fb1cb2e47b08de0f6893d8a4264
5
5
  SHA512:
6
- metadata.gz: 6becd1f888c411a2ccb827dafe92eb93e4930592793cd1c027fdb8b8f6794d5532b0a7e2d0f73bb88c5c11547247f7c69093a7a6f724e7a936d0fe884b0efd9b
7
- data.tar.gz: 8ef5a68756f65523037acbcd6c37646f10587b67057541af65d60baf04acaf5dfd76ec5d6a0d7ce53b2d4c4f002055eef648150349a25174014096ea26a06d0a
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.
@@ -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.path = ("#{URI.encode(path)}?#{URI.encode_www_form(options)}")
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
@@ -1,3 +1,3 @@
1
1
  module AvaTax
2
- VERSION = '18.12.0'.freeze unless defined?(::AvaTax::VERSION)
2
+ VERSION = '19.1.1'.freeze unless defined?(::AvaTax::VERSION)
3
3
  end
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.12.0
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-01-15 00:00:00.000000000 Z
11
+ date: 2019-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake