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.
- checksums.yaml +4 -4
- data/lib/stack_one/models/shared/categories.rb +1 -0
- data/lib/stack_one/models/shared/connectorsmeta_category.rb +1 -0
- data/lib/stack_one/models/shared/connectsessioncreate_categories.rb +1 -0
- data/lib/stack_one/models/shared/connectsessiontokenauthlink_categories.rb +1 -0
- data/lib/stack_one/models/shared/createemploymentapimodel.rb +6 -6
- data/lib/stack_one/models/shared/createemploymentapimodel_duration_unit.rb +37 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_work_time_4.rb +28 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_work_time_source_value.rb +28 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_work_time_value.rb +23 -0
- data/lib/stack_one/models/shared/employment.rb +6 -6
- data/lib/stack_one/models/shared/employment_duration_unit.rb +37 -0
- data/lib/stack_one/models/shared/employment_schemas_work_time_4.rb +28 -0
- data/lib/stack_one/models/shared/employment_schemas_work_time_source_value.rb +28 -0
- data/lib/stack_one/models/shared/employment_schemas_work_time_value.rb +23 -0
- data/lib/stack_one/models/shared/employment_work_time.rb +37 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_duration_unit.rb +37 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment.rb +6 -6
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_work_time_4.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_work_time_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_work_time_value.rb +23 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_work_time.rb +37 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto.rb +6 -6
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_duration_unit.rb +37 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_work_time_4.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_work_time_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_work_time_value.rb +23 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_work_time.rb +37 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_duration_unit.rb +37 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_employment.rb +6 -6
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_work_time_4.rb +28 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_work_time_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_work_time_value.rb +23 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_work_time.rb +37 -0
- data/lib/stack_one/models/shared/linkedaccountmeta_category.rb +1 -0
- data/lib/stack_one/models/shared/work_time.rb +37 -0
- data/lib/stack_one/models/shared.rb +25 -0
- data/lib/stack_one/sdkconfiguration.rb +2 -2
- metadata +28 -3
@@ -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
|
-
|
45
|
-
|
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
|
data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_work_time_source_value.rb
ADDED
@@ -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
|
-
|
43
|
-
|
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
|
data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_work_time_4.rb
ADDED
@@ -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
|
data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_work_time_value.rb
ADDED
@@ -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
|
@@ -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 WorkTime
|
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::CreateEmploymentApiModelDurationUnit), { '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::CreateEmploymentApiModelDurationUnit)).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
|
@@ -299,6 +299,10 @@ module StackOne
|
|
299
299
|
autoload :CreateEmploymentApiModelSchemasPayPeriodValue, 'stack_one/models/shared/createemploymentapimodel_schemas_pay_period_value.rb'
|
300
300
|
autoload :CreateEmploymentApiModelSchemasSourceValue, 'stack_one/models/shared/createemploymentapimodel_schemas_source_value.rb'
|
301
301
|
autoload :CreateEmploymentApiModelSchemasValue, 'stack_one/models/shared/createemploymentapimodel_schemas_value.rb'
|
302
|
+
autoload :CreateEmploymentApiModelSchemasWorkTime4, 'stack_one/models/shared/createemploymentapimodel_schemas_work_time_4.rb'
|
303
|
+
autoload :CreateEmploymentApiModelSchemasWorkTimeSourceValue, 'stack_one/models/shared/createemploymentapimodel_schemas_work_time_source_value.rb'
|
304
|
+
autoload :CreateEmploymentApiModelSchemasWorkTimeValue, 'stack_one/models/shared/createemploymentapimodel_schemas_work_time_value.rb'
|
305
|
+
autoload :CreateEmploymentApiModelDurationUnit, 'stack_one/models/shared/createemploymentapimodel_duration_unit.rb'
|
302
306
|
autoload :CreateEmploymentApiModelSourceValue, 'stack_one/models/shared/createemploymentapimodel_source_value.rb'
|
303
307
|
autoload :CreateEmploymentApiModelValue, 'stack_one/models/shared/createemploymentapimodel_value.rb'
|
304
308
|
autoload :CreateHRISBenefit, 'stack_one/models/shared/createhrisbenefit.rb'
|
@@ -440,7 +444,11 @@ module StackOne
|
|
440
444
|
autoload :EmploymentSchemasTypeType, 'stack_one/models/shared/employment_schemas_type_type.rb'
|
441
445
|
autoload :EmploymentSchemasTypeValue, 'stack_one/models/shared/employment_schemas_type_value.rb'
|
442
446
|
autoload :EmploymentSchemasValue, 'stack_one/models/shared/employment_schemas_value.rb'
|
447
|
+
autoload :EmploymentSchemasWorkTime4, 'stack_one/models/shared/employment_schemas_work_time_4.rb'
|
448
|
+
autoload :EmploymentSchemasWorkTimeSourceValue, 'stack_one/models/shared/employment_schemas_work_time_source_value.rb'
|
449
|
+
autoload :EmploymentSchemasWorkTimeValue, 'stack_one/models/shared/employment_schemas_work_time_value.rb'
|
443
450
|
autoload :EmploymentDepartment, 'stack_one/models/shared/employment_department.rb'
|
451
|
+
autoload :EmploymentDurationUnit, 'stack_one/models/shared/employment_duration_unit.rb'
|
444
452
|
autoload :EmploymentEmploymentContractType, 'stack_one/models/shared/employment_employment_contract_type.rb'
|
445
453
|
autoload :EmploymentEmploymentType, 'stack_one/models/shared/employment_employment_type.rb'
|
446
454
|
autoload :EmploymentJob, 'stack_one/models/shared/employment_job.rb'
|
@@ -448,6 +456,7 @@ module StackOne
|
|
448
456
|
autoload :EmploymentPayPeriod, 'stack_one/models/shared/employment_pay_period.rb'
|
449
457
|
autoload :EmploymentSourceValue, 'stack_one/models/shared/employment_source_value.rb'
|
450
458
|
autoload :EmploymentValue, 'stack_one/models/shared/employment_value.rb'
|
459
|
+
autoload :EmploymentWorkTime, 'stack_one/models/shared/employment_work_time.rb'
|
451
460
|
autoload :EmploymentsPaginated, 'stack_one/models/shared/employmentspaginated.rb'
|
452
461
|
autoload :EntitySkillResult, 'stack_one/models/shared/entityskillresult.rb'
|
453
462
|
autoload :EntitySkills, 'stack_one/models/shared/entityskills.rb'
|
@@ -542,6 +551,9 @@ module StackOne
|
|
542
551
|
autoload :HrisCreateEmployeeRequestDtoSchemasEmploymentTypeSourceValue, 'stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_source_value.rb'
|
543
552
|
autoload :HrisCreateEmployeeRequestDtoSchemasEmploymentTypeValue, 'stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_value.rb'
|
544
553
|
autoload :HrisCreateEmployeeRequestDtoSchemasEmploymentValue, 'stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_value.rb'
|
554
|
+
autoload :HrisCreateEmployeeRequestDtoSchemasEmploymentWorkTime4, 'stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_work_time_4.rb'
|
555
|
+
autoload :HrisCreateEmployeeRequestDtoSchemasEmploymentWorkTimeSourceValue, 'stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_work_time_source_value.rb'
|
556
|
+
autoload :HrisCreateEmployeeRequestDtoSchemasEmploymentWorkTimeValue, 'stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_work_time_value.rb'
|
545
557
|
autoload :HrisCreateEmployeeRequestDtoSchemasEthnicity4, 'stack_one/models/shared/hriscreateemployeerequestdto_schemas_ethnicity_4.rb'
|
546
558
|
autoload :HrisCreateEmployeeRequestDtoSchemasEthnicitySourceValue, 'stack_one/models/shared/hriscreateemployeerequestdto_schemas_ethnicity_source_value.rb'
|
547
559
|
autoload :HrisCreateEmployeeRequestDtoSchemasEthnicityValue, 'stack_one/models/shared/hriscreateemployeerequestdto_schemas_ethnicity_value.rb'
|
@@ -575,6 +587,7 @@ module StackOne
|
|
575
587
|
autoload :HrisCreateEmployeeRequestDtoSchemasWorkLocationValue, 'stack_one/models/shared/hriscreateemployeerequestdto_schemas_work_location_value.rb'
|
576
588
|
autoload :HrisCreateEmployeeRequestDtoAvatar, 'stack_one/models/shared/hriscreateemployeerequestdto_avatar.rb'
|
577
589
|
autoload :HrisCreateEmployeeRequestDtoCountry, 'stack_one/models/shared/hriscreateemployeerequestdto_country.rb'
|
590
|
+
autoload :HrisCreateEmployeeRequestDtoDurationUnit, 'stack_one/models/shared/hriscreateemployeerequestdto_duration_unit.rb'
|
578
591
|
autoload :HrisCreateEmployeeRequestDtoEmployment, 'stack_one/models/shared/hriscreateemployeerequestdto_employment.rb'
|
579
592
|
autoload :HrisCreateEmployeeRequestDtoEmploymentContractType, 'stack_one/models/shared/hriscreateemployeerequestdto_employment_contract_type.rb'
|
580
593
|
autoload :HrisCreateEmployeeRequestDtoEmploymentStatus, 'stack_one/models/shared/hriscreateemployeerequestdto_employment_status.rb'
|
@@ -592,6 +605,7 @@ module StackOne
|
|
592
605
|
autoload :HrisCreateEmployeeRequestDtoType, 'stack_one/models/shared/hriscreateemployeerequestdto_type.rb'
|
593
606
|
autoload :HrisCreateEmployeeRequestDtoValue, 'stack_one/models/shared/hriscreateemployeerequestdto_value.rb'
|
594
607
|
autoload :HrisCreateEmployeeRequestDtoWorkLocation, 'stack_one/models/shared/hriscreateemployeerequestdto_work_location.rb'
|
608
|
+
autoload :HrisCreateEmployeeRequestDtoWorkTime, 'stack_one/models/shared/hriscreateemployeerequestdto_work_time.rb'
|
595
609
|
autoload :HrisCreateEmploymentRequestDto, 'stack_one/models/shared/hriscreateemploymentrequestdto.rb'
|
596
610
|
autoload :HrisCreateEmploymentRequestDto4, 'stack_one/models/shared/hriscreateemploymentrequestdto_4.rb'
|
597
611
|
autoload :HrisCreateEmploymentRequestDtoSchemas4, 'stack_one/models/shared/hriscreateemploymentrequestdto_schemas_4.rb'
|
@@ -603,12 +617,17 @@ module StackOne
|
|
603
617
|
autoload :HrisCreateEmploymentRequestDtoSchemasPayPeriodValue, 'stack_one/models/shared/hriscreateemploymentrequestdto_schemas_pay_period_value.rb'
|
604
618
|
autoload :HrisCreateEmploymentRequestDtoSchemasSourceValue, 'stack_one/models/shared/hriscreateemploymentrequestdto_schemas_source_value.rb'
|
605
619
|
autoload :HrisCreateEmploymentRequestDtoSchemasValue, 'stack_one/models/shared/hriscreateemploymentrequestdto_schemas_value.rb'
|
620
|
+
autoload :HrisCreateEmploymentRequestDtoSchemasWorkTime4, 'stack_one/models/shared/hriscreateemploymentrequestdto_schemas_work_time_4.rb'
|
621
|
+
autoload :HrisCreateEmploymentRequestDtoSchemasWorkTimeSourceValue, 'stack_one/models/shared/hriscreateemploymentrequestdto_schemas_work_time_source_value.rb'
|
622
|
+
autoload :HrisCreateEmploymentRequestDtoSchemasWorkTimeValue, 'stack_one/models/shared/hriscreateemploymentrequestdto_schemas_work_time_value.rb'
|
623
|
+
autoload :HrisCreateEmploymentRequestDtoDurationUnit, 'stack_one/models/shared/hriscreateemploymentrequestdto_duration_unit.rb'
|
606
624
|
autoload :HrisCreateEmploymentRequestDtoEmploymentContractType, 'stack_one/models/shared/hriscreateemploymentrequestdto_employment_contract_type.rb'
|
607
625
|
autoload :HrisCreateEmploymentRequestDtoEmploymentType, 'stack_one/models/shared/hriscreateemploymentrequestdto_employment_type.rb'
|
608
626
|
autoload :HrisCreateEmploymentRequestDtoPayFrequency, 'stack_one/models/shared/hriscreateemploymentrequestdto_pay_frequency.rb'
|
609
627
|
autoload :HrisCreateEmploymentRequestDtoPayPeriod, 'stack_one/models/shared/hriscreateemploymentrequestdto_pay_period.rb'
|
610
628
|
autoload :HrisCreateEmploymentRequestDtoSourceValue, 'stack_one/models/shared/hriscreateemploymentrequestdto_source_value.rb'
|
611
629
|
autoload :HrisCreateEmploymentRequestDtoValue, 'stack_one/models/shared/hriscreateemploymentrequestdto_value.rb'
|
630
|
+
autoload :HrisCreateEmploymentRequestDtoWorkTime, 'stack_one/models/shared/hriscreateemploymentrequestdto_work_time.rb'
|
612
631
|
autoload :HrisCreateTimeOffRequestDto, 'stack_one/models/shared/hriscreatetimeoffrequestdto.rb'
|
613
632
|
autoload :HrisCreateTimeOffRequestDto2, 'stack_one/models/shared/hriscreatetimeoffrequestdto_2.rb'
|
614
633
|
autoload :HrisCreateTimeOffRequestDto4, 'stack_one/models/shared/hriscreatetimeoffrequestdto_4.rb'
|
@@ -684,6 +703,9 @@ module StackOne
|
|
684
703
|
autoload :HrisUpdateEmployeeRequestDtoSchemasEmploymentTypeSourceValue, 'stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_type_source_value.rb'
|
685
704
|
autoload :HrisUpdateEmployeeRequestDtoSchemasEmploymentTypeValue, 'stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_type_value.rb'
|
686
705
|
autoload :HrisUpdateEmployeeRequestDtoSchemasEmploymentValue, 'stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_value.rb'
|
706
|
+
autoload :HrisUpdateEmployeeRequestDtoSchemasEmploymentWorkTime4, 'stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_work_time_4.rb'
|
707
|
+
autoload :HrisUpdateEmployeeRequestDtoSchemasEmploymentWorkTimeSourceValue, 'stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_work_time_source_value.rb'
|
708
|
+
autoload :HrisUpdateEmployeeRequestDtoSchemasEmploymentWorkTimeValue, 'stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_work_time_value.rb'
|
687
709
|
autoload :HrisUpdateEmployeeRequestDtoSchemasEthnicity4, 'stack_one/models/shared/hrisupdateemployeerequestdto_schemas_ethnicity_4.rb'
|
688
710
|
autoload :HrisUpdateEmployeeRequestDtoSchemasEthnicitySourceValue, 'stack_one/models/shared/hrisupdateemployeerequestdto_schemas_ethnicity_source_value.rb'
|
689
711
|
autoload :HrisUpdateEmployeeRequestDtoSchemasEthnicityValue, 'stack_one/models/shared/hrisupdateemployeerequestdto_schemas_ethnicity_value.rb'
|
@@ -718,6 +740,7 @@ module StackOne
|
|
718
740
|
autoload :HrisUpdateEmployeeRequestDtoSchemasWorkLocationValue, 'stack_one/models/shared/hrisupdateemployeerequestdto_schemas_work_location_value.rb'
|
719
741
|
autoload :HrisUpdateEmployeeRequestDtoAvatar, 'stack_one/models/shared/hrisupdateemployeerequestdto_avatar.rb'
|
720
742
|
autoload :HrisUpdateEmployeeRequestDtoCountry, 'stack_one/models/shared/hrisupdateemployeerequestdto_country.rb'
|
743
|
+
autoload :HrisUpdateEmployeeRequestDtoDurationUnit, 'stack_one/models/shared/hrisupdateemployeerequestdto_duration_unit.rb'
|
721
744
|
autoload :HrisUpdateEmployeeRequestDtoEmployment, 'stack_one/models/shared/hrisupdateemployeerequestdto_employment.rb'
|
722
745
|
autoload :HrisUpdateEmployeeRequestDtoEmploymentContractType, 'stack_one/models/shared/hrisupdateemployeerequestdto_employment_contract_type.rb'
|
723
746
|
autoload :HrisUpdateEmployeeRequestDtoEmploymentStatus, 'stack_one/models/shared/hrisupdateemployeerequestdto_employment_status.rb'
|
@@ -735,6 +758,7 @@ module StackOne
|
|
735
758
|
autoload :HrisUpdateEmployeeRequestDtoType, 'stack_one/models/shared/hrisupdateemployeerequestdto_type.rb'
|
736
759
|
autoload :HrisUpdateEmployeeRequestDtoValue, 'stack_one/models/shared/hrisupdateemployeerequestdto_value.rb'
|
737
760
|
autoload :HrisUpdateEmployeeRequestDtoWorkLocation, 'stack_one/models/shared/hrisupdateemployeerequestdto_work_location.rb'
|
761
|
+
autoload :HrisUpdateEmployeeRequestDtoWorkTime, 'stack_one/models/shared/hrisupdateemployeerequestdto_work_time.rb'
|
738
762
|
autoload :IamGroup, 'stack_one/models/shared/iamgroup.rb'
|
739
763
|
autoload :IamGroupResult, 'stack_one/models/shared/iamgroupresult.rb'
|
740
764
|
autoload :IamGroup4, 'stack_one/models/shared/iamgroup_4.rb'
|
@@ -1223,6 +1247,7 @@ module StackOne
|
|
1223
1247
|
autoload :Value, 'stack_one/models/shared/value.rb'
|
1224
1248
|
autoload :Visibility, 'stack_one/models/shared/visibility.rb'
|
1225
1249
|
autoload :WorkLocation, 'stack_one/models/shared/work_location.rb'
|
1250
|
+
autoload :WorkTime, 'stack_one/models/shared/work_time.rb'
|
1226
1251
|
end
|
1227
1252
|
end
|
1228
1253
|
end
|
@@ -63,9 +63,9 @@ module StackOne
|
|
63
63
|
end
|
64
64
|
@language = 'ruby'
|
65
65
|
@openapi_doc_version = '1.0.0'
|
66
|
-
@sdk_version = '0.
|
66
|
+
@sdk_version = '0.9.1'
|
67
67
|
@gen_version = '2.570.4'
|
68
|
-
@user_agent = 'speakeasy-sdk/ruby 0.
|
68
|
+
@user_agent = 'speakeasy-sdk/ruby 0.9.1 2.570.4 1.0.0 stackone_client'
|
69
69
|
end
|
70
70
|
|
71
71
|
sig { returns([String, T::Hash[Symbol, String]]) }
|