paychex_api 0.0.11 → 0.0.12

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: 9f237f7ebc68a81bea7f1fc2d5492aa1c20bf1b7d277b1d321b7f5908e17fac9
4
- data.tar.gz: 737c9b2a6d7ce215e4288402fd8f9a1a4bf2006402c122b5e06f31edfe7e96f9
3
+ metadata.gz: e5bad6df044aa263a6276061ebf35bfeb44b28e7f4052ace6913f1cd736e6501
4
+ data.tar.gz: 71a7fe4a4d9150f31b8939c60a06655650768075193d00f8c73f2678e037fdb4
5
5
  SHA512:
6
- metadata.gz: a534e51810f080408d3bae4ef1a091543065f0bc8ee0a21b0e15ddad49778ba715ffafceee50961954cb1c84f5fd846cd72e375e913efaabaaa25ef2ff4270ec
7
- data.tar.gz: '09bc8fdb11f0ab95c73a9b8f951406f403bb872674f2bd3f3ca1674027f7b614dfe69de12f915bcb172d48b097fece7d89ad042c210b1d63f1f2f06d30703d02'
6
+ metadata.gz: a42893066259a98b677ce76ac7f34f962229ff88087e1f54158dbcde2b5f4a86ceb31ac670d938bdace44077fcca5179f89ab1b0b160a09f92ccb4c02ab7e5e6
7
+ data.tar.gz: eccf155b6cb2698547c5867cc5fec937374216d4a6657cfb1255a794eb0bc28e3c9d7ebacd7efdfef52f6948ed388c445e539b14cae79f993045bbd522e922ee
@@ -2,6 +2,7 @@ module PaychexAPI
2
2
  class Client
3
3
  module Companies
4
4
  def get_company(company_id, params = {})
5
+ connection.headers[:accept] = "application/json;profile='http://api.paychex.com/profiles/company_productconfigs/v1'"
5
6
  get("#{API_PATH}#{COMPANIES_PATH}/#{company_id}", params)
6
7
  end
7
8
 
@@ -1,3 +1,3 @@
1
1
  module PaychexAPI
2
- VERSION = '0.0.11'.freeze unless defined?(PaychexAPI::VERSION)
2
+ VERSION = '0.0.12'.freeze unless defined?(PaychexAPI::VERSION)
3
3
  end
@@ -0,0 +1,42 @@
1
+ {
2
+ "content": [
3
+ {
4
+ "associationId": "00H2A1IUJHNG0KX092KF",
5
+ "associationType": "LMS_ES_BPR",
6
+ "description": "LMS Association 1",
7
+ "siteId": "00H2A1IUJHNG0KX092KD",
8
+ "communications": [
9
+ {
10
+ "type": "STREET_ADDRESS",
11
+ "usageType": "BUSINESS",
12
+ "streetLineOne": "1232 SAFE RD",
13
+ "city": "ROCHESTER",
14
+ "postalCode": "14607",
15
+ "countrySubdivisionCode": "NY",
16
+ "countryCode": "US"
17
+ }
18
+ ],
19
+ "companies": [
20
+ {
21
+ "companyId": "99Z5V9BTI8J2FCGESC05",
22
+ "displayId": "09643075",
23
+ "legalName": "API 10 CORE SMALL BHUMPHREY 05-14-2018 1878",
24
+ "legalId": {
25
+ "legalIdType": "FEIN",
26
+ "legalIdValue": "923248058"
27
+ }
28
+ }
29
+ ],
30
+ "links": [
31
+ {
32
+ "rel": "self",
33
+ "href": "https://api.tn2.paychex.com/companies/00H2A1IUJH6JL09DIM8A"
34
+ },
35
+ {
36
+ "rel": "workers",
37
+ "href": "https://api.tn2.paychex.com/companies/00H2A1IUJH6JL09DIM8A/workers"
38
+ }
39
+ ]
40
+ }
41
+ ]
42
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paychex_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay Shaffer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-28 00:00:00.000000000 Z
11
+ date: 2018-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -245,6 +245,7 @@ files:
245
245
  - lib/paychex_api/client/workers.rb
246
246
  - lib/paychex_api/version.rb
247
247
  - paychex_api.gemspec
248
+ - spec/fixtures/association_companies.json
248
249
  - spec/fixtures/auth.json
249
250
  - spec/fixtures/communications.json
250
251
  - spec/fixtures/companies.json
@@ -289,6 +290,7 @@ signing_key:
289
290
  specification_version: 4
290
291
  summary: Paychex API
291
292
  test_files:
293
+ - spec/fixtures/association_companies.json
292
294
  - spec/fixtures/auth.json
293
295
  - spec/fixtures/communications.json
294
296
  - spec/fixtures/companies.json