stackone_client 0.8.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stack_one/hris.rb +12 -0
  3. data/lib/stack_one/models/operations/hris_list_employee_time_off_policies_queryparam_filter.rb +7 -3
  4. data/lib/stack_one/models/operations/hris_list_employee_time_off_policies_request.rb +1 -1
  5. data/lib/stack_one/models/operations/hris_list_time_off_policies_queryparam_filter.rb +7 -3
  6. data/lib/stack_one/models/operations/hris_list_time_off_policies_request.rb +1 -1
  7. data/lib/stack_one/models/operations/queryparam_type.rb +35 -0
  8. data/lib/stack_one/models/operations/type.rb +35 -0
  9. data/lib/stack_one/models/operations.rb +2 -0
  10. data/lib/stack_one/models/shared/answer_value.rb +1 -0
  11. data/lib/stack_one/models/shared/categories.rb +1 -0
  12. data/lib/stack_one/models/shared/connectorsmeta_category.rb +1 -0
  13. data/lib/stack_one/models/shared/connectsessioncreate_categories.rb +1 -0
  14. data/lib/stack_one/models/shared/connectsessiontokenauthlink_categories.rb +1 -0
  15. data/lib/stack_one/models/shared/createanswer_value.rb +1 -0
  16. data/lib/stack_one/models/shared/createemploymentapimodel.rb +6 -6
  17. data/lib/stack_one/models/shared/createemploymentapimodel_duration_unit.rb +37 -0
  18. data/lib/stack_one/models/shared/createemploymentapimodel_schemas_work_time_4.rb +28 -0
  19. data/lib/stack_one/models/shared/createemploymentapimodel_schemas_work_time_source_value.rb +28 -0
  20. data/lib/stack_one/models/shared/createemploymentapimodel_schemas_work_time_value.rb +23 -0
  21. data/lib/stack_one/models/shared/employment.rb +10 -6
  22. data/lib/stack_one/models/shared/employment_duration_unit.rb +37 -0
  23. data/lib/stack_one/models/shared/employment_schemas_work_time_4.rb +28 -0
  24. data/lib/stack_one/models/shared/employment_schemas_work_time_source_value.rb +28 -0
  25. data/lib/stack_one/models/shared/employment_schemas_work_time_value.rb +23 -0
  26. data/lib/stack_one/models/shared/employment_work_time.rb +37 -0
  27. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_duration_unit.rb +37 -0
  28. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment.rb +6 -6
  29. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_work_time_4.rb +28 -0
  30. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_work_time_source_value.rb +28 -0
  31. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_work_time_value.rb +23 -0
  32. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_work_time.rb +37 -0
  33. data/lib/stack_one/models/shared/hriscreateemploymentrequestdto.rb +6 -6
  34. data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_duration_unit.rb +37 -0
  35. data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_work_time_4.rb +28 -0
  36. data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_work_time_source_value.rb +28 -0
  37. data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_work_time_value.rb +23 -0
  38. data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_work_time.rb +37 -0
  39. data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_duration_unit.rb +37 -0
  40. data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_employment.rb +6 -6
  41. data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_work_time_4.rb +28 -0
  42. data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_work_time_source_value.rb +28 -0
  43. data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_work_time_value.rb +23 -0
  44. data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_work_time.rb +37 -0
  45. data/lib/stack_one/models/shared/linkedaccountmeta_category.rb +1 -0
  46. data/lib/stack_one/models/shared/question_value.rb +1 -0
  47. data/lib/stack_one/models/shared/work_time.rb +37 -0
  48. data/lib/stack_one/models/shared.rb +25 -0
  49. data/lib/stack_one/sdkconfiguration.rb +2 -2
  50. metadata +30 -3
