avatax 18.10.3 → 18.10.4

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: 890816e7d2526350ab5ecae1df8228b4e968c2ac0897aefb0c51f7bc18e3f263
4
- data.tar.gz: 0becc12a7eb97920f781e6e1ed39d297c2e03b1a180489affd2d3cea03a30a82
3
+ metadata.gz: 942efd18c56cc34488053835d09455aaefe85bf820a11f6f4523242cf0aaf921
4
+ data.tar.gz: 3c82787b0124aca3dcc74ccdf802519a45581c723d1cdbbb09039b6477935731
5
5
  SHA512:
6
- metadata.gz: 0fe47748c013591ea9d3ce3f93c40c41383ac09b466346b0d2927af570407613d1fe9af6db873e78ea85f6ca3c6bad119e859449bd243556e91e0476072902b0
7
- data.tar.gz: fab36ea38b32c4bb9eb0a5dd01acd8eecde70c4483c74209592165f0cad63318eb8aaf727b1cdbf733756b6ee3c04600fe30ca316ed6b5bff6218405676a9ba3
6
+ metadata.gz: 00e5bbb63181a933ee7a5d932db2eff61aa1edf681c20fd8aaf7600dc5540556010184268a6cd00a9f53942bdca6bf9f346ed94e060177f2b30f32d4acb50890
7
+ data.tar.gz: 96fa7eb1613bf6b6119f034c2ddf02dc3db174b4ae536b4f2833e1334b65fa42bf3c9cc1f84438a8ab5a846fc488d704fb2fdabce425fa46693899235232872b
data/README.md CHANGED
@@ -6,6 +6,40 @@ Installation
6
6
  ------------
7
7
  gem install avatax
8
8
 
9
+ Simple Code Example
10
+ -------------------------
11
+ ```ruby
12
+ @client = AvaTax::Client.new(:logger => true)
13
+
14
+ createTransactionModel = {
15
+ "type" => 'SalesInvoice',
16
+ "companyCode" => '12670',
17
+ "date" => '2017-06-05',
18
+ "customerCode" => 'ABC',
19
+ "addresses" => {
20
+ "ShipFrom" => {
21
+ "line1" => "123 Main Street",
22
+ "city" => "Irvine",
23
+ "region" => "CA",
24
+ "country" => "US",
25
+ "postalCode" => "92615"
26
+ },
27
+ "ShipTo" => {
28
+ "line1" => "100 Market Street",
29
+ "city" => "San Francisco",
30
+ "region" => "CA",
31
+ "country" => "US",
32
+ "postalCode" => "94105"
33
+ }
34
+ },
35
+ "lines" => [ { "amount" => 100 }]
36
+ }
37
+
38
+ transaction = @client.create_transaction(createTransactionModel)
39
+ ```
40
+
41
+ If you'd like to see a more complete code example with credentials, check out our [example folder](/example).
42
+
9
43
  AvaTax REST and Search APIs
10
44
  ------------------------------
11
45
  Our [developer site](https://developer.avalara.com/) documents all the AvaTax REST and other APIs. Subscribe to the [RSS feed](developer.avalara.com/feed.xml) to stay up to date on the lates news and announcements.
@@ -7,7 +7,6 @@ Gem::Specification.new do |s|
7
7
  s.add_runtime_dependency('faraday', '>= 0.10')
8
8
  s.add_runtime_dependency('faraday_middleware', '>= 0.10')
9
9
  s.add_runtime_dependency('multi_json', '>= 1.0.3')
10
- s.add_runtime_dependency('hashie', '>= 3.0.0')
11
10
  s.add_runtime_dependency('faraday_middleware-parse_oj', '~> 0.3.2')
12
11
  s.authors = ["Marcus Vorwaller"]
13
12
  s.description = %q{A Ruby wrapper for the AvaTax REST and Search APIs}
@@ -5,6 +5,7 @@ module AvaTax
5
5
  include AvaTax::Client::Accounts
6
6
  include AvaTax::Client::Addresses
7
7
  include AvaTax::Client::Batches
8
+ include AvaTax::Client::CertExpressInvites
8
9
  include AvaTax::Client::Companies
9
10
  include AvaTax::Client::Contacts
10
11
  include AvaTax::Client::Customers
@@ -24,6 +25,7 @@ module AvaTax
24
25
  include AvaTax::Client::Settings
25
26
  include AvaTax::Client::Subscriptions
26
27
  include AvaTax::Client::TaxCodes
28
+ include AvaTax::Client::TaxContent
27
29
  include AvaTax::Client::TaxRules
28
30
  include AvaTax::Client::Transactions
29
31
  include AvaTax::Client::Upcs
@@ -1,4 +1,3 @@
1
- require 'hashie'
2
1
  require 'faraday'
3
2
  require 'json'
4
3
 
@@ -1,3 +1,3 @@
1
1
  module AvaTax
2
- VERSION = '18.10.3'.freeze unless defined?(::AvaTax::VERSION)
2
+ VERSION = '18.10.4'.freeze unless defined?(::AvaTax::VERSION)
3
3
  end
@@ -22,6 +22,6 @@ companies = client.query_companies
22
22
  RSpec.configure do |config|
23
23
  config.before {
24
24
  @client = client
25
- @company_code = companies["value"][1]["companyCode"]
25
+ @company_code = companies["value"][0]["companyCode"]
26
26
  }
27
27
  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.10.3
4
+ version: 18.10.4
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-10-30 00:00:00.000000000 Z
11
+ date: 2019-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -94,20 +94,6 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: 1.0.3
97
- - !ruby/object:Gem::Dependency
98
- name: hashie
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: 3.0.0
104
- type: :runtime
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: 3.0.0
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: faraday_middleware-parse_oj
113
99
  requirement: !ruby/object:Gem::Requirement