stackone_client 0.2.43 → 0.2.44
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/lib/stack_one/hris.rb +176 -0
- data/lib/stack_one/models/operations/create_request.rb +30 -0
- data/lib/stack_one/models/operations/create_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_create_employee_employment_request.rb +30 -0
- data/lib/stack_one/models/operations/hris_create_employee_employment_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_cost_center_group_request.rb +36 -0
- data/lib/stack_one/models/operations/hris_get_cost_center_group_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_cost_center_groups_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/hris_list_cost_center_groups_request.rb +52 -0
- data/lib/stack_one/models/operations/hris_list_cost_center_groups_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_update_employee_employment_request.rb +33 -0
- data/lib/stack_one/models/operations/hris_update_employee_employment_response.rb +33 -0
- data/lib/stack_one/models/operations.rb +11 -0
- data/lib/stack_one/models/shared/createemploymentapimodel.rb +2 -8
- data/lib/stack_one/models/shared/createevent.rb +27 -0
- data/lib/stack_one/models/shared/createeventresponse.rb +33 -0
- data/lib/stack_one/models/shared/employee_schemas_country.rb +2 -2
- data/lib/stack_one/models/shared/employee_schemas_national_identity_number_type_value.rb +128 -0
- data/lib/stack_one/models/shared/employee_schemas_national_identity_number_value.rb +250 -6
- data/lib/stack_one/models/shared/employee_schemas_work_location_country.rb +27 -0
- data/lib/stack_one/models/shared/employee_type.rb +2 -2
- data/lib/stack_one/models/shared/hriscostcenter.rb +48 -0
- data/lib/stack_one/models/shared/hriscostcenter_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscostcenter_value.rb +23 -0
- data/lib/stack_one/models/shared/hriscostcenterpaginated.rb +33 -0
- data/lib/stack_one/models/shared/hriscostcenterresult.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_national_identity_number.rb +5 -2
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_country.rb +2 -2
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_national_identity_number_type_value.rb +128 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_national_identity_number_value.rb +250 -6
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_work_location_country.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_type.rb +2 -2
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_work_location.rb +2 -2
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto.rb +57 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_employment_contract_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_employment_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_pay_frequency.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_pay_period.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_pay_frequency_value.rb +31 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_pay_period_value.rb +29 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_value.rb +33 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_value.rb +20 -0
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_schemas_value.rb +5 -0
- data/lib/stack_one/models/shared/hrisdepartment.rb +6 -3
- data/lib/stack_one/models/shared/hrisgroup.rb +6 -3
- data/lib/stack_one/models/shared/hrisgroup_value.rb +1 -0
- data/lib/stack_one/models/shared/iamgroup_value.rb +1 -0
- data/lib/stack_one/models/shared/national_identity_number.rb +5 -2
- data/lib/stack_one/models/shared/timeoff_schemas_value.rb +5 -0
- data/lib/stack_one/models/shared/work_location.rb +2 -2
- data/lib/stack_one/models/shared.rb +32 -12
- data/lib/stack_one/sdkconfiguration.rb +3 -3
- data/lib/stack_one/stackone.rb +2 -1
- data/lib/stack_one/webhooks.rb +73 -0
- data/lib/stackone_client.rb +1 -0
- metadata +34 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e01bc8d2f90e58b6208cb041385c3a8f453022d5584c279f31a1483f319287f9
|
4
|
+
data.tar.gz: 3b9bdc873f00c908471bdf78374d57943b8c9994002a9cd6d479efa92d2988be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c8330fc8eadf1143d6a4b45fba112fa7d6e71a2d0d250817905568c2d0a3e27d2b92341af2cd1d4d4ca5864b2a1ff0b060829138d5b4bdfaed52a9122367007
|
7
|
+
data.tar.gz: 1ff24ea228535a8bbd3960fd5c7cb774c826f97ceca4a6a071f61bf3254411ca00fe676810e3fe5dd2e3516ba6e75d2c1940cec35bd1d318be9152550eaacc34
|
data/lib/stack_one/hris.rb
CHANGED
@@ -117,6 +117,58 @@ module StackOne
|
|
117
117
|
end
|
118
118
|
|
119
119
|
|
120
|
+
sig { params(hris_create_employment_request_dto: ::StackOne::Shared::HrisCreateEmploymentRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateEmployeeEmploymentResponse) }
|
121
|
+
def create_employee_employment(hris_create_employment_request_dto, id, x_account_id)
|
122
|
+
# create_employee_employment - Create Employee Employment
|
123
|
+
request = ::StackOne::Operations::HrisCreateEmployeeEmploymentRequest.new(
|
124
|
+
|
125
|
+
hris_create_employment_request_dto: hris_create_employment_request_dto,
|
126
|
+
id: id,
|
127
|
+
x_account_id: x_account_id
|
128
|
+
)
|
129
|
+
url, params = @sdk_configuration.get_server_details
|
130
|
+
base_url = Utils.template_url(url, params)
|
131
|
+
url = Utils.generate_url(
|
132
|
+
::StackOne::Operations::HrisCreateEmployeeEmploymentRequest,
|
133
|
+
base_url,
|
134
|
+
'/unified/hris/employees/{id}/employments',
|
135
|
+
request
|
136
|
+
)
|
137
|
+
headers = Utils.get_headers(request)
|
138
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :hris_create_employment_request_dto, :json)
|
139
|
+
headers['content-type'] = req_content_type
|
140
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
141
|
+
headers['Accept'] = 'application/json'
|
142
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
143
|
+
|
144
|
+
r = @sdk_configuration.client.post(url) do |req|
|
145
|
+
req.headers = headers
|
146
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
147
|
+
if form
|
148
|
+
req.body = Utils.encode_form(form)
|
149
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
150
|
+
req.body = URI.encode_www_form(data)
|
151
|
+
else
|
152
|
+
req.body = data
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
157
|
+
|
158
|
+
res = ::StackOne::Operations::HrisCreateEmployeeEmploymentResponse.new(
|
159
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
160
|
+
)
|
161
|
+
if r.status == 201
|
162
|
+
if Utils.match_content_type(content_type, 'application/json')
|
163
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::EmploymentResult)
|
164
|
+
res.employment_result = out
|
165
|
+
end
|
166
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
167
|
+
end
|
168
|
+
res
|
169
|
+
end
|
170
|
+
|
171
|
+
|
120
172
|
sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateEmployeeTimeOffRequestResponse) }
|
121
173
|
def create_employee_time_off_request(hris_create_time_off_request_dto, id, x_account_id)
|
122
174
|
# create_employee_time_off_request - Create Employee Time Off Request
|
@@ -386,6 +438,44 @@ module StackOne
|
|
386
438
|
end
|
387
439
|
|
388
440
|
|
441
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetCostCenterGroupRequest)).returns(::StackOne::Operations::HrisGetCostCenterGroupResponse) }
|
442
|
+
def get_cost_center_group(request)
|
443
|
+
# get_cost_center_group - Get Cost Center Group
|
444
|
+
url, params = @sdk_configuration.get_server_details
|
445
|
+
base_url = Utils.template_url(url, params)
|
446
|
+
url = Utils.generate_url(
|
447
|
+
::StackOne::Operations::HrisGetCostCenterGroupRequest,
|
448
|
+
base_url,
|
449
|
+
'/unified/hris/groups/cost_centers/{id}',
|
450
|
+
request
|
451
|
+
)
|
452
|
+
headers = Utils.get_headers(request)
|
453
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetCostCenterGroupRequest, request)
|
454
|
+
headers['Accept'] = 'application/json'
|
455
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
456
|
+
|
457
|
+
r = @sdk_configuration.client.get(url) do |req|
|
458
|
+
req.headers = headers
|
459
|
+
req.params = query_params
|
460
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
461
|
+
end
|
462
|
+
|
463
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
464
|
+
|
465
|
+
res = ::StackOne::Operations::HrisGetCostCenterGroupResponse.new(
|
466
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
467
|
+
)
|
468
|
+
if r.status == 200
|
469
|
+
if Utils.match_content_type(content_type, 'application/json')
|
470
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HRISCostCenterResult)
|
471
|
+
res.hris_cost_center_result = out
|
472
|
+
end
|
473
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
474
|
+
end
|
475
|
+
res
|
476
|
+
end
|
477
|
+
|
478
|
+
|
389
479
|
sig { params(request: T.nilable(::StackOne::Operations::HrisGetDepartmentGroupRequest)).returns(::StackOne::Operations::HrisGetDepartmentGroupResponse) }
|
390
480
|
def get_department_group(request)
|
391
481
|
# get_department_group - Get Department Group
|
@@ -908,6 +998,39 @@ module StackOne
|
|
908
998
|
end
|
909
999
|
|
910
1000
|
|
1001
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListCostCenterGroupsRequest)).returns(::StackOne::Operations::HrisListCostCenterGroupsResponse) }
|
1002
|
+
def list_cost_center_groups(request)
|
1003
|
+
# list_cost_center_groups - List Cost Center Groups
|
1004
|
+
url, params = @sdk_configuration.get_server_details
|
1005
|
+
base_url = Utils.template_url(url, params)
|
1006
|
+
url = "#{base_url}/unified/hris/groups/cost_centers"
|
1007
|
+
headers = Utils.get_headers(request)
|
1008
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisListCostCenterGroupsRequest, request)
|
1009
|
+
headers['Accept'] = 'application/json'
|
1010
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
1011
|
+
|
1012
|
+
r = @sdk_configuration.client.get(url) do |req|
|
1013
|
+
req.headers = headers
|
1014
|
+
req.params = query_params
|
1015
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
1016
|
+
end
|
1017
|
+
|
1018
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
1019
|
+
|
1020
|
+
res = ::StackOne::Operations::HrisListCostCenterGroupsResponse.new(
|
1021
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
1022
|
+
)
|
1023
|
+
if r.status == 200
|
1024
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1025
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HRISCostCenterPaginated)
|
1026
|
+
res.hris_cost_center_paginated = out
|
1027
|
+
end
|
1028
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
1029
|
+
end
|
1030
|
+
res
|
1031
|
+
end
|
1032
|
+
|
1033
|
+
|
911
1034
|
sig { params(request: T.nilable(::StackOne::Operations::HrisListDepartmentGroupsRequest)).returns(::StackOne::Operations::HrisListDepartmentGroupsResponse) }
|
912
1035
|
def list_department_groups(request)
|
913
1036
|
# list_department_groups - List Department Groups
|
@@ -1376,6 +1499,59 @@ module StackOne
|
|
1376
1499
|
end
|
1377
1500
|
|
1378
1501
|
|
1502
|
+
sig { params(hris_create_employment_request_dto: ::StackOne::Shared::HrisCreateEmploymentRequestDto, id: ::String, sub_resource_id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUpdateEmployeeEmploymentResponse) }
|
1503
|
+
def update_employee_employment(hris_create_employment_request_dto, id, sub_resource_id, x_account_id)
|
1504
|
+
# update_employee_employment - Update Employee Employment
|
1505
|
+
request = ::StackOne::Operations::HrisUpdateEmployeeEmploymentRequest.new(
|
1506
|
+
|
1507
|
+
hris_create_employment_request_dto: hris_create_employment_request_dto,
|
1508
|
+
id: id,
|
1509
|
+
sub_resource_id: sub_resource_id,
|
1510
|
+
x_account_id: x_account_id
|
1511
|
+
)
|
1512
|
+
url, params = @sdk_configuration.get_server_details
|
1513
|
+
base_url = Utils.template_url(url, params)
|
1514
|
+
url = Utils.generate_url(
|
1515
|
+
::StackOne::Operations::HrisUpdateEmployeeEmploymentRequest,
|
1516
|
+
base_url,
|
1517
|
+
'/unified/hris/employees/{id}/employments/{subResourceId}',
|
1518
|
+
request
|
1519
|
+
)
|
1520
|
+
headers = Utils.get_headers(request)
|
1521
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :hris_create_employment_request_dto, :json)
|
1522
|
+
headers['content-type'] = req_content_type
|
1523
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
1524
|
+
headers['Accept'] = 'application/json'
|
1525
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
1526
|
+
|
1527
|
+
r = @sdk_configuration.client.patch(url) do |req|
|
1528
|
+
req.headers = headers
|
1529
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
1530
|
+
if form
|
1531
|
+
req.body = Utils.encode_form(form)
|
1532
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
1533
|
+
req.body = URI.encode_www_form(data)
|
1534
|
+
else
|
1535
|
+
req.body = data
|
1536
|
+
end
|
1537
|
+
end
|
1538
|
+
|
1539
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
1540
|
+
|
1541
|
+
res = ::StackOne::Operations::HrisUpdateEmployeeEmploymentResponse.new(
|
1542
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
1543
|
+
)
|
1544
|
+
if r.status == 200
|
1545
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1546
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::EmploymentResult)
|
1547
|
+
res.employment_result = out
|
1548
|
+
end
|
1549
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
1550
|
+
end
|
1551
|
+
res
|
1552
|
+
end
|
1553
|
+
|
1554
|
+
|
1379
1555
|
sig { params(hris_create_work_eligibility_request_dto: ::StackOne::Shared::HrisCreateWorkEligibilityRequestDto, id: ::String, sub_resource_id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUpdateEmployeeWorkEligibilityRequestResponse) }
|
1380
1556
|
def update_employee_work_eligibility_request(hris_create_work_eligibility_request_dto, id, sub_resource_id, x_account_id)
|
1381
1557
|
# update_employee_work_eligibility_request - Update Employee Work Eligibility Request
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class CreateRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :id, ::Float, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
16
|
+
|
17
|
+
field :request_body, T::Array[::StackOne::Shared::CreateEvent], { 'request': { 'media_type': 'application/json' } }
|
18
|
+
# The account identifier
|
19
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(id: ::Float, request_body: T::Array[::StackOne::Shared::CreateEvent], x_account_id: ::String).void }
|
23
|
+
def initialize(id: nil, request_body: nil, x_account_id: nil)
|
24
|
+
@id = id
|
25
|
+
@request_body = request_body
|
26
|
+
@x_account_id = x_account_id
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class CreateResponse < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# Multiple status returned. Check the response body for details.
|
21
|
+
field :create_event_responses, T.nilable(T::Array[::StackOne::Shared::CreateEventResponse])
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, create_event_responses: T.nilable(T::Array[::StackOne::Shared::CreateEventResponse])).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, create_event_responses: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@create_event_responses = create_event_responses
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisCreateEmployeeEmploymentRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :hris_create_employment_request_dto, ::StackOne::Shared::HrisCreateEmploymentRequestDto, { 'request': { 'media_type': 'application/json' } }
|
16
|
+
|
17
|
+
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
18
|
+
# The account identifier
|
19
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(hris_create_employment_request_dto: ::StackOne::Shared::HrisCreateEmploymentRequestDto, id: ::String, x_account_id: ::String).void }
|
23
|
+
def initialize(hris_create_employment_request_dto: nil, id: nil, x_account_id: nil)
|
24
|
+
@hris_create_employment_request_dto = hris_create_employment_request_dto
|
25
|
+
@id = id
|
26
|
+
@x_account_id = x_account_id
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisCreateEmployeeEmploymentResponse < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# The employee employment was created successfully.
|
21
|
+
field :employment_result, T.nilable(::StackOne::Shared::EmploymentResult)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, employment_result: T.nilable(::StackOne::Shared::EmploymentResult)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, employment_result: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@employment_result = employment_result
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisGetCostCenterGroupRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
16
|
+
# The account identifier
|
17
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
18
|
+
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
19
|
+
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
20
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
21
|
+
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
|
22
|
+
# Indicates that the raw request result is returned
|
23
|
+
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
|
27
|
+
def initialize(id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
|
28
|
+
@id = id
|
29
|
+
@x_account_id = x_account_id
|
30
|
+
@fields_ = fields_
|
31
|
+
@proxy = proxy
|
32
|
+
@raw = raw
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisGetCostCenterGroupResponse < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# The cost center group with the given identifier was retrieved.
|
21
|
+
field :hris_cost_center_result, T.nilable(::StackOne::Shared::HRISCostCenterResult)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, hris_cost_center_result: T.nilable(::StackOne::Shared::HRISCostCenterResult)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, hris_cost_center_result: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@hris_cost_center_result = hris_cost_center_result
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
# Filter parameters that allow greater customisation of the list response
|
11
|
+
class HrisListCostCenterGroupsQueryParamFilter < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Use a string with a date to only select results updated after that given date
|
15
|
+
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
|
16
|
+
|
17
|
+
|
18
|
+
sig { params(updated_after: T.nilable(::String)).void }
|
19
|
+
def initialize(updated_after: nil)
|
20
|
+
@updated_after = updated_after
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisListCostCenterGroupsRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The account identifier
|
15
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
16
|
+
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
17
|
+
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
18
|
+
# Filter parameters that allow greater customisation of the list response
|
19
|
+
field :filter, T.nilable(::StackOne::Operations::HrisListCostCenterGroupsQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } }
|
20
|
+
# The unified cursor
|
21
|
+
field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
22
|
+
# The page number of the results to fetch
|
23
|
+
#
|
24
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
25
|
+
field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
26
|
+
# The number of results per page
|
27
|
+
field :page_size, T.nilable(::String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
28
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
29
|
+
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
|
30
|
+
# Indicates that the raw request result is returned
|
31
|
+
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
32
|
+
# Use a string with a date to only select results updated after that given date
|
33
|
+
#
|
34
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
35
|
+
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
36
|
+
|
37
|
+
|
38
|
+
sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::HrisListCostCenterGroupsQueryParamFilter), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
|
39
|
+
def initialize(x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
|
40
|
+
@x_account_id = x_account_id
|
41
|
+
@fields_ = fields_
|
42
|
+
@filter = filter
|
43
|
+
@next_ = next_
|
44
|
+
@page = page
|
45
|
+
@page_size = page_size
|
46
|
+
@proxy = proxy
|
47
|
+
@raw = raw
|
48
|
+
@updated_after = updated_after
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisListCostCenterGroupsResponse < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# The list of cost center groups was retrieved.
|
21
|
+
field :hris_cost_center_paginated, T.nilable(::StackOne::Shared::HRISCostCenterPaginated)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, hris_cost_center_paginated: T.nilable(::StackOne::Shared::HRISCostCenterPaginated)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, hris_cost_center_paginated: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@hris_cost_center_paginated = hris_cost_center_paginated
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisUpdateEmployeeEmploymentRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :hris_create_employment_request_dto, ::StackOne::Shared::HrisCreateEmploymentRequestDto, { 'request': { 'media_type': 'application/json' } }
|
16
|
+
|
17
|
+
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
18
|
+
|
19
|
+
field :sub_resource_id, ::String, { 'path_param': { 'field_name': 'subResourceId', 'style': 'simple', 'explode': false } }
|
20
|
+
# The account identifier
|
21
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(hris_create_employment_request_dto: ::StackOne::Shared::HrisCreateEmploymentRequestDto, id: ::String, sub_resource_id: ::String, x_account_id: ::String).void }
|
25
|
+
def initialize(hris_create_employment_request_dto: nil, id: nil, sub_resource_id: nil, x_account_id: nil)
|
26
|
+
@hris_create_employment_request_dto = hris_create_employment_request_dto
|
27
|
+
@id = id
|
28
|
+
@sub_resource_id = sub_resource_id
|
29
|
+
@x_account_id = x_account_id
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class HrisUpdateEmployeeEmploymentResponse < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# The employee employment was updated successfully.
|
21
|
+
field :employment_result, T.nilable(::StackOne::Shared::EmploymentResult)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, employment_result: T.nilable(::StackOne::Shared::EmploymentResult)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, employment_result: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@employment_result = employment_result
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -180,6 +180,8 @@ module StackOne
|
|
180
180
|
autoload :HrisBatchUploadEmployeeDocumentResponse, 'stack_one/models/operations/hris_batch_upload_employee_document_response.rb'
|
181
181
|
autoload :HrisCreateEmployeeRequest, 'stack_one/models/operations/hris_create_employee_request.rb'
|
182
182
|
autoload :HrisCreateEmployeeResponse, 'stack_one/models/operations/hris_create_employee_response.rb'
|
183
|
+
autoload :HrisCreateEmployeeEmploymentRequest, 'stack_one/models/operations/hris_create_employee_employment_request.rb'
|
184
|
+
autoload :HrisCreateEmployeeEmploymentResponse, 'stack_one/models/operations/hris_create_employee_employment_response.rb'
|
183
185
|
autoload :HrisCreateEmployeeTimeOffRequestRequest, 'stack_one/models/operations/hris_create_employee_time_off_request_request.rb'
|
184
186
|
autoload :HrisCreateEmployeeTimeOffRequestResponse, 'stack_one/models/operations/hris_create_employee_time_off_request_response.rb'
|
185
187
|
autoload :HrisCreateEmployeeWorkEligibilityRequestRequest, 'stack_one/models/operations/hris_create_employee_work_eligibility_request_request.rb'
|
@@ -192,6 +194,8 @@ module StackOne
|
|
192
194
|
autoload :HrisGetBenefitResponse, 'stack_one/models/operations/hris_get_benefit_response.rb'
|
193
195
|
autoload :HrisGetCompanyRequest, 'stack_one/models/operations/hris_get_company_request.rb'
|
194
196
|
autoload :HrisGetCompanyResponse, 'stack_one/models/operations/hris_get_company_response.rb'
|
197
|
+
autoload :HrisGetCostCenterGroupRequest, 'stack_one/models/operations/hris_get_cost_center_group_request.rb'
|
198
|
+
autoload :HrisGetCostCenterGroupResponse, 'stack_one/models/operations/hris_get_cost_center_group_response.rb'
|
195
199
|
autoload :HrisGetDepartmentGroupRequest, 'stack_one/models/operations/hris_get_department_group_request.rb'
|
196
200
|
autoload :HrisGetDepartmentGroupResponse, 'stack_one/models/operations/hris_get_department_group_response.rb'
|
197
201
|
autoload :HrisGetEmployeeRequest, 'stack_one/models/operations/hris_get_employee_request.rb'
|
@@ -222,6 +226,9 @@ module StackOne
|
|
222
226
|
autoload :HrisListCompaniesQueryParamFilter, 'stack_one/models/operations/hris_list_companies_queryparam_filter.rb'
|
223
227
|
autoload :HrisListCompaniesRequest, 'stack_one/models/operations/hris_list_companies_request.rb'
|
224
228
|
autoload :HrisListCompaniesResponse, 'stack_one/models/operations/hris_list_companies_response.rb'
|
229
|
+
autoload :HrisListCostCenterGroupsQueryParamFilter, 'stack_one/models/operations/hris_list_cost_center_groups_queryparam_filter.rb'
|
230
|
+
autoload :HrisListCostCenterGroupsRequest, 'stack_one/models/operations/hris_list_cost_center_groups_request.rb'
|
231
|
+
autoload :HrisListCostCenterGroupsResponse, 'stack_one/models/operations/hris_list_cost_center_groups_response.rb'
|
225
232
|
autoload :HrisListDepartmentGroupsQueryParamFilter, 'stack_one/models/operations/hris_list_department_groups_queryparam_filter.rb'
|
226
233
|
autoload :HrisListDepartmentGroupsRequest, 'stack_one/models/operations/hris_list_department_groups_request.rb'
|
227
234
|
autoload :HrisListDepartmentGroupsResponse, 'stack_one/models/operations/hris_list_department_groups_response.rb'
|
@@ -260,6 +267,8 @@ module StackOne
|
|
260
267
|
autoload :HrisListTimeOffRequestsResponse, 'stack_one/models/operations/hris_list_time_off_requests_response.rb'
|
261
268
|
autoload :HrisUpdateEmployeeRequest, 'stack_one/models/operations/hris_update_employee_request.rb'
|
262
269
|
autoload :HrisUpdateEmployeeResponse, 'stack_one/models/operations/hris_update_employee_response.rb'
|
270
|
+
autoload :HrisUpdateEmployeeEmploymentRequest, 'stack_one/models/operations/hris_update_employee_employment_request.rb'
|
271
|
+
autoload :HrisUpdateEmployeeEmploymentResponse, 'stack_one/models/operations/hris_update_employee_employment_response.rb'
|
263
272
|
autoload :HrisUpdateEmployeeWorkEligibilityRequestRequest, 'stack_one/models/operations/hris_update_employee_work_eligibility_request_request.rb'
|
264
273
|
autoload :HrisUpdateEmployeeWorkEligibilityRequestResponse, 'stack_one/models/operations/hris_update_employee_work_eligibility_request_response.rb'
|
265
274
|
autoload :HrisUpdateTimeOffRequestRequest, 'stack_one/models/operations/hris_update_time_off_request_request.rb'
|
@@ -402,5 +411,7 @@ module StackOne
|
|
402
411
|
autoload :MarketingUpdateSmsTemplateResponse, 'stack_one/models/operations/marketing_update_sms_template_response.rb'
|
403
412
|
autoload :StackoneProxyRequestRequest, 'stack_one/models/operations/stackone_proxy_request_request.rb'
|
404
413
|
autoload :StackoneProxyRequestResponse, 'stack_one/models/operations/stackone_proxy_request_response.rb'
|
414
|
+
autoload :CreateRequest, 'stack_one/models/operations/create_request.rb'
|
415
|
+
autoload :CreateResponse, 'stack_one/models/operations/create_response.rb'
|
405
416
|
end
|
406
417
|
end
|