@@ -0,0 +1,37 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Models
9
+ module Shared
10
+
11
+
12
+ class EmploymentWorkTime
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+ # The work time duration in ISO 8601 duration format
17
+ field :duration, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('duration') } }
18
+ # The duration unit of the work time
19
+ field :duration_unit, T.nilable(Models::Shared::EmploymentDurationUnit), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('duration_unit') } }
20
+
21
+
22
+ sig { params(duration: T.nilable(::String), duration_unit: T.nilable(Models::Shared::EmploymentDurationUnit)).void }
23
+ def initialize(duration: nil, duration_unit: nil)
24
+ @duration = duration
25
+ @duration_unit = duration_unit
26
+ end
27
+
28
+ def ==(other)
29
+ return false unless other.is_a? self.class
30
+ return false unless @duration == other.duration
31
+ return false unless @duration_unit == other.duration_unit
32
+ true
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,37 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Models
9
+ module Shared
10
+
11
+ # The duration unit of the work time
12
+ class HrisCreateEmployeeRequestDtoDurationUnit
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+
17
+ field :source_value, T.nilable(T.any(::String, ::Float, T::Boolean, Models::Shared::HrisCreateEmployeeRequestDtoSchemasEmploymentWorkTime4, T::Array[::Object])), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
18
+ # The unified value for the duration unit.
19
+ field :value, T.nilable(Models::Shared::HrisCreateEmployeeRequestDtoSchemasEmploymentWorkTimeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Models::Shared::HrisCreateEmployeeRequestDtoSchemasEmploymentWorkTimeValue, true) } }
20
+
21
+
22
+ sig { params(source_value: T.nilable(T.any(::String, ::Float, T::Boolean, Models::Shared::HrisCreateEmployeeRequestDtoSchemasEmploymentWorkTime4, T::Array[::Object])), value: T.nilable(Models::Shared::HrisCreateEmployeeRequestDtoSchemasEmploymentWorkTimeValue)).void }
23
+ def initialize(source_value: nil, value: nil)
24
+ @source_value = source_value
25
+ @value = value
26
+ end
27
+
28
+ def ==(other)
29
+ return false unless other.is_a? self.class
30
+ return false unless @source_value == other.source_value
31
+ return false unless @value == other.value
32
+ true
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -33,14 +33,14 @@ module StackOne
33
33
  field :pay_period, T.nilable(Models::Shared::HrisCreateEmployeeRequestDtoPayPeriod), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_period') } }
34
34
  # The pay rate for the employee
35
35
  field :pay_rate, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_rate') } }
36
- # The time worked for the employee in ISO 8601 duration format
37
- field :time_worked, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('time_worked') } }
38
36
  # Custom Unified Fields configured in your StackOne project
39
37
  field :unified_custom_fields, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('unified_custom_fields') } }
40
38
 
39
+ field :work_time, T.nilable(Models::Shared::HrisCreateEmployeeRequestDtoWorkTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_time') } }
41
40
 
42
- sig { params(effective_date: T.nilable(::DateTime), employment_contract_type: T.nilable(Models::Shared::HrisCreateEmployeeRequestDtoSchemasEmploymentContractType), employment_type: T.nilable(Models::Shared::HrisCreateEmployeeRequestDtoSchemasEmploymentType), id: T.nilable(::String), job_title: T.nilable(::String), pay_currency: T.nilable(::String), pay_frequency: T.nilable(Models::Shared::HrisCreateEmployeeRequestDtoPayFrequency), pay_period: T.nilable(Models::Shared::HrisCreateEmployeeRequestDtoPayPeriod), pay_rate: T.nilable(::String), time_worked: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object])).void }
43
- def initialize(effective_date: nil, employment_contract_type: nil, employment_type: nil, id: nil, job_title: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, time_worked: nil, unified_custom_fields: nil)
41
+
42
+ sig { params(effective_date: T.nilable(::DateTime), employment_contract_type: T.nilable(Models::Shared::HrisCreateEmployeeRequestDtoSchemasEmploymentContractType), employment_type: T.nilable(Models::Shared::HrisCreateEmployeeRequestDtoSchemasEmploymentType), id: T.nilable(::String), job_title: T.nilable(::String), pay_currency: T.nilable(::String), pay_frequency: T.nilable(Models::Shared::HrisCreateEmployeeRequestDtoPayFrequency), pay_period: T.nilable(Models::Shared::HrisCreateEmployeeRequestDtoPayPeriod), pay_rate: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), work_time: T.nilable(Models::Shared::HrisCreateEmployeeRequestDtoWorkTime)).void }
43
+ def initialize(effective_date: nil, employment_contract_type: nil, employment_type: nil, id: nil, job_title: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, unified_custom_fields: nil, work_time: nil)
44
44
  @effective_date = effective_date
45
45
  @employment_contract_type = employment_contract_type
46
46
  @employment_type = employment_type
@@ -50,8 +50,8 @@ module StackOne
50
50
  @pay_frequency = pay_frequency
