stackone_client 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stack_one/accounts.rb +5 -5
- data/lib/stack_one/ats.rb +37 -37
- data/lib/stack_one/connect_sessions.rb +2 -2
- data/lib/stack_one/connectors.rb +2 -2
- data/lib/stack_one/crm.rb +12 -12
- data/lib/stack_one/hris.rb +248 -21
- data/lib/stack_one/marketing.rb +16 -16
- data/lib/stack_one/models/operations/ats_get_application_document_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_offer_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_offer_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_scorecard_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_scorecard_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_candidate_note_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_candidate_note_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_candidate_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_candidate_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_department_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_department_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_interview_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_interview_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_interview_stage_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_interview_stage_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_job_posting_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_job_posting_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_job_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_job_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_location_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_location_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_offer_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_offer_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_rejected_reason_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_rejected_reason_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_user_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_user_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_application_documents_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_application_documents_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_application_scorecards_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_application_scorecards_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_applications_offers_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_applications_offers_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_applications_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_applications_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_candidate_notes_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_candidate_notes_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_candidates_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_candidates_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_departments_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_departments_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_interview_stages_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_interview_stages_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_interviews_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_interviews_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_job_postings_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_job_postings_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_jobs_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_jobs_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_locations_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_locations_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_offers_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_offers_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_rejected_reasons_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_rejected_reasons_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_users_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_users_request.rb +1 -1
- data/lib/stack_one/models/operations/crm_get_account_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/crm_get_account_request.rb +1 -1
- data/lib/stack_one/models/operations/crm_get_contact_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/crm_get_contact_request.rb +1 -1
- data/lib/stack_one/models/operations/crm_get_list_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/crm_get_list_request.rb +1 -1
- data/lib/stack_one/models/operations/crm_list_accounts_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/crm_list_accounts_request.rb +1 -1
- data/lib/stack_one/models/operations/crm_list_contacts_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/crm_list_contacts_request.rb +1 -1
- data/lib/stack_one/models/operations/crm_list_lists_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/crm_list_lists_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_create_employee_document_request.rb +30 -0
- data/lib/stack_one/models/operations/hris_create_employee_document_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_create_employee_work_eligibility_request_request.rb +30 -0
- data/lib/stack_one/models/operations/hris_create_employee_work_eligibility_request_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_benefit_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_benefit_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_company_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_company_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_document_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_document_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employees_time_off_request_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employees_time_off_request_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employees_work_eligibility_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_get_employees_work_eligibility_request.rb +53 -0
- data/lib/stack_one/models/operations/hris_get_employees_work_eligibility_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_employment_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employment_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_location_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_location_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_time_off_request_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_time_off_request_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_benefits_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_benefits_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_companies_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_companies_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_employee_documents_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_employee_documents_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_employee_work_eligibility_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_employee_work_eligibility_request.rb +50 -0
- data/lib/stack_one/models/operations/hris_list_employee_work_eligibility_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_employees_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_employees_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_employments_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_employments_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_locations_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_locations_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_time_off_requests_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_time_off_requests_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_update_employee_work_eligibility_request_request.rb +33 -0
- data/lib/stack_one/models/operations/hris_update_employee_work_eligibility_request_response.rb +30 -0
- data/lib/stack_one/models/operations/marketing_get_campaign_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_campaign_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_email_template_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_email_template_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_omni_channel_template_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_omni_channel_template_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_push_template_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_push_template_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_list_campaigns_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/marketing_list_campaigns_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_list_email_templates_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/marketing_list_email_templates_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_list_push_templates_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/marketing_list_push_templates_request.rb +1 -1
- data/lib/stack_one/models/operations/proxy.rb +1 -1
- data/lib/stack_one/models/operations/queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations.rb +12 -0
- data/lib/stack_one/models/shared/categories.rb +1 -0
- data/lib/stack_one/models/shared/category.rb +1 -0
- data/lib/stack_one/models/shared/company.rb +3 -3
- data/lib/stack_one/models/shared/connectsessioncreate_categories.rb +1 -0
- data/lib/stack_one/models/shared/connectsessiontoken_categories.rb +1 -0
- data/lib/stack_one/models/shared/createdocumentresult.rb +30 -0
- data/lib/stack_one/models/shared/createworkeligibilityresult.rb +30 -0
- data/lib/stack_one/models/shared/emailmessages_value.rb +20 -0
- data/lib/stack_one/models/shared/employee.rb +8 -5
- data/lib/stack_one/models/shared/employee_company.rb +36 -0
- data/lib/stack_one/models/shared/employee_schemas_employment_type_value.rb +0 -2
- data/lib/stack_one/models/shared/employment_schemas_value.rb +0 -2
- data/lib/stack_one/models/shared/hrisbenefit.rb +3 -3
- data/lib/stack_one/models/shared/hrisbenefit_value.rb +4 -0
- data/lib/stack_one/models/shared/hriscreatedocumentrequestdto.rb +33 -0
- data/lib/stack_one/models/shared/hriscreatedocumentrequestdto_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreatedocumentrequestdto_value.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto.rb +5 -2
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_value.rb +0 -2
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_schemas_value.rb +8 -0
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_value.rb +3 -0
- data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto.rb +42 -0
- data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_schemas_value.rb +22 -0
- data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_value.rb +266 -0
- data/lib/stack_one/models/shared/issued_by.rb +27 -0
- data/lib/stack_one/models/shared/job.rb +2 -2
- data/lib/stack_one/models/shared/{response.rb → job_schemas_status.rb} +1 -1
- data/lib/stack_one/models/shared/jobposting_schemas_status_value.rb +1 -0
- data/lib/stack_one/models/shared/jobposting_schemas_value.rb +0 -2
- data/lib/stack_one/models/shared/linkedaccountmeta_category.rb +1 -0
- data/lib/stack_one/models/shared/message_message_type.rb +2 -2
- data/lib/stack_one/models/shared/message_type.rb +2 -2
- data/lib/stack_one/models/shared/message_value.rb +20 -0
- data/lib/stack_one/models/shared/pushmessages_message_type.rb +2 -2
- data/lib/stack_one/models/shared/pushmessages_value.rb +20 -0
- data/lib/stack_one/models/shared/rawresponse.rb +2 -2
- data/lib/stack_one/models/shared/timeoff_schemas_value.rb +8 -0
- data/lib/stack_one/models/shared/timeoff_value.rb +3 -0
- data/lib/stack_one/models/shared/workeligibility.rb +8 -5
- data/lib/stack_one/models/shared/workeligibility_document.rb +39 -0
- data/lib/stack_one/models/shared/workeligibility_issued_by.rb +27 -0
- data/lib/stack_one/models/shared/workeligibility_schemas_value.rb +22 -0
- data/lib/stack_one/models/shared/workeligibility_type.rb +2 -2
- data/lib/stack_one/models/shared/workeligibility_value.rb +250 -6
- data/lib/stack_one/models/shared/workeligibilitypaginated.rb +33 -0
- data/lib/stack_one/models/shared/workeligibilityresult.rb +27 -0
- data/lib/stack_one/models/shared.rb +27 -8
- data/lib/stack_one/proxy.rb +1 -1
- data/lib/stack_one/sdkconfiguration.rb +10 -11
- data/lib/stack_one/stackone.rb +21 -20
- data/lib/stack_one/utils/metadata_fields.rb +8 -12
- data/lib/stack_one/utils/t.rb +59 -0
- data/lib/stack_one/utils/utils.rb +8 -13
- data/lib/stackone_client.rb +5 -3
- metadata +35 -3
data/lib/stack_one/hris.rb
CHANGED
@@ -19,7 +19,7 @@ module StackOne
|
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
|
-
sig { params(hris_create_employee_request_dto: ::StackOne::Shared::HrisCreateEmployeeRequestDto, x_account_id: ::String).returns(
|
22
|
+
sig { params(hris_create_employee_request_dto: ::StackOne::Shared::HrisCreateEmployeeRequestDto, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateEmployeeResponse) }
|
23
23
|
def create_employee(hris_create_employee_request_dto, x_account_id)
|
24
24
|
# create_employee - Creates an employee
|
25
25
|
request = ::StackOne::Operations::HrisCreateEmployeeRequest.new(
|
@@ -65,7 +65,59 @@ module StackOne
|
|
65
65
|
end
|
66
66
|
|
67
67
|
|
68
|
-
sig { params(
|
68
|
+
sig { params(hris_create_document_request_dto: ::StackOne::Shared::HrisCreateDocumentRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateEmployeeDocumentResponse) }
|
69
|
+
def create_employee_document(hris_create_document_request_dto, id, x_account_id)
|
70
|
+
# create_employee_document - Create Employee Document
|
71
|
+
request = ::StackOne::Operations::HrisCreateEmployeeDocumentRequest.new(
|
72
|
+
|
73
|
+
hris_create_document_request_dto: hris_create_document_request_dto,
|
74
|
+
id: id,
|
75
|
+
x_account_id: x_account_id
|
76
|
+
)
|
77
|
+
url, params = @sdk_configuration.get_server_details
|
78
|
+
base_url = Utils.template_url(url, params)
|
79
|
+
url = Utils.generate_url(
|
80
|
+
::StackOne::Operations::HrisCreateEmployeeDocumentRequest,
|
81
|
+
base_url,
|
82
|
+
'/unified/hris/employees/{id}/documents',
|
83
|
+
request
|
84
|
+
)
|
85
|
+
headers = Utils.get_headers(request)
|
86
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :hris_create_document_request_dto, :json)
|
87
|
+
headers['content-type'] = req_content_type
|
88
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
89
|
+
headers['Accept'] = 'application/json'
|
90
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
91
|
+
|
92
|
+
r = @sdk_configuration.client.post(url) do |req|
|
93
|
+
req.headers = headers
|
94
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
95
|
+
if form
|
96
|
+
req.body = Utils.encode_form(form)
|
97
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
98
|
+
req.body = URI.encode_www_form(data)
|
99
|
+
else
|
100
|
+
req.body = data
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
105
|
+
|
106
|
+
res = ::StackOne::Operations::HrisCreateEmployeeDocumentResponse.new(
|
107
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
108
|
+
)
|
109
|
+
if r.status == 201
|
110
|
+
if Utils.match_content_type(content_type, 'application/json')
|
111
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateDocumentResult)
|
112
|
+
res.create_document_result = out
|
113
|
+
end
|
114
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
115
|
+
end
|
116
|
+
res
|
117
|
+
end
|
118
|
+
|
119
|
+
|
120
|
+
sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateEmployeeTimeOffRequestResponse) }
|
69
121
|
def create_employee_time_off_request(hris_create_time_off_request_dto, id, x_account_id)
|
70
122
|
# create_employee_time_off_request - Create Employee Time Off Request
|
71
123
|
request = ::StackOne::Operations::HrisCreateEmployeeTimeOffRequestRequest.new(
|
@@ -117,7 +169,59 @@ module StackOne
|
|
117
169
|
end
|
118
170
|
|
119
171
|
|
120
|
-
sig { params(
|
172
|
+
sig { params(hris_create_work_eligibility_request_dto: ::StackOne::Shared::HrisCreateWorkEligibilityRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateEmployeeWorkEligibilityRequestResponse) }
|
173
|
+
def create_employee_work_eligibility_request(hris_create_work_eligibility_request_dto, id, x_account_id)
|
174
|
+
# create_employee_work_eligibility_request - Create Employee Work Eligibility Request
|
175
|
+
request = ::StackOne::Operations::HrisCreateEmployeeWorkEligibilityRequestRequest.new(
|
176
|
+
|
177
|
+
hris_create_work_eligibility_request_dto: hris_create_work_eligibility_request_dto,
|
178
|
+
id: id,
|
179
|
+
x_account_id: x_account_id
|
180
|
+
)
|
181
|
+
url, params = @sdk_configuration.get_server_details
|
182
|
+
base_url = Utils.template_url(url, params)
|
183
|
+
url = Utils.generate_url(
|
184
|
+
::StackOne::Operations::HrisCreateEmployeeWorkEligibilityRequestRequest,
|
185
|
+
base_url,
|
186
|
+
'/unified/hris/employees/{id}/work_eligibility',
|
187
|
+
request
|
188
|
+
)
|
189
|
+
headers = Utils.get_headers(request)
|
190
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :hris_create_work_eligibility_request_dto, :json)
|
191
|
+
headers['content-type'] = req_content_type
|
192
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
193
|
+
headers['Accept'] = 'application/json'
|
194
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
195
|
+
|
196
|
+
r = @sdk_configuration.client.post(url) do |req|
|
197
|
+
req.headers = headers
|
198
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
199
|
+
if form
|
200
|
+
req.body = Utils.encode_form(form)
|
201
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
202
|
+
req.body = URI.encode_www_form(data)
|
203
|
+
else
|
204
|
+
req.body = data
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
209
|
+
|
210
|
+
res = ::StackOne::Operations::HrisCreateEmployeeWorkEligibilityRequestResponse.new(
|
211
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
212
|
+
)
|
213
|
+
if r.status == 201
|
214
|
+
if Utils.match_content_type(content_type, 'application/json')
|
215
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateWorkEligibilityResult)
|
216
|
+
res.create_work_eligibility_result = out
|
217
|
+
end
|
218
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
219
|
+
end
|
220
|
+
res
|
221
|
+
end
|
222
|
+
|
223
|
+
|
224
|
+
sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateTimeOffRequestResponse) }
|
121
225
|
def create_time_off_request(hris_create_time_off_request_dto, x_account_id)
|
122
226
|
# create_time_off_request - Creates a time off request
|
123
227
|
request = ::StackOne::Operations::HrisCreateTimeOffRequestRequest.new(
|
@@ -163,7 +267,7 @@ module StackOne
|
|
163
267
|
end
|
164
268
|
|
165
269
|
|
166
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetBenefitRequest)).returns(
|
270
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetBenefitRequest)).returns(::StackOne::Operations::HrisGetBenefitResponse) }
|
167
271
|
def get_benefit(request)
|
168
272
|
# get_benefit - Get Benefit
|
169
273
|
url, params = @sdk_configuration.get_server_details
|
@@ -201,7 +305,7 @@ module StackOne
|
|
201
305
|
end
|
202
306
|
|
203
307
|
|
204
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetCompanyRequest)).returns(
|
308
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetCompanyRequest)).returns(::StackOne::Operations::HrisGetCompanyResponse) }
|
205
309
|
def get_company(request)
|
206
310
|
# get_company - Get Company
|
207
311
|
url, params = @sdk_configuration.get_server_details
|
@@ -239,7 +343,7 @@ module StackOne
|
|
239
343
|
end
|
240
344
|
|
241
345
|
|
242
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeRequest)).returns(
|
346
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeRequest)).returns(::StackOne::Operations::HrisGetEmployeeResponse) }
|
243
347
|
def get_employee(request)
|
244
348
|
# get_employee - Get Employee
|
245
349
|
url, params = @sdk_configuration.get_server_details
|
@@ -277,7 +381,7 @@ module StackOne
|
|
277
381
|
end
|
278
382
|
|
279
383
|
|
280
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeDocumentRequest)).returns(
|
384
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeDocumentRequest)).returns(::StackOne::Operations::HrisGetEmployeeDocumentResponse) }
|
281
385
|
def get_employee_document(request)
|
282
386
|
# get_employee_document - Get Employee Document
|
283
387
|
url, params = @sdk_configuration.get_server_details
|
@@ -315,7 +419,7 @@ module StackOne
|
|
315
419
|
end
|
316
420
|
|
317
421
|
|
318
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeesTimeOffRequestRequest)).returns(
|
422
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeesTimeOffRequestRequest)).returns(::StackOne::Operations::HrisGetEmployeesTimeOffRequestResponse) }
|
319
423
|
def get_employees_time_off_request(request)
|
320
424
|
# get_employees_time_off_request - Get Employees Time Off Request
|
321
425
|
url, params = @sdk_configuration.get_server_details
|
@@ -353,7 +457,45 @@ module StackOne
|
|
353
457
|
end
|
354
458
|
|
355
459
|
|
356
|
-
sig { params(request: T.nilable(::StackOne::Operations::
|
460
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeesWorkEligibilityRequest)).returns(::StackOne::Operations::HrisGetEmployeesWorkEligibilityResponse) }
|
461
|
+
def get_employees_work_eligibility(request)
|
462
|
+
# get_employees_work_eligibility - Get Employees Work Eligibility
|
463
|
+
url, params = @sdk_configuration.get_server_details
|
464
|
+
base_url = Utils.template_url(url, params)
|
465
|
+
url = Utils.generate_url(
|
466
|
+
::StackOne::Operations::HrisGetEmployeesWorkEligibilityRequest,
|
467
|
+
base_url,
|
468
|
+
'/unified/hris/employees/{id}/work_eligibility/{subResourceId}',
|
469
|
+
request
|
470
|
+
)
|
471
|
+
headers = Utils.get_headers(request)
|
472
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeesWorkEligibilityRequest, request)
|
473
|
+
headers['Accept'] = 'application/json'
|
474
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
475
|
+
|
476
|
+
r = @sdk_configuration.client.get(url) do |req|
|
477
|
+
req.headers = headers
|
478
|
+
req.params = query_params
|
479
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
480
|
+
end
|
481
|
+
|
482
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
483
|
+
|
484
|
+
res = ::StackOne::Operations::HrisGetEmployeesWorkEligibilityResponse.new(
|
485
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
486
|
+
)
|
487
|
+
if r.status == 200
|
488
|
+
if Utils.match_content_type(content_type, 'application/json')
|
489
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::WorkEligibilityResult)
|
490
|
+
res.work_eligibility_result = out
|
491
|
+
end
|
492
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
493
|
+
end
|
494
|
+
res
|
495
|
+
end
|
496
|
+
|
497
|
+
|
498
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmploymentRequest)).returns(::StackOne::Operations::HrisGetEmploymentResponse) }
|
357
499
|
def get_employment(request)
|
358
500
|
# get_employment - Get Employment
|
359
501
|
url, params = @sdk_configuration.get_server_details
|
@@ -391,7 +533,7 @@ module StackOne
|
|
391
533
|
end
|
392
534
|
|
393
535
|
|
394
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetLocationRequest)).returns(
|
536
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetLocationRequest)).returns(::StackOne::Operations::HrisGetLocationResponse) }
|
395
537
|
def get_location(request)
|
396
538
|
# get_location - Get Location
|
397
539
|
url, params = @sdk_configuration.get_server_details
|
@@ -429,7 +571,7 @@ module StackOne
|
|
429
571
|
end
|
430
572
|
|
431
573
|
|
432
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTimeOffRequestRequest)).returns(
|
574
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTimeOffRequestRequest)).returns(::StackOne::Operations::HrisGetTimeOffRequestResponse) }
|
433
575
|
def get_time_off_request(request)
|
434
576
|
# get_time_off_request - Get time off request
|
435
577
|
url, params = @sdk_configuration.get_server_details
|
@@ -467,7 +609,7 @@ module StackOne
|
|
467
609
|
end
|
468
610
|
|
469
611
|
|
470
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListBenefitsRequest)).returns(
|
612
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListBenefitsRequest)).returns(::StackOne::Operations::HrisListBenefitsResponse) }
|
471
613
|
def list_benefits(request)
|
472
614
|
# list_benefits - List benefits
|
473
615
|
url, params = @sdk_configuration.get_server_details
|
@@ -500,7 +642,7 @@ module StackOne
|
|
500
642
|
end
|
501
643
|
|
502
644
|
|
503
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListCompaniesRequest)).returns(
|
645
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListCompaniesRequest)).returns(::StackOne::Operations::HrisListCompaniesResponse) }
|
504
646
|
def list_companies(request)
|
505
647
|
# list_companies - List Companies
|
506
648
|
url, params = @sdk_configuration.get_server_details
|
@@ -533,7 +675,7 @@ module StackOne
|
|
533
675
|
end
|
534
676
|
|
535
677
|
|
536
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeDocumentsRequest)).returns(
|
678
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeDocumentsRequest)).returns(::StackOne::Operations::HrisListEmployeeDocumentsResponse) }
|
537
679
|
def list_employee_documents(request)
|
538
680
|
# list_employee_documents - List Employee Documents
|
539
681
|
url, params = @sdk_configuration.get_server_details
|
@@ -571,7 +713,7 @@ module StackOne
|
|
571
713
|
end
|
572
714
|
|
573
715
|
|
574
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeTimeOffRequestsRequest)).returns(
|
716
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeTimeOffRequestsRequest)).returns(::StackOne::Operations::HrisListEmployeeTimeOffRequestsResponse) }
|
575
717
|
def list_employee_time_off_requests(request)
|
576
718
|
# list_employee_time_off_requests - List Employee Time Off Requests
|
577
719
|
url, params = @sdk_configuration.get_server_details
|
@@ -609,7 +751,45 @@ module StackOne
|
|
609
751
|
end
|
610
752
|
|
611
753
|
|
612
|
-
sig { params(request: T.nilable(::StackOne::Operations::
|
754
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeWorkEligibilityRequest)).returns(::StackOne::Operations::HrisListEmployeeWorkEligibilityResponse) }
|
755
|
+
def list_employee_work_eligibility(request)
|
756
|
+
# list_employee_work_eligibility - List Employee Work Eligibility
|
757
|
+
url, params = @sdk_configuration.get_server_details
|
758
|
+
base_url = Utils.template_url(url, params)
|
759
|
+
url = Utils.generate_url(
|
760
|
+
::StackOne::Operations::HrisListEmployeeWorkEligibilityRequest,
|
761
|
+
base_url,
|
762
|
+
'/unified/hris/employees/{id}/work_eligibility',
|
763
|
+
request
|
764
|
+
)
|
765
|
+
headers = Utils.get_headers(request)
|
766
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeeWorkEligibilityRequest, request)
|
767
|
+
headers['Accept'] = 'application/json'
|
768
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
769
|
+
|
770
|
+
r = @sdk_configuration.client.get(url) do |req|
|
771
|
+
req.headers = headers
|
772
|
+
req.params = query_params
|
773
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
774
|
+
end
|
775
|
+
|
776
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
777
|
+
|
778
|
+
res = ::StackOne::Operations::HrisListEmployeeWorkEligibilityResponse.new(
|
779
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
780
|
+
)
|
781
|
+
if r.status == 200
|
782
|
+
if Utils.match_content_type(content_type, 'application/json')
|
783
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::WorkEligibilityPaginated)
|
784
|
+
res.work_eligibility_paginated = out
|
785
|
+
end
|
786
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
787
|
+
end
|
788
|
+
res
|
789
|
+
end
|
790
|
+
|
791
|
+
|
792
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeesRequest)).returns(::StackOne::Operations::HrisListEmployeesResponse) }
|
613
793
|
def list_employees(request)
|
614
794
|
# list_employees - List Employees
|
615
795
|
url, params = @sdk_configuration.get_server_details
|
@@ -642,7 +822,7 @@ module StackOne
|
|
642
822
|
end
|
643
823
|
|
644
824
|
|
645
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmploymentsRequest)).returns(
|
825
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmploymentsRequest)).returns(::StackOne::Operations::HrisListEmploymentsResponse) }
|
646
826
|
def list_employments(request)
|
647
827
|
# list_employments - List Employments
|
648
828
|
url, params = @sdk_configuration.get_server_details
|
@@ -675,7 +855,7 @@ module StackOne
|
|
675
855
|
end
|
676
856
|
|
677
857
|
|
678
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListLocationsRequest)).returns(
|
858
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListLocationsRequest)).returns(::StackOne::Operations::HrisListLocationsResponse) }
|
679
859
|
def list_locations(request)
|
680
860
|
# list_locations - List locations
|
681
861
|
url, params = @sdk_configuration.get_server_details
|
@@ -708,7 +888,7 @@ module StackOne
|
|
708
888
|
end
|
709
889
|
|
710
890
|
|
711
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListTimeOffRequestsRequest)).returns(
|
891
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListTimeOffRequestsRequest)).returns(::StackOne::Operations::HrisListTimeOffRequestsResponse) }
|
712
892
|
def list_time_off_requests(request)
|
713
893
|
# list_time_off_requests - List time off requests
|
714
894
|
url, params = @sdk_configuration.get_server_details
|
@@ -741,7 +921,7 @@ module StackOne
|
|
741
921
|
end
|
742
922
|
|
743
923
|
|
744
|
-
sig { params(hris_create_employee_request_dto: ::StackOne::Shared::HrisCreateEmployeeRequestDto, id: ::String, x_account_id: ::String).returns(
|
924
|
+
sig { params(hris_create_employee_request_dto: ::StackOne::Shared::HrisCreateEmployeeRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUpdateEmployeeResponse) }
|
745
925
|
def update_employee(hris_create_employee_request_dto, id, x_account_id)
|
746
926
|
# update_employee - Updates an employee
|
747
927
|
request = ::StackOne::Operations::HrisUpdateEmployeeRequest.new(
|
@@ -793,7 +973,54 @@ module StackOne
|
|
793
973
|
end
|
794
974
|
|
795
975
|
|
796
|
-
sig { params(
|
976
|
+
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) }
|
977
|
+
def update_employee_work_eligibility_request(hris_create_work_eligibility_request_dto, id, sub_resource_id, x_account_id)
|
978
|
+
# update_employee_work_eligibility_request - Update Employee Work Eligibility Request
|
979
|
+
request = ::StackOne::Operations::HrisUpdateEmployeeWorkEligibilityRequestRequest.new(
|
980
|
+
|
981
|
+
hris_create_work_eligibility_request_dto: hris_create_work_eligibility_request_dto,
|
982
|
+
id: id,
|
983
|
+
sub_resource_id: sub_resource_id,
|
984
|
+
x_account_id: x_account_id
|
985
|
+
)
|
986
|
+
url, params = @sdk_configuration.get_server_details
|
987
|
+
base_url = Utils.template_url(url, params)
|
988
|
+
url = Utils.generate_url(
|
989
|
+
::StackOne::Operations::HrisUpdateEmployeeWorkEligibilityRequestRequest,
|
990
|
+
base_url,
|
991
|
+
'/unified/hris/employees/{id}/work_eligibility/{subResourceId}',
|
992
|
+
request
|
993
|
+
)
|
994
|
+
headers = Utils.get_headers(request)
|
995
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :hris_create_work_eligibility_request_dto, :json)
|
996
|
+
headers['content-type'] = req_content_type
|
997
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
998
|
+
headers['Accept'] = '*/*'
|
999
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
1000
|
+
|
1001
|
+
r = @sdk_configuration.client.patch(url) do |req|
|
1002
|
+
req.headers = headers
|
1003
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
1004
|
+
if form
|
1005
|
+
req.body = Utils.encode_form(form)
|
1006
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
1007
|
+
req.body = URI.encode_www_form(data)
|
1008
|
+
else
|
1009
|
+
req.body = data
|
1010
|
+
end
|
1011
|
+
end
|
1012
|
+
|
1013
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
1014
|
+
|
1015
|
+
res = ::StackOne::Operations::HrisUpdateEmployeeWorkEligibilityRequestResponse.new(
|
1016
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
1017
|
+
)
|
1018
|
+
|
1019
|
+
res
|
1020
|
+
end
|
1021
|
+
|
1022
|
+
|
1023
|
+
sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUpdateTimeOffRequestResponse) }
|
797
1024
|
def update_time_off_request(hris_create_time_off_request_dto, id, x_account_id)
|
798
1025
|
# update_time_off_request - Update time off request
|
799
1026
|
request = ::StackOne::Operations::HrisUpdateTimeOffRequestRequest.new(
|
data/lib/stack_one/marketing.rb
CHANGED
@@ -19,7 +19,7 @@ module StackOne
|
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
|
-
sig { params(marketing_create_email_template_request_dto: ::StackOne::Shared::MarketingCreateEmailTemplateRequestDto, x_account_id: ::String).returns(
|
22
|
+
sig { params(marketing_create_email_template_request_dto: ::StackOne::Shared::MarketingCreateEmailTemplateRequestDto, x_account_id: ::String).returns(::StackOne::Operations::MarketingCreateEmailTemplateResponse) }
|
23
23
|
def create_email_template(marketing_create_email_template_request_dto, x_account_id)
|
24
24
|
# create_email_template - Create email template
|
25
25
|
request = ::StackOne::Operations::MarketingCreateEmailTemplateRequest.new(
|
@@ -65,7 +65,7 @@ module StackOne
|
|
65
65
|
end
|
66
66
|
|
67
67
|
|
68
|
-
sig { params(marketing_create_template_request_dto: ::StackOne::Shared::MarketingCreateTemplateRequestDto, x_account_id: ::String).returns(
|
68
|
+
sig { params(marketing_create_template_request_dto: ::StackOne::Shared::MarketingCreateTemplateRequestDto, x_account_id: ::String).returns(::StackOne::Operations::MarketingCreateOmniChannelTemplateResponse) }
|
69
69
|
def create_omni_channel_template(marketing_create_template_request_dto, x_account_id)
|
70
70
|
# create_omni_channel_template - Create omni-channel template
|
71
71
|
request = ::StackOne::Operations::MarketingCreateOmniChannelTemplateRequest.new(
|
@@ -111,7 +111,7 @@ module StackOne
|
|
111
111
|
end
|
112
112
|
|
113
113
|
|
114
|
-
sig { params(marketing_create_push_template_request_dto: ::StackOne::Shared::MarketingCreatePushTemplateRequestDto, x_account_id: ::String).returns(
|
114
|
+
sig { params(marketing_create_push_template_request_dto: ::StackOne::Shared::MarketingCreatePushTemplateRequestDto, x_account_id: ::String).returns(::StackOne::Operations::MarketingCreatePushTemplateResponse) }
|
115
115
|
def create_push_template(marketing_create_push_template_request_dto, x_account_id)
|
116
116
|
# create_push_template - Create push template
|
117
117
|
request = ::StackOne::Operations::MarketingCreatePushTemplateRequest.new(
|
@@ -157,7 +157,7 @@ module StackOne
|
|
157
157
|
end
|
158
158
|
|
159
159
|
|
160
|
-
sig { params(request: T.nilable(::StackOne::Operations::MarketingGetCampaignRequest)).returns(
|
160
|
+
sig { params(request: T.nilable(::StackOne::Operations::MarketingGetCampaignRequest)).returns(::StackOne::Operations::MarketingGetCampaignResponse) }
|
161
161
|
def get_campaign(request)
|
162
162
|
# get_campaign - Get campaign
|
163
163
|
url, params = @sdk_configuration.get_server_details
|
@@ -189,13 +189,13 @@ module StackOne
|
|
189
189
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CampaignResult)
|
190
190
|
res.campaign_result = out
|
191
191
|
end
|
192
|
-
elsif [400, 403, 429, 500, 501].include?(r.status)
|
192
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
193
193
|
end
|
194
194
|
res
|
195
195
|
end
|
196
196
|
|
197
197
|
|
198
|
-
sig { params(request: T.nilable(::StackOne::Operations::MarketingGetEmailTemplateRequest)).returns(
|
198
|
+
sig { params(request: T.nilable(::StackOne::Operations::MarketingGetEmailTemplateRequest)).returns(::StackOne::Operations::MarketingGetEmailTemplateResponse) }
|
199
199
|
def get_email_template(request)
|
200
200
|
# get_email_template - Get email template
|
201
201
|
url, params = @sdk_configuration.get_server_details
|
@@ -233,7 +233,7 @@ module StackOne
|
|
233
233
|
end
|
234
234
|
|
235
235
|
|
236
|
-
sig { params(request: T.nilable(::StackOne::Operations::MarketingGetOmniChannelTemplateRequest)).returns(
|
236
|
+
sig { params(request: T.nilable(::StackOne::Operations::MarketingGetOmniChannelTemplateRequest)).returns(::StackOne::Operations::MarketingGetOmniChannelTemplateResponse) }
|
237
237
|
def get_omni_channel_template(request)
|
238
238
|
# get_omni_channel_template - Get omni-channel template
|
239
239
|
url, params = @sdk_configuration.get_server_details
|
@@ -271,7 +271,7 @@ module StackOne
|
|
271
271
|
end
|
272
272
|
|
273
273
|
|
274
|
-
sig { params(request: T.nilable(::StackOne::Operations::MarketingGetPushTemplateRequest)).returns(
|
274
|
+
sig { params(request: T.nilable(::StackOne::Operations::MarketingGetPushTemplateRequest)).returns(::StackOne::Operations::MarketingGetPushTemplateResponse) }
|
275
275
|
def get_push_template(request)
|
276
276
|
# get_push_template - Get push template
|
277
277
|
url, params = @sdk_configuration.get_server_details
|
@@ -309,7 +309,7 @@ module StackOne
|
|
309
309
|
end
|
310
310
|
|
311
311
|
|
312
|
-
sig { params(request: T.nilable(::StackOne::Operations::MarketingListCampaignsRequest)).returns(
|
312
|
+
sig { params(request: T.nilable(::StackOne::Operations::MarketingListCampaignsRequest)).returns(::StackOne::Operations::MarketingListCampaignsResponse) }
|
313
313
|
def list_campaigns(request)
|
314
314
|
# list_campaigns - List campaigns
|
315
315
|
url, params = @sdk_configuration.get_server_details
|
@@ -336,13 +336,13 @@ module StackOne
|
|
336
336
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CampaignsPaginated)
|
337
337
|
res.campaigns_paginated = out
|
338
338
|
end
|
339
|
-
elsif [400, 403, 429, 500, 501].include?(r.status)
|
339
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
340
340
|
end
|
341
341
|
res
|
342
342
|
end
|
343
343
|
|
344
344
|
|
345
|
-
sig { params(request: T.nilable(::StackOne::Operations::MarketingListEmailTemplatesRequest)).returns(
|
345
|
+
sig { params(request: T.nilable(::StackOne::Operations::MarketingListEmailTemplatesRequest)).returns(::StackOne::Operations::MarketingListEmailTemplatesResponse) }
|
346
346
|
def list_email_templates(request)
|
347
347
|
# list_email_templates - List email templates
|
348
348
|
url, params = @sdk_configuration.get_server_details
|
@@ -375,7 +375,7 @@ module StackOne
|
|
375
375
|
end
|
376
376
|
|
377
377
|
|
378
|
-
sig { params(request: T.nilable(::StackOne::Operations::MarketingListOmniChannelTemplatesRequest)).returns(
|
378
|
+
sig { params(request: T.nilable(::StackOne::Operations::MarketingListOmniChannelTemplatesRequest)).returns(::StackOne::Operations::MarketingListOmniChannelTemplatesResponse) }
|
379
379
|
def list_omni_channel_templates(request)
|
380
380
|
# list_omni_channel_templates - List omni-channel templates
|
381
381
|
url, params = @sdk_configuration.get_server_details
|
@@ -408,7 +408,7 @@ module StackOne
|
|
408
408
|
end
|
409
409
|
|
410
410
|
|
411
|
-
sig { params(request: T.nilable(::StackOne::Operations::MarketingListPushTemplatesRequest)).returns(
|
411
|
+
sig { params(request: T.nilable(::StackOne::Operations::MarketingListPushTemplatesRequest)).returns(::StackOne::Operations::MarketingListPushTemplatesResponse) }
|
412
412
|
def list_push_templates(request)
|
413
413
|
# list_push_templates - List push templates
|
414
414
|
url, params = @sdk_configuration.get_server_details
|
@@ -441,7 +441,7 @@ module StackOne
|
|
441
441
|
end
|
442
442
|
|
443
443
|
|
444
|
-
sig { params(marketing_create_email_template_request_dto: ::StackOne::Shared::MarketingCreateEmailTemplateRequestDto, id: ::String, x_account_id: ::String).returns(
|
444
|
+
sig { params(marketing_create_email_template_request_dto: ::StackOne::Shared::MarketingCreateEmailTemplateRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::MarketingUpdateEmailTemplateResponse) }
|
445
445
|
def update_email_template(marketing_create_email_template_request_dto, id, x_account_id)
|
446
446
|
# update_email_template - Update email template
|
447
447
|
request = ::StackOne::Operations::MarketingUpdateEmailTemplateRequest.new(
|
@@ -493,7 +493,7 @@ module StackOne
|
|
493
493
|
end
|
494
494
|
|
495
495
|
|
496
|
-
sig { params(marketing_create_template_request_dto: ::StackOne::Shared::MarketingCreateTemplateRequestDto, id: ::String, x_account_id: ::String).returns(
|
496
|
+
sig { params(marketing_create_template_request_dto: ::StackOne::Shared::MarketingCreateTemplateRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::MarketingUpdateOmniChannelTemplateResponse) }
|
497
497
|
def update_omni_channel_template(marketing_create_template_request_dto, id, x_account_id)
|
498
498
|
# update_omni_channel_template - Update omni-channel template
|
499
499
|
request = ::StackOne::Operations::MarketingUpdateOmniChannelTemplateRequest.new(
|
@@ -545,7 +545,7 @@ module StackOne
|
|
545
545
|
end
|
546
546
|
|
547
547
|
|
548
|
-
sig { params(marketing_create_push_template_request_dto: ::StackOne::Shared::MarketingCreatePushTemplateRequestDto, id: ::String, x_account_id: ::String).returns(
|
548
|
+
sig { params(marketing_create_push_template_request_dto: ::StackOne::Shared::MarketingCreatePushTemplateRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::MarketingUpdatePushTemplateResponse) }
|
549
549
|
def update_push_template(marketing_create_push_template_request_dto, id, x_account_id)
|
550
550
|
# update_push_template - Update push template
|
551
551
|
request = ::StackOne::Operations::MarketingUpdatePushTemplateRequest.new(
|
@@ -27,7 +27,7 @@ module StackOne
|
|
27
27
|
field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
28
28
|
# The number of results per page
|
29
29
|
field :page_size, T.nilable(::String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
30
|
-
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with
|
30
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
31
31
|
field :proxy, T.nilable(::StackOne::Operations::QueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
32
32
|
# Indicates that the raw request result is returned
|
33
33
|
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
@@ -7,7 +7,7 @@
|
|
7
7
|
module StackOne
|
8
8
|
module Operations
|
9
9
|
|
10
|
-
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with
|
10
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
11
11
|
class AtsGetApplicationOfferQueryParamProxy < ::StackOne::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
@@ -27,7 +27,7 @@ module StackOne
|
|
27
27
|
field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
28
28
|
# The number of results per page
|
29
29
|
field :page_size, T.nilable(::String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
30
|
-
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with
|
30
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
31
31
|
field :proxy, T.nilable(::StackOne::Operations::AtsGetApplicationOfferQueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
32
32
|
# Indicates that the raw request result is returned
|
33
33
|
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
@@ -27,7 +27,7 @@ module StackOne
|
|
27
27
|
field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
28
28
|
# The number of results per page
|
29
29
|
field :page_size, T.nilable(::String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
30
|
-
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with
|
30
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
31
31
|
field :proxy, T.nilable(::StackOne::Operations::Proxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
32
32
|
# Indicates that the raw request result is returned
|
33
33
|
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
@@ -7,7 +7,7 @@
|
|
7
7
|
module StackOne
|
8
8
|
module Operations
|
9
9
|
|
10
|
-
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with
|
10
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
11
11
|
class AtsGetApplicationScorecardQueryParamProxy < ::StackOne::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
@@ -27,7 +27,7 @@ module StackOne
|
|
27
27
|
field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
28
28
|
# The number of results per page
|
29
29
|
field :page_size, T.nilable(::String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
30
|
-
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with
|
30
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
31
31
|
field :proxy, T.nilable(::StackOne::Operations::AtsGetApplicationScorecardQueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
32
32
|
# Indicates that the raw request result is returned
|
33
33
|
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
@@ -7,7 +7,7 @@
|
|
7
7
|
module StackOne
|
8
8
|
module Operations
|
9
9
|
|
10
|
-
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with
|
10
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
11
11
|
class AtsGetCandidateNoteQueryParamProxy < ::StackOne::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
@@ -27,7 +27,7 @@ module StackOne
|
|
27
27
|
field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
28
28
|
# The number of results per page
|
29
29
|
field :page_size, T.nilable(::String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
30
|
-
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with
|
30
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
31
31
|
field :proxy, T.nilable(::StackOne::Operations::AtsGetCandidateNoteQueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
32
32
|
# Indicates that the raw request result is returned
|
33
33
|
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
@@ -7,7 +7,7 @@
|
|
7
7
|
module StackOne
|
8
8
|
module Operations
|
9
9
|
|
10
|
-
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with
|
10
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
11
11
|
class AtsGetCandidateQueryParamProxy < ::StackOne::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
@@ -25,7 +25,7 @@ module StackOne
|
|
25
25
|
field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
26
26
|
# The number of results per page
|
27
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
|
28
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
29
29
|
field :proxy, T.nilable(::StackOne::Operations::AtsGetCandidateQueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
30
30
|
# Indicates that the raw request result is returned
|
31
31
|
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|