stackone_client 0.8.0 → 0.9.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 (39) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stack_one/models/shared/categories.rb +1 -0
  3. data/lib/stack_one/models/shared/connectorsmeta_category.rb +1 -0
  4. data/lib/stack_one/models/shared/connectsessioncreate_categories.rb +1 -0
  5. data/lib/stack_one/models/shared/connectsessiontokenauthlink_categories.rb +1 -0
  6. data/lib/stack_one/models/shared/createemploymentapimodel.rb +6 -6
  7. data/lib/stack_one/models/shared/createemploymentapimodel_duration_unit.rb +37 -0
  8. data/lib/stack_one/models/shared/createemploymentapimodel_schemas_work_time_4.rb +28 -0
  9. data/lib/stack_one/models/shared/createemploymentapimodel_schemas_work_time_source_value.rb +28 -0
  10. data/lib/stack_one/models/shared/createemploymentapimodel_schemas_work_time_value.rb +23 -0
  11. data/lib/stack_one/models/shared/employment.rb +6 -6
  12. data/lib/stack_one/models/shared/employment_duration_unit.rb +37 -0
  13. data/lib/stack_one/models/shared/employment_schemas_work_time_4.rb +28 -0
  14. data/lib/stack_one/models/shared/employment_schemas_work_time_source_value.rb +28 -0
  15. data/lib/stack_one/models/shared/employment_schemas_work_time_value.rb +23 -0
  16. data/lib/stack_one/models/shared/employment_work_time.rb +37 -0
  17. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_duration_unit.rb +37 -0
  18. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment.rb +6 -6
  19. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_work_time_4.rb +28 -0
  20. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_work_time_source_value.rb +28 -0
  21. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_work_time_value.rb +23 -0
  22. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_work_time.rb +37 -0
  23. data/lib/stack_one/models/shared/hriscreateemploymentrequestdto.rb +6 -6
  24. data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_duration_unit.rb +37 -0
  25. data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_work_time_4.rb +28 -0
  26. data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_work_time_source_value.rb +28 -0
  27. data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_work_time_value.rb +23 -0
  28. data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_work_time.rb +37 -0
  29. data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_duration_unit.rb +37 -0
  30. data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_employment.rb +6 -6
  31. data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_work_time_4.rb +28 -0
  32. data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_work_time_source_value.rb +28 -0
  33. data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_work_time_value.rb +23 -0
  34. data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_work_time.rb +37 -0
  35. data/lib/stack_one/models/shared/linkedaccountmeta_category.rb +1 -0
  36. data/lib/stack_one/models/shared/work_time.rb +37 -0
  37. data/lib/stack_one/models/shared.rb +25 -0
  38. data/lib/stack_one/sdkconfiguration.rb +2 -2
  39. metadata +28 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a24c3c36630e3fc4726010e1d32ba74ed6fe68d38a1dc8a3023d32edcb1d7a4a
4
- data.tar.gz: e0ef51e23fa194652b5818bcc3075deb2430187516f0247f575e8bca00d1a358
3
+ metadata.gz: 2296710123179ee1d684d5565857414da5ce4e26f44b974eacbc06771a40a9dc
4
+ data.tar.gz: 2f2fba5b919edeec2d2043772cf5e51dc820dd33c8b9f762f60386ed3e79e9c1
5
5
  SHA512:
6
- metadata.gz: 1cf485a55f0cb1bbbd080700055a03b2a8cc3d34e84ce5062bd622a7e55343241ae3b1e2cde415224b5747aa3fd56230e5cf72df442169b15dcbb856749eb939
7
- data.tar.gz: 1e1fad3a695cda51b1d77f62673521f22349c234b79b1012c39f31667c94ea360c5efd95e06aea404a5596935b18a4190b7e18b15ad60f4e0ea26e9ecef1fe9d
6
+ metadata.gz: 1da403b51cf62b6d607dfb76b649604bec5b167870809f681659c1c232f1504eda037fbb1d1395c6cd8be0ce3d7f5b713e0372c8861a4780b060b17c5a82f549
7
+ data.tar.gz: ca684075ee4ecfc20aad754c129312810df67c84e06209af855bce44744904ec92fedb1cfa2ed5fda8a930a32cb08eb0b0d8c422e44512880e2478a49da56a0f
@@ -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
@@ -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
@@ -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
@@ -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
@@ -33,14 +33,14 @@ module StackOne
33
33
  field :pay_period, T.nilable(Models::Shared::PayPeriod), { '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::WorkTime), { '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::EmploymentContractType), employment_type: T.nilable(Models::Shared::EmploymentType), id: T.nilable(::String), job_title: T.nilable(::String), pay_currency: T.nilable(::String), pay_frequency: T.nilable(Models::Shared::PayFrequency), pay_period: T.nilable(Models::Shared::PayPeriod), 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::EmploymentContractType), employment_type: T.nilable(Models::Shared::EmploymentType), id: T.nilable(::String), job_title: T.nilable(::String), pay_currency: T.nilable(::String), pay_frequency: T.nilable(Models::Shared::PayFrequency), pay_period: T.nilable(Models::Shared::PayPeriod), pay_rate: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), work_time: T.nilable(Models::Shared::WorkTime)).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,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 CreateEmploymentApiModelDurationUnit
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+
17
+ field :source_value, T.nilable(T.any(::String, ::Float, T::Boolean, Models::Shared::CreateEmploymentApiModelSchemasWorkTime4, 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::CreateEmploymentApiModelSchemasWorkTimeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Models::Shared::CreateEmploymentApiModelSchemasWorkTimeValue, true) } }
20
+
21
+
22
+ sig { params(source_value: T.nilable(T.any(::String, ::Float, T::Boolean, Models::Shared::CreateEmploymentApiModelSchemasWorkTime4, T::Array[::Object])), value: T.nilable(Models::Shared::CreateEmploymentApiModelSchemasWorkTimeValue)).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 CreateEmploymentApiModelSchemasWorkTime4
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 CreateEmploymentApiModelSchemasWorkTimeSourceValue
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
+ # CreateEmploymentApiModelSchemasWorkTimeValue - The unified value for the duration unit.
12
+ class CreateEmploymentApiModelSchemasWorkTimeValue < 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
@@ -67,8 +67,6 @@ module StackOne
67
67
  field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
68
68
  # The start_date of employment
69
69
  field :start_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
70
- # The time worked for the employee in ISO 8601 duration format
71
- field :time_worked, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('time_worked') } }
72
70
  # The type of employment