51
51
  @pay_period = pay_period
52
52
  @pay_rate = pay_rate
53
- @time_worked = time_worked
54
53
  @unified_custom_fields = unified_custom_fields
54
+ @work_time = work_time
55
55
  end
56
56
 
57
57
  def ==(other)
@@ -65,8 +65,8 @@ module StackOne
65
65
  return false unless @pay_frequency == other.pay_frequency
66
66
  return false unless @pay_period == other.pay_period
67
67
  return false unless @pay_rate == other.pay_rate
68
- return false unless @time_worked == other.time_worked
69
68
  return false unless @unified_custom_fields == other.unified_custom_fields
69
+ return false unless @work_time == other.work_time
70
70
  true
71
71
  end
72
72
  end
@@ -0,0 +1,28 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Models
9
+ module Shared
10
+
11
+
12
+ class HrisCreateEmployeeRequestDtoSchemasEmploymentWorkTime4
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+
17
+
18
+
19
+ def initialize; end
20
+
21
+ def ==(other)
22
+ return false unless other.is_a? self.class
23
+ true
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,28 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Models
9
+ module Shared
10
+
11
+
12
+ class HrisCreateEmployeeRequestDtoSchemasEmploymentWorkTimeSourceValue
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+
17
+
18
+
19
+ def initialize; end
20
+
21
+ def ==(other)
22
+ return false unless other.is_a? self.class
23
+ true
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,23 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Models
9
+ module Shared
10
+
11
+ # HrisCreateEmployeeRequestDtoSchemasEmploymentWorkTimeValue - The unified value for the duration unit.
12
+ class HrisCreateEmployeeRequestDtoSchemasEmploymentWorkTimeValue < T::Enum
13
+ enums do
14
+ DAY = new('day')
15
+ WEEK = new('week')
16
+ MONTH = new('month')
17
+ YEAR = new('year')
18
+ UNMAPPED_VALUE = new('unmapped_value')
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,37 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Models
9
+ module Shared
10
+
11
+
12
+ class HrisCreateEmployeeRequestDtoWorkTime
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+ # The work time duration in ISO 8601 duration format
17
+ field :duration, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('duration') } }
18
+ # The duration unit of the work time
19
+ field :duration_unit, T.nilable(Models::Shared::HrisCreateEmployeeRequestDtoDurationUnit), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('duration_unit') } }
20
+
21
+
22
+ sig { params(duration: T.nilable(::String), duration_unit: T.nilable(Models::Shared::HrisCreateEmployeeRequestDtoDurationUnit)).void }
23
+ def initialize(duration: nil, duration_unit: nil)
24
+ @duration = duration
25
+ @duration_unit = duration_unit
26
+ end
27
+
28
+ def ==(other)
29
+ return false unless other.is_a? self.class
30
+ return false unless @duration == other.duration
31
+ return false unless @duration_unit == other.duration_unit
32
+ true
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -35,14 +35,14 @@ module StackOne
35
35
  field :pay_period, T.nilable(Models::Shared::HrisCreateEmploymentRequestDtoPayPeriod), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_period') } }
36
36
  # The pay rate for the employee
37
37
  field :pay_rate, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_rate') } }
38
- # The time worked for the employee in ISO 8601 duration format
39
- field :time_worked, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('time_worked') } }
40
38
  # Custom Unified Fields configured in your StackOne project
41
39
  field :unified_custom_fields, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('unified_custom_fields') } }
42
40
 
