stackone_client 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/{stackone → stack_one}/accounts.rb +32 -26
- data/lib/{stackone → stack_one}/connect_sessions.rb +10 -7
- data/lib/{stackone → stack_one}/connectors.rb +15 -12
- data/lib/{stackone → stack_one}/hris.rb +109 -89
- data/lib/stack_one/models/operations/hris_create_employee_request.rb +27 -0
- data/lib/stack_one/models/operations/hris_create_employee_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_create_employee_time_off_request_request.rb +30 -0
- data/lib/stack_one/models/operations/hris_create_employee_time_off_request_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_create_time_off_request_request.rb +27 -0
- data/lib/stack_one/models/operations/hris_create_time_off_request_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_company_request.rb +50 -0
- data/lib/stack_one/models/operations/hris_get_company_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_employee_document_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_get_employee_document_request.rb +53 -0
- data/lib/stack_one/models/operations/hris_get_employee_document_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_employee_request.rb +56 -0
- data/lib/stack_one/models/operations/hris_get_employee_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_employees_time_off_request_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_get_employees_time_off_request_request.rb +53 -0
- data/lib/stack_one/models/operations/hris_get_employees_time_off_request_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_employment_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_get_employment_request.rb +50 -0
- data/lib/stack_one/models/operations/hris_get_employment_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_location_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_get_location_request.rb +50 -0
- data/lib/stack_one/models/operations/hris_get_location_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_time_off_request_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_get_time_off_request_request.rb +50 -0
- data/lib/stack_one/models/operations/hris_get_time_off_request_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_companies_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_companies_request.rb +47 -0
- data/lib/stack_one/models/operations/hris_list_companies_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_employee_documents_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_employee_documents_request.rb +50 -0
- data/lib/stack_one/models/operations/hris_list_employee_documents_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_request.rb +50 -0
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_employees_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_employees_request.rb +53 -0
- data/lib/stack_one/models/operations/hris_list_employees_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_employments_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_employments_request.rb +47 -0
- data/lib/stack_one/models/operations/hris_list_employments_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_locations_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_locations_request.rb +47 -0
- data/lib/stack_one/models/operations/hris_list_locations_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_time_off_requests_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_time_off_requests_request.rb +47 -0
- data/lib/stack_one/models/operations/hris_list_time_off_requests_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_update_employee_request.rb +30 -0
- data/lib/stack_one/models/operations/hris_update_employee_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_update_time_off_request_request.rb +30 -0
- data/lib/stack_one/models/operations/hris_update_time_off_request_response.rb +33 -0
- data/lib/stack_one/models/operations/proxy.rb +20 -0
- data/lib/stack_one/models/operations/queryparam_proxy.rb +20 -0
- data/lib/{stackone/models/operations/stackone_authenticate_connect_session.rb → stack_one/models/operations/stackone_authenticate_connect_session_response.rb} +6 -8
- data/lib/{stackone/models/operations/stackone_create_connect_session.rb → stack_one/models/operations/stackone_create_connect_session_response.rb} +6 -8
- data/lib/stack_one/models/operations/stackone_delete_account_request.rb +24 -0
- data/lib/{stackone/models/operations/stackone_delete_account.rb → stack_one/models/operations/stackone_delete_account_response.rb} +6 -22
- data/lib/stack_one/models/operations/stackone_get_account_meta_info_request.rb +24 -0
- data/lib/{stackone/models/operations/stackone_get_account_meta_info.rb → stack_one/models/operations/stackone_get_account_meta_info_response.rb} +6 -22
- data/lib/stack_one/models/operations/stackone_get_account_request.rb +24 -0
- data/lib/{stackone/models/operations/stackone_get_account.rb → stack_one/models/operations/stackone_get_account_response.rb} +6 -22
- data/lib/stack_one/models/operations/stackone_get_connector_meta_request.rb +27 -0
- data/lib/stack_one/models/operations/stackone_get_connector_meta_response.rb +33 -0
- data/lib/stack_one/models/operations/stackone_list_connectors_meta_request.rb +24 -0
- data/lib/stack_one/models/operations/stackone_list_connectors_meta_response.rb +33 -0
- data/lib/stack_one/models/operations/stackone_list_linked_accounts_request.rb +27 -0
- data/lib/stack_one/models/operations/stackone_list_linked_accounts_response.rb +33 -0
- data/lib/stack_one/models/operations/stackone_proxy_request_request.rb +27 -0
- data/lib/stack_one/models/operations/stackone_proxy_request_response.rb +30 -0
- data/lib/stack_one/models/operations/stackone_update_account_request.rb +27 -0
- data/lib/stack_one/models/operations/stackone_update_account_response.rb +33 -0
- data/lib/stack_one/models/operations.rb +79 -0
- data/lib/stack_one/models/shared/avatar.rb +27 -0
- data/lib/stack_one/models/shared/body.rb +20 -0
- data/lib/stack_one/models/shared/categories.rb +23 -0
- data/lib/stack_one/models/shared/category.rb +23 -0
- data/lib/stack_one/models/shared/companiespaginated.rb +33 -0
- data/lib/stack_one/models/shared/company.rb +36 -0
- data/lib/stack_one/models/shared/companyresult.rb +27 -0
- data/lib/stack_one/models/shared/connectorsmeta.rb +39 -0
- data/lib/stack_one/models/shared/connectsession.rb +54 -0
- data/lib/{stackone → stack_one}/models/shared/connectsessionauthenticate.rb +3 -4
- data/lib/stack_one/models/shared/connectsessioncreate.rb +51 -0
- data/lib/stack_one/models/shared/connectsessioncreate_categories.rb +23 -0
- data/lib/stack_one/models/shared/connectsessiontoken.rb +57 -0
- data/lib/stack_one/models/shared/connectsessiontoken_categories.rb +23 -0
- data/lib/{stackone → stack_one}/models/shared/content.rb +4 -6
- data/lib/{stackone → stack_one}/models/shared/costcenters.rb +4 -5
- data/lib/stack_one/models/shared/country.rb +27 -0
- data/lib/stack_one/models/shared/countrycodeenum.rb +27 -0
- data/lib/stack_one/models/shared/createemployeeresult.rb +30 -0
- data/lib/stack_one/models/shared/createtimeoffresult.rb +30 -0
- data/lib/stack_one/models/shared/credentials.rb +20 -0
- data/lib/stack_one/models/shared/document.rb +39 -0
- data/lib/stack_one/models/shared/documentapimodel.rb +42 -0
- data/lib/stack_one/models/shared/documentapimodel_value.rb +28 -0
- data/lib/stack_one/models/shared/documentresult.rb +27 -0
- data/lib/stack_one/models/shared/documentspaginated.rb +33 -0
- data/lib/stack_one/models/shared/employee.rb +135 -0
- data/lib/stack_one/models/shared/employee_country.rb +27 -0
- data/lib/stack_one/models/shared/employee_location_type.rb +27 -0
- data/lib/stack_one/models/shared/employee_schemas_country.rb +27 -0
- data/lib/stack_one/models/shared/employee_schemas_employment_type_value.rb +33 -0
- data/lib/stack_one/models/shared/employee_schemas_ethnicity_value.rb +27 -0
- data/lib/stack_one/models/shared/employee_schemas_gender_value.rb +24 -0
- data/lib/stack_one/models/shared/employee_schemas_home_location_location_type_value.rb +20 -0
- data/lib/stack_one/models/shared/employee_schemas_home_location_value.rb +266 -0
- data/lib/stack_one/models/shared/employee_schemas_location_type.rb +27 -0
- data/lib/stack_one/models/shared/employee_schemas_marital_status_value.rb +27 -0
- data/lib/stack_one/models/shared/employee_schemas_value.rb +24 -0
- data/lib/stack_one/models/shared/employee_schemas_work_location_location_type_value.rb +20 -0
- data/lib/stack_one/models/shared/employee_schemas_work_location_value.rb +266 -0
- data/lib/stack_one/models/shared/employee_value.rb +21 -0
- data/lib/stack_one/models/shared/employeecustomfields.rb +42 -0
- data/lib/stack_one/models/shared/employeecustomfields_schemas_value.rb +23 -0
- data/lib/stack_one/models/shared/employeecustomfields_type.rb +27 -0
- data/lib/stack_one/models/shared/employeecustomfields_value.rb +20 -0
- data/lib/stack_one/models/shared/employeeresult.rb +27 -0
- data/lib/stack_one/models/shared/employeespaginated.rb +33 -0
- data/lib/stack_one/models/shared/employment.rb +57 -0
- data/lib/stack_one/models/shared/employment_contract_type.rb +27 -0
- data/lib/stack_one/models/shared/employment_employment_contract_type.rb +27 -0
- data/lib/stack_one/models/shared/employment_employment_type.rb +27 -0
- data/lib/stack_one/models/shared/employment_schemas_pay_frequency_value.rb +33 -0
- data/lib/stack_one/models/shared/employment_schemas_pay_period_value.rb +26 -0
- data/lib/stack_one/models/shared/employment_schemas_value.rb +33 -0
- data/lib/stack_one/models/shared/employment_status.rb +27 -0
- data/lib/stack_one/models/shared/employment_type.rb +27 -0
- data/lib/stack_one/models/shared/employment_value.rb +21 -0
- data/lib/stack_one/models/shared/employmentresult.rb +27 -0
- data/lib/stack_one/models/shared/employmentspaginated.rb +33 -0
- data/lib/stack_one/models/shared/ethnicity.rb +27 -0
- data/lib/stack_one/models/shared/fileformatenum.rb +27 -0
- data/lib/stack_one/models/shared/fileformatenum_value.rb +34 -0
- data/lib/stack_one/models/shared/gender.rb +27 -0
- data/lib/stack_one/models/shared/headers.rb +20 -0
- data/lib/stack_one/models/shared/home_location.rb +60 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto.rb +117 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_avatar.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_country.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment_contract_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment_status.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_ethnicity.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_gender.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_home_location.rb +45 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_marital_status.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_country.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_value.rb +33 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_ethnicity_value.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_gender_value.rb +24 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_home_location_state_value.rb +3841 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_home_location_value.rb +266 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_marital_status_value.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_value.rb +24 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_work_location_state_value.rb +3841 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_work_location_value.rb +266 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_state.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_value.rb +21 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_work_location.rb +45 -0
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto.rb +39 -0
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_schemas_value.rb +20 -0
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_value.rb +19 -0
- data/lib/stack_one/models/shared/hrislocation.rb +60 -0
- data/lib/stack_one/models/shared/hrislocation_schemas_value.rb +20 -0
- data/lib/{stackone/models/shared/hrislocation.rb → stack_one/models/shared/hrislocation_value.rb} +1 -96
- data/lib/stack_one/models/shared/hrislocationresult.rb +27 -0
- data/lib/stack_one/models/shared/hrislocationspaginated.rb +33 -0
- data/lib/stack_one/models/shared/images.rb +27 -0
- data/lib/stack_one/models/shared/job_description.rb +24 -0
- data/lib/stack_one/models/shared/linkedaccount.rb +54 -0
- data/lib/stack_one/models/shared/linkedaccountmeta.rb +30 -0
- data/lib/stack_one/models/shared/linkedaccountmeta_category.rb +23 -0
- data/lib/stack_one/models/shared/location_type.rb +27 -0
- data/lib/stack_one/models/shared/marital_status.rb +27 -0
- data/lib/stack_one/models/shared/metadata.rb +20 -0
- data/lib/stack_one/models/shared/method.rb +22 -0
- data/lib/{stackone → stack_one}/models/shared/patchaccountdto.rb +1 -2
- data/lib/stack_one/models/shared/pay_frequency.rb +27 -0
- data/lib/stack_one/models/shared/pay_period.rb +27 -0
- data/lib/stack_one/models/shared/proxyrequestbody.rb +36 -0
- data/lib/stack_one/models/shared/rawresponse.rb +33 -0
- data/lib/stack_one/models/shared/resources.rb +24 -0
- data/lib/stack_one/models/shared/response.rb +20 -0
- data/lib/stack_one/models/shared/security.rb +27 -0
- data/lib/stack_one/models/shared/setup_information.rb +20 -0
- data/lib/stack_one/models/shared/state.rb +27 -0
- data/lib/stack_one/models/shared/status.rb +27 -0
- data/lib/stack_one/models/shared/timeoff.rb +48 -0
- data/lib/stack_one/models/shared/timeoff_schemas_value.rb +20 -0
- data/lib/stack_one/models/shared/timeoff_status.rb +27 -0
- data/lib/stack_one/models/shared/timeoff_type.rb +27 -0
- data/lib/stack_one/models/shared/timeoff_value.rb +19 -0
- data/lib/stack_one/models/shared/timeoffpaginated.rb +33 -0
- data/lib/stack_one/models/shared/timeoffresult.rb +27 -0
- data/lib/stack_one/models/shared/type.rb +27 -0
- data/lib/{stackone/models/shared/countrycodeenum.rb → stack_one/models/shared/value.rb} +1 -19
- data/lib/stack_one/models/shared/work_location.rb +60 -0
- data/lib/stack_one/models/shared/workeligibility.rb +42 -0
- data/lib/stack_one/models/shared/workeligibility_type.rb +27 -0
- data/lib/stack_one/models/shared/workeligibility_value.rb +22 -0
- data/lib/stack_one/models/shared.rb +139 -0
- data/lib/{stackone → stack_one}/proxy.rb +6 -4
- data/lib/{stackone → stack_one}/sdkconfiguration.rb +4 -4
- data/lib/{stackone/sdk.rb → stack_one/stackone.rb} +1 -1
- data/lib/stackone_client.rb +11 -79
- metadata +213 -80
- data/lib/stackone/models/operations/hris_create_employee.rb +0 -53
- data/lib/stackone/models/operations/hris_create_employee_time_off_request.rb +0 -56
- data/lib/stackone/models/operations/hris_create_time_off_request.rb +0 -53
- data/lib/stackone/models/operations/hris_get_company.rb +0 -88
- data/lib/stackone/models/operations/hris_get_employee.rb +0 -94
- data/lib/stackone/models/operations/hris_get_employee_document.rb +0 -91
- data/lib/stackone/models/operations/hris_get_employees_time_off_request.rb +0 -91
- data/lib/stackone/models/operations/hris_get_employment.rb +0 -88
- data/lib/stackone/models/operations/hris_get_location.rb +0 -88
- data/lib/stackone/models/operations/hris_get_time_off_request.rb +0 -88
- data/lib/stackone/models/operations/hris_list_companies.rb +0 -85
- data/lib/stackone/models/operations/hris_list_employee_documents.rb +0 -88
- data/lib/stackone/models/operations/hris_list_employee_time_off_requests.rb +0 -88
- data/lib/stackone/models/operations/hris_list_employees.rb +0 -91
- data/lib/stackone/models/operations/hris_list_employments.rb +0 -85
- data/lib/stackone/models/operations/hris_list_locations.rb +0 -85
- data/lib/stackone/models/operations/hris_list_time_off_requests.rb +0 -85
- data/lib/stackone/models/operations/hris_update_employee.rb +0 -56
- data/lib/stackone/models/operations/hris_update_time_off_request.rb +0 -56
- data/lib/stackone/models/operations/stackone_get_connector_meta.rb +0 -52
- data/lib/stackone/models/operations/stackone_list_connectors_meta.rb +0 -48
- data/lib/stackone/models/operations/stackone_list_linked_accounts.rb +0 -51
- data/lib/stackone/models/operations/stackone_proxy_request.rb +0 -49
- data/lib/stackone/models/operations/stackone_update_account.rb +0 -53
- data/lib/stackone/models/shared/companiespaginated.rb +0 -34
- data/lib/stackone/models/shared/company.rb +0 -37
- data/lib/stackone/models/shared/companyresult.rb +0 -29
- data/lib/stackone/models/shared/connectorsmeta.rb +0 -84
- data/lib/stackone/models/shared/connectsession.rb +0 -68
- data/lib/stackone/models/shared/connectsessioncreate.rb +0 -75
- data/lib/stackone/models/shared/connectsessiontoken.rb +0 -71
- data/lib/stackone/models/shared/createemployeeresult.rb +0 -31
- data/lib/stackone/models/shared/createtimeoffresult.rb +0 -31
- data/lib/stackone/models/shared/documentapimodel.rb +0 -44
- data/lib/stackone/models/shared/documentresult.rb +0 -29
- data/lib/stackone/models/shared/documentspaginated.rb +0 -34
- data/lib/stackone/models/shared/documenttypeenum.rb +0 -40
- data/lib/stackone/models/shared/employee.rb +0 -1065
- data/lib/stackone/models/shared/employeecustomfields.rb +0 -83
- data/lib/stackone/models/shared/employeeresult.rb +0 -29
- data/lib/stackone/models/shared/employeespaginated.rb +0 -34
- data/lib/stackone/models/shared/employment.rb +0 -199
- data/lib/stackone/models/shared/employmentresult.rb +0 -29
- data/lib/stackone/models/shared/employmentspaginated.rb +0 -34
- data/lib/stackone/models/shared/fileformatenum.rb +0 -52
- data/lib/stackone/models/shared/hriscreateemployeerequestdto.rb +0 -8645
- data/lib/stackone/models/shared/hriscreatetimeoffrequestdto.rb +0 -93
- data/lib/stackone/models/shared/hrislocationresult.rb +0 -29
- data/lib/stackone/models/shared/hrislocationspaginated.rb +0 -34
- data/lib/stackone/models/shared/linkedaccount.rb +0 -75
- data/lib/stackone/models/shared/linkedaccountmeta.rb +0 -44
- data/lib/stackone/models/shared/proxyrequestbody.rb +0 -69
- data/lib/stackone/models/shared/rawresponse.rb +0 -44
- data/lib/stackone/models/shared/security.rb +0 -28
- data/lib/stackone/models/shared/timeoff.rb +0 -102
- data/lib/stackone/models/shared/timeoffpaginated.rb +0 -34
- data/lib/stackone/models/shared/timeoffresult.rb +0 -29
- data/lib/stackone/models/shared/workeligibility.rb +0 -101
- /data/lib/{stackone → stack_one}/utils/metadata_fields.rb +0 -0
- /data/lib/{stackone → stack_one}/utils/utils.rb +0 -0
@@ -0,0 +1,266 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# HrisCreateEmployeeRequestDtoSchemasWorkLocationValue - The ISO3166-1 Alpha2 Code of the Country
|
11
|
+
class HrisCreateEmployeeRequestDtoSchemasWorkLocationValue < T::Enum
|
12
|
+
enums do
|
13
|
+
AF = new('AF')
|
14
|
+
AL = new('AL')
|
15
|
+
DZ = new('DZ')
|
16
|
+
AS = new('AS')
|
17
|
+
AD = new('AD')
|
18
|
+
AO = new('AO')
|
19
|
+
AI = new('AI')
|
20
|
+
AQ = new('AQ')
|
21
|
+
AG = new('AG')
|
22
|
+
AR = new('AR')
|
23
|
+
AM = new('AM')
|
24
|
+
AW = new('AW')
|
25
|
+
AU = new('AU')
|
26
|
+
AT = new('AT')
|
27
|
+
AZ = new('AZ')
|
28
|
+
BS = new('BS')
|
29
|
+
BH = new('BH')
|
30
|
+
BD = new('BD')
|
31
|
+
BB = new('BB')
|
32
|
+
BY = new('BY')
|
33
|
+
BE = new('BE')
|
34
|
+
BZ = new('BZ')
|
35
|
+
BJ = new('BJ')
|
36
|
+
BM = new('BM')
|
37
|
+
BT = new('BT')
|
38
|
+
BO = new('BO')
|
39
|
+
BQ = new('BQ')
|
40
|
+
BA = new('BA')
|
41
|
+
BW = new('BW')
|
42
|
+
BV = new('BV')
|
43
|
+
BR = new('BR')
|
44
|
+
IO = new('IO')
|
45
|
+
BN = new('BN')
|
46
|
+
BG = new('BG')
|
47
|
+
BF = new('BF')
|
48
|
+
BI = new('BI')
|
49
|
+
KH = new('KH')
|
50
|
+
CM = new('CM')
|
51
|
+
CA = new('CA')
|
52
|
+
CV = new('CV')
|
53
|
+
KY = new('KY')
|
54
|
+
CF = new('CF')
|
55
|
+
TD = new('TD')
|
56
|
+
CL = new('CL')
|
57
|
+
CN = new('CN')
|
58
|
+
CX = new('CX')
|
59
|
+
CC = new('CC')
|
60
|
+
CO = new('CO')
|
61
|
+
KM = new('KM')
|
62
|
+
CG = new('CG')
|
63
|
+
CD = new('CD')
|
64
|
+
CK = new('CK')
|
65
|
+
CR = new('CR')
|
66
|
+
HR = new('HR')
|
67
|
+
CU = new('CU')
|
68
|
+
CW = new('CW')
|
69
|
+
CY = new('CY')
|
70
|
+
CZ = new('CZ')
|
71
|
+
CI = new('CI')
|
72
|
+
DK = new('DK')
|
73
|
+
DJ = new('DJ')
|
74
|
+
DM = new('DM')
|
75
|
+
DO = new('DO')
|
76
|
+
EC = new('EC')
|
77
|
+
EG = new('EG')
|
78
|
+
SV = new('SV')
|
79
|
+
GQ = new('GQ')
|
80
|
+
ER = new('ER')
|
81
|
+
EE = new('EE')
|
82
|
+
ET = new('ET')
|
83
|
+
FK = new('FK')
|
84
|
+
FO = new('FO')
|
85
|
+
FJ = new('FJ')
|
86
|
+
FI = new('FI')
|
87
|
+
FR = new('FR')
|
88
|
+
GF = new('GF')
|
89
|
+
PF = new('PF')
|
90
|
+
TF = new('TF')
|
91
|
+
GA = new('GA')
|
92
|
+
GM = new('GM')
|
93
|
+
GE = new('GE')
|
94
|
+
DE = new('DE')
|
95
|
+
GH = new('GH')
|
96
|
+
GI = new('GI')
|
97
|
+
GR = new('GR')
|
98
|
+
GL = new('GL')
|
99
|
+
GD = new('GD')
|
100
|
+
GP = new('GP')
|
101
|
+
GU = new('GU')
|
102
|
+
GT = new('GT')
|
103
|
+
GG = new('GG')
|
104
|
+
GN = new('GN')
|
105
|
+
GW = new('GW')
|
106
|
+
GY = new('GY')
|
107
|
+
HT = new('HT')
|
108
|
+
HM = new('HM')
|
109
|
+
VA = new('VA')
|
110
|
+
HN = new('HN')
|
111
|
+
HK = new('HK')
|
112
|
+
HU = new('HU')
|
113
|
+
IS = new('IS')
|
114
|
+
IN = new('IN')
|
115
|
+
ID = new('ID')
|
116
|
+
IR = new('IR')
|
117
|
+
IQ = new('IQ')
|
118
|
+
IE = new('IE')
|
119
|
+
IM = new('IM')
|
120
|
+
IL = new('IL')
|
121
|
+
IT = new('IT')
|
122
|
+
JM = new('JM')
|
123
|
+
JP = new('JP')
|
124
|
+
JE = new('JE')
|
125
|
+
JO = new('JO')
|
126
|
+
KZ = new('KZ')
|
127
|
+
KE = new('KE')
|
128
|
+
KI = new('KI')
|
129
|
+
KP = new('KP')
|
130
|
+
KR = new('KR')
|
131
|
+
KW = new('KW')
|
132
|
+
KG = new('KG')
|
133
|
+
LA = new('LA')
|
134
|
+
LV = new('LV')
|
135
|
+
LB = new('LB')
|
136
|
+
LS = new('LS')
|
137
|
+
LR = new('LR')
|
138
|
+
LY = new('LY')
|
139
|
+
LI = new('LI')
|
140
|
+
LT = new('LT')
|
141
|
+
LU = new('LU')
|
142
|
+
MO = new('MO')
|
143
|
+
MK = new('MK')
|
144
|
+
MG = new('MG')
|
145
|
+
MW = new('MW')
|
146
|
+
MY = new('MY')
|
147
|
+
MV = new('MV')
|
148
|
+
ML = new('ML')
|
149
|
+
MT = new('MT')
|
150
|
+
MH = new('MH')
|
151
|
+
MQ = new('MQ')
|
152
|
+
MR = new('MR')
|
153
|
+
MU = new('MU')
|
154
|
+
YT = new('YT')
|
155
|
+
MX = new('MX')
|
156
|
+
FM = new('FM')
|
157
|
+
MD = new('MD')
|
158
|
+
MC = new('MC')
|
159
|
+
MN = new('MN')
|
160
|
+
ME = new('ME')
|
161
|
+
MS = new('MS')
|
162
|
+
MA = new('MA')
|
163
|
+
MZ = new('MZ')
|
164
|
+
MM = new('MM')
|
165
|
+
NA = new('NA')
|
166
|
+
NR = new('NR')
|
167
|
+
NP = new('NP')
|
168
|
+
NL = new('NL')
|
169
|
+
NC = new('NC')
|
170
|
+
NZ = new('NZ')
|
171
|
+
NI = new('NI')
|
172
|
+
NE = new('NE')
|
173
|
+
NG = new('NG')
|
174
|
+
NU = new('NU')
|
175
|
+
NF = new('NF')
|
176
|
+
MP = new('MP')
|
177
|
+
NO = new('NO')
|
178
|
+
OM = new('OM')
|
179
|
+
PK = new('PK')
|
180
|
+
PW = new('PW')
|
181
|
+
PS = new('PS')
|
182
|
+
PA = new('PA')
|
183
|
+
PG = new('PG')
|
184
|
+
PY = new('PY')
|
185
|
+
PE = new('PE')
|
186
|
+
PH = new('PH')
|
187
|
+
PN = new('PN')
|
188
|
+
PL = new('PL')
|
189
|
+
PT = new('PT')
|
190
|
+
PR = new('PR')
|
191
|
+
QA = new('QA')
|
192
|
+
RO = new('RO')
|
193
|
+
RU = new('RU')
|
194
|
+
RW = new('RW')
|
195
|
+
RE = new('RE')
|
196
|
+
BL = new('BL')
|
197
|
+
SH = new('SH')
|
198
|
+
KN = new('KN')
|
199
|
+
LC = new('LC')
|
200
|
+
MF = new('MF')
|
201
|
+
PM = new('PM')
|
202
|
+
VC = new('VC')
|
203
|
+
WS = new('WS')
|
204
|
+
SM = new('SM')
|
205
|
+
ST = new('ST')
|
206
|
+
SA = new('SA')
|
207
|
+
SN = new('SN')
|
208
|
+
RS = new('RS')
|
209
|
+
SC = new('SC')
|
210
|
+
SL = new('SL')
|
211
|
+
SG = new('SG')
|
212
|
+
SX = new('SX')
|
213
|
+
SK = new('SK')
|
214
|
+
SI = new('SI')
|
215
|
+
SB = new('SB')
|
216
|
+
SO = new('SO')
|
217
|
+
ZA = new('ZA')
|
218
|
+
GS = new('GS')
|
219
|
+
SS = new('SS')
|
220
|
+
ES = new('ES')
|
221
|
+
LK = new('LK')
|
222
|
+
SD = new('SD')
|
223
|
+
SR = new('SR')
|
224
|
+
SJ = new('SJ')
|
225
|
+
SZ = new('SZ')
|
226
|
+
SE = new('SE')
|
227
|
+
CH = new('CH')
|
228
|
+
SY = new('SY')
|
229
|
+
TW = new('TW')
|
230
|
+
TJ = new('TJ')
|
231
|
+
TZ = new('TZ')
|
232
|
+
TH = new('TH')
|
233
|
+
TL = new('TL')
|
234
|
+
TG = new('TG')
|
235
|
+
TK = new('TK')
|
236
|
+
TO = new('TO')
|
237
|
+
TT = new('TT')
|
238
|
+
TN = new('TN')
|
239
|
+
TR = new('TR')
|
240
|
+
TM = new('TM')
|
241
|
+
TC = new('TC')
|
242
|
+
TV = new('TV')
|
243
|
+
UG = new('UG')
|
244
|
+
UA = new('UA')
|
245
|
+
AE = new('AE')
|
246
|
+
GB = new('GB')
|
247
|
+
US = new('US')
|
248
|
+
UM = new('UM')
|
249
|
+
UY = new('UY')
|
250
|
+
UZ = new('UZ')
|
251
|
+
VU = new('VU')
|
252
|
+
VE = new('VE')
|
253
|
+
VN = new('VN')
|
254
|
+
VG = new('VG')
|
255
|
+
VI = new('VI')
|
256
|
+
WF = new('WF')
|
257
|
+
EH = new('EH')
|
258
|
+
YE = new('YE')
|
259
|
+
ZM = new('ZM')
|
260
|
+
ZW = new('ZW')
|
261
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
265
|
+
end
|
266
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# The ISO3166-2 sub division where the location is situated
|
11
|
+
class HrisCreateEmployeeRequestDtoState < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
16
|
+
|
17
|
+
field :value, T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoSchemasWorkLocationStateValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::HrisCreateEmployeeRequestDtoSchemasWorkLocationStateValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoSchemasWorkLocationStateValue)).void }
|
21
|
+
def initialize(source_value: nil, value: nil)
|
22
|
+
@source_value = source_value
|
23
|
+
@value = value
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class HrisCreateEmployeeRequestDtoValue < T::Enum
|
12
|
+
enums do
|
13
|
+
FULL_TIME = new('full_time')
|
14
|
+
SHIFTS = new('shifts')
|
15
|
+
PART_TIME = new('part_time')
|
16
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# The employee work location
|
11
|
+
class HrisCreateEmployeeRequestDtoWorkLocation < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The city where the location is situated
|
15
|
+
field :city, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('city') } }
|
16
|
+
# The country code
|
17
|
+
field :country, T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoSchemasCountry), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
|
18
|
+
# The name of the location
|
19
|
+
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
20
|
+
# The phone number of the location
|
21
|
+
field :phone_number, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('phone_number') } }
|
22
|
+
# The ISO3166-2 sub division where the location is situated
|
23
|
+
field :state, T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoState), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('state') } }
|
24
|
+
# The first line of the address
|
25
|
+
field :street_1, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('street_1') } }
|
26
|
+
# The second line of the address
|
27
|
+
field :street_2, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('street_2') } }
|
28
|
+
# The ZIP code/Postal code of the location
|
29
|
+
field :zip_code, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('zip_code') } }
|
30
|
+
|
31
|
+
|
32
|
+
sig { params(city: T.nilable(::String), country: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoSchemasCountry), name: T.nilable(::String), phone_number: T.nilable(::String), state: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoState), street_1: T.nilable(::String), street_2: T.nilable(::String), zip_code: T.nilable(::String)).void }
|
33
|
+
def initialize(city: nil, country: nil, name: nil, phone_number: nil, state: nil, street_1: nil, street_2: nil, zip_code: nil)
|
34
|
+
@city = city
|
35
|
+
@country = country
|
36
|
+
@name = name
|
37
|
+
@phone_number = phone_number
|
38
|
+
@state = state
|
39
|
+
@street_1 = street_1
|
40
|
+
@street_2 = street_2
|
41
|
+
@zip_code = zip_code
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class HrisCreateTimeOffRequestDto < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The approver ID
|
15
|
+
field :approver_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('approver_id') } }
|
16
|
+
# The employee ID
|
17
|
+
field :employee_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employee_id') } }
|
18
|
+
# The end date of the time off request
|
19
|
+
field :end_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
20
|
+
# The start date of the time off request
|
21
|
+
field :start_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
22
|
+
# The status of the time off request
|
23
|
+
field :status, T.nilable(::StackOne::Shared::Status), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status') } }
|
24
|
+
# The type of the time off request
|
25
|
+
field :type, T.nilable(::StackOne::Shared::HrisCreateTimeOffRequestDtoType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
|
26
|
+
|
27
|
+
|
28
|
+
sig { params(approver_id: T.nilable(::String), employee_id: T.nilable(::String), end_date: T.nilable(::DateTime), start_date: T.nilable(::DateTime), status: T.nilable(::StackOne::Shared::Status), type: T.nilable(::StackOne::Shared::HrisCreateTimeOffRequestDtoType)).void }
|
29
|
+
def initialize(approver_id: nil, employee_id: nil, end_date: nil, start_date: nil, status: nil, type: nil)
|
30
|
+
@approver_id = approver_id
|
31
|
+
@employee_id = employee_id
|
32
|
+
@end_date = end_date
|
33
|
+
@start_date = start_date
|
34
|
+
@status = status
|
35
|
+
@type = type
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class HrisCreateTimeOffRequestDtoSchemasValue < T::Enum
|
12
|
+
enums do
|
13
|
+
SICK = new('sick')
|
14
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
15
|
+
VACATION = new('vacation')
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# The type of the time off request
|
11
|
+
class HrisCreateTimeOffRequestDtoType < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
16
|
+
|
17
|
+
field :value, T.nilable(::StackOne::Shared::HrisCreateTimeOffRequestDtoSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::HrisCreateTimeOffRequestDtoSchemasValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::HrisCreateTimeOffRequestDtoSchemasValue)).void }
|
21
|
+
def initialize(source_value: nil, value: nil)
|
22
|
+
@source_value = source_value
|
23
|
+
@value = value
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class HrisCreateTimeOffRequestDtoValue < T::Enum
|
12
|
+
enums do
|
13
|
+
APPROVED = new('approved')
|
14
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class HRISLocation < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The city where the location is situated
|
15
|
+
field :city, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('city') } }
|
16
|
+
# The country code
|
17
|
+
field :country, T.nilable(::StackOne::Shared::Country), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
|
18
|
+
# The created_at date
|
19
|
+
field :created_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
20
|
+
# The employee ID
|
21
|
+
field :employee_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employee_id') } }
|
22
|
+
# The unique ID of the location
|
23
|
+
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
24
|
+
# The location type
|
25
|
+
field :location_type, T.nilable(::StackOne::Shared::LocationType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_type') } }
|
26
|
+
# The name of the location
|
27
|
+
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
28
|
+
# The phone number of the location
|
29
|
+
field :phone_number, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('phone_number') } }
|
30
|
+
# The state where the location is situated
|
31
|
+
field :state, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('state') } }
|
32
|
+
# The first line of the address
|
33
|
+
field :street_1, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('street_1') } }
|
34
|
+
# The second line of the address
|
35
|
+
field :street_2, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('street_2') } }
|
36
|
+
# The updated_at date
|
37
|
+
field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
38
|
+
# The ZIP code/Postal code of the location
|
39
|
+
field :zip_code, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('zip_code') } }
|
40
|
+
|
41
|
+
|
42
|
+
sig { params(city: T.nilable(::String), country: T.nilable(::StackOne::Shared::Country), created_at: T.nilable(::DateTime), employee_id: T.nilable(::String), id: T.nilable(::String), location_type: T.nilable(::StackOne::Shared::LocationType), name: T.nilable(::String), phone_number: T.nilable(::String), state: T.nilable(::String), street_1: T.nilable(::String), street_2: T.nilable(::String), updated_at: T.nilable(::DateTime), zip_code: T.nilable(::String)).void }
|
43
|
+
def initialize(city: nil, country: nil, created_at: nil, employee_id: nil, id: nil, location_type: nil, name: nil, phone_number: nil, state: nil, street_1: nil, street_2: nil, updated_at: nil, zip_code: nil)
|
44
|
+
@city = city
|
45
|
+
@country = country
|
46
|
+
@created_at = created_at
|
47
|
+
@employee_id = employee_id
|
48
|
+
@id = id
|
49
|
+
@location_type = location_type
|
50
|
+
@name = name
|
51
|
+
@phone_number = phone_number
|
52
|
+
@state = state
|
53
|
+
@street_1 = street_1
|
54
|
+
@street_2 = street_2
|
55
|
+
@updated_at = updated_at
|
56
|
+
@zip_code = zip_code
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class HRISLocationSchemasValue < T::Enum
|
12
|
+
enums do
|
13
|
+
HOME = new('home')
|
14
|
+
WORK = new('work')
|
15
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
data/lib/{stackone/models/shared/hrislocation.rb → stack_one/models/shared/hrislocation_value.rb}
RENAMED
@@ -3,11 +3,10 @@
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
5
5
|
|
6
|
-
require 'sorbet-runtime'
|
7
|
-
require 'faraday'
|
8
6
|
|
9
7
|
module StackOne
|
10
8
|
module Shared
|
9
|
+
|
11
10
|
# HRISLocationValue - The ISO3166-1 Alpha2 Code of the Country
|
12
11
|
class HRISLocationValue < T::Enum
|
13
12
|
enums do
|
@@ -263,99 +262,5 @@ module StackOne
|
|
263
262
|
end
|
264
263
|
end
|
265
264
|
|
266
|
-
|
267
|
-
# The country code
|
268
|
-
class Country < ::StackOne::Utils::FieldAugmented
|
269
|
-
extend T::Sig
|
270
|
-
|
271
|
-
|
272
|
-
field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
273
|
-
# The ISO3166-1 Alpha2 Code of the Country
|
274
|
-
field :value, T.nilable(Shared::HRISLocationValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HRISLocationValue, true) } }
|
275
|
-
|
276
|
-
|
277
|
-
sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::HRISLocationValue)).void }
|
278
|
-
def initialize(source_value: nil, value: nil)
|
279
|
-
@source_value = source_value
|
280
|
-
@value = value
|
281
|
-
end
|
282
|
-
end
|
283
|
-
|
284
|
-
|
285
|
-
class HRISLocationSchemasValue < T::Enum
|
286
|
-
enums do
|
287
|
-
HOME = new('home')
|
288
|
-
WORK = new('work')
|
289
|
-
UNMAPPED_VALUE = new('unmapped_value')
|
290
|
-
end
|
291
|
-
end
|
292
|
-
|
293
|
-
|
294
|
-
# The location type
|
295
|
-
class LocationType < ::StackOne::Utils::FieldAugmented
|
296
|
-
extend T::Sig
|
297
|
-
|
298
|
-
|
299
|
-
field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
300
|
-
|
301
|
-
field :value, T.nilable(Shared::HRISLocationSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::HRISLocationSchemasValue, true) } }
|
302
|
-
|
303
|
-
|
304
|
-
sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::HRISLocationSchemasValue)).void }
|
305
|
-
def initialize(source_value: nil, value: nil)
|
306
|
-
@source_value = source_value
|
307
|
-
@value = value
|
308
|
-
end
|
309
|
-
end
|
310
|
-
|
311
|
-
|
312
|
-
class HRISLocation < ::StackOne::Utils::FieldAugmented
|
313
|
-
extend T::Sig
|
314
|
-
|
315
|
-
# The city where the location is situated
|
316
|
-
field :city, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('city') } }
|
317
|
-
# The country code
|
318
|
-
field :country, T.nilable(Shared::Country), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
|
319
|
-
# The created_at date
|
320
|
-
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
321
|
-
# The employee ID
|
322
|
-
field :employee_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employee_id') } }
|
323
|
-
# The unique ID of the location
|
324
|
-
field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
325
|
-
# The location type
|
326
|
-
field :location_type, T.nilable(Shared::LocationType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_type') } }
|
327
|
-
# The name of the location
|
328
|
-
field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
329
|
-
# The phone number of the location
|
330
|
-
field :phone_number, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('phone_number') } }
|
331
|
-
# The state where the location is situated
|
332
|
-
field :state, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('state') } }
|
333
|
-
# The first line of the address
|
334
|
-
field :street_1, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('street_1') } }
|
335
|
-
# The second line of the address
|
336
|
-
field :street_2, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('street_2') } }
|
337
|
-
# The updated_at date
|
338
|
-
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
339
|
-
# The ZIP code/Postal code of the location
|
340
|
-
field :zip_code, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('zip_code') } }
|
341
|
-
|
342
|
-
|
343
|
-
sig { params(city: T.nilable(String), country: T.nilable(Shared::Country), created_at: T.nilable(DateTime), employee_id: T.nilable(String), id: T.nilable(String), location_type: T.nilable(Shared::LocationType), name: T.nilable(String), phone_number: T.nilable(String), state: T.nilable(String), street_1: T.nilable(String), street_2: T.nilable(String), updated_at: T.nilable(DateTime), zip_code: T.nilable(String)).void }
|
344
|
-
def initialize(city: nil, country: nil, created_at: nil, employee_id: nil, id: nil, location_type: nil, name: nil, phone_number: nil, state: nil, street_1: nil, street_2: nil, updated_at: nil, zip_code: nil)
|
345
|
-
@city = city
|
346
|
-
@country = country
|
347
|
-
@created_at = created_at
|
348
|
-
@employee_id = employee_id
|
349
|
-
@id = id
|
350
|
-
@location_type = location_type
|
351
|
-
@name = name
|
352
|
-
@phone_number = phone_number
|
353
|
-
@state = state
|
354
|
-
@street_1 = street_1
|
355
|
-
@street_2 = street_2
|
356
|
-
@updated_at = updated_at
|
357
|
-
@zip_code = zip_code
|
358
|
-
end
|
359
|
-
end
|
360
265
|
end
|
361
266
|
end
|