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 +4 -4
- data/README.md +34 -0
- data/avatax.gemspec +0 -1
- data/lib/avatax/client.rb +2 -0
- data/lib/avatax/request.rb +0 -1
- data/lib/avatax/version.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 942efd18c56cc34488053835d09455aaefe85bf820a11f6f4523242cf0aaf921
|
4
|
+
data.tar.gz: 3c82787b0124aca3dcc74ccdf802519a45581c723d1cdbbb09039b6477935731
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
data/avatax.gemspec
CHANGED
@@ -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}
|
data/lib/avatax/client.rb
CHANGED
@@ -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
|
data/lib/avatax/request.rb
CHANGED
data/lib/avatax/version.rb
CHANGED
data/spec/spec_helper.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.10.
|
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:
|
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
|