41
+ field :work_time, T.nilable(Models::Shared::HrisCreateEmploymentRequestDtoWorkTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_time') } }
43
42
 
44
- sig { params(effective_date: T.nilable(::DateTime), employment_contract_type: T.nilable(Models::Shared::HrisCreateEmploymentRequestDtoEmploymentContractType), employment_type: T.nilable(Models::Shared::HrisCreateEmploymentRequestDtoEmploymentType), id: T.nilable(::String), job_title: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), pay_currency: T.nilable(::String), pay_frequency: T.nilable(Models::Shared::HrisCreateEmploymentRequestDtoPayFrequency), pay_period: T.nilable(Models::Shared::HrisCreateEmploymentRequestDtoPayPeriod), pay_rate: T.nilable(::String), time_worked: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object])).void }
45
- def initialize(effective_date: nil, employment_contract_type: nil, employment_type: nil, id: nil, job_title: nil, passthrough: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, time_worked: nil, unified_custom_fields: nil)
43
+
44
+ sig { params(effective_date: T.nilable(::DateTime), employment_contract_type: T.nilable(Models::Shared::HrisCreateEmploymentRequestDtoEmploymentContractType), employment_type: T.nilable(Models::Shared::HrisCreateEmploymentRequestDtoEmploymentType), id: T.nilable(::String), job_title: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), pay_currency: T.nilable(::String), pay_frequency: T.nilable(Models::Shared::HrisCreateEmploymentRequestDtoPayFrequency), pay_period: T.nilable(Models::Shared::HrisCreateEmploymentRequestDtoPayPeriod), pay_rate: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), work_time: T.nilable(Models::Shared::HrisCreateEmploymentRequestDtoWorkTime)).void }
45
+ def initialize(effective_date: nil, employment_contract_type: nil, employment_type: nil, id: nil, job_title: nil, passthrough: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, unified_custom_fields: nil, work_time: nil)
46
46
  @effective_date = effective_date
47
47
  @employment_contract_type = employment_contract_type
48
48
  @employment_type = employment_type
@@ -53,8 +53,8 @@ module StackOne
53
53
  @pay_frequency = pay_frequency
54
54
  @pay_period = pay_period
55
55
  @pay_rate = pay_rate
56
- @time_worked = time_worked
57
56
  @unified_custom_fields = unified_custom_fields
57
+ @work_time = work_time
58
58
  end
59
59
 
60
60
  def ==(other)
@@ -69,8 +69,8 @@ module StackOne
69
69
  return false unless @pay_frequency == other.pay_frequency
70
70
  return false unless @pay_period == other.pay_period
71
71
  return false unless @pay_rate == other.pay_rate
72
- return false unless @time_worked == other.time_worked
73
72
  return false unless @unified_custom_fields == other.unified_custom_fields
73
+ return false unless @work_time == other.work_time
74
74
  true
75
75
  end
76
76
  end
