Skip to content

Commit 51b48d5

Browse files
authored
[ENG-560] Update gem with latest models (#14)
* fix: do not use region slug when building API base url * chore: update the gem version and latest models changes
1 parent a35c026 commit 51b48d5

57 files changed

Lines changed: 287 additions & 267 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ script:
88
- bundle install --path vendor/bundle
99
- bundle exec rspec
1010
- gem build stackone_hris_client.gemspec
11-
- gem install ./stackone_hris_client-1.5.1.gem
11+
- gem install ./stackone_hris_client-1.6.0.gem

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
stackone_hris_client (1.5.2)
4+
stackone_hris_client (1.6.0)
55
typhoeus (~> 1.0, >= 1.0.1)
66

77
GEM

README.md

Lines changed: 22 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The documentation for the StackOne Unified API - HRIS
77
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
88

99
- API version: 1.0.0
10-
- Package version: 1.5.2
10+
- Package version: 1.6.0
1111
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
1212

1313
## Installation
@@ -23,16 +23,16 @@ gem build stackone_hris_client.gemspec
2323
Then either install the gem locally:
2424

2525
```shell
26-
gem install ./stackone_hris_client-1.5.2.gem
26+
gem install ./stackone_hris_client-1.6.0.gem
2727
```
2828

29-
(for development, run `gem install --dev ./stackone_hris_client-1.5.2.gem` to install the development dependencies)
29+
(for development, run `gem install --dev ./stackone_hris_client-1.6.0.gem` to install the development dependencies)
3030

3131
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
3232

3333
Finally add this to the Gemfile:
3434

35-
gem 'stackone_hris_client', '~> 1.5.2'
35+
gem 'stackone_hris_client', '~> 1.6.0'
3636

3737
### Install from Git
3838

@@ -62,23 +62,15 @@ StackOneHRIS.configure do |config|
6262
config.api_key_token = 'YOUR API KEY'
6363
end
6464

65-
api_instance = StackOneHRIS::EmployeesApi.new
65+
api_instance = StackOneHRIS::AccountsApi.new
6666
id = 'id_example' # String |
67-
x_account_id = 'x_account_id_example' # String | The account identifier
68-
opts = {
69-
page: 'page_example', # String | The page number of the results to fetch
70-
page_size: 'page_size_example', # String | The number of results per page
71-
raw: true, # Boolean | Indicates that the raw request result is returned
72-
fields: ['inner_example'], # Array<String> | The list of fields to return in the response (if empty, all fields are returned)
73-
expand: ['inner_example'] # Array<String> | The list of fields that will be expanded in the response
74-
}
7567

7668
begin
77-
#
78-
result = api_instance.employees_get(id, x_account_id, opts)
69+
#Delete Account
70+
result = api_instance.accounts_delete(id)
7971
p result
8072
rescue StackOneHRIS::ApiError => e
81-
puts "Exception when calling EmployeesApi->employees_get: #{e}"
73+
puts "Exception when calling AccountsApi->accounts_delete: #{e}"
8274
end
8375

8476
```
@@ -89,19 +81,19 @@ All URIs are relative to *https://api.stackone.com*
8981

9082
Class | Method | HTTP request | Description
9183
------------ | ------------- | ------------- | -------------
92-
*StackOneHRIS::AccountsApi* | [**accounts_delete**](docs/AccountsApi.md#accounts_delete) | **DELETE** /accounts/{id} |
93-
*StackOneHRIS::AccountsApi* | [**accounts_get**](docs/AccountsApi.md#accounts_get) | **GET** /accounts/{id} |
94-
*StackOneHRIS::AccountsApi* | [**accounts_list**](docs/AccountsApi.md#accounts_list) | **GET** /accounts |
95-
*StackOneHRIS::CompaniesApi* | [**companies_get**](docs/CompaniesApi.md#companies_get) | **GET** /unified/hris/companies/{id} |
96-
*StackOneHRIS::CompaniesApi* | [**companies_list**](docs/CompaniesApi.md#companies_list) | **GET** /unified/hris/companies |
97-
*StackOneHRIS::ConnectSessionsApi* | [**connect_sessions_authenticate**](docs/ConnectSessionsApi.md#connect_sessions_authenticate) | **POST** /connect_sessions/authenticate |
98-
*StackOneHRIS::ConnectSessionsApi* | [**connect_sessions_create**](docs/ConnectSessionsApi.md#connect_sessions_create) | **POST** /connect_sessions |
99-
*StackOneHRIS::EmployeesApi* | [**employees_get**](docs/EmployeesApi.md#employees_get) | **GET** /unified/hris/employees/{id} |
100-
*StackOneHRIS::EmployeesApi* | [**employees_list**](docs/EmployeesApi.md#employees_list) | **GET** /unified/hris/employees |
101-
*StackOneHRIS::EmploymentsApi* | [**employments_get**](docs/EmploymentsApi.md#employments_get) | **GET** /unified/hris/employments/{id} |
102-
*StackOneHRIS::EmploymentsApi* | [**employments_list**](docs/EmploymentsApi.md#employments_list) | **GET** /unified/hris/employments |
103-
*StackOneHRIS::LocationsApi* | [**hris_locations_get**](docs/LocationsApi.md#hris_locations_get) | **GET** /unified/hris/locations/{id} |
104-
*StackOneHRIS::LocationsApi* | [**hris_locations_list**](docs/LocationsApi.md#hris_locations_list) | **GET** /unified/hris/locations |
84+
*StackOneHRIS::AccountsApi* | [**accounts_delete**](docs/AccountsApi.md#accounts_delete) | **DELETE** /accounts/{id} | Delete Account
85+
*StackOneHRIS::AccountsApi* | [**accounts_get**](docs/AccountsApi.md#accounts_get) | **GET** /accounts/{id} | Get Account
86+
*StackOneHRIS::AccountsApi* | [**accounts_list**](docs/AccountsApi.md#accounts_list) | **GET** /accounts | List Accounts
87+
*StackOneHRIS::CompaniesApi* | [**hris_companies_get**](docs/CompaniesApi.md#hris_companies_get) | **GET** /unified/hris/companies/{id} | Get Company
88+
*StackOneHRIS::CompaniesApi* | [**hris_companies_list**](docs/CompaniesApi.md#hris_companies_list) | **GET** /unified/hris/companies | List Companies
89+
*StackOneHRIS::ConnectSessionsApi* | [**connect_sessions_authenticate**](docs/ConnectSessionsApi.md#connect_sessions_authenticate) | **POST** /connect_sessions/authenticate | Authenticate Session
90+
*StackOneHRIS::ConnectSessionsApi* | [**connect_sessions_create**](docs/ConnectSessionsApi.md#connect_sessions_create) | **POST** /connect_sessions | Create Session
91+
*StackOneHRIS::EmployeesApi* | [**hris_employees_get**](docs/EmployeesApi.md#hris_employees_get) | **GET** /unified/hris/employees/{id} | Get Employee
92+
*StackOneHRIS::EmployeesApi* | [**hris_employees_list**](docs/EmployeesApi.md#hris_employees_list) | **GET** /unified/hris/employees | List Employees
93+
*StackOneHRIS::EmploymentsApi* | [**hris_employments_get**](docs/EmploymentsApi.md#hris_employments_get) | **GET** /unified/hris/employments/{id} | Get Employment
94+
*StackOneHRIS::EmploymentsApi* | [**hris_employments_list**](docs/EmploymentsApi.md#hris_employments_list) | **GET** /unified/hris/employments | List Employments
95+
*StackOneHRIS::LocationsApi* | [**hris_locations_get**](docs/LocationsApi.md#hris_locations_get) | **GET** /unified/hris/locations/{id} | Get location
96+
*StackOneHRIS::LocationsApi* | [**hris_locations_list**](docs/LocationsApi.md#hris_locations_list) | **GET** /unified/hris/locations | List locations
10597

10698

10799
## Documentation for Models
@@ -138,6 +130,7 @@ Class | Method | HTTP request | Description
138130
## Documentation for Authorization
139131

140132

133+
Authentication schemes defined for the API:
141134
### basic
142135

143136
- **Type**: HTTP basic authentication

docs/Account.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
| ---- | ---- | ----------- | ----- |
77
| **id** | **String** | | |
88
| **provider** | **String** | | |
9+
| **active** | **Boolean** | | |
910
| **origin_owner_id** | **String** | | |
1011
| **origin_owner_name** | **String** | | |
1112
| **origin_username** | **String** | | |
@@ -21,6 +22,7 @@ require 'stackone_hris_client'
2122
instance = StackOneHRIS::Account.new(
2223
id: null,
2324
provider: null,
25+
active: null,
2426
origin_owner_id: null,
2527
origin_owner_name: null,
2628
origin_username: null,

docs/AccountsApi.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ All URIs are relative to *https://api.stackone.com*
44

55
| Method | HTTP request | Description |
66
| ------ | ------------ | ----------- |
7-
| [**accounts_delete**](AccountsApi.md#accounts_delete) | **DELETE** /accounts/{id} | |
8-
| [**accounts_get**](AccountsApi.md#accounts_get) | **GET** /accounts/{id} | |
9-
| [**accounts_list**](AccountsApi.md#accounts_list) | **GET** /accounts | |
7+
| [**accounts_delete**](AccountsApi.md#accounts_delete) | **DELETE** /accounts/{id} | Delete Account |
8+
| [**accounts_get**](AccountsApi.md#accounts_get) | **GET** /accounts/{id} | Get Account |
9+
| [**accounts_list**](AccountsApi.md#accounts_list) | **GET** /accounts | List Accounts |
1010

1111

1212
## accounts_delete
1313

1414
> <Account> accounts_delete(id)
1515
16-
16+
Delete Account
1717

1818
### Examples
1919

@@ -30,7 +30,7 @@ api_instance = StackOneHRIS::AccountsApi.new
3030
id = 'id_example' # String |
3131

3232
begin
33-
#
33+
# Delete Account
3434
result = api_instance.accounts_delete(id)
3535
p result
3636
rescue StackOneHRIS::ApiError => e
@@ -46,7 +46,7 @@ This returns an Array which contains the response data, status code and headers.
4646
4747
```ruby
4848
begin
49-
#
49+
# Delete Account
5050
data, status_code, headers = api_instance.accounts_delete_with_http_info(id)
5151
p status_code # => 2xx
5252
p headers # => { ... }
@@ -80,7 +80,7 @@ end
8080

8181
> <Account> accounts_get(id)
8282
83-
83+
Get Account
8484

8585
### Examples
8686

@@ -97,7 +97,7 @@ api_instance = StackOneHRIS::AccountsApi.new
9797
id = 'id_example' # String |
9898

9999
begin
100-
#
100+
# Get Account
101101
result = api_instance.accounts_get(id)
102102
p result
103103
rescue StackOneHRIS::ApiError => e
@@ -113,7 +113,7 @@ This returns an Array which contains the response data, status code and headers.
113113
114114
```ruby
115115
begin
116-
#
116+
# Get Account
117117
data, status_code, headers = api_instance.accounts_get_with_http_info(id)
118118
p status_code # => 2xx
119119
p headers # => { ... }
@@ -147,7 +147,7 @@ end
147147

148148
> <Array<Account>> accounts_list(opts)
149149
150-
150+
List Accounts
151151

152152
### Examples
153153

@@ -167,7 +167,7 @@ opts = {
167167
}
168168

169169
begin
170-
#
170+
# List Accounts
171171
result = api_instance.accounts_list(opts)
172172
p result
173173
rescue StackOneHRIS::ApiError => e
@@ -183,7 +183,7 @@ This returns an Array which contains the response data, status code and headers.
183183
184184
```ruby
185185
begin
186-
#
186+
# List Accounts
187187
data, status_code, headers = api_instance.accounts_list_with_http_info(opts)
188188
p status_code # => 2xx
189189
p headers # => { ... }

docs/CompaniesApi.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ All URIs are relative to *https://api.stackone.com*
44

55
| Method | HTTP request | Description |
66
| ------ | ------------ | ----------- |
7-
| [**companies_get**](CompaniesApi.md#companies_get) | **GET** /unified/hris/companies/{id} | |
8-
| [**companies_list**](CompaniesApi.md#companies_list) | **GET** /unified/hris/companies | |
7+
| [**hris_companies_get**](CompaniesApi.md#hris_companies_get) | **GET** /unified/hris/companies/{id} | Get Company |
8+
| [**hris_companies_list**](CompaniesApi.md#hris_companies_list) | **GET** /unified/hris/companies | List Companies |
99

1010

11-
## companies_get
12-
13-
> <CompanyResult> companies_get(id, x_account_id, opts)
11+
## hris_companies_get
1412

13+
> <CompanyResult> hris_companies_get(id, x_account_id, opts)
1514
15+
Get Company
1616

1717
### Examples
1818

@@ -38,29 +38,29 @@ opts = {
3838
}
3939

4040
begin
41-
#
42-
result = api_instance.companies_get(id, x_account_id, opts)
41+
# Get Company
42+
result = api_instance.hris_companies_get(id, x_account_id, opts)
4343
p result
4444
rescue StackOneHRIS::ApiError => e
45-
puts "Error when calling CompaniesApi->companies_get: #{e}"
45+
puts "Error when calling CompaniesApi->hris_companies_get: #{e}"
4646
end
4747
```
4848

49-
#### Using the companies_get_with_http_info variant
49+
#### Using the hris_companies_get_with_http_info variant
5050

5151
This returns an Array which contains the response data, status code and headers.
5252

53-
> <Array(<CompanyResult>, Integer, Hash)> companies_get_with_http_info(id, x_account_id, opts)
53+
> <Array(<CompanyResult>, Integer, Hash)> hris_companies_get_with_http_info(id, x_account_id, opts)
5454
5555
```ruby
5656
begin
57-
#
58-
data, status_code, headers = api_instance.companies_get_with_http_info(id, x_account_id, opts)
57+
# Get Company
58+
data, status_code, headers = api_instance.hris_companies_get_with_http_info(id, x_account_id, opts)
5959
p status_code # => 2xx
6060
p headers # => { ... }
6161
p data # => <CompanyResult>
6262
rescue StackOneHRIS::ApiError => e
63-
puts "Error when calling CompaniesApi->companies_get_with_http_info: #{e}"
63+
puts "Error when calling CompaniesApi->hris_companies_get_with_http_info: #{e}"
6464
end
6565
```
6666

@@ -91,11 +91,11 @@ end
9191
- **Accept**: application/json
9292

9393

94-
## companies_list
95-
96-
> <CompaniesPaginated> companies_list(x_account_id, opts)
94+
## hris_companies_list
9795

96+
> <CompaniesPaginated> hris_companies_list(x_account_id, opts)
9897
98+
List Companies
9999

100100
### Examples
101101

@@ -120,29 +120,29 @@ opts = {
120120
}
121121

122122
begin
123-
#
124-
result = api_instance.companies_list(x_account_id, opts)
123+
# List Companies
124+
result = api_instance.hris_companies_list(x_account_id, opts)
125125
p result
126126
rescue StackOneHRIS::ApiError => e
127-
puts "Error when calling CompaniesApi->companies_list: #{e}"
127+
puts "Error when calling CompaniesApi->hris_companies_list: #{e}"
128128
end
129129
```
130130

131-
#### Using the companies_list_with_http_info variant
131+
#### Using the hris_companies_list_with_http_info variant
132132

133133
This returns an Array which contains the response data, status code and headers.
134134

135-
> <Array(<CompaniesPaginated>, Integer, Hash)> companies_list_with_http_info(x_account_id, opts)
135+
> <Array(<CompaniesPaginated>, Integer, Hash)> hris_companies_list_with_http_info(x_account_id, opts)
136136
137137
```ruby
138138
begin
139-
#
140-
data, status_code, headers = api_instance.companies_list_with_http_info(x_account_id, opts)
139+
# List Companies
140+
data, status_code, headers = api_instance.hris_companies_list_with_http_info(x_account_id, opts)
141141
p status_code # => 2xx
142142
p headers # => { ... }
143143
p data # => <CompaniesPaginated>
144144
rescue StackOneHRIS::ApiError => e
145-
puts "Error when calling CompaniesApi->companies_list_with_http_info: #{e}"
145+
puts "Error when calling CompaniesApi->hris_companies_list_with_http_info: #{e}"
146146
end
147147
```
148148

docs/ConnectSession.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ instance = StackOneHRIS::ConnectSession.new(
2323
id: null,
2424
organization_id: null,
2525
project_id: null,
26-
categories: [&quot;ats&quot;,&quot;hris&quot;,&quot;crm&quot;,&quot;common&quot;],
26+
categories: [&quot;ats&quot;,&quot;hris&quot;,&quot;crm&quot;,&quot;marketing&quot;,&quot;common&quot;],
2727
provider: null,
2828
origin_owner_id: null,
2929
origin_owner_name: null,

docs/ConnectSessionCreate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
require 'stackone_hris_client'
1919

2020
instance = StackOneHRIS::ConnectSessionCreate.new(
21-
categories: [&quot;ats&quot;,&quot;hris&quot;,&quot;crm&quot;,&quot;common&quot;],
21+
categories: [&quot;ats&quot;,&quot;hris&quot;,&quot;crm&quot;,&quot;marketing&quot;,&quot;common&quot;],
2222
provider: null,
2323
origin_owner_id: null,
2424
origin_owner_name: null,

docs/ConnectSessionToken.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ instance = StackOneHRIS::ConnectSessionToken.new(
2424
id: null,
2525
organization_id: null,
2626
project_id: null,
27-
categories: [&quot;ats&quot;,&quot;hris&quot;,&quot;crm&quot;,&quot;common&quot;],
27+
categories: [&quot;ats&quot;,&quot;hris&quot;,&quot;crm&quot;,&quot;marketing&quot;,&quot;common&quot;],
2828
provider: null,
2929
origin_owner_id: null,
3030
origin_owner_name: null,

0 commit comments

Comments
 (0)