73
71
  field :type, T.nilable(Models::Shared::EmploymentSchemasType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
74
72
  # Custom Unified Fields configured in your StackOne project
@@ -76,9 +74,11 @@ module StackOne
76
74
  # The updated_at date
77
75
  field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
78
76
 
77
+ field :work_time, T.nilable(Models::Shared::EmploymentWorkTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_time') } }
79
78
 
80
- sig { params(active: T.nilable(T::Boolean), contract_type: T.nilable(Models::Shared::ContractType), cost_center: T.nilable(Models::Shared::CostCenter), cost_centers: T.nilable(T::Array[Models::Shared::HRISCostCenter]), created_at: T.nilable(::DateTime), department: T.nilable(Models::Shared::EmploymentDepartment), division: T.nilable(Models::Shared::Division), effective_date: T.nilable(::DateTime), employee_id: T.nilable(::String), employment_contract_type: T.nilable(Models::Shared::EmploymentEmploymentContractType), employment_type: T.nilable(Models::Shared::EmploymentEmploymentType), end_date: T.nilable(::DateTime), id: T.nilable(::String), job: T.nilable(Models::Shared::EmploymentJob), job_title: T.nilable(::String), manager: T.nilable(T::Array[Models::Shared::EmploymentManagerApiModel]), pay_currency: T.nilable(::String), pay_frequency: T.nilable(Models::Shared::EmploymentPayFrequency), pay_period: T.nilable(Models::Shared::EmploymentPayPeriod), pay_rate: T.nilable(::String), remote_employee_id: T.nilable(::String), remote_id: T.nilable(::String), start_date: T.nilable(::DateTime), time_worked: T.nilable(::String), type: T.nilable(Models::Shared::EmploymentSchemasType), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), updated_at: T.nilable(::DateTime)).void }
81
- def initialize(active: nil, contract_type: nil, cost_center: nil, cost_centers: nil, created_at: nil, department: nil, division: nil, effective_date: nil, employee_id: nil, employment_contract_type: nil, employment_type: nil, end_date: nil, id: nil, job: nil, job_title: nil, manager: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, remote_employee_id: nil, remote_id: nil, start_date: nil, time_worked: nil, type: nil, unified_custom_fields: nil, updated_at: nil)
79
+
80
+ sig { params(active: T.nilable(T::Boolean), contract_type: T.nilable(Models::Shared::ContractType), cost_center: T.nilable(Models::Shared::CostCenter), cost_centers: T.nilable(T::Array[Models::Shared::HRISCostCenter]), created_at: T.nilable(::DateTime), department: T.nilable(Models::Shared::EmploymentDepartment), division: T.nilable(Models::Shared::Division), effective_date: T.nilable(::DateTime), employee_id: T.nilable(::String), employment_contract_type: T.nilable(Models::Shared::EmploymentEmploymentContractType), employment_type: T.nilable(Models::Shared::EmploymentEmploymentType), end_date: T.nilable(::DateTime), id: T.nilable(::String), job: T.nilable(Models::Shared::EmploymentJob), job_title: T.nilable(::String), manager: T.nilable(T::Array[Models::Shared::EmploymentManagerApiModel]), pay_currency: T.nilable(::String), pay_frequency: T.nilable(Models::Shared::EmploymentPayFrequency), pay_period: T.nilable(Models::Shared::EmploymentPayPeriod), pay_rate: T.nilable(::String), remote_employee_id: T.nilable(::String), remote_id: T.nilable(::String), start_date: T.nilable(::DateTime), type: T.nilable(Models::Shared::EmploymentSchemasType), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), updated_at: T.nilable(::DateTime), work_time: T.nilable(Models::Shared::EmploymentWorkTime)).void }
81
+ def initialize(active: nil, contract_type: nil, cost_center: nil, cost_centers: nil, created_at: nil, department: nil, division: nil, effective_date: nil, employee_id: nil, employment_contract_type: nil, employment_type: nil, end_date: nil, id: nil, job: nil, job_title: nil, manager: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, remote_employee_id: nil, remote_id: nil, start_date: nil, type: nil, unified_custom_fields: nil, updated_at: nil, work_time: nil)
82
82
  @active = active
83
83
  @contract_type = contract_type
84
84
  @cost_center = cost_center
@@ -102,10 +102,10 @@ module StackOne
102
102
  @remote_employee_id = remote_employee_id
103
103
  @remote_id = remote_id
104
104
  @start_date = start_date
105
- @time_worked = time_worked
106
105
  @type = type
107
106
  @unified_custom_fields = unified_custom_fields
108
107
  @updated_at = updated_at
108
+ @work_time = work_time
109
109
  end
110
110
 
111
111
  def ==(other)
@@ -133,10 +133,10 @@ module StackOne
133
133
  return false unless @remote_employee_id == other.remote_employee_id
134
134
  return false unless @remote_id == other.remote_id
135
135
  return false unless @start_date == other.start_date
136
- return false unless @time_worked == other.time_worked
137
136
  return false unless @type == other.type
138
137
  return false unless @unified_custom_fields == other.unified_custom_fields
139
138
  return false unless @updated_at == other.updated_at
139
+ return false unless @work_time == other.work_time
140
140
  true
141
141
  end
142
142
  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 EmploymentDurationUnit
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+
17
+ field :source_value, T.nilable(T.any(::String, ::Float, T::Boolean, Models::Shared::EmploymentSchemasWorkTime4, 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::EmploymentSchemasWorkTimeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Models::Shared::EmploymentSchemasWorkTimeValue, true) } }
20
+
21
+
22
+ sig { params(source_value: T.nilable(T.any(::String, ::Float, T::Boolean, Models::Shared::EmploymentSchemasWorkTime4, T::Array[::Object])), value: T.nilable(Models::Shared::EmploymentSchemasWorkTimeValue)).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 EmploymentSchemasWorkTime4
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 EmploymentSchemasWorkTimeSourceValue
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
+ # EmploymentSchemasWorkTimeValue - The unified value for the duration unit.
12
+ class EmploymentSchemasWorkTimeValue < 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 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