@@ -0,0 +1,37 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Models
9
+ module Shared
10
+
11
+ # The duration unit of the work time
12
+ class HrisCreateEmploymentRequestDtoDurationUnit
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+
17
+ field :source_value, T.nilable(T.any(::String, ::Float, T::Boolean, Models::Shared::HrisCreateEmploymentRequestDtoSchemasWorkTime4, T::Array[::Object])), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
18
+ # The unified value for the duration unit.
19
+ field :value, T.nilable(Models::Shared::HrisCreateEmploymentRequestDtoSchemasWorkTimeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Models::Shared::HrisCreateEmploymentRequestDtoSchemasWorkTimeValue, true) } }
20
+
21
+
22
+ sig { params(source_value: T.nilable(T.any(::String, ::Float, T::Boolean, Models::Shared::HrisCreateEmploymentRequestDtoSchemasWorkTime4, T::Array[::Object])), value: T.nilable(Models::Shared::HrisCreateEmploymentRequestDtoSchemasWorkTimeValue)).void }
23
+ def initialize(source_value: nil, value: nil)
24
+ @source_value = source_value
25
+ @value = value
26
+ end
27
+
28
+ def ==(other)
29
+ return false unless other.is_a? self.class
30
+ return false unless @source_value == other.source_value
31
+ return false unless @value == other.value
32
+ true
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,28 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Models
9
+ module Shared
10
+
11
+
12
+ class HrisCreateEmploymentRequestDtoSchemasWorkTime4
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+
17
+
18
+
19
+ def initialize; end
20
+
21
+ def ==(other)
22
+ return false unless other.is_a? self.class
23
+ true
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,28 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Models
9
+ module Shared
10
+
11
+
12
+ class HrisCreateEmploymentRequestDtoSchemasWorkTimeSourceValue
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+
17
+
18
+
19
+ def initialize; end
20
+
21
+ def ==(other)
22
+ return false unless other.is_a? self.class
23
+ true
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,23 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Models
9
+ module Shared
10
+
11
+ # HrisCreateEmploymentRequestDtoSchemasWorkTimeValue - The unified value for the duration unit.
12
+ class HrisCreateEmploymentRequestDtoSchemasWorkTimeValue < T::Enum
13
+ enums do
14
+ DAY = new('day')
15
+ WEEK = new('week')
16
+ MONTH = new('month')
17
+ YEAR = new('year')
18
+ UNMAPPED_VALUE = new('unmapped_value')
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,37 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Models
9
+ module Shared
10
+
11
+
12
+ class HrisCreateEmploymentRequestDtoWorkTime
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+ # The work time duration in ISO 8601 duration format
17
+ field :duration, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('duration') } }
18
+ # The duration unit of the work time
19
+ field :duration_unit, T.nilable(Models::Shared::HrisCreateEmploymentRequestDtoDurationUnit), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('duration_unit') } }
20
+
21
+
22
+ sig { params(duration: T.nilable(::String), duration_unit: T.nilable(Models::Shared::HrisCreateEmploymentRequestDtoDurationUnit)).void }
23
+ def initialize(duration: nil, duration_unit: nil)
24
+ @duration = duration
25
+ @duration_unit = duration_unit
26
+ end
27
+
28
+ def ==(other)
29
+ return false unless other.is_a? self.class
30
+ return false unless @duration == other.duration
31
+ return false unless @duration_unit == other.duration_unit
32
+ true
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,37 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Models
9
+ module Shared
10
+
11
+ # The duration unit of the work time
12
+ class HrisUpdateEmployeeRequestDtoDurationUnit
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+
17
+ field :source_value, T.nilable(T.any(::String, ::Float, T::Boolean, Models::Shared::HrisUpdateEmployeeRequestDtoSchemasEmploymentWorkTime4, T::Array[::Object])), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
18
+ # The unified value for the duration unit.
19
+ field :value, T.nilable(Models::Shared::HrisUpdateEmployeeRequestDtoSchemasEmploymentWorkTimeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Models::Shared::HrisUpdateEmployeeRequestDtoSchemasEmploymentWorkTimeValue, true) } }
20
+
21
+
22
+ sig { params(source_value: T.nilable(T.any(::String, ::Float, T::Boolean, Models::Shared::HrisUpdateEmployeeRequestDtoSchemasEmploymentWorkTime4, T::Array[::Object])), value: T.nilable(Models::Shared::HrisUpdateEmployeeRequestDtoSchemasEmploymentWorkTimeValue)).void }
23
+ def initialize(source_value: nil, value: nil)
24
+ @source_value = source_value
25
+ @value = value
26
+ end
27
+
28
+ def ==(other)
29
+ return false unless other.is_a? self.class
30
+ return false unless @source_value == other.source_value
31
+ return false unless @value == other.value
32
+ true
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -33,14 +33,14 @@ module StackOne
33
33
  field :pay_period, T.nilable(Models::Shared::HrisUpdateEmployeeRequestDtoPayPeriod), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_period') } }
34
34
  # The pay rate for the employee
35
35
  field :pay_rate, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_rate') } }
36
- # The time worked for the employee in ISO 8601 duration format
37
- field :time_worked, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('time_worked') } }
38
36
  # Custom Unified Fields configured in your StackOne project
39
37
  field :unified_custom_fields, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('unified_custom_fields') } }
40
38
 
39
+ field :work_time, T.nilable(Models::Shared::HrisUpdateEmployeeRequestDtoWorkTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_time') } }
41
40
 
42
- sig { params(effective_date: T.nilable(::DateTime), employment_contract_type: T.nilable(Models::Shared::HrisUpdateEmployeeRequestDtoSchemasEmploymentContractType), employment_type: T.nilable(Models::Shared::HrisUpdateEmployeeRequestDtoSchemasEmploymentType), id: T.nilable(::String), job_title: T.nilable(::String), pay_currency: T.nilable(::String), pay_frequency: T.nilable(Models::Shared::HrisUpdateEmployeeRequestDtoPayFrequency), pay_period: T.nilable(Models::Shared::HrisUpdateEmployeeRequestDtoPayPeriod), pay_rate: T.nilable(::String), time_worked: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object])).void }
43
- def initialize(effective_date: nil, employment_contract_type: nil, employment_type: nil, id: nil, job_title: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, time_worked: nil, unified_custom_fields: nil)
41
+
42
+ sig { params(effective_date: T.nilable(::DateTime), employment_contract_type: T.nilable(Models::Shared::HrisUpdateEmployeeRequestDtoSchemasEmploymentContractType), employment_type: T.nilable(Models::Shared::HrisUpdateEmployeeRequestDtoSchemasEmploymentType), id: T.nilable(::String), job_title: T.nilable(::String), pay_currency: T.nilable(::String), pay_frequency: T.nilable(Models::Shared::HrisUpdateEmployeeRequestDtoPayFrequency), pay_period: T.nilable(Models::Shared::HrisUpdateEmployeeRequestDtoPayPeriod), pay_rate: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), work_time: T.nilable(Models::Shared::HrisUpdateEmployeeRequestDtoWorkTime)).void }
43
+ def initialize(effective_date: nil, employment_contract_type: nil, employment_type: nil, id: nil, job_title: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, unified_custom_fields: nil, work_time: nil)
44
44
  @effective_date = effective_date
