vertex_client 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/install/templates/initializer.rb.erb +20 -18
- data/lib/vertex_client/rates.rb +34 -34
- data/lib/vertex_client/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: a27830c7ae5f5e63be7c8ac87a2160781cd05db037b10264979b9eb036c563ea
|
4
|
+
data.tar.gz: 6c26deb0e421c19c5d88f2c5273f4f8c19a9af357c335ddf92567188fe079618
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af1bf2875d9276f0fcd653e5779e773e9ab09cb07aa8008bb456dd5abbe0a13a4b8f351c207a088fb0506560f317e0745e391da822d34e77385239bc3572f311
|
7
|
+
data.tar.gz: d0db866b0afa6643004b7d1360af3c84ff165de68f877aa3f9b064a03399ccd8d322ef66717837d49cc34bc0640c1384cbaee521ce31b9175b617d9e561f691c
|
@@ -4,28 +4,29 @@ VertexClient.configure do |config|
|
|
4
4
|
config.trusted_id = ENV.fetch('VERTEX_TRUSTED_ID')
|
5
5
|
config.soap_api = ENV.fetch('VERTEX_SOAP_API')
|
6
6
|
|
7
|
-
# Global timeout options passed to Savon
|
8
|
-
config.read_timeout = 10
|
9
|
-
config.open_timeout = 10
|
7
|
+
# Global timeout options passed to Savon.
|
8
|
+
# config.read_timeout = 10
|
9
|
+
# config.open_timeout = 10
|
10
10
|
|
11
11
|
# Per-resource timeout options
|
12
|
+
# These take precedence over any timeouts specified above.
|
12
13
|
config.resource_config = {
|
13
14
|
quotation: {
|
14
|
-
read_timeout:
|
15
|
-
open_timeout:
|
15
|
+
read_timeout: 7,
|
16
|
+
open_timeout: 7
|
16
17
|
},
|
17
|
-
invoice: {
|
18
|
-
|
19
|
-
|
20
|
-
},
|
21
|
-
distribute_tax: {
|
22
|
-
|
23
|
-
|
24
|
-
},
|
25
|
-
tax_area: {
|
26
|
-
|
27
|
-
|
28
|
-
}
|
18
|
+
# invoice: {
|
19
|
+
# read_timeout: ...,
|
20
|
+
# open_timeout: ...
|
21
|
+
# },
|
22
|
+
# distribute_tax: {
|
23
|
+
# read_timeout: ...,
|
24
|
+
# open_timeout: ...
|
25
|
+
# },
|
26
|
+
# tax_area: {
|
27
|
+
# read_timeout: ...,
|
28
|
+
# open_timeout: ...
|
29
|
+
# }
|
29
30
|
}
|
30
31
|
|
31
32
|
# Circuitbox configuration.
|
@@ -36,7 +37,8 @@ VertexClient.configure do |config|
|
|
36
37
|
# error_threshold: 50,
|
37
38
|
# logger: Rails.logger,
|
38
39
|
# exceptions: [
|
39
|
-
# VertexClient::ServerError
|
40
|
+
# VertexClient::ServerError,
|
41
|
+
# Curl::Err::TimeoutError
|
40
42
|
# ]
|
41
43
|
# }
|
42
44
|
|
data/lib/vertex_client/rates.rb
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
module VertexClient
|
2
2
|
RATES = {
|
3
|
-
'AL' => '0.
|
3
|
+
'AL' => '0.0914',
|
4
4
|
'AK' => '0.0',
|
5
5
|
'AZ' => '0.0',
|
6
6
|
'AR' => '0.0',
|
7
|
-
'CA' => '0.
|
8
|
-
'CO' => '0.
|
7
|
+
'CA' => '0.0856',
|
8
|
+
'CO' => '0.0763',
|
9
9
|
'CT' => '0.0635',
|
10
10
|
'DE' => '0.0',
|
11
|
-
'FL' => '0.
|
12
|
-
'GA' => '0.
|
13
|
-
'HI' => '0.
|
14
|
-
'ID' => '0.
|
15
|
-
'IL' => '0.
|
11
|
+
'FL' => '0.0705',
|
12
|
+
'GA' => '0.0729',
|
13
|
+
'HI' => '0.0441',
|
14
|
+
'ID' => '0.0603',
|
15
|
+
'IL' => '0.0874',
|
16
16
|
'IN' => '0.07',
|
17
|
-
'IA' => '0.
|
17
|
+
'IA' => '0.0682',
|
18
18
|
'KS' => '0.0',
|
19
19
|
'KY' => '0.06',
|
20
|
-
'LA' => '0.
|
20
|
+
'LA' => '0.0945',
|
21
21
|
'ME' => '0.055',
|
22
22
|
'MD' => '0.06',
|
23
23
|
'MA' => '0.0625',
|
24
24
|
'MI' => '0.06',
|
25
|
-
'MN' => '0.
|
26
|
-
'MS' => '0.
|
25
|
+
'MN' => '0.0743',
|
26
|
+
'MS' => '0.0707',
|
27
27
|
'MO' => '0.0',
|
28
28
|
'MT' => '0.0',
|
29
|
-
'NE' => '0.
|
30
|
-
'NV' => '0.
|
29
|
+
'NE' => '0.0685',
|
30
|
+
'NV' => '0.0814',
|
31
31
|
'NH' => '0.0',
|
32
|
-
'NJ' => '0.
|
32
|
+
'NJ' => '0.066',
|
33
33
|
'NM' => '0.0',
|
34
|
-
'NY' => '0.
|
35
|
-
'NC' => '0.
|
36
|
-
'ND' => '0.
|
37
|
-
'OH' => '0.
|
38
|
-
'OK' => '0.
|
34
|
+
'NY' => '0.0849',
|
35
|
+
'NC' => '0.0697',
|
36
|
+
'ND' => '0.0685',
|
37
|
+
'OH' => '0.0717',
|
38
|
+
'OK' => '0.0892',
|
39
39
|
'OR' => '0.0',
|
40
|
-
'PA' => '0.
|
41
|
-
'RI' => '0.
|
42
|
-
'SC' => '0.
|
43
|
-
'SD' => '0.
|
44
|
-
'TN' => '0.
|
45
|
-
'TX' => '0.
|
46
|
-
'UT' => '0.
|
47
|
-
'VT' => '0.
|
48
|
-
'VA' => '0.
|
49
|
-
'WA' => '0.
|
50
|
-
'WV' => '0.
|
51
|
-
'WI' => '0.
|
52
|
-
'WY' => '0.
|
53
|
-
'DC' => '0.
|
40
|
+
'PA' => '0.0634',
|
41
|
+
'RI' => '0.07',
|
42
|
+
'SC' => '0.0743',
|
43
|
+
'SD' => '0.064',
|
44
|
+
'TN' => '0.0947',
|
45
|
+
'TX' => '0.0819',
|
46
|
+
'UT' => '0.0694',
|
47
|
+
'VT' => '0.0618',
|
48
|
+
'VA' => '0.0565',
|
49
|
+
'WA' => '0.0917',
|
50
|
+
'WV' => '0.0639',
|
51
|
+
'WI' => '0.0544',
|
52
|
+
'WY' => '0.0536',
|
53
|
+
'DC' => '0.06'
|
54
54
|
}.freeze
|
55
55
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vertex_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Custom Ink
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|