affixapi 1.1.47 → 1.1.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -3
- data/docs/Class20230301Api.md +0 -72
- data/docs/{CurrencyRequest.md → CurrencyNotNullRequest.md} +2 -2
- data/docs/EmploymentNoNullEnumRequest.md +1 -1
- data/docs/XHRVerticallyIntegratedApi.md +0 -72
- data/lib/openapi_client/api/class20230301_api.rb +0 -65
- data/lib/openapi_client/api/xhr_vertically_integrated_api.rb +0 -65
- data/lib/openapi_client/models/{currency_request.rb → currency_not_null_request.rb} +3 -3
- data/lib/openapi_client/models/currency_response.rb +1 -0
- data/lib/openapi_client/models/employment_no_null_enum_request.rb +1 -1
- data/lib/openapi_client/models/employment_response.rb +1 -5
- data/lib/openapi_client/version.rb +1 -1
- data/lib/openapi_client.rb +1 -1
- data/spec/api/class20230301_api_spec.rb +0 -12
- data/spec/api/xhr_vertically_integrated_api_spec.rb +0 -12
- data/spec/models/{currency_request_spec.rb → currency_not_null_request_spec.rb} +6 -6
- metadata +39 -39
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 55f43980c60caf740d055193a075b2e63c2b14ec823ad1d8459838072aa30c8b
|
|
4
|
+
data.tar.gz: 9153e24cd8ed572fcce8dd3e40c4d62bc39165739fad37dc98f612ee626ffb18
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 34a2bbbf813dd0f45cc2b57e329e322755947bda91b1a2cd39c1a1fa9c17cceb285b61d3b2a597bfc5f6cbbd9d1a6c93e1fdff0d742fe257d5e63aeb0c24ebce
|
|
7
|
+
data.tar.gz: e20976bc944571c8734cdb5e52de9bbe436cff12bc27e214227222edc5af6b9eb0fd59b28c7ce2822e877a68253bdbb9e1d1798a5ab3e6522268466aa5631584
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -289,7 +289,6 @@ All URIs are relative to *https://api.affixapi.com*
|
|
|
289
289
|
Class | Method | HTTP request | Description
|
|
290
290
|
------------ | ------------- | ------------- | -------------
|
|
291
291
|
*OpenapiClient::Class20230301Api* | [**xhr_companies20230301**](docs/Class20230301Api.md#xhr_companies20230301) | **GET** /2023-03-01/xhr/company | Company
|
|
292
|
-
*OpenapiClient::Class20230301Api* | [**xhr_create_employee20230301**](docs/Class20230301Api.md#xhr_create_employee20230301) | **POST** /2023-03-01/xhr/employee | Create employee
|
|
293
292
|
*OpenapiClient::Class20230301Api* | [**xhr_employees20230301**](docs/Class20230301Api.md#xhr_employees20230301) | **GET** /2023-03-01/xhr/employees | Employees
|
|
294
293
|
*OpenapiClient::Class20230301Api* | [**xhr_groups20230301**](docs/Class20230301Api.md#xhr_groups20230301) | **GET** /2023-03-01/xhr/groups | Groups
|
|
295
294
|
*OpenapiClient::Class20230301Api* | [**xhr_identity20230301**](docs/Class20230301Api.md#xhr_identity20230301) | **GET** /2023-03-01/xhr/identity | Identity
|
|
@@ -307,7 +306,6 @@ Class | Method | HTTP request | Description
|
|
|
307
306
|
*OpenapiClient::ManagementApi* | [**tokens**](docs/ManagementApi.md#tokens) | **GET** /2023-03-01/management/tokens | Tokens
|
|
308
307
|
*OpenapiClient::ManagementApi* | [**update_client**](docs/ManagementApi.md#update_client) | **POST** /2023-03-01/management/client | Update client
|
|
309
308
|
*OpenapiClient::XHRVerticallyIntegratedApi* | [**xhr_companies20230301**](docs/XHRVerticallyIntegratedApi.md#xhr_companies20230301) | **GET** /2023-03-01/xhr/company | Company
|
|
310
|
-
*OpenapiClient::XHRVerticallyIntegratedApi* | [**xhr_create_employee20230301**](docs/XHRVerticallyIntegratedApi.md#xhr_create_employee20230301) | **POST** /2023-03-01/xhr/employee | Create employee
|
|
311
309
|
*OpenapiClient::XHRVerticallyIntegratedApi* | [**xhr_employees20230301**](docs/XHRVerticallyIntegratedApi.md#xhr_employees20230301) | **GET** /2023-03-01/xhr/employees | Employees
|
|
312
310
|
*OpenapiClient::XHRVerticallyIntegratedApi* | [**xhr_groups20230301**](docs/XHRVerticallyIntegratedApi.md#xhr_groups20230301) | **GET** /2023-03-01/xhr/groups | Groups
|
|
313
311
|
*OpenapiClient::XHRVerticallyIntegratedApi* | [**xhr_identity20230301**](docs/XHRVerticallyIntegratedApi.md#xhr_identity20230301) | **GET** /2023-03-01/xhr/identity | Identity
|
|
@@ -329,7 +327,7 @@ Class | Method | HTTP request | Description
|
|
|
329
327
|
- [OpenapiClient::CreateEmployeeRequest](docs/CreateEmployeeRequest.md)
|
|
330
328
|
- [OpenapiClient::CreateEmployeeRequestBankAccount](docs/CreateEmployeeRequestBankAccount.md)
|
|
331
329
|
- [OpenapiClient::CreateEmployeeRequestManager](docs/CreateEmployeeRequestManager.md)
|
|
332
|
-
- [OpenapiClient::
|
|
330
|
+
- [OpenapiClient::CurrencyNotNullRequest](docs/CurrencyNotNullRequest.md)
|
|
333
331
|
- [OpenapiClient::CurrencyResponse](docs/CurrencyResponse.md)
|
|
334
332
|
- [OpenapiClient::DisconnectResponse](docs/DisconnectResponse.md)
|
|
335
333
|
- [OpenapiClient::EmployeeResponse](docs/EmployeeResponse.md)
|
data/docs/Class20230301Api.md
CHANGED
|
@@ -5,7 +5,6 @@ All URIs are relative to *https://api.affixapi.com*
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
7
|
| [**xhr_companies20230301**](Class20230301Api.md#xhr_companies20230301) | **GET** /2023-03-01/xhr/company | Company |
|
|
8
|
-
| [**xhr_create_employee20230301**](Class20230301Api.md#xhr_create_employee20230301) | **POST** /2023-03-01/xhr/employee | Create employee |
|
|
9
8
|
| [**xhr_employees20230301**](Class20230301Api.md#xhr_employees20230301) | **GET** /2023-03-01/xhr/employees | Employees |
|
|
10
9
|
| [**xhr_groups20230301**](Class20230301Api.md#xhr_groups20230301) | **GET** /2023-03-01/xhr/groups | Groups |
|
|
11
10
|
| [**xhr_identity20230301**](Class20230301Api.md#xhr_identity20230301) | **GET** /2023-03-01/xhr/identity | Identity |
|
|
@@ -85,77 +84,6 @@ This endpoint does not need any parameter.
|
|
|
85
84
|
- **Accept**: application/json
|
|
86
85
|
|
|
87
86
|
|
|
88
|
-
## xhr_create_employee20230301
|
|
89
|
-
|
|
90
|
-
> <EmployeeResponse> xhr_create_employee20230301(create_employee_request)
|
|
91
|
-
|
|
92
|
-
Create employee
|
|
93
|
-
|
|
94
|
-
Creates a new Employee
|
|
95
|
-
|
|
96
|
-
### Examples
|
|
97
|
-
|
|
98
|
-
```ruby
|
|
99
|
-
require 'time'
|
|
100
|
-
require 'openapi_client'
|
|
101
|
-
# setup authorization
|
|
102
|
-
OpenapiClient.configure do |config|
|
|
103
|
-
# Configure API key authorization: access-token
|
|
104
|
-
config.api_key['access-token'] = 'YOUR API KEY'
|
|
105
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
106
|
-
# config.api_key_prefix['access-token'] = 'Bearer'
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
api_instance = OpenapiClient::Class20230301Api.new
|
|
110
|
-
create_employee_request = OpenapiClient::CreateEmployeeRequest.new({first_name: 'Greg', last_name: 'Hirsch'}) # CreateEmployeeRequest |
|
|
111
|
-
|
|
112
|
-
begin
|
|
113
|
-
# Create employee
|
|
114
|
-
result = api_instance.xhr_create_employee20230301(create_employee_request)
|
|
115
|
-
p result
|
|
116
|
-
rescue OpenapiClient::ApiError => e
|
|
117
|
-
puts "Error when calling Class20230301Api->xhr_create_employee20230301: #{e}"
|
|
118
|
-
end
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
#### Using the xhr_create_employee20230301_with_http_info variant
|
|
122
|
-
|
|
123
|
-
This returns an Array which contains the response data, status code and headers.
|
|
124
|
-
|
|
125
|
-
> <Array(<EmployeeResponse>, Integer, Hash)> xhr_create_employee20230301_with_http_info(create_employee_request)
|
|
126
|
-
|
|
127
|
-
```ruby
|
|
128
|
-
begin
|
|
129
|
-
# Create employee
|
|
130
|
-
data, status_code, headers = api_instance.xhr_create_employee20230301_with_http_info(create_employee_request)
|
|
131
|
-
p status_code # => 2xx
|
|
132
|
-
p headers # => { ... }
|
|
133
|
-
p data # => <EmployeeResponse>
|
|
134
|
-
rescue OpenapiClient::ApiError => e
|
|
135
|
-
puts "Error when calling Class20230301Api->xhr_create_employee20230301_with_http_info: #{e}"
|
|
136
|
-
end
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
### Parameters
|
|
140
|
-
|
|
141
|
-
| Name | Type | Description | Notes |
|
|
142
|
-
| ---- | ---- | ----------- | ----- |
|
|
143
|
-
| **create_employee_request** | [**CreateEmployeeRequest**](CreateEmployeeRequest.md) | | |
|
|
144
|
-
|
|
145
|
-
### Return type
|
|
146
|
-
|
|
147
|
-
[**EmployeeResponse**](EmployeeResponse.md)
|
|
148
|
-
|
|
149
|
-
### Authorization
|
|
150
|
-
|
|
151
|
-
[access-token](../README.md#access-token)
|
|
152
|
-
|
|
153
|
-
### HTTP request headers
|
|
154
|
-
|
|
155
|
-
- **Content-Type**: application/json
|
|
156
|
-
- **Accept**: application/json
|
|
157
|
-
|
|
158
|
-
|
|
159
87
|
## xhr_employees20230301
|
|
160
88
|
|
|
161
89
|
> <Array<EmployeeResponse>> xhr_employees20230301
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# OpenapiClient::
|
|
1
|
+
# OpenapiClient::CurrencyNotNullRequest
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
```ruby
|
|
11
11
|
require 'openapi_client'
|
|
12
12
|
|
|
13
|
-
instance = OpenapiClient::
|
|
13
|
+
instance = OpenapiClient::CurrencyNotNullRequest.new()
|
|
14
14
|
```
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
| **pay_period** | **String** | | |
|
|
10
10
|
| **pay_frequency** | **String** | | |
|
|
11
11
|
| **employment_type** | **String** | | |
|
|
12
|
-
| **currency** | [**
|
|
12
|
+
| **currency** | [**CurrencyNotNullRequest**](CurrencyNotNullRequest.md) | | |
|
|
13
13
|
| **effective_date** | **Date** | | |
|
|
14
14
|
|
|
15
15
|
## Example
|
|
@@ -5,7 +5,6 @@ All URIs are relative to *https://api.affixapi.com*
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
7
|
| [**xhr_companies20230301**](XHRVerticallyIntegratedApi.md#xhr_companies20230301) | **GET** /2023-03-01/xhr/company | Company |
|
|
8
|
-
| [**xhr_create_employee20230301**](XHRVerticallyIntegratedApi.md#xhr_create_employee20230301) | **POST** /2023-03-01/xhr/employee | Create employee |
|
|
9
8
|
| [**xhr_employees20230301**](XHRVerticallyIntegratedApi.md#xhr_employees20230301) | **GET** /2023-03-01/xhr/employees | Employees |
|
|
10
9
|
| [**xhr_groups20230301**](XHRVerticallyIntegratedApi.md#xhr_groups20230301) | **GET** /2023-03-01/xhr/groups | Groups |
|
|
11
10
|
| [**xhr_identity20230301**](XHRVerticallyIntegratedApi.md#xhr_identity20230301) | **GET** /2023-03-01/xhr/identity | Identity |
|
|
@@ -85,77 +84,6 @@ This endpoint does not need any parameter.
|
|
|
85
84
|
- **Accept**: application/json
|
|
86
85
|
|
|
87
86
|
|
|
88
|
-
## xhr_create_employee20230301
|
|
89
|
-
|
|
90
|
-
> <EmployeeResponse> xhr_create_employee20230301(create_employee_request)
|
|
91
|
-
|
|
92
|
-
Create employee
|
|
93
|
-
|
|
94
|
-
Creates a new Employee
|
|
95
|
-
|
|
96
|
-
### Examples
|
|
97
|
-
|
|
98
|
-
```ruby
|
|
99
|
-
require 'time'
|
|
100
|
-
require 'openapi_client'
|
|
101
|
-
# setup authorization
|
|
102
|
-
OpenapiClient.configure do |config|
|
|
103
|
-
# Configure API key authorization: access-token
|
|
104
|
-
config.api_key['access-token'] = 'YOUR API KEY'
|
|
105
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
106
|
-
# config.api_key_prefix['access-token'] = 'Bearer'
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
api_instance = OpenapiClient::XHRVerticallyIntegratedApi.new
|
|
110
|
-
create_employee_request = OpenapiClient::CreateEmployeeRequest.new({first_name: 'Greg', last_name: 'Hirsch'}) # CreateEmployeeRequest |
|
|
111
|
-
|
|
112
|
-
begin
|
|
113
|
-
# Create employee
|
|
114
|
-
result = api_instance.xhr_create_employee20230301(create_employee_request)
|
|
115
|
-
p result
|
|
116
|
-
rescue OpenapiClient::ApiError => e
|
|
117
|
-
puts "Error when calling XHRVerticallyIntegratedApi->xhr_create_employee20230301: #{e}"
|
|
118
|
-
end
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
#### Using the xhr_create_employee20230301_with_http_info variant
|
|
122
|
-
|
|
123
|
-
This returns an Array which contains the response data, status code and headers.
|
|
124
|
-
|
|
125
|
-
> <Array(<EmployeeResponse>, Integer, Hash)> xhr_create_employee20230301_with_http_info(create_employee_request)
|
|
126
|
-
|
|
127
|
-
```ruby
|
|
128
|
-
begin
|
|
129
|
-
# Create employee
|
|
130
|
-
data, status_code, headers = api_instance.xhr_create_employee20230301_with_http_info(create_employee_request)
|
|
131
|
-
p status_code # => 2xx
|
|
132
|
-
p headers # => { ... }
|
|
133
|
-
p data # => <EmployeeResponse>
|
|
134
|
-
rescue OpenapiClient::ApiError => e
|
|
135
|
-
puts "Error when calling XHRVerticallyIntegratedApi->xhr_create_employee20230301_with_http_info: #{e}"
|
|
136
|
-
end
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
### Parameters
|
|
140
|
-
|
|
141
|
-
| Name | Type | Description | Notes |
|
|
142
|
-
| ---- | ---- | ----------- | ----- |
|
|
143
|
-
| **create_employee_request** | [**CreateEmployeeRequest**](CreateEmployeeRequest.md) | | |
|
|
144
|
-
|
|
145
|
-
### Return type
|
|
146
|
-
|
|
147
|
-
[**EmployeeResponse**](EmployeeResponse.md)
|
|
148
|
-
|
|
149
|
-
### Authorization
|
|
150
|
-
|
|
151
|
-
[access-token](../README.md#access-token)
|
|
152
|
-
|
|
153
|
-
### HTTP request headers
|
|
154
|
-
|
|
155
|
-
- **Content-Type**: application/json
|
|
156
|
-
- **Accept**: application/json
|
|
157
|
-
|
|
158
|
-
|
|
159
87
|
## xhr_employees20230301
|
|
160
88
|
|
|
161
89
|
> <Array<EmployeeResponse>> xhr_employees20230301
|
|
@@ -76,71 +76,6 @@ module OpenapiClient
|
|
|
76
76
|
return data, status_code, headers
|
|
77
77
|
end
|
|
78
78
|
|
|
79
|
-
# Create employee
|
|
80
|
-
# Creates a new Employee
|
|
81
|
-
# @param create_employee_request [CreateEmployeeRequest]
|
|
82
|
-
# @param [Hash] opts the optional parameters
|
|
83
|
-
# @return [EmployeeResponse]
|
|
84
|
-
def xhr_create_employee20230301(create_employee_request, opts = {})
|
|
85
|
-
data, _status_code, _headers = xhr_create_employee20230301_with_http_info(create_employee_request, opts)
|
|
86
|
-
data
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
# Create employee
|
|
90
|
-
# Creates a new Employee
|
|
91
|
-
# @param create_employee_request [CreateEmployeeRequest]
|
|
92
|
-
# @param [Hash] opts the optional parameters
|
|
93
|
-
# @return [Array<(EmployeeResponse, Integer, Hash)>] EmployeeResponse data, response status code and response headers
|
|
94
|
-
def xhr_create_employee20230301_with_http_info(create_employee_request, opts = {})
|
|
95
|
-
if @api_client.config.debugging
|
|
96
|
-
@api_client.config.logger.debug 'Calling API: Class20230301Api.xhr_create_employee20230301 ...'
|
|
97
|
-
end
|
|
98
|
-
# verify the required parameter 'create_employee_request' is set
|
|
99
|
-
if @api_client.config.client_side_validation && create_employee_request.nil?
|
|
100
|
-
fail ArgumentError, "Missing the required parameter 'create_employee_request' when calling Class20230301Api.xhr_create_employee20230301"
|
|
101
|
-
end
|
|
102
|
-
# resource path
|
|
103
|
-
local_var_path = '/2023-03-01/xhr/employee'
|
|
104
|
-
|
|
105
|
-
# query parameters
|
|
106
|
-
query_params = opts[:query_params] || {}
|
|
107
|
-
|
|
108
|
-
# header parameters
|
|
109
|
-
header_params = opts[:header_params] || {}
|
|
110
|
-
# HTTP header 'Accept' (if needed)
|
|
111
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
112
|
-
# HTTP header 'Content-Type'
|
|
113
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
114
|
-
|
|
115
|
-
# form parameters
|
|
116
|
-
form_params = opts[:form_params] || {}
|
|
117
|
-
|
|
118
|
-
# http body (model)
|
|
119
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_employee_request)
|
|
120
|
-
|
|
121
|
-
# return_type
|
|
122
|
-
return_type = opts[:debug_return_type] || 'EmployeeResponse'
|
|
123
|
-
|
|
124
|
-
# auth_names
|
|
125
|
-
auth_names = opts[:debug_auth_names] || ['access-token']
|
|
126
|
-
|
|
127
|
-
new_options = opts.merge(
|
|
128
|
-
:operation => :"Class20230301Api.xhr_create_employee20230301",
|
|
129
|
-
:header_params => header_params,
|
|
130
|
-
:query_params => query_params,
|
|
131
|
-
:form_params => form_params,
|
|
132
|
-
:body => post_body,
|
|
133
|
-
:auth_names => auth_names,
|
|
134
|
-
:return_type => return_type
|
|
135
|
-
)
|
|
136
|
-
|
|
137
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
138
|
-
if @api_client.config.debugging
|
|
139
|
-
@api_client.config.logger.debug "API called: Class20230301Api#xhr_create_employee20230301\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
140
|
-
end
|
|
141
|
-
return data, status_code, headers
|
|
142
|
-
end
|
|
143
|
-
|
|
144
79
|
# Employees
|
|
145
80
|
# List the individuals (employees, contractors, accountants, and others) listed in the HRIS/Payroll software
|
|
146
81
|
# @param [Hash] opts the optional parameters
|
|
@@ -76,71 +76,6 @@ module OpenapiClient
|
|
|
76
76
|
return data, status_code, headers
|
|
77
77
|
end
|
|
78
78
|
|
|
79
|
-
# Create employee
|
|
80
|
-
# Creates a new Employee
|
|
81
|
-
# @param create_employee_request [CreateEmployeeRequest]
|
|
82
|
-
# @param [Hash] opts the optional parameters
|
|
83
|
-
# @return [EmployeeResponse]
|
|
84
|
-
def xhr_create_employee20230301(create_employee_request, opts = {})
|
|
85
|
-
data, _status_code, _headers = xhr_create_employee20230301_with_http_info(create_employee_request, opts)
|
|
86
|
-
data
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
# Create employee
|
|
90
|
-
# Creates a new Employee
|
|
91
|
-
# @param create_employee_request [CreateEmployeeRequest]
|
|
92
|
-
# @param [Hash] opts the optional parameters
|
|
93
|
-
# @return [Array<(EmployeeResponse, Integer, Hash)>] EmployeeResponse data, response status code and response headers
|
|
94
|
-
def xhr_create_employee20230301_with_http_info(create_employee_request, opts = {})
|
|
95
|
-
if @api_client.config.debugging
|
|
96
|
-
@api_client.config.logger.debug 'Calling API: XHRVerticallyIntegratedApi.xhr_create_employee20230301 ...'
|
|
97
|
-
end
|
|
98
|
-
# verify the required parameter 'create_employee_request' is set
|
|
99
|
-
if @api_client.config.client_side_validation && create_employee_request.nil?
|
|
100
|
-
fail ArgumentError, "Missing the required parameter 'create_employee_request' when calling XHRVerticallyIntegratedApi.xhr_create_employee20230301"
|
|
101
|
-
end
|
|
102
|
-
# resource path
|
|
103
|
-
local_var_path = '/2023-03-01/xhr/employee'
|
|
104
|
-
|
|
105
|
-
# query parameters
|
|
106
|
-
query_params = opts[:query_params] || {}
|
|
107
|
-
|
|
108
|
-
# header parameters
|
|
109
|
-
header_params = opts[:header_params] || {}
|
|
110
|
-
# HTTP header 'Accept' (if needed)
|
|
111
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
112
|
-
# HTTP header 'Content-Type'
|
|
113
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
114
|
-
|
|
115
|
-
# form parameters
|
|
116
|
-
form_params = opts[:form_params] || {}
|
|
117
|
-
|
|
118
|
-
# http body (model)
|
|
119
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_employee_request)
|
|
120
|
-
|
|
121
|
-
# return_type
|
|
122
|
-
return_type = opts[:debug_return_type] || 'EmployeeResponse'
|
|
123
|
-
|
|
124
|
-
# auth_names
|
|
125
|
-
auth_names = opts[:debug_auth_names] || ['access-token']
|
|
126
|
-
|
|
127
|
-
new_options = opts.merge(
|
|
128
|
-
:operation => :"XHRVerticallyIntegratedApi.xhr_create_employee20230301",
|
|
129
|
-
:header_params => header_params,
|
|
130
|
-
:query_params => query_params,
|
|
131
|
-
:form_params => form_params,
|
|
132
|
-
:body => post_body,
|
|
133
|
-
:auth_names => auth_names,
|
|
134
|
-
:return_type => return_type
|
|
135
|
-
)
|
|
136
|
-
|
|
137
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
138
|
-
if @api_client.config.debugging
|
|
139
|
-
@api_client.config.logger.debug "API called: XHRVerticallyIntegratedApi#xhr_create_employee20230301\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
140
|
-
end
|
|
141
|
-
return data, status_code, headers
|
|
142
|
-
end
|
|
143
|
-
|
|
144
79
|
# Employees
|
|
145
80
|
# List the individuals (employees, contractors, accountants, and others) listed in the HRIS/Payroll software
|
|
146
81
|
# @param [Hash] opts the optional parameters
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module OpenapiClient
|
|
17
|
-
class
|
|
17
|
+
class CurrencyNotNullRequest
|
|
18
18
|
USD = "usd".freeze
|
|
19
19
|
GBP = "gbp".freeze
|
|
20
20
|
EUR = "eur".freeze
|
|
@@ -30,8 +30,8 @@ module OpenapiClient
|
|
|
30
30
|
# @param [String] The enum value in the form of the string
|
|
31
31
|
# @return [String] The enum value
|
|
32
32
|
def build_from_hash(value)
|
|
33
|
-
constantValues =
|
|
34
|
-
raise "Invalid ENUM value #{value} for class #
|
|
33
|
+
constantValues = CurrencyNotNullRequest.constants.select { |c| CurrencyNotNullRequest::const_get(c) == value }
|
|
34
|
+
raise "Invalid ENUM value #{value} for class #CurrencyNotNullRequest" if constantValues.empty?
|
|
35
35
|
value
|
|
36
36
|
end
|
|
37
37
|
end
|
|
@@ -90,6 +90,7 @@ module OpenapiClient
|
|
|
90
90
|
:'pay_period',
|
|
91
91
|
:'pay_frequency',
|
|
92
92
|
:'employment_type',
|
|
93
|
+
:'currency',
|
|
93
94
|
:'effective_date'
|
|
94
95
|
])
|
|
95
96
|
end
|
|
@@ -142,10 +143,6 @@ module OpenapiClient
|
|
|
142
143
|
# @return Array for valid properties with the reasons
|
|
143
144
|
def list_invalid_properties
|
|
144
145
|
invalid_properties = Array.new
|
|
145
|
-
if @currency.nil?
|
|
146
|
-
invalid_properties.push('invalid value for "currency", currency cannot be nil.')
|
|
147
|
-
end
|
|
148
|
-
|
|
149
146
|
invalid_properties
|
|
150
147
|
end
|
|
151
148
|
|
|
@@ -156,7 +153,6 @@ module OpenapiClient
|
|
|
156
153
|
return false unless pay_frequency_validator.valid?(@pay_frequency)
|
|
157
154
|
employment_type_validator = EnumAttributeValidator.new('String', ["full_time", "part_time", "contractor", "other", "null"])
|
|
158
155
|
return false unless employment_type_validator.valid?(@employment_type)
|
|
159
|
-
return false if @currency.nil?
|
|
160
156
|
true
|
|
161
157
|
end
|
|
162
158
|
|
data/lib/openapi_client.rb
CHANGED
|
@@ -25,7 +25,7 @@ require 'openapi_client/models/company_response'
|
|
|
25
25
|
require 'openapi_client/models/create_employee_request'
|
|
26
26
|
require 'openapi_client/models/create_employee_request_bank_account'
|
|
27
27
|
require 'openapi_client/models/create_employee_request_manager'
|
|
28
|
-
require 'openapi_client/models/
|
|
28
|
+
require 'openapi_client/models/currency_not_null_request'
|
|
29
29
|
require 'openapi_client/models/currency_response'
|
|
30
30
|
require 'openapi_client/models/disconnect_response'
|
|
31
31
|
require 'openapi_client/models/employee_response'
|
|
@@ -43,18 +43,6 @@ describe 'Class20230301Api' do
|
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
-
# unit tests for xhr_create_employee20230301
|
|
47
|
-
# Create employee
|
|
48
|
-
# Creates a new Employee
|
|
49
|
-
# @param create_employee_request
|
|
50
|
-
# @param [Hash] opts the optional parameters
|
|
51
|
-
# @return [EmployeeResponse]
|
|
52
|
-
describe 'xhr_create_employee20230301 test' do
|
|
53
|
-
it 'should work' do
|
|
54
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
55
|
-
end
|
|
56
|
-
end
|
|
57
|
-
|
|
58
46
|
# unit tests for xhr_employees20230301
|
|
59
47
|
# Employees
|
|
60
48
|
# List the individuals (employees, contractors, accountants, and others) listed in the HRIS/Payroll software
|
|
@@ -43,18 +43,6 @@ describe 'XHRVerticallyIntegratedApi' do
|
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
-
# unit tests for xhr_create_employee20230301
|
|
47
|
-
# Create employee
|
|
48
|
-
# Creates a new Employee
|
|
49
|
-
# @param create_employee_request
|
|
50
|
-
# @param [Hash] opts the optional parameters
|
|
51
|
-
# @return [EmployeeResponse]
|
|
52
|
-
describe 'xhr_create_employee20230301 test' do
|
|
53
|
-
it 'should work' do
|
|
54
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
55
|
-
end
|
|
56
|
-
end
|
|
57
|
-
|
|
58
46
|
# unit tests for xhr_employees20230301
|
|
59
47
|
# Employees
|
|
60
48
|
# List the individuals (employees, contractors, accountants, and others) listed in the HRIS/Payroll software
|
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
|
14
14
|
require 'json'
|
|
15
15
|
require 'date'
|
|
16
16
|
|
|
17
|
-
# Unit tests for OpenapiClient::
|
|
17
|
+
# Unit tests for OpenapiClient::CurrencyNotNullRequest
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
|
-
describe OpenapiClient::
|
|
21
|
-
let(:instance) { OpenapiClient::
|
|
20
|
+
describe OpenapiClient::CurrencyNotNullRequest do
|
|
21
|
+
let(:instance) { OpenapiClient::CurrencyNotNullRequest.new }
|
|
22
22
|
|
|
23
|
-
describe 'test an instance of
|
|
24
|
-
it 'should create an instance of
|
|
25
|
-
expect(instance).to be_instance_of(OpenapiClient::
|
|
23
|
+
describe 'test an instance of CurrencyNotNullRequest' do
|
|
24
|
+
it 'should create an instance of CurrencyNotNullRequest' do
|
|
25
|
+
expect(instance).to be_instance_of(OpenapiClient::CurrencyNotNullRequest)
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: affixapi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.49
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-04-
|
|
11
|
+
date: 2024-04-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -132,7 +132,7 @@ files:
|
|
|
132
132
|
- docs/CreateEmployeeRequest.md
|
|
133
133
|
- docs/CreateEmployeeRequestBankAccount.md
|
|
134
134
|
- docs/CreateEmployeeRequestManager.md
|
|
135
|
-
- docs/
|
|
135
|
+
- docs/CurrencyNotNullRequest.md
|
|
136
136
|
- docs/CurrencyResponse.md
|
|
137
137
|
- docs/DisconnectResponse.md
|
|
138
138
|
- docs/EmployeeResponse.md
|
|
@@ -185,7 +185,7 @@ files:
|
|
|
185
185
|
- lib/openapi_client/models/create_employee_request.rb
|
|
186
186
|
- lib/openapi_client/models/create_employee_request_bank_account.rb
|
|
187
187
|
- lib/openapi_client/models/create_employee_request_manager.rb
|
|
188
|
-
- lib/openapi_client/models/
|
|
188
|
+
- lib/openapi_client/models/currency_not_null_request.rb
|
|
189
189
|
- lib/openapi_client/models/currency_response.rb
|
|
190
190
|
- lib/openapi_client/models/disconnect_response.rb
|
|
191
191
|
- lib/openapi_client/models/employee_response.rb
|
|
@@ -234,7 +234,7 @@ files:
|
|
|
234
234
|
- spec/models/create_employee_request_bank_account_spec.rb
|
|
235
235
|
- spec/models/create_employee_request_manager_spec.rb
|
|
236
236
|
- spec/models/create_employee_request_spec.rb
|
|
237
|
-
- spec/models/
|
|
237
|
+
- spec/models/currency_not_null_request_spec.rb
|
|
238
238
|
- spec/models/currency_response_spec.rb
|
|
239
239
|
- spec/models/disconnect_response_spec.rb
|
|
240
240
|
- spec/models/employee_response_spec.rb
|
|
@@ -2751,52 +2751,52 @@ signing_key:
|
|
|
2751
2751
|
specification_version: 4
|
|
2752
2752
|
summary: Affix API Ruby Gem
|
|
2753
2753
|
test_files:
|
|
2754
|
-
- spec/api/core_api_spec.rb
|
|
2755
|
-
- spec/api/class20230301_api_spec.rb
|
|
2756
|
-
- spec/api/xhr_vertically_integrated_api_spec.rb
|
|
2757
2754
|
- spec/api/management_api_spec.rb
|
|
2755
|
+
- spec/api/xhr_vertically_integrated_api_spec.rb
|
|
2756
|
+
- spec/api/class20230301_api_spec.rb
|
|
2757
|
+
- spec/api/core_api_spec.rb
|
|
2758
2758
|
- spec/api_client_spec.rb
|
|
2759
2759
|
- spec/configuration_spec.rb
|
|
2760
|
-
- spec/models/
|
|
2761
|
-
- spec/models/provider_response_spec.rb
|
|
2760
|
+
- spec/models/address_response_spec.rb
|
|
2762
2761
|
- spec/models/mode_response_spec.rb
|
|
2762
|
+
- spec/models/provider_response_spec.rb
|
|
2763
|
+
- spec/models/payslip_response_earnings_spec.rb
|
|
2764
|
+
- spec/models/payrun_response_spec.rb
|
|
2765
|
+
- spec/models/location_response_spec.rb
|
|
2766
|
+
- spec/models/payslip_response_spec.rb
|
|
2767
|
+
- spec/models/inline_response400_spec.rb
|
|
2763
2768
|
- spec/models/create_employee_request_bank_account_spec.rb
|
|
2764
|
-
- spec/models/id_and_message_response_spec.rb
|
|
2765
|
-
- spec/models/message_response_spec.rb
|
|
2766
|
-
- spec/models/timesheet_response_spec.rb
|
|
2767
|
-
- spec/models/create_employee_request_manager_spec.rb
|
|
2768
|
-
- spec/models/client_request_spec.rb
|
|
2769
|
-
- spec/models/identity_response_spec.rb
|
|
2770
2769
|
- spec/models/scopes_response_spec.rb
|
|
2771
|
-
- spec/models/
|
|
2770
|
+
- spec/models/employment_no_null_enum_request_spec.rb
|
|
2772
2771
|
- spec/models/group_no_null_enum_request_spec.rb
|
|
2772
|
+
- spec/models/time_off_entry_response_spec.rb
|
|
2773
|
+
- spec/models/provider_request_spec.rb
|
|
2773
2774
|
- spec/models/payslip_response_contributions_spec.rb
|
|
2774
|
-
- spec/models/
|
|
2775
|
-
- spec/models/
|
|
2775
|
+
- spec/models/company_response_spec.rb
|
|
2776
|
+
- spec/models/id_and_message_response_spec.rb
|
|
2777
|
+
- spec/models/time_off_balance_response_spec.rb
|
|
2778
|
+
- spec/models/client_request_spec.rb
|
|
2779
|
+
- spec/models/token_response_spec.rb
|
|
2780
|
+
- spec/models/group_response_spec.rb
|
|
2781
|
+
- spec/models/payslip_response_deductions_spec.rb
|
|
2782
|
+
- spec/models/create_employee_request_manager_spec.rb
|
|
2776
2783
|
- spec/models/employee_response_spec.rb
|
|
2777
|
-
- spec/models/
|
|
2778
|
-
- spec/models/
|
|
2779
|
-
- spec/models/scopes_request_spec.rb
|
|
2780
|
-
- spec/models/provider_request_spec.rb
|
|
2781
|
-
- spec/models/location_response_spec.rb
|
|
2784
|
+
- spec/models/payslip_response_taxes_spec.rb
|
|
2785
|
+
- spec/models/token_request_spec.rb
|
|
2782
2786
|
- spec/models/location_no_non_null_request_spec.rb
|
|
2783
|
-
- spec/models/
|
|
2787
|
+
- spec/models/timesheet_response_spec.rb
|
|
2784
2788
|
- spec/models/address_no_non_null_request_spec.rb
|
|
2785
|
-
- spec/models/time_off_balance_response_spec.rb
|
|
2786
|
-
- spec/models/currency_request_spec.rb
|
|
2787
|
-
- spec/models/inline_response400_spec.rb
|
|
2788
|
-
- spec/models/company_response_spec.rb
|
|
2789
|
-
- spec/models/payslip_response_spec.rb
|
|
2790
|
-
- spec/models/create_employee_request_spec.rb
|
|
2791
2789
|
- spec/models/inline_response409_spec.rb
|
|
2790
|
+
- spec/models/client_response_spec.rb
|
|
2792
2791
|
- spec/models/introspect_response_spec.rb
|
|
2793
|
-
- spec/models/token_response_spec.rb
|
|
2794
|
-
- spec/models/payslip_response_deductions_spec.rb
|
|
2795
2792
|
- spec/models/employment_response_spec.rb
|
|
2796
|
-
- spec/models/
|
|
2797
|
-
- spec/models/
|
|
2798
|
-
- spec/models/
|
|
2799
|
-
- spec/models/
|
|
2800
|
-
- spec/models/
|
|
2801
|
-
- spec/models/
|
|
2793
|
+
- spec/models/currency_not_null_request_spec.rb
|
|
2794
|
+
- spec/models/currency_response_spec.rb
|
|
2795
|
+
- spec/models/identity_response_spec.rb
|
|
2796
|
+
- spec/models/message_response_spec.rb
|
|
2797
|
+
- spec/models/scopes_request_spec.rb
|
|
2798
|
+
- spec/models/create_employee_request_spec.rb
|
|
2799
|
+
- spec/models/inline_response401_spec.rb
|
|
2800
|
+
- spec/models/mode_request_spec.rb
|
|
2801
|
+
- spec/models/disconnect_response_spec.rb
|
|
2802
2802
|
- spec/spec_helper.rb
|