45
45
  @employment_contract_type = employment_contract_type
46
46
  @employment_type = employment_type
@@ -50,8 +50,8 @@ module StackOne
50
50
  @pay_frequency = pay_frequency
51
51
  @pay_period = pay_period
52
52
  @pay_rate = pay_rate
53
- @time_worked = time_worked
54
53
  @unified_custom_fields = unified_custom_fields
54
+ @work_time = work_time
55
55
  end
56
56
 
57
57
  def ==(other)
@@ -65,8 +65,8 @@ module StackOne
65
65
  return false unless @pay_frequency == other.pay_frequency
66
66
  return false unless @pay_period == other.pay_period
67
67
  return false unless @pay_rate == other.pay_rate
68
- return false unless @time_worked == other.time_worked
69
68
  return false unless @unified_custom_fields == other.unified_custom_fields
69
+ return false unless @work_time == other.work_time
70
70
  true
71
71
  end
72
72
  end
@@ -0,0 +1,28 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Models
9
+ module Shared
10
+
11
+
12
+ class HrisUpdateEmployeeRequestDtoSchemasEmploymentWorkTime4
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+
17
+
18
+
19
+ def initialize; end
20
+
21
+ def ==(other)
22
+ return false unless other.is_a? self.class
23
+ true
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,28 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Models
9
+ module Shared
10
+
11
+
12
+ class HrisUpdateEmployeeRequestDtoSchemasEmploymentWorkTimeSourceValue
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+
17
+
18
+
19
+ def initialize; end
20
+
21
+ def ==(other)
22
+ return false unless other.is_a? self.class
23
+ true
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,23 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Models
9
+ module Shared
10
+
11
+ # HrisUpdateEmployeeRequestDtoSchemasEmploymentWorkTimeValue - The unified value for the duration unit.
12
+ class HrisUpdateEmployeeRequestDtoSchemasEmploymentWorkTimeValue < T::Enum
13
+ enums do
14
+ DAY = new('day')
15
+ WEEK = new('week')
16
+ MONTH = new('month')
17
+ YEAR = new('year')
18
+ UNMAPPED_VALUE = new('unmapped_value')
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,37 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Models
9
+ module Shared
10
+
11
+
12
+ class HrisUpdateEmployeeRequestDtoWorkTime
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+ # The work time duration in ISO 8601 duration format
17
+ field :duration, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('duration') } }
18
+ # The duration unit of the work time
19
+ field :duration_unit, T.nilable(Models::Shared::HrisUpdateEmployeeRequestDtoDurationUnit), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('duration_unit') } }
20
+
21
+
22
+ sig { params(duration: T.nilable(::String), duration_unit: T.nilable(Models::Shared::HrisUpdateEmployeeRequestDtoDurationUnit)).void }
23
+ def initialize(duration: nil, duration_unit: nil)
24
+ @duration = duration
25
+ @duration_unit = duration_unit
26
+ end
27
+
28
+ def ==(other)
29
+ return false unless other.is_a? self.class
30
+ return false unless @duration == other.duration
31
+ return false unless @duration_unit == other.duration_unit
32
+ true
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -22,6 +22,7 @@ module StackOne
22
22
  DOCUMENTS = new('documents')
23
23
  TICKETING = new('ticketing')
24
24
  SCREENING = new('screening')
25
+ MESSAGING = new('messaging')
25
26
  end
26
27
  end
27
28
  end
@@ -20,6 +20,7 @@ module StackOne
20
20
  NUMBER = new('number')
21
21
  DATE = new('date')
22
22
  VIDEO = new('video')
23
+ URL = new('url')
23
24
  end
24
25
  end
25
26
  end