avatax 18.9.0 → 18.10.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/example/avatax.rb +18 -18
- data/lib/avatax/client.rb +1 -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: 890816e7d2526350ab5ecae1df8228b4e968c2ac0897aefb0c51f7bc18e3f263
|
4
|
+
data.tar.gz: 0becc12a7eb97920f781e6e1ed39d297c2e03b1a180489affd2d3cea03a30a82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fe47748c013591ea9d3ce3f93c40c41383ac09b466346b0d2927af570407613d1fe9af6db873e78ea85f6ca3c6bad119e859449bd243556e91e0476072902b0
|
7
|
+
data.tar.gz: fab36ea38b32c4bb9eb0a5dd01acd8eecde70c4483c74209592165f0cad63318eb8aaf727b1cdbf733756b6ee3c04600fe30ca316ed6b5bff6218405676a9ba3
|
data/example/avatax.rb
CHANGED
@@ -21,27 +21,27 @@ end
|
|
21
21
|
# puts @client.query_companies
|
22
22
|
|
23
23
|
createTransactionModel = {
|
24
|
-
type
|
25
|
-
companyCode
|
26
|
-
date
|
27
|
-
customerCode
|
28
|
-
"addresses"
|
29
|
-
"ShipFrom"
|
30
|
-
"line1"
|
31
|
-
"city"
|
32
|
-
"region"
|
33
|
-
"country"
|
34
|
-
"postalCode"
|
24
|
+
"type" => 'SalesInvoice',
|
25
|
+
"companyCode" => '12670',
|
26
|
+
"date" => '2017-06-05',
|
27
|
+
"customerCode" => 'ABC',
|
28
|
+
"addresses" => {
|
29
|
+
"ShipFrom" => {
|
30
|
+
"line1" => "123 Main Street",
|
31
|
+
"city" => "Irvine",
|
32
|
+
"region" => "CA",
|
33
|
+
"country" => "US",
|
34
|
+
"postalCode" => "92615"
|
35
35
|
},
|
36
|
-
"ShipTo"
|
37
|
-
"line1"
|
38
|
-
"city"
|
39
|
-
"region"
|
40
|
-
"country"
|
41
|
-
"postalCode"
|
36
|
+
"ShipTo" => {
|
37
|
+
"line1" => "100 Market Street",
|
38
|
+
"city" => "San Francisco",
|
39
|
+
"region" => "CA",
|
40
|
+
"country" => "US",
|
41
|
+
"postalCode" => "94105"
|
42
42
|
}
|
43
43
|
},
|
44
|
-
lines
|
44
|
+
"lines" => [ { "amount" => 100 }]
|
45
45
|
}
|
46
46
|
transaction = @client.create_transaction(createTransactionModel)
|
47
47
|
puts JSON.pretty_generate(transaction)
|
data/lib/avatax/client.rb
CHANGED
@@ -7,6 +7,7 @@ module AvaTax
|
|
7
7
|
include AvaTax::Client::Batches
|
8
8
|
include AvaTax::Client::Companies
|
9
9
|
include AvaTax::Client::Contacts
|
10
|
+
include AvaTax::Client::Customers
|
10
11
|
include AvaTax::Client::Definitions
|
11
12
|
include AvaTax::Client::FilingCalendars
|
12
13
|
include AvaTax::Client::Filings
|
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.10.3
|
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-
|
11
|
+
date: 2018-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|