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 +4 -4
- data/lib/paychex_api/client/companies.rb +1 -0
- data/lib/paychex_api/version.rb +1 -1
- data/spec/fixtures/association_companies.json +42 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5bad6df044aa263a6276061ebf35bfeb44b28e7f4052ace6913f1cd736e6501
|
4
|
+
data.tar.gz: 71a7fe4a4d9150f31b8939c60a06655650768075193d00f8c73f2678e037fdb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/paychex_api/version.rb
CHANGED
@@ -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.
|
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
|
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
|