paychex 0.1.1 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 536525ed2919179c29274b85dc3556a8820192a7356642d441afa3810b9d6779
4
- data.tar.gz: b0360d844bc9bf7a6e7dc74d1b9a0dd487c1164159e863adbadb912c3996dd16
3
+ metadata.gz: 9f58a4190d20737238057078b5f3098ec6e56fb706e9d8dd5f80fe9a9bd590de
4
+ data.tar.gz: f1a9fc1c592088f1c2eeab84c71807bd5e32048432031a5c8668fdf58d821f25
5
5
  SHA512:
6
- metadata.gz: c8041f078a3f9f7b1dec848a2e9848d5b5fadb9e071d8a534da2d4e30d1117e475b7ba6c50ca50665af3bc4b1be42dd8c56f1c6d5b07b1f1d618eb4a833c1161
7
- data.tar.gz: 565beda31f91e267c9e7b4aa505499f97c49ae3835ceb6927abc9a39a4e7bfcdff115794c5448db8e55e68e882f5a90f1be38435dd2cc71469dfb7d0cac1ea8d
6
+ metadata.gz: a2ae581b3c3aa3b308ffcc5ca11bd2502288c684e5f206c6a8d80627f65e6c42a1e1dbe123b6bab5671dab0881257993cd5ee0ade16aabc3e9a2c98ae71d799c
7
+ data.tar.gz: 02a94b753836489701d8f124ab17c19390f8e5a87b9208ff2a74c04282e29f211ceff1f0d1398354bd3187c2b230dc4201949fe1740fb845b6219fc44c2b126d
data/Gemfile.lock CHANGED
@@ -1,9 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- paychex (0.1.0)
4
+ paychex (0.2.1)
5
+ addressable
5
6
  faraday
6
7
  faraday_middleware
8
+ rexml
7
9
 
8
10
  GEM
9
11
  remote: https://rubygems.org/
@@ -27,6 +29,7 @@ GEM
27
29
  method_source (~> 1.0)
28
30
  public_suffix (4.0.6)
29
31
  rake (13.0.1)
32
+ rexml (3.2.5)
30
33
  rspec (3.9.0)
31
34
  rspec-core (~> 3.9.0)
32
35
  rspec-expectations (~> 3.9.0)
@@ -40,7 +43,7 @@ GEM
40
43
  diff-lcs (>= 1.2.0, < 2.0)
41
44
  rspec-support (~> 3.9.0)
42
45
  rspec-support (3.9.4)
43
- ruby2_keywords (0.0.2)
46
+ ruby2_keywords (0.0.4)
44
47
  webmock (3.9.3)
45
48
  addressable (>= 2.3.6)
46
49
  crack (>= 0.3.2)
@@ -59,4 +62,4 @@ DEPENDENCIES
59
62
  webmock
60
63
 
61
64
  BUNDLED WITH
62
- 2.2.3
65
+ 2.4.4
@@ -11,6 +11,12 @@ module Paychex
11
11
  get("companies/#{company_id}")
12
12
  end
13
13
 
14
+ # Get company contact types
15
+ def company_contact_types(company_id)
16
+ get("companies/#{company_id}/contacttypes")
17
+ end
18
+
19
+
14
20
  # Get company's linked status
15
21
  def company_status(company_id)
16
22
  begin
@@ -16,6 +16,10 @@ module Paychex
16
16
  post("companies/#{company_id}/workers", options)
17
17
  end
18
18
 
19
+ def create_worker_contacts(worker_id, options = {})
20
+ post("workers/#{worker_id}/contacts", options)
21
+ end
22
+
19
23
  def remove_worker(worker_id, options = {})
20
24
  delete("workers/#{worker_id}", options)
21
25
  end
@@ -8,7 +8,7 @@ module Paychex
8
8
  def connection
9
9
  options = {
10
10
  headers: {
11
- 'Accept' => "application/#{format}; charset=utf-8",
11
+ 'Accept' => "application/#{format}",
12
12
  'User-Agent' => user_agent
13
13
  },
14
14
  proxy: proxy,
@@ -21,6 +21,7 @@ module Paychex
21
21
  conn.options[:timeout] = timeout
22
22
  conn.options[:open_timeout] = open_timeout
23
23
  conn.request :json
24
+ conn.request :instrumentation, name: 'request.paychex'
24
25
 
25
26
  conn.use ::PaychexFaradayMiddleWare::RaisePaychexHttpException
26
27
  conn.response :json, content_type: /\bjson$/
@@ -1,5 +1,6 @@
1
1
  require 'uri'
2
2
  require 'base64'
3
+ require 'addressable/uri'
3
4
 
4
5
  module Paychex
5
6
  # Defines HTTP request methods
@@ -1,3 +1,3 @@
1
1
  module Paychex
2
- VERSION = '0.1.1'
2
+ VERSION = '0.2.1'
3
3
  end
data/paychex.gemspec CHANGED
@@ -37,7 +37,8 @@ Gem::Specification.new do |spec|
37
37
  spec.add_development_dependency 'rake', '>= 12.3.3'
38
38
  spec.add_development_dependency 'rspec', '>= 3.9.0'
39
39
  spec.add_development_dependency 'webmock'
40
+ spec.add_runtime_dependency 'addressable'
40
41
  spec.add_runtime_dependency 'faraday'
41
42
  spec.add_runtime_dependency 'faraday_middleware'
42
- spec.add_runtime_dependency 'addressable'
43
+ spec.add_runtime_dependency 'rexml'
43
44
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paychex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mayank Dedhia
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-27 00:00:00.000000000 Z
11
+ date: 2023-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: addressable
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: faraday
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -123,7 +137,7 @@ dependencies:
123
137
  - !ruby/object:Gem::Version
124
138
  version: '0'
125
139
  - !ruby/object:Gem::Dependency
126
- name: addressable
140
+ name: rexml
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
143
  - - ">="
@@ -199,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
213
  - !ruby/object:Gem::Version
200
214
  version: '0'
201
215
  requirements: []
202
- rubygems_version: 3.1.6
216
+ rubygems_version: 3.4.4
203
217
  signing_key:
204
218
  specification_version: 4
205
219
  summary: Ruby wrapper for paychex.com APIs.